2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
4 Add "gdb_stdint.h" dependency required for uintptr_t type use.
5 (handle_output_debug_string): Use uintptr_t typecast.
6 (handle_exception): Ditto.
7 (win32_xfer_memory): Ditto.
8 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
9
10 2007-12-04 Jim Blandy <jimb@codesourcery.com>
11
12 Support lexical blocks and function bodies that occupy
13 non-contiguous address ranges.
14 * addrmap.c, addrmap.h: New files.
15 * block.h (struct addrmap): New forward declaration.
16 (struct blockvector): New member, 'map'.
17 (BLOCKVECTOR_MAP): New accessor macro.
18 * block.c: #include "addrmap.h"
19 (blockvector_for_pc_sect): If the blockvector we've found has
20 an address map, use it instead of searching the blocks.
21 * buildsym.c: #include "addrmap.h"
22 (pending_addrmap_obstack, pending_addrmap_interesting): New static
23 variables.
24 (really_free_pendings): If we have a pending addrmap, free it too.
25 (record_block_range): New function.
26 (make_blockvector): If we have an interesting pending addrmap,
27 record it in the new blockvector.
28 (start_symtab, buildsym_init): Assert that there is no pending
29 addrmap now; we should have cleaned up any addrmaps we'd built
30 previously.
31 (end_symtab): If there is a pending addrmap left over that didn't
32 get included in the blockvector, free it.
33 * buildsym.h (struct addrmap): New forward declaration.
34 (record_block_range): New prototype.
35 * objfiles.c: #include "addrmap.h".
36 (objfile_relocate): Relocate the blockvector's address map, if
37 present.
38 * dwarf2read.c (dwarf2_record_block_ranges): New function.
39 (read_func_scope, read_lexical_block_scope): Call it.
40 * Makefile.in (SFILES): Add addrmap.c.
41 (addrmap_h): New header dependency variable.
42 (COMMON_OBS): Add addrmap.o.
43 (addrmap.o): New rule.l
44 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
45
46 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
47 pointer to the block, not its index in the blockvector.
48 (block_for_pc_sect): Use the returned block, instead of looking it
49 up ourselves.
50 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
51 declarations.
52 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
53 looking it up ourselves.
54 * stack.c (print_frame_label_vars): Disable function, which
55 depends on the block's index.
56
57 * buildsym.c (finish_block): Return the block we've built.
58 * buildsym.h (finish_block): Update prototype.
59
60 * defs.h (CORE_ADDR_MAX): New constant.
61
62 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
63
64 * coffread.c (decode_type): Use builtin_type_int32 instead
65 of FT_INTEGER fundamental type for array range index type.
66 (decode_base_type): Use builtin types of current_gdbarch
67 instead of fundamental types.
68
69 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
70 (read_file_scope): Do not initialize ftypes member.
71 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
72 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
73 fundamental type for array range index type.
74 (read_tag_string_type): Likewise for string range index type.
75 Also, do not overwrite FT_CHAR type with new string type.
76 (read_base_type): If DW_AT_name is missing, create unnamed type
77 with given properties instead of looking for a fundamental type.
78 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
79 DW_ATE_complex_float types.
80 (read_subrange_type): Create new type to represent missing
81 DW_AT_type instead of looking for a fundamental type.
82 (die_type): Use builtin type to represent "void" instead of
83 looking for a fundamental type.
84
85 * stabsread.c (define_symbol): Use builtin types to represent
86 'r' and 'i' floating-point and integer constants.
87
88 * gdbtypes.c (lookup_fundamental_type): Remove.
89 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
90 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
91 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
92 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
93 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
94 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
95 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
96 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
97 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
98 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
99 * objfiles.c (struct objfile): Remove fundamental_types member.
100 * symfile.c (reread_symbols): Do not clear fundamental_types.
101
102 * language.h (struct language_defn): Remove la_fund_type member.
103 (create_fundamental_type): Remove.
104 * language.c (unk_lang_create_fundamental_type): Remove.
105 (unknown_language_defn, auto_language_defn,
106 local_language_defn): Adapt initializer.
107 * ada-lang.c (ada_create_fundamental_type): Remove.
108 (ada_language_defn): Adapt initializer.
109 * c-lang.h (c_create_fundamental_type): Remove prototype.
110 * c-lang.c (c_create_fundamental_type): Remove.
111 (c_language_defn, cplus_language_defn, asm_language_defn,
112 minimal_language_defn): Adapt initializer.
113 * f-lang.c (f_create_fundamental_type): Remove.
114 (f_language_defn): Adapt initializer.
115 * jv-lang.c (java_create_fundamental_type): Remove.
116 (java_language_defn): Adapt initializer.
117 * m2-lang.c (m2_create_fundamental_type): Remove.
118 (m2_language_defn): Adapt initializer.
119 * objc-lang.c (objc_create_fundamental_type): Remove.
120 (objc_language_defn): Adapt initializer.
121 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
122 * p-lang.c (pascal_create_fundamental_type): Remove.
123 (pascal_language_defn): Adapt initializer.
124 * scm-lang.c (scm_language_defn): Adapt initializer.
125
126 2007-12-04 Maciej W. Rozycki <macro@mips.com>
127
128 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
129 * features/mips64-cpu.xml: Likewise.
130 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
131 * features/mips64-fpu.xml: Likewise.
132 * features/mips-linux.c: Regenerate.
133 * features/mips64-linux.c: Regenerate.
134
135 2007-12-04 Maciej W. Rozycki <macro@mips.com>
136
137 * target.h (target_find_new_threads): Fix definition.
138
139 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
140
141 * win32-nat.c (win32_resume): Set the trace bit
142 in the thread identified by inferior_ptid.
143
144
145 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
146
147 * win32-nat.c (open_process_used): New static variable.
148 (win32_init_thread_list): Remove call to CloseHandle for thread.
149 (win32_delete_thread): Ditto.
150 (fake_create_process): Set open_process_used if OpenProcess call is
151 successful.
152 (get_win32_debug_event): Do not close process handle.
153 (do_initial_win32_stuff): Set open_process_used to zero.
154 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
155 open_process_used is set.
156 (win32_kill_inferior): Do not close process and main_thread handles.
157
158 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
159
160 * remote.c (remote_cmdlist): New variable.
161 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
162 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
163 (remote_buffer_add_string, remote_buffer_add_bytes)
164 (remote_buffer_add_int, remote_hostio_parse_result)
165 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
166 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
167 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
168 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
169 (remote_file_delete, remote_put_command, remote_get_command)
170 (remote_delete_command, remote_command): New functions.
171 (_initialize_remote): Register new packets and commands.
172 * Makefile.in (gdb_fileio_h): New variable.
173 (remote.o): Update.
174 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
175 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
176 (mi-cmd-target.o): New rule.
177 * mi/mi-cmd-target.c: New file.
178 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
179 and target-file-put.
180 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
181 (mi_cmd_target_file_delete): Declare.
182 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
183 Declare.
184 * NEWS: Describe new file transfer support.
185
186 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
187
188 * infrun.c (handle_inferior_event): Don't
189 ignore beakpoints if trap_expected is set.
190
191 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
192
193 Make insert_breakpoints return void.
194 * breakpoint.h (insert_breakpoints): Change
195 return type to void.
196 * breakpoint.c (insert_breakpoints): Change
197 return type to void. Rename local return_val
198 variable to error.
199 * infrun.c (keep_going): Instead of checking
200 return value from insert_breakpoints, catch exception.
201
202 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
203
204 Stop infrun from tracking breakpoint insertion status.
205
206 The checks of breakpoints_inserted before calling
207 remove_breakpoints are removed, as remove_breakpoint
208 won't touch uninserted breakpoints. In a number of places,
209 we're interested if a breakpoint is inserted at particular
210 PC, and we now use breakpoint_inserted_here_p. In a few
211 places, insert_breakpoints can be called unconditionally,
212 since it won't try to insert already inserted breakpoint.
213
214 * breakpoint.h (regular_breakpoint_inserted_here_p): New
215 declaration.
216 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
217 (breakpoint_inserted_here_p): Use
218 regular_breakpoint_inserted_here_p.
219 * infrun.c (breakpoints_inserted): Remove.
220 (resume): Don't check for breakpoints_inserted before
221 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
222 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
223 (handle_inferior_event): Don't use breakpoints_inserted.
224 Use breakpoints_meant_to_be_inserted and
225 breakpoints_inserted_here_p.
226 (insert_step_resume_breakpoint_at_sal, keep_going): Use
227 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
228 (normal_stop): Don't check for breakpoints_inserted. Don't
229 set breakpoints_inserted.
230 (keep_going): Don't check for breakpoints_inserted.
231 (insert_step_resume_breakpoint_at_sal): Don't insert
232 breakpoints
233
234 2007-11-28 Jim Blandy <jimb@codesourcery.com>
235
236 * breakpoint.c (watch_command_1): When the watchpoint isn't local
237 to any frame, initialize watchpoint_frame using null_frame_id, not
238 a memset.
239
240 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
241
242 * infrun.c (resume): Set right thread even if
243 stepping over breakpoint using software single step.
244
245 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
246
247 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
248 (mi_print_value_p): Guard against type = NULL.
249
250 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
251
252 * dfp.c (decimal_from_string): Remove superfluous newline from
253 error string.
254 (decimal_to_string): Likewise.
255 * printcmd.c (printf_command): Change string buffer to use
256 MAX_DECIMAL_STRING constant.
257 * value.c (value_from_decfloat): Likewise.
258
259 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
260
261 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
262 64-bit CORE_ADDR and BFD support, move them to ...
263 (ALL_64_TARGET_OBS): ... this new variable.
264 * configure.ac: Check for --enable-64-bit-bfd option. Only add
265 64-bit targets with --enable-targets=all if BFD supports 64-bit.
266 * configure: Regenerate.
267
268 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
269 all elf32-i386 executables, only cygwin core files.
270
271 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
272
273 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
274 code with its variables OBJFILE, CU_HEADER and OBFD into ...
275 (dwarf2_ranges_read): ... a new function.
276 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
277
278 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
279
280 * win32-nat.c (DR6_CLEAR_VALUE): New define.
281 (thread_info_struct): Rename suspend_count to suspended, to be
282 used as a flag.
283 (thread_rec): Only suspend the thread if it wasn't suspended by
284 gdb before. Warn if suspending failed.
285 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
286 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
287 `suspended' flag. Do ContinueDebugEvent after resuming the
288 suspended threads, not before. Set threads' contexts before
289 resuming them, not after.
290 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
291
292 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
293
294 * breakpoint.c (insert_breakpoints)
295 (insert_bp_location): Remove stale comments.
296
297 2007-11-23 Maciej W. Rozycki <macro@mips.com>
298
299 * mips-linux-tdep.h: Fix some formatting.
300
301 2007-11-21 Markus Deuling <deuling@de.ibm.com>
302
303 * stack.c (print_args_stub): Use get_frame_arch to get at the current
304 architecture and replace current_gdbarch.
305 (frame_info): Likewise.
306
307 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
308
309 * varobj.c (c_variable_editable, cplus_variable_editable)
310 (java_variable_editable, variable_editable): Delete.
311 (varobj_editable_p): Replace above functions with one language
312 independent function. Check for an lvalue.
313 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
314 (struct language_specific): Delete variable_editable field.
315
316 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
317
318 * varobj.h: Add extern for varobj_editable_p.
319
320 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
321
322 Remove unused breakpoint fields.
323 * breakpoint.h (struct breakpoint): Remove
324 from_tty and flag fields.
325 * breakpoint.c (break_command_1): Don't set
326 from_tty and flag field set of breakpoint.
327 (create_ada_exception_breakpoint): Don't set
328 the from_tty field.
329
330 2007-11-20 David Ung <davidu@mips.com>
331 Maciej W. Rozycki <macro@mips.com>
332
333 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
334 instruction.
335
336 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
337
338 * infrun.c (resume): Clarify logic that
339 decides if a single thread must be resumed. Add
340 comments.
341
342 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
343
344 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
345 Make static.
346
347 2007-11-19 Markus Deuling <deuling@de.ibm.com>
348
349 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
350 * gdbarch.{c,h}: Regenerate.
351
352 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
353 * score-tdep.c (score_register_sim_regno): Likewise.
354 * sim-regno.h (one2one_register_sim_regno): Likewise.
355
356 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
357 Replace current_gdbarch by gdbarch.
358 * sh-tdep.c (sh_sh2a_register_sim_regno)
359 (sh_dsp_register_sim_regno): Likewise.
360 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
361 * mips-tdep.c (mips_register_sim_regno): Likewise.
362 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
363 * frv-tdep.c (frv_register_sim_regno): Likewise.
364 * arm-tdep.c (arm_register_sim_regno): Likewise.
365 * remote-sim.c (one2one_register_sim_regno): Likewise.
366
367 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
368
369 * configure.ac (--enable-targets): New configure option.
370 Collect gdb_target_obs of multiple targets into TARGET_OBS.
371 Call configure.tgt multiple times, using $targ as operand.
372 * configure.tgt: Operate on $targ instead of $target.
373 * configure: Regenerate.
374 * Makefile.in (ALL_TARGET_OBS): Define.
375
376 * NEWS: Mention --enable-targets option.
377
378 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
379
380 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
381 current architecture is not MIPS.
382
383 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
384
385 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
386 to construct error message if no argument was supplied.
387
388 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
389
390 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
391 (i386nbsd_aout_regset_from_core_section): Likewise.
392 (i386nbsd_aout_init_abi): Likewise.
393 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
394
395 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
396 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
397
398 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
399
400 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
401 (amd64fbsd_sigtramp_end_addr): Likewise.
402
403 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
404 (iq2000_address_to_pointer): Likewise.
405 (iq2000_frame_prev_register): Likewise.
406 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
407 instead of regcache_cooked_read into CORE_ADDR variable.
408 (iq2000_return_value): Fix argument types.
409
410 * m32r-rom.c (m32r_load_section): Fix printf argument type.
411 (m32r_load): Likewise.
412
413 * m68kbsd-tdep.c: Include "gdbtypes.h".
414 * Makefile.in: Update dependencies.
415
416 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
417
418 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
419 lmo->l_addr_size element.
420
421 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
422 (m32r_insert_breakpoint): Likewise.
423 (m32r_remove_breakpoint): Likewise.
424 (m32r_insert_watchpoint): Likewise.
425 (m32r_remove_watchpoint): Likewise.
426 (m32r_load): Fix printf argument type.
427
428 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
429 argument type.
430 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
431 (xtensa_frame_prev_register): Likewise.
432 (xtensa_push_dummy_call): Likewise.
433
434 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
435
436 * config/alpha/alpha-linux.mt: Remove file.
437 * config/alpha/alpha.mt: Remove file.
438 * config/alpha/alpha-osf1.mt: Remove file.
439 * config/alpha/fbsd.mt: Remove file.
440 * config/alpha/nbsd.mt: Remove file.
441 * config/alpha/obsd.mt: Remove file.
442 * config/arm/embed.mt: Remove file.
443 * config/arm/linux.mt: Remove file.
444 * config/arm/nbsd.mt: Remove file.
445 * config/arm/obsd.mt: Remove file.
446 * config/arm/wince.mt: Remove file.
447 * config/avr/avr.mt: Remove file.
448 * config/cris/cris.mt: Remove file.
449 * config/frv/frv.mt: Remove file.
450 * config/h8300/h8300.mt: Remove file.
451 * config/i386/cygwin.mt: Remove file.
452 * config/i386/fbsd64.mt: Remove file.
453 * config/i386/fbsd.mt: Remove file.
454 * config/i386/i386gnu.mt: Remove file.
455 * config/i386/i386.mt: Remove file.
456 * config/i386/i386sol2.mt: Remove file.
457 * config/i386/linux64.mt: Remove file.
458 * config/i386/linux.mt: Remove file.
459 * config/i386/mingw.mt: Remove file.
460 * config/i386/nbsd64.mt: Remove file.
461 * config/i386/nbsd.mt: Remove file.
462 * config/i386/nto.mt: Remove file.
463 * config/i386/obsd64.mt: Remove file.
464 * config/i386/obsd.mt: Remove file.
465 * config/i386/sol2-64.mt: Remove file.
466 * config/ia64/ia64.mt: Remove file.
467 * config/ia64/linux.mt: Remove file.
468 * config/iq2000/iq2000.mt: Remove file.
469 * config/m32c/m32c.mt: Remove file.
470 * config/m32r/linux.mt: Remove file.
471 * config/m32r/m32r.mt: Remove file.
472 * config/m68hc11/m68hc11.mt: Remove file.
473 * config/m68k/linux.mt: Remove file.
474 * config/m68k/monitor.mt: Remove file.
475 * config/m68k/nbsd.mt: Remove file.
476 * config/m68k/obsd.mt: Remove file.
477 * config/m88k/obsd.mt: Remove file.
478 * config/mep/mep.mt: Remove file.
479 * config/mips/embed.mt: Remove file.
480 * config/mips/irix5.mt: Remove file.
481 * config/mips/irix6.mt: Remove file.
482 * config/mips/linux.mt: Remove file.
483 * config/mips/nbsd.mt: Remove file.
484 * config/mips/obsd64.mt: Remove file.
485 * config/mn10300/linux.mt: Remove file.
486 * config/mn10300/mn10300.mt: Remove file.
487 * config/mt/mt.mt: Remove file.
488 * config/pa/hppahpux.mt: Remove file.
489 * config/pa/hppa.mt: Remove file.
490 * config/pa/linux.mt: Remove file.
491 * config/pa/obsd.mt: Remove file.
492 * config/powerpc/aix.mt: Remove file.
493 * config/powerpc/linux.mt: Remove file.
494 * config/powerpc/nbsd.mt: Remove file.
495 * config/powerpc/obsd.mt: Remove file.
496 * config/powerpc/ppc-eabi.mt: Remove file.
497 * config/s390/s390.mt: Remove file.
498 * config/score/embed.mt: Remove file.
499 * config/sh/embed.mt: Remove file.
500 * config/sh/linux.mt: Remove file.
501 * config/sh/nbsd.mt: Remove file.
502 * config/sh/obsd.mt: Remove file.
503 * config/sh/sh64.mt: Remove file.
504 * config/sparc/embed.mt: Remove file.
505 * config/sparc/fbsd.mt: Remove file.
506 * config/sparc/linux64.mt: Remove file.
507 * config/sparc/linux.mt: Remove file.
508 * config/sparc/nbsd64.mt: Remove file.
509 * config/sparc/nbsd.mt: Remove file.
510 * config/sparc/obsd64.mt: Remove file.
511 * config/sparc/obsd.mt: Remove file.
512 * config/sparc/sol2-64.mt: Remove file.
513 * config/sparc/sol2.mt: Remove file.
514 * config/sparc/sparc64.mt: Remove file.
515 * config/sparc/sparc.mt: Remove file.
516 * config/spu/spu.mt: Remove file.
517 * config/v850/v850.mt: Remove file.
518 * config/vax/nbsd.mt: Remove file.
519 * config/vax/obsd.mt: Remove file.
520 * config/vax/vax.mt: Remove file.
521 * config/xstormy16/xstormy16.mt: Remove file.
522 * config/xtensa/xtensa.mt: Remove file.
523
524 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
525 (gdb_target): Likewise.
526 (gdb_target_obs): Document. Set for every target to contents
527 of TDEPFILES in former .mt makefile fragment.
528
529 * configure.ac (TARGET_OBS): Define.
530 (target_makefile_frag, gdb_target_cpu): Do not define.
531 * configure: Regenerate.
532
533 * Makefile.in (MT_FLAGS): Remove.
534 (GLOBAL_CFLAGS): Update.
535 (TARGET_OBS): Substitute from configure.
536 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
537 (@target_makefile_frag@): Remove.
538
539 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
540
541 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
542 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
543 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
544 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
545 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
546 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
547 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
548 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
549 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
550 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
551 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
552 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
553 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
554 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
555 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
556 * config/powerpc/ppc-sim.mt: Remove file.
557 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
558 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
559 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
560 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
561 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
562 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
563 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
564
565 * configure.tgt (gdb_sim): Document variable.
566 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
567 (avr-*-*): Likewise.
568 (frv-*-*): Likewise.
569 (h8300-*-*): Likewise.
570 (iq2000-*-*): Likewise.
571 (m32c-*-*): Likewise.
572 (m32r*-*-linux*): Likewise.
573 (m32r*-*-*): Likewise.
574 (m68hc11*-*-*|m6811*-*-*): Likewise.
575 (mips*-*-*): Likewise.
576 (mips*-*-linux*): Likewise.
577 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
578 (mn10300-*-*): Likewise.
579 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
580 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
581 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
582 (sh*): Set gdb_sim.
583 (sh-*-linux*): Likewise.
584 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
585 (sh64-*-elf*): Likewise.
586 (sparc-*-rtems*): Likewise.
587 (v850*-*-elf): Likewise.
588 (xstormy16-*-*): Likewise.
589
590 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
591 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
592 * configure: Regenerate.
593 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
594 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
595
596 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
597
598 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
599 (arm*-*-*): Do not set obsolete build_rdi_share variable.
600
601 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
602 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
603 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
604 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
605 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
606
607 (xscale-*-*): Merge into arm*-*-* case.
608 (fido-*-elf*): Merge into m68*-*-elf* case.
609 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
610 m68*-*-uclinux*): Merge cases.
611 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
612 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
613
614 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
615
616 * configure.tgt: Reformat main case statement.
617
618 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
619
620 * configure.ac (hostfile, targetfile): Remove.
621 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
622 (xm_h, tm_h): Likewise.
623 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
624 * configure, config.in: Regenerate.
625
626 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
627 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
628 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
629 * defs.h: Do not include "xm.h" or "tm.h".
630
631 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
632 * gdbarch.c: Regenerate.
633
634 * config/score/embed.mt: Remove obsolete comment.
635
636 2007-11-16 Markus Deuling <deuling@de.ibm.com>
637
638 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
639 as parameter.
640 * gdbarch.{c,h}: Regenerate.
641
642 * alpha-tdep.c (alpha_cannot_fetch_register)
643 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
644 current_gdbarch by gdbarch.
645 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
646 (crisv32_cannot_fetch_register)
647 (crisv32_cannot_store_register): Likewise.
648 * arch-utils.c (cannot_register_not): Likewise.
649 * arch-utils.h (cannot_register_not): Likewise.
650 * hppa-tdep.c (hppa32_cannot_store_register)
651 (hppa32_cannot_store_register, hppa64_cannot_store_register)
652 (hppa64_cannot_fetch_register): Likewise.
653 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
654 (mipsnbsd_cannot_store_register): Likewise.
655
656 2007-11-16 Markus Deuling <deuling@de.ibm.com>
657
658 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
659 the current architecture by regcache.
660 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
661 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
662 (fetch_register, supply_vrregset, fetch_ppc_registers)
663 (store_altivec_register, store_spe_register, store_register)
664 (fill_vrregset, store_ppc_registers): Likewise.
665 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
666 * win32-nat.c (do_win32_fetch_inferior_registers)
667 (do_win32_store_inferior_registers): Likewise.
668 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
669 * remote-m32r-sdi.c (m32r_fetch_registers)
670 (m32r_store_registers): Likewise.
671 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
672
673 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
674 gdbarch.
675 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
676 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
677 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
678 (ppc64_sysv_abi_return_value): Likewise.
679 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
680 * m2-lang.c (build_m2_types): Likewise.
681 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
682 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
683 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
684 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
685
686 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
687 get at the current architecture by frame_info.
688 * gcore.c (derive_stack_segment): Likewise.
689
690 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
691 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
692 gdbarch to GETREGS_SUPPLIES call.
693
694 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
695
696 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
697 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
698 ELF-private symbol data when processing synthetic symbols. Use
699 udata.p to get at size of ppc64 synthetic 'dot' symbols.
700 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
701
702 2007-11-15 Doug Evans <dje@google.com>
703
704 * buildsym.h (subfiles): Move ...
705 * buildsym.c (subfiles): ... to here and make static.
706
707 * symmisc.c (maintenance_info_symtabs): Print linetable info.
708
709 2007-11-15 Markus Deuling <deuling@de.ibm.com>
710
711 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
712
713 2007-11-15 Markus Deuling <deuling@de.ibm.com>
714
715 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
716 expression and use get_frame_arch to replace current_gdbarch by frame's
717 architecture.
718 * arm-tdep.h (LOWEST_PC): Remove
719
720 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
721
722 Apply const qualifier to some users of bp_location.
723 * breakpoint.h (struct bpstats): Make
724 the breakpoint_at field point at const bp_location.
725 * breakpoint.c (bpstat_alloc): Accept const
726 bp_location.
727 (breakpoint_here_p, breakpoint_inserted_here_p)
728 (software_breakpoint_inserted_here_p)
729 (breakpoint_thread_match, bpstat_stop_status)
730 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
731 const bp_location for iteration.
732 (print_it_typical, print_bp_stop_message): Use
733 const bp_location variable.
734
735 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
736
737 Make mark_breakpoints_out static.
738 * breakpoint.h (mark_breakpoints_out): Remove
739 declaration.
740 * breakpoint.c (mark_breakpoints_out): Make static.
741
742 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
743
744 Prevent clear_command from directly modifying breakpoint list.
745 * Makefile.in (breakpoint_h): Update dependency.
746 * breakpoint.c (clear_command): Do not remove
747 breakpoints from breakpoint_chain. Collect breakpoints
748 to delete in a vector.
749 * breakpoint.h (breakpoint_p): New typedef for pointer to
750 breakpoint. Register vector of breakpoint_p.
751
752 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
753
754 Remove 'run_cleanup'.
755 * defs.h (do_run_cleanups, make_run_cleanup): Remove
756 declarations.
757 * infcmd.c (run_command_1): Call clear_solib instead
758 of do_run_cleanups.
759 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
760 any use.
761 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
762 (update_solib_lib): Don't setup run cleanup.
763 (no_shared_libraries): Call clear_solib, not do_clear_solib.
764 * utils.c (run_cleanup_chain, make_run_cleanup)
765 (do_run_cleanups): Remove.
766
767 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
768
769 Remove CLEAR_SOLIB use.
770 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
771 * infcmd.c (attach_command): Likewise.
772
773 2007-11-14 Doug Evans <dje@google.com>
774
775 * buildsym.c (start_subfile,start_symtab): Doc fixes.
776
777 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
778
779 * tui/tui-data.c (tui_prev_win): Guard against NULL.
780
781 2007-11-12 Markus Deuling <deuling@de.ibm.com>
782
783 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
784 obsolete comment.
785 (verify_gdbarch, gdbarch_dump): Likewise.
786 (do_read): Update comment.
787 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
788 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
789 * gdbarch.{c,h}: Regenerate.
790
791 2007-11-12 Markus Deuling <deuling@de.ibm.com>
792
793 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
794 (ARGS_FIRST_REG): Remove.
795 (areg_numer): New function.
796 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
797 (xtensa_extract_return_value, xtensa_store_return_value)
798 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
799 (AREG_NUMBER): Remove.
800 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
801 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
802 (xtensa_push_dummy_call): Update use of ARG_NOF.
803 (extract_call_winsize): Add gdbarch as parameter. Replace
804 current_gdbarch by gdbarch.
805 (xtensa_extract_return_value, xtensa_store_return_value): Update call
806 of extract_call_winsize.
807
808 2007-11-10 Joel Brobecker <brobecker@adacore.com>
809
810 * NEWS: Add entry for new set/show print frame-args command.
811
812 2007-11-09 Kevin Buettner <kevinb@redhat.com>
813
814 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
815 register number to map. Adjust warning check and error/warning
816 return value code to match expectations of this function's callers.
817
818 2007-11-09 Joel Brobecker <brobecker@adacore.com>
819
820 * stack.c (print_this_frame_argument_p): Handle arguments passed
821 by reference properly.
822
823 2007-11-09 Joel Brobecker <brobecker@adacore.com>
824
825 * stack.c (print_frame_arguments_choices): New static global.
826 (print_frame_arguments): Likewise.
827 (print_this_frame_argument_p): New function.
828 (print_frame_args): Print the argument value only when appropriate.
829 (_initialize_task): Add new "set/show print frame-arguments" command.
830
831 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
832
833 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
834 saved_dabr_value assignment to the correct position.
835
836 2007-11-09 Markus Deuling <deuling@de.ibm.com>
837
838 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
839 * arch-utils.h (generic_convert_register_p): Likewise.
840
841 2007-11-09 Markus Deuling <deuling@de.ibm.com>
842
843 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
844 * ia64-tdep.c (ia64_convert_register_p): Likewise.
845 * i387-tdep.c (i387_convert_register_p): Likewise.
846 * i387-tdep.h (i387_convert_register_p): Likewise.
847 * alpha-tdep.c (alpha_convert_register_p): Likewise.
848 * gdbarch.{c,h}: Regenerate.
849
850 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
851 Replace current_gdbarch by gdbarch.
852 * mips-tdep.c (mips_convert_register_p): Likewise.
853 * m68k-tdep.c (m68k_convert_register_p): Likewise.
854 * i386-tdep.c (i386_convert_register_p): Likewise.
855
856 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
857
858 * gdb_string.h: Include <strings.h>.
859
860 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
861
862 * breakpoint.c (break_command_1): Remove
863 pending_bp parameter.
864 (create_breakpoint): Likewise.
865 (create_breakpoints): Likewise. Adjust call to
866 create_breakpoint.
867 (break_command_1): Likewise. Adjust call to
868 create_breakpoints.
869 (do_captured_breakpoint): Adjust call to
870 create_breakpoints.
871 (break_command, tbreak_command, hbreak_command)
872 (stopin_command, stopat_command): Adjust call
873 to break_command_1.
874
875 2007-11-07 Joseph Myers <joseph@codesourcery.com>
876 Daniel Jacobowitz <dan@codesourcery.com>
877
878 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
879 struct values smaller than one doubleword; left-align those
880 larger. Pass structs containing a single floating-point value in
881 registers.
882
883 2007-11-07 Joseph Myers <joseph@codesourcery.com>
884 Daniel Jacobowitz <dan@codesourcery.com>
885
886 * gdbtypes.c (floatformats_ibm_long_double): New.
887 * gdbtypes.h (floatformats_ibm_long_double): Declare.
888 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
889 split_half field.
890 * mips-tdep.c (n32n64_floatformat_always_valid,
891 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
892 Remove.
893 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
894 floatformats_n32n64_long.
895 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
896 double.
897 * doublest.c (convert_floatformat_to_doublest,
898 convert_doublest_to_floatformat): Handle split floating-point
899 formats.
900 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
901 double arguments.
902 (ppc64_sysv_abi_push_dummy_call): Likewise.
903 (do_ppc_sysv_return_value): Handle IBM long double return.
904
905 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
906
907 Fix crash when a variable object being deleted
908 has any of its children deleted previously.
909
910 * varobj.c (delete_variable_1): Don't recurse
911 into deleted children.
912
913 2007-11-07 Markus Deuling <deuling@de.ibm.com>
914
915 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
916 * gdbarch.{c,h}: Regenerate.
917 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
918 Replace current_gdbarch by gdbarch.
919 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
920 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
921 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
922
923 2007-11-07 Markus Deuling <deuling@de.ibm.com>
924
925 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
926 get_regcache_arch to get at the current architecture by regcache.
927 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
928 to get at the current architecture by frame_info.
929 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
930 at the current architecture by regcache.
931 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
932 the current architecture by frame_info.
933 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
934 * aix-thread.c (special_register_p): Add gdbarch as parameter.
935 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
936 caller of special_register_p.
937
938 2007-11-07 Markus Deuling <deuling@de.ibm.com>
939
940 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
941 current architecture by frame_info.
942
943 2007-11-07 Markus Deuling <deuling@de.ibm.com>
944
945 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
946
947 2007-11-07 Markus Deuling <deuling@de.ibm.com>
948
949 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
950 get at the current architecture by regcache.
951 (SUBOFF): Add gdbarch to macro definition.
952
953 2007-11-07 Markus Deuling <deuling@de.ibm.com>
954
955 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
956 * gdbarch.{c,h}: Regenerate.
957
958 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
959 Replace current_gdbarch by gdbarch.
960 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
961 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
962 * score-tdep.c (score_breakpoint_from_pc): Likewise.
963 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
964 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
965 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
966 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
967
968 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
969 parameter.
970 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
971 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
972 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
973 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
974 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
975 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
976 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
977 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
978 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
979 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
980 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
981 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
982 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
983 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
984 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
985 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
986 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
987 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
988 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
989 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
990
991 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
992 Replace current_gdbarch by gdbarch.
993 (rs6000_software_single_step): Use get_frame_arch to get at the
994 current architecture by frame_info. Add gdbarch to
995 rs6000_breakpoint_from_pc call.
996
997 2007-11-07 Markus Deuling <deuling@de.ibm.com>
998
999 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1000 macro CURRENT_VARIANT by its expression.
1001 (CURRENT_VARIANT): Remove.
1002 (frv_check_watch_resources): Add gdbarch parameter.
1003
1004 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1005
1006 * MAINTAINERS (Write After Approval): Add self.
1007
1008 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1009
1010 * features/rs6000/power-core.xml: Use uint32 as register type.
1011 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1012 * features/rs6000/powerpc-32.c: Regenerate.
1013 * features/rs6000/powerpc-403.c: Regenerate.
1014 * features/rs6000/powerpc-403gc.c: Regenerate.
1015 * features/rs6000/powerpc-505.c: Regenerate.
1016 * features/rs6000/powerpc-602.c: Regenerate.
1017 * features/rs6000/powerpc-603.c: Regenerate.
1018 * features/rs6000/powerpc-604.c: Regenerate.
1019 * features/rs6000/powerpc-64.c: Regenerate.
1020 * features/rs6000/powerpc-7400.c: Regenerate.
1021 * features/rs6000/powerpc-750.c: Regenerate.
1022 * features/rs6000/powerpc-860.c: Regenerate.
1023 * features/rs6000/powerpc-e500.c: Regenerate.
1024
1025 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1026
1027 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1028
1029 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1030
1031 * breakpoint.h (create_solib_load_event_breakpoint)
1032 (create_solib_unload_event_breakpoint)
1033 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1034 (create_exec_event_catchpoint): Delete declaration.
1035 * breakpoint.c (create_solib_load_event_breakpoint)
1036 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1037 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1038 (create_exec_event_catchpoint): Make static.
1039
1040 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1041
1042 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1043 * breakpoint.c (set_breakpoint_sal): Delete.
1044
1045 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1046
1047 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1048 (make_blockvector): Likewise. Remove FIXME comment.
1049
1050 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1051
1052 * printcmd.c: (printf_command): Add support for new DFP
1053 modifiers %H, %D and %DD.
1054 * configure.ac: Add check for DECFLOAT printf support.
1055 * configure: Regenerated.
1056
1057 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1058
1059 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1060 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1061 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1062 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1063 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1064 (has_vtable, primary_base_class, virtual_base_list_length,
1065 virtual_base_list_length_skip_primaries, virtual_base_index,
1066 virtual_base_index_skip_primaries, class_index_in_primary_list,
1067 count_virtual_fns): Remove prototypes.
1068 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1069 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1070 virtual_base_list_length_skip_primaries, virtual_base_index,
1071 virtual_base_index_skip_primaries, class_index_in_primary_list,
1072 count_virtual_fns): Remove.
1073
1074 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1075 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1076 (cp_print_value_fields): Remove support for HP aCC vtables.
1077 (cp_print_value): Likewise.
1078 * c-typeprint.c (c_type_print_base): Likewise.
1079
1080 * value.h (find_rt_vbase_offset): Remove prototype.
1081 * valops.c (find_rt_vbase_offset): Remove.
1082 (search_struct_method): Remove support for HP aCC vtables.
1083 (find_method_list): Likewise.
1084
1085 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1086
1087 * language.h (struct language_defn): Remove la_builtin_type_vector
1088 and string_char_type members.
1089 * language.c (language_string_char_type): No longer consult
1090 la->string_char_type.
1091 (language_lookup_primitive_type_by_name): No longer consult
1092 current_language->la_builtin_type_vector.
1093
1094 * language.c (unknown_language_defn, auto_language_defn,
1095 local_language_defn): Adapt initializer.
1096 * ada-lang.c (ada_language_defn): Likewise.
1097 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1098 minimal_language_defn): Likewise.
1099 * f-lang.c (f_language_defn): Likewise.
1100 * jv-lang.c (java_language_defn): Likewise.
1101 * m2-lang.c (m2_language_defn): Likewise.
1102 * objc-lang.c (objc_language_defn): Likewise.
1103 * p-lang.c (pascal_language_defn): Likewise.
1104 * scm-lang.c (scm_language_defn): Likewise.
1105
1106 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1107
1108 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1109 current_gdbarch by gdbarch.
1110 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1111 current architecture by frame_info.
1112 * frame.h (frame_id_inner): Add gdbarch parameter.
1113 * stack.c (return_command): Use get_frame_arch to get at the current
1114 architecture by frame_info. Update call of frame_id_inner.
1115 * infrun.c (handle_inferior_event): Likewise.
1116 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1117 current architecture by regcache. Update call of frame_id_inner.
1118
1119 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1120
1121 * gdbarch.sh (register_name): Add gdbarch parameter.
1122 * gdbarch.{c,h}: Regenerate.
1123
1124 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1125 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1126 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1127
1128 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1129 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1130 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1131 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1132 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1133 (mt_registers_info): Replace current_gdbarch by gdbarch.
1134 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1135 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1136 current_gdbarch by gdbarch.
1137 (mips_register_name): Add gdbarch to tdesc_register_name call.
1138 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1139 current_gdbarch by gdbarch.
1140 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1141 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1142 current_gdbarch by gdbarch.
1143 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1144 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1145 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1146 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1147 architecture by frame_info.
1148 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1149 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1150 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1151 parameter.
1152 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1153 (h8300sx_register_name): Add gdbarch parameter.
1154 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1155 gdbarch parameter. Replace current_gdbarch by gdbarch.
1156 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1157 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1158 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1159 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1160 caller.
1161 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1162 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1163 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1164 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1165 of alpha_register_name.
1166 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1167 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1168 current_gdbarch by gdbarch.
1169 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1170 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1171 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1172
1173 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1174 (m68hc11_register_reggroup_p): Add gdbarch to call of
1175 m68hc11_register_name.
1176 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1177 (am33_2_register_name): Add gdbarch parameter.
1178 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1179 architecture by frame_info.
1180 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1181 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1182 current_gdbarch by gdbarch.
1183 * score-tdep.c (score_register_name): Add gdbarch parameter.
1184 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1185 by gdbarch.
1186 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1187 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1188 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1189 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1190 and update caller. Replace current_gdbarch by gdbarch.
1191 (sh64_extract_return_value, sh64_store_return_value): Use
1192 get_regcache_arch to get at the current architecture by regcache.
1193 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1194 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1195 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1196 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1197 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1198 parameter.
1199 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1200 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1201 current_gdbarch by gdbarch.
1202 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1203 get_regcache_arch to get at the current architecture by regcache.
1204 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1205 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1206 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1207 parameter.
1208 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1209 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1210 current_gdbarch by gdbarch.
1211 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1212 (xtensa_frame_prev_register): Add gdbarch parameter to
1213 xtensa_register_name call.
1214
1215 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1216
1217 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1218 find_solib_trampoline_target if PC is not in .plt section.
1219
1220 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1221
1222 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1223 minimal symbol from an undefined dynamic symbol, use proper section.
1224
1225 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1226
1227 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1228 to get at the current architecture by regcache.
1229
1230 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1231
1232 * libunwind-frame.c (libunwind_frame_sniffer)
1233 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1234 (libunwind_frame_cache): Use get_frame_arch to get at the current
1235 architecture by frame_info.
1236 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1237
1238 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1239
1240 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1241 at the current architecture by frame_info.
1242
1243 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1244
1245 * inf-child.c (inf_child_fetch_inferior_registers): Use
1246 get_regcache_arch to get at the current architecture by regcache.
1247
1248 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1249
1250 * inf-ptrace.c (inf_ptrace_fetch_registers)
1251 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1252 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1253 current architecture by regcache.
1254
1255 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1256
1257 * hpux-thread.c (hpux_thread_fetch_registers)
1258 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1259 current architecture by regcache.
1260
1261 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1262
1263 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1264 current architecture by frame_info.
1265
1266 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1267
1268 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1269 (go32_store_registers): Use get_regcache_arch to get at the current
1270 architecture by regcache.
1271
1272 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1273
1274 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1275
1276 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1277
1278 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1279 to get at the current architecture by frame_info.
1280
1281 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1282
1283 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1284
1285 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1286
1287 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1288 the current architecture by regcache.
1289
1290 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1291
1292 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1293 current architecture by regcache.
1294
1295 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1296
1297 * bsd-uthread.c (bsd_uthread_fetch_registers)
1298 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1299 current architecture by regcache.
1300
1301 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1302
1303 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1304 get_frame_arch to get at the current architecture by frame_info.
1305
1306 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1307
1308 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1309
1310 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1311
1312 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1313 (store_regs): Use get_regcache_arch to get at the current architecture
1314 by regcache.
1315
1316 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1317
1318 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1319 to get at the current architecture by regcache.
1320
1321 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1322
1323 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1324 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1325 the current architecture by regcache.
1326
1327 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1328
1329 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1330 gdbarch.
1331
1332 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1333
1334 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1335 soft float and vector ABIs. Support the generic vector ABI for
1336 AltiVec types.
1337 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1338 casts.
1339 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1340 supported.
1341 * ppc-tdep.h (enum powerpc_vector_abi): New.
1342 (struct gdbarch_tdep): Add soft_float and vector_abi.
1343 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1344 (powerpc_soft_float_global, powerpc_vector_strings)
1345 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1346 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1347 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1348 (powerpc_set_vector_abi): New.
1349 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1350 commands.
1351 * Makefile.in (elf_ppc_h): New.
1352 (rs6000-tdep.o): Update.
1353
1354 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1355
1356 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1357 swapped offsets and VRSAVE offset.
1358 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1359 (ppc32_linux_vrregset): Added.
1360 (ppc_linux_regset_from_core_section): Added support for
1361 .reg-ppc-vmx section.
1362 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1363 (ppc_supply_vrregset): Declare.
1364 (ppc_collect_vrregset): Declare.
1365 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1366 (ppc_supply_vrregset): Added.
1367 (ppc_collect_vrregset): Added.
1368 * corelow.c (get_core_registers): Added support for
1369 .reg-ppc-vmx section.
1370
1371 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1372
1373 GDB 6.7.1 released.
1374
1375 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1376
1377 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1378 deleted function.
1379
1380 * tracepoint.c (tracepoint_operation): Report the deletion event
1381 after we have unlinked the tracepoint from the list, and use the
1382 proper tracepoint number.
1383
1384 * ax-gdb.c (expr_to_agent): Delete unused function.
1385 (expr_to_address_and_size): Delete #if 0'd function.
1386 * ax-gdb.h (expr_to_agent): Delete declaration.
1387
1388 * ax-gdb.c (gen_cast): Remove redundant assignment to
1389 value->type. Doc fix.
1390
1391 * ax-general.c (gen_traced_pop, gen_int_literal)
1392 (gen_usual_arithmetic): Check for typedefs.
1393
1394 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1395
1396 * parse.c (prefixify_expression): Minor reformatting.
1397
1398 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1399
1400 * version.in: Use dot instead of dash.
1401
1402 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1403
1404 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1405
1406 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1407
1408 * memory-map.c (parse_memory_map): Don't use an empty struct
1409 initializer.
1410
1411 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1412
1413 * signals/signals.c (signals): Update pointer to enum
1414 target_signal declaration.
1415
1416 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1417 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1418 Jim Blandy <jimb@codesourcery.com>
1419
1420 * dwarf2read.c (read_partial_die): check the value
1421 of DW_AT_calling_convention in Fortran programs.
1422
1423 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1424 Thiago Jung Bauermann <bauerman@br.ibm.com>
1425
1426 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1427 floating point in YYSTYPE union.
1428 (DECFLOAT) Add token and expression element handling code.
1429 (parse_number): Parse DFP constants, which end with suffix 'df',
1430 'dd' or 'dl'. Return DECFLOAT.
1431 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1432 handle OP_DECFLOAT.
1433 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1434 for DFP constants.
1435 (union exp_element): Add decfloatconst to represent DFP
1436 elements, which is 16 bytes by default.
1437 * parse.c (write_exp_elt_decfloatcst): New function to write a
1438 decimal float const into the expression.
1439 (operator_length_standard): Set operator length for OP_DECFLOAT
1440 to 4.
1441 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1442 * valarith.c (value_neg): Add code to handle the negation
1443 operation of DFP values.
1444 * value.c (value_from_decfloat): New function to get the value
1445 from a decimal floating point.
1446 * value.h (value_from_decfloat): Prototype.
1447
1448 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1449 Thiago Jung Bauermann <bauerman@br.ibm.com>
1450
1451 * c-lang.c (c_create_fundamental_type): Create fundamental
1452 types for DFP.
1453 * c-typeprint.c (c_type_print_varspec_prefix): Add
1454 TYPE_CODE_DECFLOAT to no prefix needed case.
1455 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1456 suffix needed case.
1457 * c-valprint.c (c_val_print): Call print_decimal_floating to
1458 print DFP values.
1459 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1460 attribute code and return TYPE_CODE_DECFLOAT.
1461 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1462 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1463 builtin_decdouble and builtin_declong.
1464 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1465 type code for DFP.
1466 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1467 types, for decimal floating point.
1468 (FT_NUM_MEMBERS): Increment, new types added.
1469 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1470 and builtin_declong.
1471 * valprint.c (print_decimal_floating): New function to print DFP
1472 values.
1473 * value.h (print_decimal_floating): Prototype.
1474
1475 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1476 Thiago Jung Bauermann <bauerman@br.ibm.com>
1477
1478 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1479 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1480 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1481 (INSTALLED_LIBS): Add -ldecnumber in.
1482 (CLIBS): Add LIBDECNUMBER in.
1483 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1484 headers.
1485 (dfp_h): New macros for decimal floating point.
1486 (dfp.o): New target.
1487 (COMMON_OBS): Add dfp.o in.
1488 (c-exp.o): Add dfp_h as dependency.
1489 (valprint.o): Add dfp_h as dependency.
1490 (value.o): Add dfp_h as dependency.
1491 * dfp.h: New header file for decimal floating point support in
1492 GDB.
1493 * dfp.c: New source file for decimal floating point support in
1494 GDB. Implement decimal_from_string and decimal_to_string based
1495 on libdecnumber API.
1496 * configure.ac: Add AC_C_BIGENDIAN test.
1497 * config.in, configure: Regenerate.
1498
1499 2007-10-25 David Ung <davidu@mips.com>
1500 Maciej W. Rozycki <macro@mips.com>
1501
1502 PR exp/1926
1503 * infcmd.c (registers_info): Check for a user register before
1504 calling target's gdbarch_print_registers_info(). If found to be
1505 so, extract the implicit value of user register and call
1506 print_scalar_formatted().
1507 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1508
1509 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1510
1511 * NEWS: Document status of hppa64-hpux support.
1512
1513 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1514
1515 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1516 set_solib_ops to install SVR4 operations.
1517 (_initialize_svr4_solib): Do not set current_target_so_ops.
1518
1519 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1520 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1521
1522 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1523
1524 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1525 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1526 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1527 * solib-legacy.c: Remove file.
1528
1529 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1530 * config/arm/linux.mt (TDEPFILES): Likewise.
1531 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1532 * config/ia64/linux.mt (TDEPFILES): Likewise.
1533 * config/m32r/linux.mt (TDEPFILES): Likewise.
1534 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1535 * config/s390/s390.mt (TDEPFILES): Likewise.
1536
1537 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1538 set_solib_svr4_fetch_link_map_offsets.
1539 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1540 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1541
1542 * i386gnu-tdep.c: Include "solib-svr4.h".
1543 * Makefile.in: Update dependencies.
1544
1545 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1546
1547 * i386-nto-tdep.c: Include "solib.h".
1548 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1549 current_target_so_ops members.
1550 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1551 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1552 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1553 * Makefile.in: Update dependencies.
1554
1555 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1556
1557 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1558 (arm_wince_init_abi): Call set_solib_ops.
1559 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1560 (i386_cygwin_init_abi): Call set_solib_ops.
1561 * solib-target.c: Include "solib-target.h".
1562 (solib_target_so_ops): Make global.
1563 (_initialize_solib_target): Do not set current_target_so_ops.
1564 * solib-target.h: New file.
1565 * Makefile.in: Update dependencies.
1566
1567 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1568
1569 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1570 (mips_irix_init_abi): Call set_solib_ops.
1571 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1572 (irix_so_ops): Make global.
1573 (_initialize_irix_solib): Do not set current_target_so_ops.
1574 * solib-irix.h: New file.
1575 * Makefile.in: Update dependencies.
1576
1577 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1578
1579 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1580 * config/pa/hppa64.mt: Delete file.
1581 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1582 (TDEPFILES): Move somread.o to ...
1583 * config/pa/hpux.mh (NATDEPFILES): ... here.
1584
1585 * configure.ac: Add check for elf_hp.h header.
1586 Search libdl and libxpdl for dlgetmodinfo.
1587 * config.in, configure: Regenerate.
1588 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1589 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1590 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1591 set_solib_ops instead of modifying current_target_so_ops.
1592 * solib-pa64.h (pa64_solib_select): Update prototype.
1593 * solib-som.c: Remove include of "som.h". Include "solib.h".
1594 (som_solib_select): Take gdbarch instead of tdep argument. Call
1595 set_solib_ops instead of modifying current_target_so_ops.
1596 * solib-som.h (som_solib_select): Update prototype.
1597 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1598 of tdep to som_solib_select call.
1599 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1600 pa64_solib_select call.
1601 * Makefile.in: Update dependencies.
1602
1603 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1604
1605 * frv-tdep.c: Include "solib.h".
1606 (frv_gdbarch_init): Call set_solib_ops.
1607 * frv-tdep.h (struct target_so_ops): Add forward reference.
1608 (frv_so_ops): Add extern declaration.
1609 * solib-frv.c (frv_so_ops): Make global.
1610 (_initialize_frv_solib): Do not set current_target_so_ops.
1611 * Makefile.in: Update dependencies.
1612
1613 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1614
1615 * solib.c (solib_global_lookup): Use solib_ops instead of global
1616 current_target_so_ops.
1617
1618 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1619
1620 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1621 * config/frv-tm-frv.h: Delete file.
1622
1623 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1624
1625 * NEWS: Mention gdbserver support for non-libthread_db operation.
1626
1627 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1628
1629 * amd64-tdep.c (amd64_convert_register_p): Delete.
1630 (amd64_init_abi): Use i387_convert_register_p.
1631 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1632 eight byte types.
1633 (alpha_register_to_value, alpha_value_to_register): Do not handle
1634 eight byte types.
1635 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1636 * i387-tdep.c (i387_convert_register_p): New.
1637 (i387_register_to_value, i387_value_to_register): Update comments.
1638 * i387-tdep.h (i387_convert_register_p): Declare.
1639 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1640 builtin_type_ia64_ext.
1641 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1642 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1643 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1644 builtin_type_m68881_ext.
1645 (m68k_register_to_value, m68k_value_to_register): Update comments.
1646
1647 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1648
1649 * target-memory.c (claim_memory): Propagate baton for split memory
1650 requests.
1651
1652 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1653
1654 PR gdb/2341
1655 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1656 alias warning bug.
1657
1658 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1659
1660 * symtab.c (find_line_symtab): scan through psymtabs
1661 when exact_match is zero.
1662
1663 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1664
1665 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1666 (deal_with_atomic_sequence): New.
1667 (mips_software_single_step): Use it.
1668
1669 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1670
1671 PR gdb/2336
1672 * configure.ac: Modify $LIBINTL before the BFD check.
1673 * configure: Regenerated.
1674
1675 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1676
1677 * buildsym.c (free_pending_blocks): Remove commented-out code.
1678 (make_blockvector): Likewise. Re-use free_pending_blocks.
1679 (end_symtab): Remove commented-out code.
1680
1681 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1682
1683 * top.c (command_loop): Fix output for shrinkage.
1684
1685 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1686
1687 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1688 (exp): Remove and document function-like casts.
1689
1690 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1691
1692 * cp-support.c: Include "safe-ctype.h".
1693 (cp_already_canonical): New function.
1694 (cp_canonicalize_string): Use it. Return NULL for already canonical
1695 strings.
1696 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1697 (cp_func_name, remove_params): Likewise.
1698 (cp_find_first_component_aux): Use ISSPACE.
1699 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1700 MEMORY_P argument.
1701 * cp-name-parser.y (ALLOC_CHUNK): Define.
1702 (struct demangle_info): Add PREV and NEXT. Increase the size of
1703 COMPS.
1704 (d_grab): Convert to a function.
1705 (allocate_info): Rewrite.
1706 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1707 strlen. Update call to allocate_info. Do not free it on failure.
1708 (main): Update calls to cp_demangled_name_to_comp.
1709 * Makefile.in (cp-support.o): Update.
1710
1711 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1712
1713 * std-regs.c (value_of_builtin_frame_fp_reg)
1714 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1715 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1716 current architecture by frame_info.
1717
1718 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1719
1720 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1721 by gdbarch.
1722
1723 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1724
1725 * infcmd.c (default_print_registers_info, print_return_value)
1726 (print_vector_info, print_float_info): Replace current_gdbarch by
1727 gdbarch.
1728 (registers_info): Use get_frame_arch to get at the current
1729 architecture by frame_info.
1730
1731 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1732
1733 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1734 get_regcache_arch to get at the current architecture by regcache.
1735
1736 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1737
1738 * target.c (debug_print_register): Use get_regcache_arch to get at the
1739 current architecture by regcache.
1740
1741 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1742
1743 * dwarf2read.c (read_file_scope): Add a comment.
1744 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1745 (read_enumeration_type, process_enumeration_scope, read_array_type)
1746 (read_typedef, read_base_type, read_subrange_type)
1747 (read_unspecified_type): Use dwarf2_name.
1748
1749 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1750
1751 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1752 * dwarf2read.c (dwarf2_free_objfile): New.
1753 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1754 * symfile.h (dwarf2_free_objfile): Declare.
1755
1756 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1757
1758 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1759
1760 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1761
1762 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1763 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1764 default dwarf2_frame_set_init_reg function.
1765
1766 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1767
1768 * NEWS: Mention native MinGW configuration.
1769
1770 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1771
1772 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1773 of "macro" column throughout the file. Remove (empty) "macro" entry
1774 of all gdbarch functions.
1775
1776 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1777
1778 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1779 * gdbarch.c, gdbarch.h: Regenerate.
1780 * dbxread.c (find_stab_function_addr): Define unconditionally.
1781 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1782 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1783 (end_psymtab): Likewise.
1784 (process_one_symbol): Likewise.
1785 * mdebugread.c (parse_partial_symbols): Likewise.
1786
1787 * symtab.h (struct minimal_symbol): Always define "filename" member.
1788 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1789 * minsyms.c (lookup_minimal_symbol): Likewise.
1790 * symmisc.c (dump_msymbols): Likewise.
1791
1792 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1793 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1794 * config/i386/tm-i386sol2.h: Remove file.
1795 * config/i386/tm-linux.h: Remove file.
1796 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1797 set_gdbarch_sofun_address_maybe_missing.
1798 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1799
1800 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1801 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1802 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1803 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1804 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1805 * config/powerpc/tm-ppc-eabi.h: Remove file.
1806 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1807 set_gdbarch_sofun_address_maybe_missing.
1808
1809 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1810 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1811 * config/sparc/tm-sol2.h: Remove file.
1812 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1813 set_gdbarch_sofun_address_maybe_missing.
1814 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1815
1816 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1817
1818 * gdbarch.sh (static_transform_name): New gdbarch callback.
1819 * gdbarch.c, gdbarch.h: Regenerate.
1820 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1821 instead of STATIC_TRANSFORM_NAME.
1822 * mdebugread.c (parse_partial_symbols): Likewise.
1823 * stabsread.c (define_symbol): Likewise.
1824 * xcoffread.c (scan_xcoff_symtab): Likewise.
1825
1826 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1827 (IS_STATIC_TRANSFORM_NAME): Remove.
1828 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1829 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1830 (i386_sol2_init_abi): Install it.
1831
1832 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1833 (IS_STATIC_TRANSFORM_NAME): Remove.
1834 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1835 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1836 (sparc32_sol2_init_abi): Install it.
1837 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1838 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1839
1840 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1841
1842 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1843 (mips_n32n64_return_value, mips_o32_return_value)
1844 (mips_o64_return_value): Update calls to mips_xfer_register.
1845
1846 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1847
1848 * frame.c (frame_unwind_unsigned_register): Delete.
1849 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1850 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1851
1852 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1853 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1854 mt-tdep.c: Replace frame_unwind_unsigned_register with
1855 frame_unwind_register_unsigned.
1856
1857 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1858
1859 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1860 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1861 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1862 include procfs.h.
1863 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1864 if not building on Cygwin.
1865 (win32_make_so, handle_output_debug_string, handle_exception)
1866 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1867 (win32_attach): Only fallback to Cygwin pids if building on
1868 Cygwin.
1869 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1870 building on Cygwin.
1871 (win32_create_inferior): Disable starting the inferior through a
1872 shell, environment var processing and tty handling if not building
1873 on Cygwin.
1874 (cygwin_pid_to_str): Rename to ...
1875 (win32_pid_to_str): ... this.
1876 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1877 and "cygwin-exceptions" commands if not building on Cygwin.
1878
1879 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1880
1881 * doc/gdb.texinfo: Add TSIZE definition, removed
1882 statement about unbounded arrays being unimplemented.
1883 * m2-valprint.c (m2_print_array_contents): New function.
1884 (m2_print_unbounded_array): New function.
1885 (m2_print_array_contents): New function.
1886 * m2-typeprint.c (m2_unbounded_array): New function.
1887 (m2_is_unbounded_array): New function.
1888 (m2_print_type): Test for unbounded array when walking
1889 across structs.
1890 * m2-lang.h: Added extern m2_is_unbounded_array.
1891 * m2-lang.c (evaluate_subexp_modula2): New function.
1892 (exp_descriptor_modula2): New structure.
1893 (m2_language_defn): Use exp_descriptor_modula2.
1894 * m2-exp.y: Added TSIZE and binary subscript.
1895
1896 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1897
1898 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1899 after freeing it.
1900
1901 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1902
1903 * m32r-tdep.c (decode_prologue): Sign extend offset for
1904 "addi sp, xx" case.
1905 (m32r_frame_unwind_cache): Likewise.
1906
1907 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1908
1909 * rs6000-tdep.c (skip_prologue): Restore comment with
1910 function description to its proper place.
1911
1912 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1913
1914 * NEWS: Mention gdbserver PowerPC improvements.
1915
1916 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1917
1918 * features/Makefile (WHICH): Add PowerPC register definitions.
1919 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1920 (rs6000/powerpc-64-expedite): New macros.
1921 ($(outdir)/%.dat): Handle subdirectories.
1922 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1923 regformats/rs6000/powerpc-e500.dat: New generated files.
1924
1925 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1926
1927 * ppc-linux-nat.c (ppc_linux_read_description): New.
1928 (_initialize_ppc_linux_nat): Set to_read_description.
1929 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1930
1931 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1932
1933 * NEWS: Document target described register support for PowerPC.
1934 * ppc-tdep.h: Remove ppc_spr constants.
1935 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1936 ppc_builtin_type_vec128 members.
1937 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1938 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1939 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1940 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1941 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1942 * rs6000-tdep.c: Include preparsed descriptions.
1943 (init_sim_regno_table): Do not iterate over pseudo registers.
1944 Look up segment registers by name. Use sim_spr_register_name
1945 for SPRs.
1946 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1947 (rs6000_builtin_type_vec128): Delete.
1948 (rs6000_register_name): Only handle SPE pseudo registers and upper
1949 halves. Call tdesc_register_name for everything else.
1950 (rs6000_register_type): Delete. Replace with...
1951 (rs6000_pseudo_register_type): ...this new function. Only handle
1952 SPE pseudo registers.
1953 (rs6000_register_reggroup_p): Delete. Replace with...
1954 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1955 handle SPE pseudo registers.
1956 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1957 "struct reg".
1958 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1959 of reg->fpr.
1960 (e500_register_reggroup_p): Delete.
1961 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1962 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1963 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1964 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1965 (registers_powerpc, registers_403, registers_403GC, registers_505)
1966 (registers_860, registers_601, registers_602, registers_603)
1967 (registers_604, registers_750, registers_7400, registers_e500): Delete
1968 variables.
1969 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1970 tdesc.
1971 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1972 (variants): Delete outdated comment. Use standard target descriptions
1973 instead of "struct reg" arrays.
1974 (init_variants): Delete.
1975 (rs6000_gdbarch_init): Do not guess word size from the BFD
1976 architecture if we have a target description. Select a variant
1977 before creating a new architecture. Use the variant's target
1978 description if the target did not define a register layout.
1979 Validate target-supplied registers. Reject mismatches. Use
1980 fixed register numbers and new constants instead of magic
1981 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1982 (_initialize_rs6000_tdep): Initialize the preparsed target
1983 descriptions.
1984 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1985 uint128.
1986 (tdesc_find_register_early): New function.
1987 (tdesc_numbered_register): Use it.
1988 (tdesc_register_size): New function.
1989 (tdesc_use_registers): Take a target_desc argument. Do not use
1990 gdbarch_target_desc.
1991 * target-descriptions.h (tdesc_use_registers): Update prototype
1992 and comment.
1993 (tdesc_register_size): New prototype.
1994 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1995 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1996 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1997 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1998 (rs6000-tdep.o): Update.
1999 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2000 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2001 * mips-tdep.c (mips_gdbarch_init): Likewise.
2002
2003 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2004
2005 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2006 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2007 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2008 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2009 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2010 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2011 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2012 generated files.
2013
2014 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2015
2016 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2017 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2018 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2019 feature descriptions for standard PowerPC register sets.
2020
2021 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2022 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2023 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2024 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2025 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2026 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2027 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2028 target descriptions for PowerPC processors.
2029
2030 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2031
2032 * target-descriptions.c (tdesc_predefined_types): New.
2033 (tdesc_named_type): Use it.
2034 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2035 (_intialize_target_descriptions): Register "maint print c-tdesc".
2036 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2037 (cfiles, %.c): New rules.
2038 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2039 features/mips64-linux.c: New generated files.
2040
2041 * arm-linux-nat.c: Include preparsed description instead of
2042 "xml-support.h".
2043 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2044 (arm_linux_read_description): New function.
2045 (_initialize_arm_linux_nat): Set to_read_description instead of
2046 to_xfer_partial. Initialize preparsed description.
2047 * config/arm/linux.mh (TDEP_XML): Delete.
2048 * mips-linux-nat.c: Include preparsed descriptions instead of
2049 "xml-support.h".
2050 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2051 (mips_linux_read_description): New function.
2052 (_initialize_mips_linux_nat): Set to_read_description instead of
2053 to_xfer_partial. Initialize preparsed description.
2054 * config/mips/linux.mh (TDEP_XML): Delete.
2055 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2056 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2057 (mips64_linux_c): New macros.
2058 (arm-linux-nat.o, mips-linux-nat.o): Update.
2059
2060 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2061
2062 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2063 Replace xasprintf by xstrprintf.
2064 symfile-mem.c (add_vsyscall_page): Ditto.
2065
2066 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2067
2068 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2069 replacing use of global current_gdbarch.
2070 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2071 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2072
2073 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2074 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2075 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2076 (ia64_sigtramp_frame_cache): Update caller.
2077
2078 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2079
2080 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2081 (extract_return_value, store_return_value): Remove.
2082 (return_value): Remove default implementation.
2083 * gdbarch.c, gdbarch.h: Regenerate.
2084
2085 * stack.c (return_command): Remove compatibility hack.
2086 * arch-utils.c (legacy_return_value): Remove.
2087 * arch-utils.h (legacy_return_value): Likewise.
2088
2089 * arch-utils.c (always_use_struct_convention): Remove.
2090 * arch-utils.h (always_use_struct_convention): Likewise.
2091 * value.c (generic_use_struct_convention): Remove.
2092 * defs.h (generic_use_struct_convention): Likewise.
2093
2094 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2095
2096 * avr-tdep.c (avr_return_value): New function.
2097 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2098 set_gdbarch_extract_return_value.
2099
2100 * fvr-tdep.c (frv_return_value): New function.
2101 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2102 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2103 and set_gdbarch_deprecated_use_struct_convention.
2104
2105 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2106 Add check for structure, union, or array types.
2107 (ia64_extract_return_value): Make static.
2108 (ia64_store_return_value): Make static. Support multi-word values.
2109 (ia64_return_value): New function.
2110 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2111 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2112 and set_gdbarch_deprecated_use_struct_convention.
2113
2114 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2115
2116 * solib-target.c (solib_target_parse_libraries)
2117 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2118
2119 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2120
2121 * serial.h (struct serial_ops): Document read_prim to return zero
2122 at EOF.
2123 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2124 read_prim returns zero, not SERIAL_TIMEOUT.
2125
2126 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2127
2128 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2129 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2130 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2131 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2132
2133 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2134 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2135 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2136 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2137 * config/alpha/tm-alpha.h: Remove file.
2138
2139 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2140
2141 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2142 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2143
2144 * config/pa/tm-hppa.h: Delete file.
2145 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2146 * config/pa/hppahpux.mt: Likewise.
2147 * config/pa/hppa.mt: Likewise.
2148 * config/pa/linux.mt: Likewise.
2149 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2150
2151 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2152
2153 * config/arm/nm-nbsdaout.h: Remove file.
2154 * config/nm-nbsdaout.h: Likewise.
2155 * config/nm-nbsd.h: Likewise.
2156
2157 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2158
2159 * block.h (struct block): Remove "gcc_compile_flag" member.
2160 (BLOCK_GCC_COMPILED): Remove.
2161 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2162 * buildsym.c (finish_block): Do not set it.
2163 * symmisc.c (dump_symtab_1): Do not dump it.
2164
2165 * value.h (using_struct_return): Remove "gcc_p" argument.
2166 * value.c (using_struct_return): Likewise.
2167 * eval.c (evaluate_subexp_standard): Adapt callers.
2168 * infcall.c (call_function_by_hand): Likewise.
2169 * stack.c (return_command): Likewise.
2170 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2171
2172 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2173 * gdbarch.c, gdbarch.h: Regenerate.
2174 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2175 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2176 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2177 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2178 (push_dummy_code, call_function_by_hand): Adapt callers.
2179
2180 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2181
2182 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2183 (finish_command_continuation, finish_command): Adapt callers.
2184
2185 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2186
2187 * infcall.c (call_function_by_hand): Remove special handling
2188 for HP aCC compiled code.
2189
2190 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2191
2192 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2193 reference. Fix endianness bugs.
2194 (cris_reg_struct_has_address): Remove.
2195 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2196 and set_gdbarch_deprecated_use_struct_convention calls.
2197
2198 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2199 * gdbarch.c, gdbarch.h: Regenerate.
2200 * infcall.c (call_function_by_hand): Remove handling of
2201 deprecated_reg_struct_has_addr.
2202
2203 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2204 Kazu Hirata <kazu@codesourcery.com>
2205
2206 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2207 checking watchpoint resources.
2208
2209 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2210
2211 * memattr.c (inaccessible_by_default): Change the initial
2212 value to 1.
2213
2214 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2215
2216 PR gdb/2280
2217 * coffread.c (read_one_sym): Check for read errors.
2218
2219 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2220
2221 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2222 instead of "Linux 2.6.19" in comment.
2223 (linux_xfer_partial): Use "GNU/Linux target" instead of
2224 "Linux target" in comment.
2225 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2226 (m68k_linux_get_sigtramp_info): Likewise.
2227
2228 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2229
2230 * MAINTAINERS (language support): List Joel and Paul as
2231 Ada maintainers.
2232
2233 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2234
2235 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2236 checks.
2237 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2238 not set DEPRECATED_TM_FILE.
2239 * config/arm/tm-arm.h: Delete file.
2240
2241 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2242
2243 * MAINTAINERS (Write After Approval): Add self.
2244
2245 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2246
2247 * buildsym.c (record_line): Remove empty lines followed by
2248 end-of-sequence markers.
2249
2250 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2251
2252 * configure.tgt: Recognize fido-*-elf.
2253
2254 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2255
2256 GDB 6.7 released.
2257
2258 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2259
2260 * stack.c (print_frame_args, frame_info, return_command): Use
2261 get_regcache_arch or get_frame_arch to get at the current architecture
2262 by regcache or by frame, respectively.
2263
2264 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2265
2266 * rs6000-nat.c (fetch_register, store_register)
2267 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2268 get_regcache_arch to get at the current architecture by regcache.
2269
2270 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2271 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2272 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2273 current_gdbarch by gdbarch.
2274 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2275 (rs6000_value_to_register): Use get_frame_arch to get at the current
2276 architecture by frame_info.
2277
2278 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2279
2280 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2281 get_regcache_arch to get at the current architecture by regcache.
2282
2283 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2284 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2285 get_regcache_arch to get at the current architecture by regcache.
2286
2287 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2288 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2289 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2290 current architecture by regcache.
2291
2292 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2293
2294 * remote-mips.c (mips_wait, mips_fetch_registers)
2295 (mips_store_registers): Use get_regcache_arch to get at the
2296 current architecture by regcache.
2297
2298 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2299 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2300 get at the current architecture by regcache.
2301 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2302 architecture by frame_info.
2303
2304 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2305 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2306 the current architecture by regcache.
2307
2308 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2309 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2310 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2311 current architecture by frame_info.
2312 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2313 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2314 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2315 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2316 get at the current architecture by regcache.
2317
2318 * mips-linux-nat.c (mips_linux_register_addr)
2319 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2320 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2321 (mips64_linux_regsets_fetch_registers)
2322 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2323 the current architecture by regcache.
2324
2325 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2326 get at the current architecture by frame_info.
2327
2328 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2329
2330 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2331 current architecture by regcache.
2332 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2333 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2334 (mips_stub_frame_cache, mips_read_fp_register_single)
2335 (mips_read_fp_register_double, mips_print_fp_register)
2336 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2337 at the current architecture by frame_info.
2338 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2339 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2340 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2341 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2342 (mips_o32_push_dummy_call, mips_o32_return_value)
2343 (mips_o64_push_dummy_call, mips_o64_return_value)
2344 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2345 gdbarch.
2346
2347 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2348
2349 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2350 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2351 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2352 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2353 (xtensa_register_write_masked, xtensa_register_read_masked)
2354 (xtensa_supply_gregset, xtensa_store_return_value)
2355 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2356 current architecture by regcache.
2357 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2358 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2359 architecture by frame_info.
2360
2361 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2362
2363 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2364 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2365 out of loop. Do not set cache->frameoffset.
2366 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2367 frameoffset. Simplify framesize.
2368 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2369 frameoffset.
2370 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2371
2372 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2373
2374 * target.c (update_current_target): Call setup_target_debug.
2375 (push_target): Do not call it here.
2376
2377 2007-10-09 Michael Snyder <msnyder@specifix.com>
2378
2379 * MAINTAINERS: Update my email address.
2380
2381 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2382
2383 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2384 their expression:
2385 (xtensa_pseudo_register_read)
2386 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2387 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2388 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2389 (xtensa_pseudo_register_read)
2390 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2391 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2392 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2393 (xtensa_frame_prev_register): NUM_AREGS.
2394 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2395 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2396 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2397 (xtensa_supply_gregset, xtensa_frame_cache)
2398 (xtensa_frame_prev_register): WS_REGNUM.
2399 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2400 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2401 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2402 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2403 (xtensa_register_reggroup_p): REGMAP.
2404 (call0_track_op): LITBASE_REGNUM.
2405 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2406 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2407 (xtensa_frame_prev_register, AREG_NUMBER)
2408 (xtensa_register_type): AR_BASE.
2409 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2410 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2411 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2412 (xtensa_frame_cache, xtensa_frame_prev_register)
2413 (xtensa_extract_return_value, xtensa_store_return_value)
2414 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2415 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2416 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2417 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2418 (call0_frame_cache): A1_REGNUM.
2419 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2420 (xtensa_push_dummy_call): A4_REGNUM.
2421 (ARGS_FIRST_REG): A6_REGNUM.
2422 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2423 (xtensa_frame_prev_register): A15_REGNUM.
2424 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2425 them in the appropriate source file:
2426 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2427 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2428 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2429 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2430 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2431 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2432 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2433 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2434 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2435 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2436 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2437
2438 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2439
2440 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2441 the current architecture by frame_info.
2442 (h8300_frame_prev_register
2443 (h8300_print_register): Replace current_gdbarch by gdbarch.
2444 (h8300_print_registers_info, h8300_register_type)
2445 (h8300_register_type): Likewise.
2446
2447 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2448
2449 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2450 the current architecture by regcache.
2451 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2452 (i386_linux_fetch_inferior_registers)
2453 (i386_linux_store_inferior_registers): Likewise.
2454 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2455 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2456 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2457 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2458 (i386_extract_return_value, i386_store_return_value): Likewise.
2459 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2460 the current architecture by frame_info.
2461 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2462 (i386_register_to_value, i386_value_to_register): Likewise.
2463
2464 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2465
2466 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2467 the current architecture by regcache.
2468 (monitor_store_register, monitor_store_registers): Likewise.
2469
2470 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2471
2472 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2473 the current architecture by regcache.
2474
2475 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2476
2477 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2478 gdbarch.
2479
2480 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2481
2482 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2483 architecture by frame.
2484 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2485 (inside_main_func, frame_sp_unwind): Likewise.
2486
2487 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2488
2489 * solib-svr4.c (enable_break): Add the dynamic linker also if
2490 auxv succeeds.
2491
2492 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2493
2494 * MAINTAINERS (Write After Approval): Add self.
2495
2496 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2497
2498 * stabsread.c (read_huge_number): Initialize local variable to 0.
2499
2500 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2501
2502 * p-lang.h (pascal_main_name): Add declaration.
2503 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2504 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2505 (pascal_main_name): New function.
2506 * symtab.c: Include p-lang.h.
2507 (find_main_name): Add call to pascal_main_name.
2508 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2509
2510 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2511
2512 * stabsread.c (read_huge_number): Fix handling of octal
2513 representation when the bit width is known.
2514 (read_range_type): Record unsigned integral types with their size,
2515 when the type size is known.
2516
2517 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2518
2519 * MAINTAINERS (Write After Approval): Add self.
2520
2521 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2522
2523 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2524 Replace asprintf by xstrprintf.
2525
2526 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2527
2528 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2529 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2530
2531 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2532
2533 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2534 <sys/wait.h> include before last commit.
2535
2536 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2537
2538 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2539
2540 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2541
2542 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2543 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2544 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2545 (store_regs_user_thread, store_regs_kernel_thread): Use
2546 get_regcache_arch or get_frame_arch to get at the current architecture
2547 by regcache or by frame, respectively.
2548
2549 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2550
2551 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2552 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2553 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2554 (sh64_print_register, sh64_media_print_registers_info)
2555 (sh64_compact_print_registers_info, sh64_unwind_sp)
2556 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2557 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2558 (sh64_frame_prev_register): Use FRAME to recognize current
2559 architecture.
2560
2561 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2562
2563 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2564 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2565 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2566 current_gdbarch by gdbarch.
2567 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2568 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2569 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2570 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2571 recognize current architecture.
2572
2573 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2574
2575 * remote.c (init_remote_state, fetch_register_using_p)
2576 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2577 (store_register_using_P, store_registers_using_G)
2578 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2579 get at the current architecture by regcache or by frame, respectively.
2580
2581 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2582
2583 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2584 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2585 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2586 get_regcache_arch or get_frame_arch to get at the current architecture
2587 by regcache or by frame, respectively.
2588 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2589 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2590 (store_register, old_store_inferior_registers, supply_gregset)
2591 (supply_fpregset, fill_fpregset): Likewise.
2592 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2593 Replace current_gdbarch by gdbarch.
2594
2595 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2596
2597 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2598 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2599 get_frame_arch to get at the current architecture by regcache or by
2600 frame, respectively.
2601
2602 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2603
2604 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2605 Replace current_gdbarch by gdbarch.
2606 * ia64-tdep.c (ia64_frame_prev_register
2607 (ia64_sigtramp_frame_prev_register)
2608 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2609 get_frame_arch to get at the current architecture by regcache or by
2610 frame, respectively.
2611 * ia64-linux-nat.c (ia64_linux_fetch_register)
2612 (ia64_linux_fetch_registers, ia64_linux_store_register)
2613 (ia64_linux_store_registers): Likewise.
2614
2615 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2616
2617 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2618 current_gdbarch by gdbarch.
2619 * hppa-linux-nat.c (fetch_register, store_register)
2620 (hppa_linux_fetch_inferior_registers)
2621 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2622 get_frame_arch to get at the current architecture by regcache or by
2623 frame, respectively.
2624 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2625 (hppa_hpux_unwind_adjust_stub): Likewise.
2626 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2627 (hppa_hpux_fetch_inferior_registers)
2628 (hppa_hpux_store_inferior_registers): Likewise.
2629
2630 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2631
2632 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2633 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2634 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2635 or get_frame_arch to get at the current architecture by regcache or by
2636 frame, respectively.
2637 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2638 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2639 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2640 current_gdbarch by gdbarch.
2641
2642 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2643
2644 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2645 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2646 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2647 get at the current architecture by regcache or by·frame, respectively.
2648 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2649 gdbarch.
2650
2651 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2652
2653 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2654 Use get_regcache_arch or get_frame_arch to get at the current
2655 architecture by regcache or by frame, respectively.
2656 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2657 * amd64-nat.c (amd64_supply_native_gregset)
2658 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2659
2660 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2661
2662 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2663 gdbarch.
2664 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2665 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2666 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2667 get_frame_arch to get at the current architecture by regcache or by
2668 frame, respectively.
2669 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2670
2671 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2672
2673 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2674 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2675 current_gdbarch by gdbarch.
2676 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2677
2678 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2679
2680 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2681 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2682 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2683 get_frame_arch to get at the current architecture by regcache or by
2684 frame, respectively.
2685
2686 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2687
2688 * findvar.c (value_of_register, locate_var_value): Use
2689 get_regcache_arch or get_frame_arch to get at the current architecture
2690 by regcache or by frame, respectively.
2691 * findvar.c (default_value_from_register, value_from_register): Replace
2692 current_gdbarch by gdbarch.
2693
2694 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2695
2696 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2697
2698 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2699
2700 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2701 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2702
2703 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2704
2705 * remote.c (get_offsets): Only call free_symfile_segment_data if
2706 data was allocated.
2707
2708 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2709
2710 * objc-exp.y: ARI fix: remove 4 PARAMS.
2711
2712 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2713
2714 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2715 news. Mention XML support for M68K in GDB 6.7.
2716
2717 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2718
2719 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2720 bounds.
2721 (init_vector_type): Use builtin_type_int32.
2722
2723 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2724
2725 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2726 size to enable bi-arch generate-core-file support.
2727
2728 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2729
2730 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2731
2732 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2733
2734 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2735 signal handler.
2736 * tui/tui-win.c (tui_initialize_win): New function for
2737 initializing tui's SIGWINCH signal handler.
2738 * tui/tui-win.h (tui_initialize_win): Declare.
2739
2740 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2741
2742 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2743 pointer to uintptr_t before casting to CORE_ADDR.
2744
2745 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2746
2747 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2748
2749 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2750
2751 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2752 * ser-mingw.c (enum select_thread_state): New type.
2753 (struct ser_console_state): Add have_started and thread_state.
2754 (select_thread_wait): New function.
2755 (thread_fn_type): New type.
2756 (create_select_thread): New function.
2757 (destroy_select_thread): Likewise.
2758 (start_select_thread): Likewise.
2759 (stop_select_thread): Likewise.
2760 (console_select_thread): Use new functions.
2761 (pipe_select_thread): Likewise.
2762 (file_select_thread): Likewise.
2763 (ser_console_wait_handle): Likewise.
2764 (ser_console_done_wait_handle): Likewise.
2765 (ser_console_close): Likewise.
2766 (free_pipe_state): Likewise.
2767 (pipe_wait_handle): Likewise.
2768 (pipe_done_wait_handle): Likewise.
2769 (struct net_windows_state): Derive from ser_console_state.
2770 (net_windows_select_thread): Use new functions.
2771 (net_windows_wait_handle): Likewise.
2772 (net_windows_done_wait_handle): Likewise.
2773 (net_windows_close): Likewise.
2774
2775 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2776
2777 * inflow.c (terminal_ours_1): Remove useless line.
2778
2779 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2780
2781 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2782 odd FP registers.
2783 (mips_print_fp_register): Correct check for even FP registers.
2784 (mips_virtual_frame_pointer): New function.
2785 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2786
2787 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2788
2789 * value.h (lookup_only_internalvar): New prototype.
2790 (create_internalvar): Likewise.
2791 * value.c (lookup_only_internalvar): New function.
2792 (create_internalvar): Likewise.
2793 (lookup_internalvar): Use new lookup_only_internalvar and
2794 create_internalvar functions.
2795 * parse.c (write_dollar_variable): Look up $ symbols in internal
2796 table first rather than last.
2797
2798 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2799
2800 * linux-nat.c (linux_nat_new_thread): New variable.
2801 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2802 linux_nat_switch_fork.
2803 (lwp_list): Make public.
2804 (add_lwp): Call linux_nat_new_thread.
2805 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2806 the new thread.
2807 (resume_callback): Clear lp->siginfo. Remove unused variable.
2808 (linux_nat_resume): Assert that the LWP list is already initialized.
2809 Clear lp->siginfo.
2810 (save_siginfo): New.
2811 (stop_wait_callback, linux_nat_wait): Call it.
2812 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2813 * linux-nat.h (struct lwp_info): Add siginfo.
2814 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2815 (ALL_LWPS): Define.
2816
2817 * amd64-linux-nat.c (amd64_linux_dr): New.
2818 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2819 (amd64_linux_dr_set): Take a PTID argument.
2820 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2821 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2822 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2823 (amd64_linux_new_thread): New.
2824 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2825 * i386-linux-nat.c (i386_linux_dr): New.
2826 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2827 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2828 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2829 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2830 (i386_linux_new_thread): New.
2831 (i386_linux_resume): Remove unnecessary PID check.
2832 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2833 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2834 (fetch_debug_register, fetch_debug_register_pair): Delete.
2835 (debug_registers): New.
2836 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2837 ALL_LWPS and debug_registers.
2838 (ia64_linux_new_thread): New.
2839 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2840 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2841 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2842 (saved_dabr_value): New.
2843 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2844 ALL_LWPS.
2845 (ppc_linux_new_thread): New.
2846 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2847 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2848 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2849 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2850 after reading it.
2851 (s390_fix_watch_points): Take a PTID argument.
2852 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2853 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2854
2855 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2856 Jeff Johnston <jjohnstn@redhat.com>
2857
2858 * breakpoint.c (watchpoints_triggered): New.
2859 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2860 Check watchpoint_triggered instead. Combine handling for software
2861 and hardware watchpoints. Do not use target_stopped_data_address
2862 here. Always check a watchpoint if its scope breakpoint triggers.
2863 Do not stop for thread or overlay events. Improve check for
2864 triggered watchpoints without a value change.
2865 (watch_command_1): Insert the scope breakpoint first. Link the
2866 scope breakpoint to the watchpoint.
2867 * breakpoint.h (enum watchpoint_triggered): New.
2868 (struct breakpoint): Add watchpoint_triggered.
2869 (bpstat_stop_status): Update prototype.
2870 (watchpoints_triggered): Declare.
2871 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2872 (stepped_after_stopped_by_watchpoint): Delete.
2873 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2874 local. Handle infwait_step_watch_state. Update calls to
2875 bpstat_stop_status. Use watchpoints_triggered to check
2876 watchpoints.
2877 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2878 (remote_stopped_data_address): Do not check it.
2879
2880 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2881
2882 * configure.ac: Add $LIBINTL when testing libbfd.
2883 * configure: Regenerated.
2884
2885 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2886
2887 * NEW: Mention pending breakpoint changes and
2888 support for breakpoints at multiple locations.
2889
2890 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2891
2892 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2893 (arm_linux_init_abi): Use it.
2894 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2895 condition correctly.
2896 * arm-tdep.h (arm_get_next_pc): Declare.
2897 * Makefile.in (arm-linux-tdep.o): Update.
2898
2899 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2900
2901 * varobj.c (install_new_value): Don't
2902 call value_get_print_value when a value is
2903 lazy. Update the print_value member in a
2904 single place.
2905
2906 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2907
2908 * breakpoint.c (create_breakpoint): Set
2909 condition on each location, not on the first
2910 location of breakpoint.
2911
2912 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2913
2914 * remote.c (getpkt_sane): Fix error message. No animals were
2915 harmed in the making of this debugger.
2916
2917 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2918
2919 * p-typeprint.c: Fix 11 ARI reported problems.
2920 (pascal_print_type): Fix 4 operator at end of line.
2921 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2922 using strncmp function.
2923 (pascal_type_print_base): Fix 2 operator at end of line.
2924 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2925 using strncmp function.
2926
2927
2928 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2929
2930 * Fix PR pascal/2231
2931 dwarf2read.c (read_subroutine_type):
2932 All pascal functions are prototyped.
2933
2934 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2935
2936 * Fix PR pascal/2283
2937 p-valprint.c (pascal_val_print): correct current language check.
2938 Also print array of char as strings.
2939
2940
2941 2007-09-26 David Ung <davidu@mips.com>
2942 Maciej W. Rozycki <macro@mips.com>
2943
2944 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2945
2946 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2947
2948 * p-exp.y: Fix 12 ARI reported problems.
2949 (name_not_typename): Fix 2 operator at end of line issues.
2950 (yylex): Fix 3 operator at end of line issues.
2951 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2952
2953 2007-09-25 David Ung <davidu@mips.com>
2954 Maciej W. Rozycki <macro@mips.com>
2955
2956 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2957 rules return composite types in registers as appropriate.
2958
2959 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2960
2961 * symfile.h (struct symfile_segment_data): Doc fixes.
2962 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2963 Assert that we were passed some loaded segment addresses,
2964 and that sections' segment numbers are valid.
2965 Simplify offset calculation.
2966 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2967 strategy, and set num_segments correctly. Delete redundant
2968 assignments to do_sections.
2969
2970 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2971
2972 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2973
2974 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2975
2976 * breakpoint.c (remove_sal): New.
2977 (expand_line_sal_maybe): New.
2978 (create_breakpoints): Call expand_line_sal_maybe.
2979 (clear_command): Add comment.
2980 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2981 * linespec.c (decode_indirect): Set explicit_pc to 1.
2982 (decode_all_digits): Set explicit_line to 1.
2983 (append_expanded_sal): New.
2984 (expand_line_sal): New.
2985 * linespec.h (expand_line_sal): Declare.
2986 * symtab.c (init_sal): Initialize explicit_pc
2987 and explicit_line.
2988 * symtab.h (struct symtab_and_line): New fields
2989 explicit_pc and explicit_line.
2990
2991 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2992
2993 * infcall.c (call_function_by_hand): Handle language-specific
2994 pass and return by reference.
2995
2996 * cp-abi.c (cp_pass_by_reference): New.
2997 * cp-abi.h (cp_pass_by_reference): Declare.
2998 (struct cp_abi_ops): Add pass_by_reference.
2999 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3000 (init_gnuv3_ops): Set pass_by_reference.
3001
3002 * language.c (language_pass_by_reference): New.
3003 (default_pass_by_reference): New.
3004 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3005 default_pass_by_reference.
3006 * langauge.h (struct language_defn): Add la_pass_by_reference.
3007 (language_pass_by_reference, default_pass_by_reference): Declare.
3008 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3009 * c-lang.c (c_language_defn, asm_language_defn)
3010 (minimal_language_defn): Likewise.
3011 (cplus_language_defn): Add cp_pass_by_reference.
3012 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3013 * jv-lang.c (java_language_defn): Likewise.
3014 * m2-lang.c (m2_language_defn): Likewise.
3015 * objc-lang.c (objc_language_defn): Likewise.
3016 * p-lang.c (pascal_language_defn): Likewise.
3017 * scm-lang.c (scm_language_defn): Likewise
3018
3019 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3020
3021 Allow a code breakpoint to have several locations
3022 associated with it.
3023 * breakpoint.h (enum enable_state): Remove the
3024 bp_shlib_disabled enumerator.
3025 (struct bp_location): New members shlib_disabled,
3026 global_next, enabled and function_name.
3027 Rename pending to condition_not_parsed.
3028
3029 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3030 (ALL_BP_LOCATIONS_SAFE): Likewise.
3031 (breakpoint_enabled): Don't check for pending.
3032 (condition_command): Free and update all locations of
3033 a breakpoint.
3034 (insert_bp_location): Adjust.
3035 (software_breakpoint_inserted_here_p): Don't care
3036 if breakpoint is enabled, as soon as it's inserted.
3037 (print_it_typical): Print bpstat's location, not
3038 bpstat's breakpoint's location.
3039 (bpstat_stop_status): Iterate over all locations, not
3040 all breakpoints.
3041 (print_breakpoint_location): New.
3042 (print_one_breakpoint): Renamed to
3043 (print_one_breakpoint_location): ...this. Take
3044 parameters to describe which location is being
3045 printed. Modify code to properly print header
3046 for several locations and individual locations.
3047 (print_one_breakpoint): Print all locations.
3048 (breakpoint_has_pc): New.
3049 (describe_other_breakpoints): Use the above.
3050 (check_duplicates): Renamed to...
3051 (check_duplicates_for): .. this.
3052 (check_duplicates): Use check_duplicates_for.
3053 (allocate_bp_location): Adjust.
3054 (set_raw_breakpoint_without_location): New,
3055 extracted from set_raw_breakpoint.
3056 (set_breakpoint_location_function): New.
3057 (set_raw_breakpoint): Use
3058 set_raw_breakpoint_without_location.
3059 (make_breakpoint_permanent): Mark all locations
3060 as inserted.
3061 (disable_breakpoints_in_shlibs): Iterate over
3062 locations.
3063 (disable_breakpoints_in_unloaded_shlib): Likewise.
3064 (re_enable_breakpoints_in_shlibs): Likewise.
3065 (mention): Say "pending" when breakpoint has
3066 zero locations. If breakpoint has more than one
3067 location, say so.
3068 (add_location_to_breakpoint): New.
3069 (create_breakpoint): Accept symtabs_and_lines, not
3070 symtab_and_line. Pass extra sals to
3071 add_location_to_breakpoint.
3072 (create_breakpoints): Pass symtabs_and_lines to
3073 create_breakpoints.
3074 (break_command_1): Make pending breakpoints
3075 have zero locations.
3076 (do_captured_breakpoint): Remove wrong allocation.
3077 (clear_command): Iterate over all locations.
3078 (unlink_locations_from_global_list): Renamed
3079 from unlink_location_from_global_list. Remove
3080 all locations.
3081 (delete_breakpoint): Remove all locations.
3082 Iterate over all locations when deciding which
3083 other location to re-enable.
3084 (all_locations_are_pending): New.
3085 (update_breakpoint_locations): Renamed from
3086 update_breakpoint_location. Try to match old
3087 and new locations using names of containing
3088 functions.
3089 (breakpoint_re_set_one): Adjust.
3090 (find_location_by_number): New.
3091 (disable_command): Allow disabling individual location.
3092 (enable_command): Allow enabling individual location.
3093 * breakpoint.c: Adjust all uses of breakpoint's
3094 enable state to for bp_shlib_disabled change.
3095
3096 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3097
3098 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3099 (resolve_pending_breakpoint): Remove.
3100 (re_enable_breakpoints_in_shlibs): Remove.
3101 (unlink_locations_from_global_list): New.
3102 (update_breakpoint_locations): New.
3103 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3104 Use parse_condition and update_breakpoint_location to
3105 reset breakpoint. Ignore 'symbol not found' error from
3106 decode_line_1.
3107 (breakpoint_re_set): Don't emit newline before the
3108 reason why breakpoint is not reset.
3109 (do_enable_breakpoint): Don't specially process pending
3110 breakpoints.
3111 (free_bp_location): New.
3112 (break_command_1): For pending breakpoints, initialize
3113 all fields of a sal with zeroes.
3114 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3115 * infcmd.c (post_create_inferior): Don't call
3116 re_enable_breakpoints_in_shlibs.
3117 * infrun.c (handle_inferior_event): Likewise.
3118 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3119 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3120 * win32-nat.c (get_win32_debug_event): Likewise.
3121
3122 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3123
3124 * breakpoint.c (create_breakpoint): Split from
3125 create_breakpoints, implementing most of its logic.
3126 Take just a single sal, single address string and
3127 single condition. Do not take parsed condition at
3128 all.
3129 (create_breakpoints): Just call create_breakpoint
3130 for each sal.
3131 (find_condition_and_thread): New.
3132 (break_command_1): Use find_condition_and_thread.
3133 Do not keep parsed conditions.
3134 (do_captured_breakpoint): Don't convert
3135 condition string to struct expression.
3136
3137 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3138
3139 * breakpoint.h (struct breakpoint): Move the cond
3140 field to...
3141 (struct bp_location): Here.
3142 * breakpoint.c (condition_command, bpstat_stop_status)
3143 (print_one_breakpoint, allocate_bp_location)
3144 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3145 (create_exec_event_catchpoint, create_breakpoints)
3146 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3147 (create_ada_exception_breakpoint, set_breakpoint_sal)
3148 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3149 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3150
3151 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3152
3153 Associate bp_stat with bp_location, not breakpoint.
3154 * breakpoint.h (breakpoint_at): Change type
3155 to bp_location*.
3156 * breakpoint.c (bpstat_alloc): Take bp_location,
3157 not breakpoint.
3158 (bpstat_find_breakpoint): Look at bpstat's location's
3159 owner, not at bpstat->breakpoint_at.
3160 (bpstat_find_step_resume_breakpoint): Likewise.
3161 (bpstat_num): Likewise.
3162 (print_it_typical): Likewise.
3163 (print_bp_stop_message): Likewise.
3164 (watchpoint_check): Likewise.
3165 (bpstat_what): Likewise.
3166 (bpstat_get_triggered_catchpoints): Likewise.
3167 (breakpoint_auto_delete): Likewise.
3168 (delete_breakpoint): Likewise.
3169 (bpstat_stop_status): Pass location, not breakpoint,
3170 to bpstat_alloc. Look at bpstat's location's
3171 owner, not at bpstat->breakpoint_at.
3172
3173 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3174
3175 * macrotab.h (new_macro_table): Document that removing information
3176 from an obstack/bcache-managed macro table leaks memory.
3177 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3178 that data is never freed in obstack/bcache-managed macro tables,
3179 just leak the storage.
3180 (macro_undef): If we're undefining a macro at exactly the same
3181 source location that we defined it, simply remove the definition
3182 altogether.
3183
3184 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3185
3186 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3187 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3188 Adjust the struct sym_fns object accordingly by setting
3189 the new field to NULL.
3190 * xcoffread.c (aix_process_linenos): Make static.
3191 (xcoff_sym_fns): Set new field to aix_process_linenos.
3192 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3193 by call to new the new sym_fns sym_read_linetable function.
3194 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3195 * config/rs6000/tm-rs6000.h: Delete.
3196
3197 2007-09-21 David Ung <davidu@mips.com>
3198 Maciej W. Rozycki <macro@mips.com>
3199
3200 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3201 rules do not treat composite types specially.
3202
3203 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3204
3205 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3206 (mips16_in_function_epilogue_p): Likewise.
3207 (mips_in_function_epilogue_p): Likewise.
3208 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3209
3210 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3211
3212 * configure.ac: Add check for "etext".
3213 * configure, config.in: Regenerate.
3214 * maint.c (TEXTEND): Only define if either _etext or etext
3215 are available.
3216 Disable the profiling functionality if TEXTEND is not defined.
3217
3218 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3219
3220 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3221 address register. Correct the call to frame_id_build.
3222 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3223 is invalid.
3224
3225 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3226
3227 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3228 the linetable past the function end.
3229
3230 2007-09-18 James E. Wilson <wilson@specifix.com>
3231
3232 * MAINTAINERS: Update my email address.
3233
3234 2007-09-18 Jerome Guitton <guitton@adacore.com>
3235
3236 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3237 (inf_ttrace_delete_dying_threads_callback): New function.
3238 (inf_ttrace_resume): After resuming the execution, iterate over
3239 the dying threads to delete them for the thread list.
3240 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3241 mark the corresponding thread as dying instead of removing it
3242 from the thread list.
3243 (inf_ttrace_thread_alive): return 0 for dying threads.
3244
3245 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3246
3247 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3248 that return_frame is not null.
3249
3250 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3251
3252 * solib-svr4.c: Add include of "auxv.h".
3253 (enable_break): Use the AT_BASE auxiliary entry if available.
3254 * Makefile.in (solib-svr4.o): Update dependencies.
3255
3256 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3257
3258 * NEWS: Create a new section for the next release branch.
3259 Rename the section of the current branch, now that it has
3260 been cut.
3261
3262 2007-09-17 Jerome Guitton <guitton@adacore.com>
3263
3264 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3265 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3266
3267 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3268
3269 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3270 * mi/mi-cmds.h (mi_cmd_list_features): New.
3271 * mi/mi-main.c (mi_cmd_list_features): New.
3272
3273 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3274
3275 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3276 * version.in: Bump version to 6.7.50-20070911-cvs.
3277
3278 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3279
3280 * thread.c (free_thread): Do not delete the step resume breakpoint
3281 right away.
3282
3283 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3284
3285 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3286 * corelow.c (core_read_description): New.
3287 (init_core_ops): Set to_read_description.
3288 * gdbarch.sh: Add gdbarch_core_read_description.
3289 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3290 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3291 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3292 (mips_register_g_packet_guesses): Use them.
3293 (_initialize_mips_tdep): Initialize them.
3294 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3295 * gdbarch.h, gdbarch.c: Regenerated.
3296
3297 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3298
3299 * infrun.c (stepping_past_breakpoint): New global variable.
3300 (stepping_past_breakpoint_ptid): Likewise.
3301 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3302 Only switch threads if we need to single-step over a breakpoint hit
3303 in the previously selected thread. If stepping, remember previous
3304 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3305 switch_to_thread instead of copying its contents.
3306 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3307 prepare_to_proceed returns true.
3308 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3309 (context_switch): Call switch_to_thread.
3310 (handle_inferior_event): Switch back to previous thread if requested
3311 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3312 * gdbthread.h (switch_to_thread): Add prototype.
3313 * thread.c (switch_to_thread): Make global.
3314
3315 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3316
3317 * p-valprint.c: Fix 7 ARI reported problems.
3318 (pascal_val_print): Fix one operator at end of line issue.
3319 Use paddress function to remove use of
3320 deprecated_print_address_numeric function (2 times).
3321 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3322 (pascal_value_print): Fix 3 operator at end of line issues.
3323
3324 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3325
3326 PR gdb/2103
3327 * arm-tdep.c (arm_in_call_stub): Delete.
3328 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3329
3330 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3331
3332 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3333 types.
3334
3335 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3336 Jim Blandy <jimb@codesourcery.com>
3337
3338 * NEWS: Update description of string changes. Mention print/s.
3339 * c-valprint.c (textual_element_type): New.
3340 (c_val_print): Use it. Do not skip address printing for pointers
3341 with a string format.
3342 (c_value_print): Doc update.
3343 * dwarf2read.c (read_array_type): Use make_vector_type.
3344 * gdbtypes.c (make_vector_type): New.
3345 (init_vector_type): Use it.
3346 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3347 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3348 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3349 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3350 (make_vector_type): New.
3351 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3352 Call the language print routine for string format.
3353 (print_scalar_formatted): Call val_print for string format. Handle
3354 unsigned original types for char format.
3355 (validate_format): Do not reject string format.
3356 * stabsread.c (read_type): Use make_vector_type.
3357 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3358
3359 2007-09-04 Michael Snyder <msnyder@access-company.com>
3360
3361 * expprint.c (print_subexp_standard): Check strchr for null.
3362 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3363
3364 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3365
3366 * stabsread.c (patch_block_status): Guard against null.
3367 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3368
3369 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3370
3371 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3372 in internal error message.
3373
3374 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3375 Daniel Jacobowitz <dan@codesourcery.com>
3376
3377 * infcmd.c (post_create_inferior): Update comment.
3378 (run_command_1): Always call post_create_inferior with 0 as
3379 from_tty.
3380
3381 * i386-cygwin-tdep.h: New.
3382 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3383 (win32_xfer_shared_library): Make it extern.
3384
3385 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3386 i386-cygwin-tdep.h.
3387 (win32_so_ops): Delete.
3388 (get_relocated_section_addrs): Delete.
3389 (solib_symbols_add): Delete.
3390 (register_loaded_dll): Delete.
3391 (win32_make_so): New.
3392 (handle_load_dll): Use win32_make_so.
3393 (win32_free_so): Free the passed in so.
3394 (win32_relocate_section_addresses): Delete.
3395 (win32_solib_create_inferior_hook): Delete.
3396 (handle_unload_dll): Don't add PE offset here. Free so with
3397 win32_free_so instead of free_so.
3398 (win32_special_symbol_handling): Delete.
3399 (get_win32_debug_event): Remove unneeded calls. Set state to
3400 TARGET_WAITKIND_LOADED on a dll unload.
3401 (do_initial_win32_stuff): Clear cygwin_load_start and
3402 cygwin_load_end.
3403 (map_code_section_args): Delete.
3404 (dll_code_sections_add): Delete.
3405 (core_section_load_dll_symbols): Delete.
3406 (win32_xfer_shared_libraries): New.
3407 (win32_current_sos): Delete.
3408 (win32_xfer_partial): New.
3409 (open_symbol_file_object): Delete.
3410 (in_dynsym_resolve_code): Delete.
3411 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3412 of win32_ops. Remove win32_so_ops settings. Don't set
3413 current_target_so_ops here.
3414
3415 * Makefile.in (i386_cygwin_tdep_h): New variable.
3416 (i386-cygwin-tdep.o): Update dependencies.
3417 (win32-nat.o): Update dependencies.
3418
3419 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3420 Daniel Jacobowitz <dan@codesourcery.com>
3421
3422 * gdbarch.sh (core_xfer_shared_libraries): New.
3423
3424 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3425
3426 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3427
3428 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3429 (xml_escape_text): New.
3430 * xml-support.h (xml_escape_text): Declare.
3431
3432 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3433 * config/i386/cygwin.mt (TDEPFILES): ... here.
3434
3435 * win32-nat.c: (fetch_elf_core_registers): Delete.
3436 (win32_elf_core_fn): Delete.
3437 (_initialize_core_win32): Delete.
3438
3439 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3440 "xml-support.h" and "gdbcore.h".
3441 (i386_win32_gregset_reg_offset): New.
3442 (I386_WIN32_SIZEOF_GREGSET): New.
3443 (i386_win32_regset_from_core_section): New.
3444 (win32_xfer_shared_library): New.
3445 (struct cpms_data): New.
3446 (core_process_module_section): New.
3447 (win32_core_xfer_shared_libraries): New.
3448 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3449 gregset_num_regs, sizeof_gregset members of tdep. Register
3450 regset_from_core_section and core_xfer_shared_libraries callbacks.
3451
3452 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3453 * gdbarch.h, gdbarch.c: Regenerate.
3454
3455 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3456
3457 * corelow.c (core_xfer_partial): Pass writebuf to
3458 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3459
3460 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3461
3462 * arm-tdep.h (arm_skip_stub): Declare.
3463 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3464 "gdbcore.h".
3465 (arm_pe_skip_trampoline_code): New function.
3466 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3467 gdbarch_skip_trampoline_code callback.
3468 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3469
3470 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3471
3472 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3473
3474 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3475
3476 * configure.ac: Add --with-expat.
3477 * configure: Regenerated.
3478
3479 2007-09-03 Andreas Schwab <schwab@suse.de>
3480
3481 * configure.ac: Accept --with-system-readline.
3482 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3483 * configure: Regenerate.
3484 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3485 substituted values.
3486 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3487
3488 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3489 Daniel Jacobowitz <dan@codesourcery.com>
3490
3491 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3492
3493 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3494
3495 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3496
3497 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3498
3499 * top.c (print_gdb_version): Update for GPL version 3.
3500
3501 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3502
3503 * NEWS: Mention the build-id .debug files verification.
3504
3505 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3508
3509 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3510
3511 * Makefile.in (symfile.o): Update dependencies.
3512 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3513 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3514 (struct build_id): New structure.
3515 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3516 (find_separate_debug_file): New variable BUILD_ID.
3517 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3518
3519 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3520
3521 * varobj.c (struct varobj): Fix comment
3522 for the type member not to lie when it can be
3523 NULL.
3524
3525 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3526
3527 Implement -var-info-path-expression.
3528
3529 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3530 Declare.
3531 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3532 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3533 * varobj.c (struct varobj): New field 'path_expr'.
3534 (c_path_expr_of_child, cplus_path_expr_of_child)
3535 (java_path_expr_of_child): New.
3536 (struct language_specific): New field path_expr_of_child.
3537 (varobj_create): Initialize the path_expr field.
3538 (varobj_get_path_expr): New.
3539 (new_variable): Initialize the path_expr field.
3540 (free_variable): Free the path_expr field.
3541 (adjust_value_for_children_access): New parameter
3542 WAS_TYPE.
3543 (c_number_of_children): Adjust.
3544 (c_describe_child): New parameter CFULL_EXPRESSION.
3545 Compute full expression.
3546 (c_value_of_child, c_type_of_child): Adjust.
3547 (cplus_number_of_children): Adjust.
3548 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3549 Compute full expression.
3550 (cplus_name_of_child, cplus_value_of_child)
3551 (cplus_type_of_child): Adjust.
3552 * varobj.h (varobj_get_path_expr): Declare.
3553
3554 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3555
3556 * mi/mi-cmd-var.c (print_varobj): If a varobj
3557 type is NULL, don't try to print it.
3558
3559 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3560
3561 * ppc-linux-nat.c (right_fill_reg): Delete.
3562 (supply_gregset): Use ppc_supply_gregset.
3563 (supply_fpregset): Use ppc_supply_fpregset.
3564 (fill_gregset): Use ppc_collect_gregset.
3565 (fill_fpregset): Use ppc_collect_fpregset.
3566 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3567 (right_supply_register, ppc_linux_supply_gregset): Delete.
3568 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3569 (ppc_linux_supply_fpregset): Delete.
3570 (ppc_linux_collect_gregset): New function.
3571 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3572 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3573 ppc_linux_supply_gregset, and ppc_collect_gregset.
3574 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3575 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3576 (ppc_linux_regset_from_core_section): Update.
3577 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3578 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3579 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3580 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3581 (ppcobsd_collect_gregset): Likewise.
3582 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3583 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3584 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3585 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3586 (rs6000_aix64_reg_offsets): Likewise.
3587 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3588 ppc_floating_point_unit_p.
3589 (rs6000_aix_collect_regset): Similarly.
3590 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3591 when regsize is larger than regcache register size.
3592 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3593 regcache register size.
3594 (ppc_greg_offset): New function, split out from..
3595 (ppc_supply_gregset): ..here. Separate code handling all regs from
3596 single reg case. Correct xer offset.
3597 (ppc_fpreg_offset): New function, split out from..
3598 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3599 single reg case.
3600 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3601 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3602 a fp unit, instead return if no fp.
3603
3604 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3605
3606 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3607 this code has not been compiled for two years.
3608
3609 2007-08-29 Michael Snyder <msnyder@access-company.com>
3610
3611 * event-top.c (gdb_readline2): Return after EOF.
3612
3613 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3614
3615 * symtab.c: Remove a function that has been commented out 3 years ago.
3616
3617 2007-08-29 Randolph Chung <tausq@debian.org>
3618
3619 * hppa-tdep.c (hppa32_cannot_fetch_register)
3620 (hppa64_cannot_fetch_register): New functions.
3621 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3622 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3623
3624 2007-08-28 Michael Snyder <msnyder@access-company.com>
3625
3626 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3627 check for null before calling check_typedef.
3628
3629 * NEWS: Mention Coverity bug fixes.
3630
3631 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3632
3633 * spu-tdep.c (spu_pointer_to_address): New function.
3634 (spu_integer_to_address): Likewise.
3635 (spu_gdbarch_init): Add spu_pointer_to_address and
3636 spu_integer_to_address to gdbarch.
3637
3638 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3639
3640 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3641
3642 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3643
3644 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3645 that contains the GDB license.
3646 * copying.awk: Adjust to the GPLv3 wording.
3647 * copying.c: Regenerate.
3648
3649 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3650
3651 * copying.awk: Protoization, and i18n markup.
3652
3653 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3654
3655 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3656 * copyright.sh: Likewise.
3657 * gdb-events.sh: Likewise.
3658 * gdb_gcore.sh: Likewise.
3659 * gdb_mbuild.sh: Likewise.
3660 * gdbarch.sh: Likewise.
3661 * observer.sh: Likewise.
3662 * features/feature_to_c.sh: Likewise.
3663 * regformats/regdat.sh: Likewise.
3664
3665 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3666
3667 Switch the license of all .c files to GPLv3.
3668 Switch the license of all .h files to GPLv3.
3669 Switch the license of all .cc files to GPLv3.
3670
3671 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3672
3673 * configure.ac: Switch license to GPLv3.
3674
3675 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3676
3677 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3678 determine the file's FPU type.
3679
3680 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3681
3682 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3683 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3684 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3685
3686 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3687
3688 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3689 Fix formatting.
3690 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3691 (elf_lookup_lib_symbol): Fix formatting.
3692
3693 2007-08-21 Michael Snyder <msnyder@access-company.com>
3694
3695 * dbxread.c (read_dbx_symtab): Guard null deref.
3696 Break up long line.
3697
3698 * valops.c (find_overload_match): Guard against NULL.
3699
3700 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3701
3702 * MAINTAINERS (Patch Champions): Remove self.
3703
3704 2007-08-21 Chris Smith <chris.smith@st.com>
3705
3706 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3707 line.
3708
3709 2007-08-18 Michael Snyder <msnyder@access-company.com>
3710
3711 * stabsread.c (dbx_lookup_type): Memory leak.
3712
3713 * event-loop.c (delete_async_signal_handler): Move pointer null
3714 test to before pointer dereference.
3715
3716 * ui-out.c (append_header_to_list): Possible cut and paste error.
3717
3718 * MAINTAINERS: white space tweak.
3719
3720 2007-08-17 Michael Snyder <msnyder@access-company.com>
3721
3722 * stack.c (print_frame): Memory leak.
3723
3724 * completer.c (filename_completer): Avoid memory leak.
3725 Remove unnecessary nested block.
3726
3727 * c-exp.y (parse_number): Memory leak.
3728
3729 * completer.c (location_completer): Must free 'fn_list', except
3730 in the one case where it is returned (as 'list').
3731
3732 * varobj.c (value_of_root): Memory leak.
3733
3734 * gdbtypes.h (virtual_base_list): Remove export decl.
3735 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3736 (virtual_base_index): Memory leak.
3737 (virtual_base_index_skip_primaries): Ditto.
3738
3739 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3740
3741 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3742 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3743 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3744 (xtensa_read_register): New function.
3745 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3746 (xtensa_insn_kind): New types.
3747 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3748 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3749 (xtensa_verify_config, xtensa_pseudo_register_read)
3750 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3751 (xtensa_store_return_value)
3752 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3753 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3754 (xtensa_frame_this_id, xtensa_frame_prev_register)
3755 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3756 (call0_frame_cache, call0_frame_get_reg_at_entry)
3757 (call0_classify_opcode, call0_track_op)
3758 (call0_analyze_prologue, call0_frame_cache): New functions.
3759
3760 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3761
3762 * breakpoint.c (bpstat_free): New.
3763 (bpstat_clear): Use bpstat_free.
3764 (delete_breakpoint): Document why we cannot
3765 remove bpstats from stop_bpstat.
3766 * breakpoint.h (bpstat_free): Declare.
3767
3768 2007-08-16 Michael Snyder <msnyder@access-company.com>
3769
3770 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3771
3772 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3773 Joel Brobecker <brobecker@adacore.com>
3774
3775 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3776
3777 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3778 Joel Brobecker <brobecker@adacore.com>
3779
3780 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3781 checkin guarding against NULL.
3782
3783 2007-08-14 Michael Snyder <msnyder@access-company.com>
3784
3785 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3786 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3787 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3788 go at beginning of new line.
3789
3790 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3791 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3792 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3793 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3794 tui-winsource.h, tui.c, tui.h: Function declarations and
3795 definitions, wrap long lines.
3796
3797 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3798 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3799 Reformat block comments to GNU standard.
3800
3801 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3802 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3803 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3804 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3805 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3806 spaces after periods, etc).
3807
3808 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3809 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3810 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3811 tui-winsource.h: Whitespace changes, fix pointer declarations
3812 to be consistant.
3813
3814 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3815 Michael Snyder <msnyder@access-company.com>
3816
3817 * ada-lang.c (field_alignment): Guard against NULL.
3818
3819 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3820
3821 * MAINTAINERS (Global Maintainers): Add self.
3822
3823 2007-08-14 Michael Snyder <msnyder@access-company.com>
3824
3825 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3826
3827 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3828
3829 * varobj.c (cplus_describe_child): Guard against null.
3830 Use "NULL" instead of "0" to initialize pointers.
3831
3832 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3833
3834 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3835 to match any gdbarch with matching OSABI. Set default ABI and FPU
3836 after running the OSABI handler.
3837
3838 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3839
3840 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3841 * config/i386/linux.mt (TDEPFILES): ...to here.
3842
3843 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3844
3845 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3846 the 'silent' parameter and code to implement that.
3847 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3848 prototype.
3849 * win32-nat.c: Adjust.
3850 * solib.c: Adjust.
3851
3852 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3853
3854 * breakpoint.c (update_breakpoints_after_exec): Don't
3855 set address to zero.
3856
3857 2007-08-13 Michael Snyder <msnyder@access-company.com>
3858
3859 * valops.c: Whitespace clean-up.
3860
3861 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3862
3863 * event-top.c (command_line_handler): Memory leak.
3864
3865 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3866 No need to make copy.
3867
3868 * source.c (find_source_lines): Require symtab 's'.
3869
3870 2007-08-11 Michael Snyder <msnyder@access-company.com>
3871
3872 * completer.c: Spelling fix in comments.
3873
3874 2007-08-10 Michael Snyder <msnyder@access-company.com>
3875
3876 * gdbtypes.c: Coding standard cleanup.
3877 * gdbtypes.c: Comment/whitespace cleanup.
3878
3879 * stabsread.c (read_huge_number): Attempt to compute value before
3880 values that it depends on.
3881
3882 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3883 (decode_objc): Use "NULL" instead of 0.
3884 (find_method): Ditto.
3885 (decode_all_digits): Ditto.
3886 (decode_dollar): Ditto.
3887
3888 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3889
3890 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3891
3892 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3893 after closing bfd.
3894
3895 * completer.c: Comment/whitespace cleanup.
3896
3897 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3898
3899 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3900
3901 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3902
3903 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3904 allocated file descriptors.
3905
3906 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3907
3908 * Makefile.in: Minor cleanup throughout; add some missing variables,
3909 add some missing rules, remove some rules that are no longer needed,
3910 and fix the dependencies in several rules.
3911
3912 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3913
3914 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3915 (scm_lang_h, scm_tags_h): New.
3916 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3917 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3918 * defs.h (enum language): Add `language_scm'.
3919
3920 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3921 opening.
3922
3923 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3924
3925 * MAINTAINERS (Write After Approval): Add myself.
3926
3927 2007-08-09 Michael Snyder <msnyder@access-company.com>
3928
3929 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3930
3931 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3932
3933 * solib-som.c (som_relocate_section_addresses): Stop saving
3934 the $CODE$ section in the so_list structure.
3935
3936 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3937
3938 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3939 (xtensa_register_group_t): Add entries for coprocessors.
3940 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3941 (xtensa_add_reggroups): Likewise.
3942 (xtensa_register_reggroup_p): Likewise.
3943 (xtensa_coprocessor_register_group): New function.
3944 (xtensa_cp): New.
3945
3946 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3947
3948 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3949
3950 2007-08-08 Michael Snyder <msnyder@access-company.com>
3951
3952 * target.c (target_read_string): Guard against null.
3953
3954 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3955
3956 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3957 (tui_set_layout_for_display_command): Mem leak.
3958
3959 * top.c (command_line_input): Memory leak.
3960
3961 * solib-svr4.c (open_symbol_file_object): Memory leak.
3962 (svr4_current_sos): Ditto.
3963 (enable_break): Ditto.
3964
3965 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3966
3967 * dwarf2read.c (add_partial_symbol): Memory leak.
3968
3969 2007-08-06 Michael Snyder <msnyder@access-company.com>
3970
3971 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3972
3973 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3974
3975 * macroexp.c (init_buffer): Remove testing code that overrides the
3976 caller's length guess.
3977 (gather_arguments): Use a larger initial size, now that the vector
3978 growth code has been exercised.
3979
3980 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3981
3982 * solib-target.c (solib_target_relocate_section_addresses): Add
3983 orig_delta to addr_high.
3984
3985 2007-08-04 Michael Snyder <msnyder@access-company.com>
3986
3987 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3988
3989 * breakpoint.c (print_one_breakpoint): Off by one error.
3990
3991 * tracepoint.c (add_register): Off by one error.
3992 (stringify_collection_list): Free malloc buffer.
3993
3994 2007-08-03 Michael Snyder <msnyder@access-company.com>
3995
3996 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3997 stop memory leak, straighten out cleanups.
3998
3999 * jv-lang.c (java_link_class_type): Guard against NULL.
4000
4001 2007-08-02 Michael Snyder <msnyder@access-company.com>
4002
4003 * gdbtypes.c (create_set_type): Test should only be done within
4004 the preceeding if block. Otherwise, variable is uninitialized.
4005
4006 * gdbtypes.c (check_typedef): Guard NULL.
4007
4008 2007-08-01 Michael Snyder <msnyder@access-company.com>
4009
4010 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4011 avoid dereference in lookup_cmd_1.
4012
4013 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4014 clean up long lines.
4015 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4016 (tui_alloc_win_info): Ditto.
4017 (tui_add_content_elements): Ditto.
4018 * tui/tui-file.c (tui_file_magic): Ditto.
4019
4020 2007-07-31 Michael Snyder <msnyder@access-company.com>
4021
4022 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4023 True and false paths are mutually exclusive.
4024
4025 * event-top.c (command_line_handler): Add pedantic return.
4026
4027 * f-valprint.c (info_common_command): Bail out to prevent null
4028 pointer deref. Break up a long line.
4029
4030 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4031
4032 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4033
4034 * printcmd.c (build_address_symbolic): Remove dead code and dead
4035 variable.
4036
4037 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4038
4039 * linespec.c (minsym_found): Advance to the next line if possible.
4040
4041 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4042
4043 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4044 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4045 solib-svr4.o, and add solib-target.o
4046
4047 2007-07-27 Michael Snyder <msnyder@access-company.com>
4048
4049 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4050
4051 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4052
4053 * MAINTAINERS (Write After Approval): Add myself.
4054
4055 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4056
4057 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4058 for include files.
4059
4060 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4061
4062 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4063
4064 2007-07-24 Michael Snyder <msnyder@access-company.com>
4065
4066 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4067 'buffer' must cover both branches that call strcmp (Coverity).
4068
4069 * stack.c (print_frame_args): Check return value of lookup_symbol.
4070
4071 * ax-gdb.c (find_field): Guard against null ptr.
4072
4073 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4074
4075 * regformats/reg-spu.dat: Fix order of npc, id registers.
4076
4077 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4078
4079 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4080 sections should always go to the executable file.
4081
4082 2004-07-20 Chris Dearman <chris@mips.com>
4083
4084 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4085 prologue instructions.
4086
4087 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4088
4089 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4090 a direct test.
4091
4092 2007-07-20 Chris Dearman <chris@mips.com>
4093 Maciej W. Rozycki <macro@mips.com>
4094
4095 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4096 description.
4097
4098 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4099 Daniel Jacobowitz <dan@codesourcery.com>
4100
4101 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4102 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4103 printf.
4104 * NEWS: Mention gdbserver DLL support.
4105
4106 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4107
4108 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4109
4110 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4111
4112 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4113 warning bug.
4114
4115 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4116
4117 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4118 instruction case.
4119
4120 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4121
4122 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4123 (mep_analyze_prologue): Add case for BRA instruction.
4124
4125 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4126
4127 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4128
4129 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4130
4131 * breakpoint.c: Include "top.h".
4132 (breakpoint_1): Don't set convenience variable $_ if server prefix
4133 is used.
4134 (_initialize_breakpoint): Describe this behaviour in command help.
4135
4136 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4137
4138 * solib-target.c (library_list_start_segment): Cast address to
4139 CORE_ADDR.
4140
4141 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4142
4143 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4144 for terminated processes.
4145
4146 2007-07-05 Michael Snyder <msnyder@access-company.com>
4147
4148 * event-top.c (cli_command_loop): Prompt string can (and should)
4149 be freed after call to readline (Coverity). Also move local var
4150 declarations into block where they are used.
4151
4152 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4153 should) be freed after call to readline (Coverity). Also move
4154 local var declarations into block where they are used.
4155
4156 2007-07-03 Andreas Schwab <schwab@suse.de>
4157
4158 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4159 /proc/../stat.
4160
4161 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4162 Thiago Bauermann <bauerman@br.ibm.com>
4163 Joseph S. Myers <joseph@codesourcery.com>
4164 Daniel Jacobowitz <dan@codesourcery.com>
4165
4166 * remote.c (remote_check_symbols): Use
4167 gdbarch_convert_from_func_ptr_addr.
4168 * infcall.c (find_function_addr): Handle function descriptors
4169 without debugging information.
4170 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4171 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4172 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4173 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4174 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4175 allow SEC_CODE and SEC_DATA.
4176 (enable_break): Update calls. Pass current_target to solib_add.
4177 Use gdbarch_convert_from_func_ptr_addr.
4178
4179 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4180 Daniel Jacobowitz <dan@codesourcery.com>
4181
4182 * symfile.c (print_transfer_performance): Avoid integer overflow.
4183 Use larger units.
4184
4185 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4186
4187 * cp-namespace.c (lookup_symbol_file): Add block to
4188 lookup_symbol_global call.
4189 * Makefile.in (solist_h): Add dependency on symtab header.
4190 (symtab.o): Add dependency on solist header.
4191 * solib.c (solib_global_lookup): New function.
4192 * solib-svr4.c (scan_dyntag): Likewise.
4193 (elf_locate_base): Call helper routine scan_dyntag.
4194 (elf_lookup_lib_symbol): New function.
4195 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4196 * solist.h (symtab.h): New include.
4197 (struct target_so_ops): New member lookup_lib_global_symbol.
4198 (solib_global_lookup): New prototype.
4199 * symtab.c: New include solist.h.
4200 (lookup_objfile_from_block): New function.
4201 (lookup_global_symbol_from_objfile): New function.
4202 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4203 (lookup_symbol_global): Call library-specific lookup procedure.
4204 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4205
4206 * NEWS: Document framework.
4207
4208 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4209
4210 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4211 to NULL.
4212
4213 * cli/cli-script.c (build_command_line): Update NULL check.
4214
4215 2007-07-02 Michael Snyder <msnyder@access-company.com>
4216
4217 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4218
4219 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4220
4221 * Makefile.in (XMLFILES): Add library-list.dtd.
4222 (ALLDEPFILES): Add solib-target.o.
4223 (solib-target.o): New rule.
4224 * remote.c (PACKET_qXfer_libraries): New constant.
4225 (remote_protocol_features): Add qXfer:libraries:read.
4226 (remote_wait): Recognize library stop replies.
4227 (remote_async_wait): Likewise. Fix typo.
4228 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4229 (init_remote_async_ops): Fix typo.
4230 (_initialize_remote): Register "set remote library-info-packet".
4231 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4232 * solib-target.c: New file.
4233 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4234 of textsection.
4235 (info_sharedlibrary_command): Likewise.
4236 (solib_add_library, solib_remove_library): New.
4237 * solist.h (struct so_list): Replace textsection with addr_low and
4238 addr_high.
4239 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4240 * NEWS: Describe new qXfer:libraries:read and shared library
4241 event support.
4242 * features/library-list.dtd: New.
4243
4244 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4245
4246 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4247 (start_remote): Use STOP_QUIETLY_REMOTE.
4248 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4249 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4250 Update to match shared library event breakpoint support. Only
4251 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4252 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4253 * fork-child.c (startup_inferior): Do not set
4254 inferior_ignoring_startup_exec_events
4255 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4256 declaration.
4257 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4258
4259 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4260
4261 * breakpoint.c (insert_bp_location): Remove dead code
4262 (DISABLE_UNSETTABLE_BREAK).
4263 (disable_breakpoints_in_shlibs)
4264 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4265
4266 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4267
4268 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4269 Call insert_bp_location.
4270
4271 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4272
4273 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4274 alias warning bug.
4275
4276 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4277
4278 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4279 objfiles.
4280
4281 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4282
4283 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4284 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4285 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4286 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4287 to display_gdb_prompt.
4288
4289 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4290
4291 PR symtab/2161
4292 * target.c (memory_xfer_partial): Do not continue past targets with
4293 all memory.
4294
4295 2007-06-30 Andreas Schwab <schwab@suse.de>
4296
4297 * m68k-tdep.c (m68k_ps_type): New.
4298 (m68k_init_types): New.
4299 (m68k_register_type): Use m68k_ps_type for PS register.
4300 (_initialize_m68k_tdep): Call m68k_init_types.
4301
4302 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4303 from the generic m68k arch.
4304
4305 2007-06-28 Michael Snyder <msnyder@access-company.com>
4306
4307 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4308 (Coverity).
4309
4310 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4311 gdb_assert before using return value of find_thread_pid (Coverity).
4312
4313 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4314
4315 * cli/cli-script.c (build_command_line): Add null pointer guard
4316 (Coverity).
4317
4318 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4319
4320 * linux-thread-db.c (thread_db_attach): Delete.
4321 (thread_db_detach): Typo fix. Call target_mourn_inferior
4322 instead of fixing up proc_handle.
4323 (have_threads_callback, have_threads): New functions.
4324 (thread_db_wait): Remove dead proc_handle.pid check. Only
4325 translate PTIDs if we have registered threads. Check for new
4326 threads if we have none.
4327 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4328 (find_new_threads_callback): Only enable event reporting if TID == 0.
4329 (same_ptid_callback): New.
4330 (thread_db_get_thread_local_address): Check for new threads.
4331 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4332 or to_post_startup_inferior.
4333
4334 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4335
4336 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4337 is always active if SOFTWARE_SINGLE_STEP_P is true.
4338 (resume): Use gdbarch_software_single_step[_p] instead of
4339 SOFTWARE_SINGLE_STEP[_P].
4340 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4341
4342 * gdbarch.sh (software_single_step): Remove target macro.
4343 * gdbarch.h, gdbarch.c: Regenerate.
4344
4345 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4346
4347 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4348 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4349 (struct gdbarch_swap, struct gdbarch_swap_registration,
4350 struct gdbarch_swap_registry, gdbarch_swap_registry,
4351 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4352 current_gdbarch_swap_in_hack): Remove.
4353 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4354 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4355 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4356 (deprecated_current_gdbarch_select_hack): Likewise.
4357 * gdbarch.h, gdbarch.c: Regenerate.
4358
4359 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4360
4361 * infrun.c (clear_proceed_status): Clean up stop_registers.
4362 (normal_stop): Allocate regcache for stop_registers.
4363 (struct inferior_status): Remove stop_registers member.
4364 (save_inferior_status): Do not save stop_registers.
4365 (restore_inferior_status): Do not restore stop_registers.
4366 (discard_inferior_status): Do not discard stop_registers.
4367 (build_infrun): Remove.
4368 (_initialize_infrun): Do not swap stop_registers.
4369
4370 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4371
4372 * remote.c (remote_address_masked): If remote_address_size is zero,
4373 default to target address size.
4374 (build_remote_gdbarch_data): Remove.
4375 (_initialize_remote): Do not swap remote_address_size.
4376
4377 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4378
4379 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4380 builtin_type_char, builtin_type_short, builtin_type_int,
4381 builtin_type_long, builtin_type_signed_char,
4382 builtin_type_unsigned_char, builtin_type_unsigned_short,
4383 builtin_type_unsigned_int, builtin_type_unsigned_long,
4384 builtin_type_float, builtin_type_double, builtin_type_long_double,
4385 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4386 builtin_type_bool, builtin_type_long_long,
4387 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4388 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4389 variable declaration with compatibility macro.
4390 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4391 builtin_type_char, builtin_type_short, builtin_type_int,
4392 builtin_type_long, builtin_type_signed_char,
4393 builtin_type_unsigned_char, builtin_type_unsigned_short,
4394 builtin_type_unsigned_int, builtin_type_unsigned_long,
4395 builtin_type_float, builtin_type_double, builtin_type_long_double,
4396 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4397 builtin_type_bool, builtin_type_long_long,
4398 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4399 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4400 (build_gdbtypes): Remove.
4401 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4402 opaque-type-resolution command here. Do not call
4403 deprecated_register_gdbarch_swap.
4404
4405 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4406
4407 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4408 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4409 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4410
4411 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4412 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4413 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4414 (build_parse): Remove.
4415 (_initialize_parse): Do not call build_parse. Do not register
4416 msym_ types for gdbarch-swapping.
4417
4418 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4419 instead of creating private type.
4420
4421 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4422 (_initialize_xcoffread): Do not initialized them.
4423 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4424
4425 * mdebugread.c (nodebug_func_symbol_type): Remove.
4426 (nodebug_var_symbol_type): Remove.
4427 (_initialize_mdebugread): Do not initialize them.
4428 (parse_symbol): Use builtin nodebug_ type instead of them.
4429 (parse_procedure): Likewise.
4430
4431 2007-06-21 Chris Dearman <chris@mips.com>
4432
4433 * printcmd.c (do_one_display): If display/i, start with an initial
4434 line feed to avoid bad layout if there is a branch delay slot.
4435
4436 2007-06-21 Nigel Stephens <nigel@mips.com>
4437 Maciej W. Rozycki <macro@mips.com>
4438
4439 * disasm.c (gdb_print_insn): Return the number of branch delay
4440 slot instructions too.
4441 * disasm.h (gdb_print_insn): Update prototype.
4442 * printcmd.c (branch_delay_insns): New variable to record the
4443 number of delay slot instructions after disassembling a branch.
4444 (print_formatted): Record the number of branch delay slot
4445 instructions.
4446 (do_examine): When disassembling, if the last instruction
4447 disassembled has any branch delay slots, then bump the count so
4448 that they get disassembled too.
4449 * tui/tui-disasm.c (tui_disassemble): Update the call to
4450 gdb_print_insn().
4451 * NEWS: Document the new behaviour.
4452
4453 2007-06-21 Andreas Schwab <schwab@suse.de>
4454
4455 * regcache.c (write_pc_pid): Restore missing else.
4456
4457 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4458
4459 * regcache.c (regcache_print): Use get_current_regcache ()
4460 instead of current_regcache.
4461
4462 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4463
4464 PR 4606
4465 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4466 instead of bfd_make_section_anyway.
4467 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4468 when clearing SEC_LOAD.
4469
4470 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4471
4472 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4473 registers for big-endian.
4474
4475 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4476
4477 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4478 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4479 * gdbarch.c, gdbarch.h: Regenerate.
4480
4481 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4482
4483 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4484 gdbarch_believe_pcc_promotion.
4485 * stabsread.c (define_symbol): Likewise.
4486 Remove unnecessary definition.
4487 * coffread.c (process_coff_symbol): Remove unnecessary code.
4488 * gdbarch.c, gdbarch.h: Regenerate.
4489
4490 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4491
4492 * configure.ac: Do not use ${objdir}.
4493 * configure: Regenerated.
4494
4495 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4496
4497 * gdbarch.sh (deprecated_register_size): Remove.
4498 * gdbarch.h, gdbarch.c: Regenerate.
4499
4500 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4501 by INT_REGISTER_SIZE.
4502 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4503 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4504 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4505 set_gdbarch_deprecated_register_size.
4506
4507 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4508
4509 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4510 gdbarch_deprecated_fp_regnum.
4511 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4512 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4513 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4514 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4515 (comment).
4516 * gdbarch.c, gdbarch.h: Regenerate.
4517
4518 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4519
4520 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4521 gdbarch_extract_return_value.
4522 * value.c (generic_use_struct_convention): Likewise (comment).
4523 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4524 * arch-utils.c (legacy_return_value): Likewise.
4525 * arch-utils.h (legacy_return_value): Likewise (comment).
4526 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4527 gdbarch_store_return_value.
4528 * stack.c (return_command): Likewise (comment).
4529 * arch-utils.h (legacy_return_value): Likewise (comment).
4530 * arch-utils.c (legacy_return_value): Likewise.
4531 * gdbarch.c, gdbarch.h: Regenerate.
4532
4533 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4534
4535 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4536 gdbarch_deprecated_use_struct_convention.
4537 * arch-utils.c (legacy_return_value): Likewise.
4538 * gdbarch.c, gdbarch.h: Regenerate.
4539
4540 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4541
4542 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4543 gdbarch_deprecated_function_start_offset.
4544 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4545 * linespec.c (minsym_found): Likewise.
4546 * infrun.c (handle_inferior_event): Likewise.
4547 * infcall.c (find_function_addr): Likewise.
4548 * cli/cli-cmds.c (disassemble_command): Likewise.
4549 * gdbarch.c, gdbarch.h: Regenerate.
4550
4551 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4552
4553 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4554 gdbarch_deprecated_reg_struct_has_addr.
4555 * infcall.c (call_function_by_hand): Likewise.
4556 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4557 * gdbarch_deprecated_reg_struct_has_addr_p.
4558 * infcall.c (call_function_by_hand): Likewise.
4559 * gdbarch.c, gdbarch.h: Regenerate.
4560
4561 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4562
4563 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4564 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4565 (sh_gdbarch_init): Remove
4566 set_gdbarch_deprecated_extract_struct_value_address.
4567 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4568 (sh64_gdbarch_init): Remove
4569 set_gdbarch_deprecated_extract_struct_value_address.
4570 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4571 (ia64_gdbarch_init): Remove
4572 set_gdbarch_deprecated_extract_struct_value_address.
4573 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4574 (frv_gdbarch_init): Remove
4575 set_gdbarch_deprecated_extract_struct_value_address.
4576 * gdbarch.c, gdbarch.h: Regenerate.
4577
4578 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4579
4580 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4581 * v850-tdep.c (v850_unwind_sp): Likewise.
4582 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4583 * stack.c (frame_info): Likewise.
4584 * stabsread.c (define_symbol): Likewise.
4585 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4586 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4587 (sh_unwind_sp): Likewise.
4588 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4589 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4590 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4591 (rs6000_frame_cache): Likewise.
4592 * rs6000-nat.c (store_register): Likewise.
4593 * remote-mips.c (mips_wait): Likewise.
4594 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4595 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4596 (ppc64_sysv_abi_push_dummy_call): Likewise.
4597 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4598 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4599 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4600 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4601 * m32r-rom.c (m32r_supply_register): Likewise.
4602 * frame.c (frame_sp_unwind): Likewise.
4603 * mips-tdep.c (mips_insn16_frame_cache)
4604 (mips_insn32_frame_cache): Likewise (comment).
4605 * m68klinux-nat.c (supply_gregset): Likewise.
4606 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4607 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4608 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4609 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4610 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4611 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4612 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4613 (cris_register_type, crisv32_register_type)
4614 (cris_dwarf2_frame_init_reg): Likewise.
4615 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4616 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4617 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4618 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4619
4620 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4621 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4622 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4623 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4624 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4625 * v850-tdep.c (v850_unwind_pc): Likewise.
4626 * stack.c (frame_info): Likewise.
4627 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4628 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4629 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4630 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4631 (sh_dsp_show_regs): Likewise.
4632 * shnbsd-tdep.c (shnbsd_supply_gregset)
4633 (shnbsd_collect_gregset): Likewise.
4634 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4635 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4636 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4637 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4638 (6000_register_reggroup_p, rs6000_unwind_pc)
4639 (rs6000_frame_cache): Likewise.
4640 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4641 (rs6000_store_inferior_registers): Likewise.
4642 * remote-mips.c (mips_wait, mips_load): Likewise.
4643 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4644 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4645 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4646 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4647 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4648 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4649 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4650 (store_ppc_registers, fill_gregset): Likewise.
4651 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4652 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4653 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4654 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4655 * m68klinux-nat.c (supply_gregset): Likewise.
4656 * irix5-nat.c (fill_gregset): Likewise.
4657 * i386-tdep.c (i386_unwind_pc): Likewise.
4658 * i386-linux-nat.c (i386_linux_resume): Likewise.
4659 * frame.c (get_prev_frame_1): Likewise.
4660 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4661 * dbug-rom.c (dbug_supply_register): Likewise.
4662 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4663 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4664 (cris_register_type, crisv32_register_type, crisv32_register_name)
4665 (cris_dwarf2_frame_init_reg, find_step_target)
4666 (cris_software_single_step, cris_supply_gregset)
4667 (cris_regnums): Likewise.
4668 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4669 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4670 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4671 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4672 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4673
4674 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4675 * dbug-rom.c (dbug_supply_register): Likewise.
4676 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4677 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4678 * win32-nat.c (win32_resume): Likewise.
4679 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4680 * m68k-tdep.c (m68k_register_type): Likewise.
4681 * m68klinux-nat.c (supply_gregset): Likewise.
4682
4683 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4684 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4685 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4686 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4687 (fv_reg_base_num, dr_reg_base_num): Likewise.
4688 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4689 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4690 (sh64_extract_return_value, sh64_store_return_value)
4691 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4692 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4693 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4694 (invalidate_cache): Likewise.
4695 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4696 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4697 (mipsnbsd_fill_fpreg): Likewise.
4698 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4699 (mipsnbsd_store_inferior_registers): Likewise.
4700 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4701 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4702 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4703 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4704 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4705 (fill_fpregset): Likewise.
4706 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4707 * i386-tdep.h (struct_return): Likewise (comment).
4708 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4709 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4710 (go32_store_registers): Likewise.
4711 * alpha-tdep.c (alpha_next_pc): Likewise.
4712 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4713 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4714 (alphabsd_store_inferior_registers): Likewise.
4715 * core-regset.c (fetch_core_registers): Likewise.
4716 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4717
4718 * gdbarch.c, gdbarch.h: Regenerate.
4719
4720 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4721
4722 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4723 * dbxread.c (start_psymtab): Check HAVE_ELF.
4724 (aout_sym_fns): Likewise.
4725 * elfread.c (elf_symfile_segments): New.
4726 (elf_sym_fns): Add elf_symfile_segments.
4727 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4728 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4729 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4730 * somread.c (som_sym_fns): Use default_symfile_segments.
4731 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4732 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4733 (default_symfile_segments): New function.
4734 (syms_from_objfile): Update call to find_sym_fns.
4735 (symfile_get_segment_data, free_symfile_segment_data): New.
4736 (symfile_map_offsets_to_segments): New.
4737 (symfile_find_segment_sections): New.
4738 * symfile.h (struct symfile_segment_data): New.
4739 (struct sym_fns): Add sym_segments.
4740 (default_symfile_segments, symfile_get_segment_data)
4741 (free_symfile_segment_data): New prototypes.
4742 (symfile_map_offsets_to_segments): Likewise.
4743 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4744 * Makefile.in (COMMON_OBS): Remove elfread.o.
4745 (elf_internal_h): New.
4746 (elfread.o): Update.
4747 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4748 compiled.
4749 * config.in, configure: Regenerated.
4750 * NEWS: Mention qOffsets changes.
4751
4752 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4753
4754 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4755 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4756 Replace global variable declaration with compatibility macro.
4757 (struct builtin_m2_type): New data type.
4758 (builtin_m2_type): Add prototype.
4759 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4760 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4761 Remove global variables.
4762 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4763 (build_m2_types): New function.
4764 (m2_type_data): New variable.
4765 (builtin_m2_type): New function.
4766 (_initialize_m2_language): Do not build data types. Register
4767 m2_type_data per-gdbarch data.
4768
4769 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4770
4771 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4772 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4773 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4774 builtin_type_f_real_s8, builtin_type_f_real_s16,
4775 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4776 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4777 variable declaration with compatibility macro.
4778 (struct builtin_f_type): New data type.
4779 (builtin_f_type): Add prototype.
4780 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4781 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4782 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4783 builtin_type_f_real_s8, builtin_type_f_real_s16,
4784 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4785 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4786 (f_language_arch_info): Use builtin_f_type instead of variables.
4787 (build_fortran_types): Build builtin_f_type structure instead of
4788 setting global type variables.
4789 (f_type_data): New variable.
4790 (builtin_f_type): New function.
4791 (_initialize_f_language): Do not call build_fortran_types. Do not
4792 swap global type variables. Register f_type_data per-gdbarch data.
4793
4794 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4795
4796 * f-lang.c (_initialize_f_language): Do not initialize or
4797 swap builtin_type_string.
4798
4799 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4800
4801 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4802 value_of_builtin_frame_reg): Remove.
4803 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4804 inactive call to value_of_builtin_frame_reg.
4805
4806 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4807
4808 * gdbarch.sh (bfd_vma_bit): Remove.
4809 * gdbarch.c, gdbarch.h: Regenerate.
4810
4811 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4812 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4813 (build_gdbtypes): Do not initialize it.
4814 (_initialize_gdbtypes): Do not swap it.
4815
4816 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4817
4818 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4819 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4820 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4821 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4822 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4823 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4824 builtin_type_vec64, builtin_type_vec128): Remove.
4825 (init_simd_type): Remove.
4826 (init_vector_type): Make global.
4827 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4828 (build_gdbtypes): Do not build vector types.
4829 (_initialize_gdbtypes): Do not swap vector types.
4830 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4831 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4832 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4833 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4834 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4835 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4836 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4837 (init_vector_type): Add prototype.
4838
4839 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4840 i386_sse_type members.
4841 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4842 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4843 (i386_init_types): Do not build vector types.
4844 (i386_mmx_type, i386_sse_type): New functions.
4845 (i386_register_type): Call them instead of using global variables.
4846 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4847 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4848 of using global variable.
4849
4850 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4851 and ppc_builtin_type_vec128 members.
4852 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4853 (rs6000_builtin_type_vec128): Likewise.
4854 (rs6000_register_type): Call them instead of using builtin_type_vec64
4855 and builtin_type_vec128.
4856 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4857
4858 * spu-tdep.c (struct gdbarch_tdep): New data type.
4859 (spu_builtin_type_vec128): Remove variable.
4860 (spu_builtin_type_vec128): New function.
4861 (spu_register_type): Call it instead of using global variable.
4862 (spu_gdbarch_init): Allocate tdep structure.
4863 (spu_init_vector_type): Remove function.
4864 (_initialize_spu_tdep): Do not call it.
4865
4866 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4867
4868 * amd64-tdep.c (struct amd64_register_info): Remove.
4869 (amd64_register_info): Remove.
4870 (amd64_register_names): New static variable.
4871 (AMD64_NUM_REGS): Use amd64_register_names instead of
4872 amd64_register_info.
4873 (amd64_register_name): Likewise.
4874 (amd64_register_type): Do not refer to amd64_register_info.
4875
4876 * s390-tdep.c (struct s390_register_info): Remove.
4877 (s390_register_info): Remove.
4878 (s390_register_name): Do not refer to s390_register_info.
4879 (s390_register_type): Likewise.
4880
4881 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4882 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4883 (sparc64_register_names, sparc64_pseudo_register_names): New.
4884 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4885 sparc64_register_names and sparc64_pseudo_register_names instead of
4886 sparc64_register_info and sparc64_pseudo_register_info.
4887 (sparc64_register_name): Likewise.
4888 (sparc64_register_type): Do not refer to sparc64_register_info
4889 and sparc64_pseudo_register_info.
4890
4891 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4892
4893 * c-lang.c (cplus_builtin_types): Remove.
4894 (enum cplus_primitive_types): New data type.
4895 (cplus_language_arch_info): New function.
4896 (cplus_language_defn): Set la_language_arch_info member. Do not set
4897 la_builtin_type_vector and string_char_type members.
4898
4899 * f-lang.c (f_builtin_types): Remove.
4900 (enum f_primitive_types): New data type.
4901 (f_language_arch_info): New function.
4902 (f_language_de): Set la_language_arch_info member. Do not set
4903 la_builtin_type_vector and string_char_type members.
4904
4905 * m2-lang.c (m2_builtin_types): Remove.
4906 (enum m2_primitive_types): New data type.
4907 (m2_language_arch_info): New function.
4908 (m2_language_defn): Set la_language_arch_info member. Do not set
4909 la_builtin_type_vector and string_char_type members.
4910
4911 * objc-lang.c (objc_builtin_types): Remove.
4912 (objc_language): Set la_language_arch_info member. Do not set
4913 la_builtin_type_vector and string_char_type members.
4914
4915 * p-lang.c (pascal_builtin_types): Remove.
4916 (enum pascal_primitive_types): New data type.
4917 (pascal_language_arch_info): New function.
4918 (pascal_language_defn): Set la_language_arch_info member. Do not set
4919 la_builtin_type_vector and string_char_type members.
4920
4921 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4922
4923 * regcache.c (struct regcache): Add ptid_t member.
4924 (regcache_xmalloc): Initialize it.
4925 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4926 (regcache_dup): Likewise.
4927 (regcache_dup_no_passthrough): Likewise.
4928 (current_regcache): Make static.
4929 (registers_ptid): Remove variable.
4930 (get_thread_regcache): New function.
4931 (get_current_regcache): New function.
4932 (registers_changed): Implement by freeing current regcache.
4933 (regcache_raw_read): Do not refer to current_regcache. Set
4934 inferior_ptid to regcache->ptid while calling target routines.
4935 (regcache_raw_write): Likewise.
4936 (regcache_raw_supply): Do not refer to current_regcache.
4937 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4938 (write_pc_pid): Likewise.
4939 (build_regcache): Remove.
4940 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4941 or deprecated_register_gdbarch_swap. Do not initialize
4942 registers_ptid.
4943 * regcache.h (get_current_regcache): Add prototype.
4944 (get_thread_regcache): Likewise.
4945 (current_regcache): Remove declaration.
4946
4947 * corelow.c (core_open): Replace current_regcache by
4948 get_current_regcache ().
4949 * frame.c (frame_pop): Likewise.
4950 (put_frame_register): Likewise.
4951 (get_current_frame, create_new_frame): Likewise.
4952 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4953 * stack.c (return_command): Likewise.
4954 * infcall.c (call_function_by_hand): Likewise.
4955 * infrun.c (resume): Likewise.
4956 (save_inferior_status, restore_inferior_status): Likewise.
4957 * linux-fork.c (fork_load_infrun_state): Likewise.
4958 (fork_save_infrun_state): Likewise.
4959 * win32-nat.c (win32_resume): Likewise.
4960 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4961 * monitor.c (monitor_wait): Likewise.
4962 * remote.c (remote_wait): Likewise.
4963 * remote-mips.c (mips_wait): Likewise.
4964
4965 * bsd-kvm.c (bsd_kvm_open): Likewise
4966 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4967 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4968 * i386-linux-nat.c (i386_linux_resume): Likewise.
4969 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4970 (ia64_linux_stopped_data_address): Likewise.
4971
4972 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4973 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4974 * mep-tdep.c (current_me_module, current_options): Likewise.
4975 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4976
4977 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4978 regcache instead of current_regcache. Call target_fetch_registers.
4979 (linux_nat_corefile_thread_callback): Update call site.
4980 (linux_nat_do_registers): Likewise.
4981 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4982 of current_regcache.
4983 (procfs_make_note_section): Likewise.
4984 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4985 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4986 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4987 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4988
4989 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4990
4991 * regcache.c (read_register, read_register_pid): Remove.
4992 (write_register, write_register_pid): Likewise.
4993 * regcache.h (read_register, read_register_pid): Remove prototype.
4994 (write_register, write_register_pid): Likewise.
4995
4996 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4997
4998 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4999 (write_pc): Likewise. Remove default implementation, add predicate.
5000 * gdbarch.c, gdbarch.h: Regenerate.
5001 * regcache.c (read_pc_pid): Use current regcache instead of calling
5002 read_register_pid.
5003 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5004 case inline.
5005 (generic_target_write_pc): Remove.
5006 * inferior.h (generic_target_write_pc): Remove.
5007 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5009 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5010 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5011 * sh-tdep.c (sh_gdbarch_init): Likewise.
5012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5013
5014 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5015 argument. Use REGCACHE instead of calling read_register_pid.
5016 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5017 * hppa-tdep.c (hppa_read_pc): Likewise.
5018 * hppa-tdep.h (hppa_read_pc): Likewise.
5019 * ia64-tdep.c (ia64_read_pc): Likewise.
5020 * m32r-tdep.c (m32r_read_pc): Likewise.
5021 * mep-tdep.c (mep_read_pc): Likewise.
5022 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5023 * spu-tdep.c (spu_read_pc): Likewise.
5024
5025 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5026 argument. Use REGCACHE instead of calling write_register_pid.
5027 * avr-tdep.c (avr_write_pc): Likewise.
5028 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5029 * hppa-tdep.c (hppa_write_pc): Likewise.
5030 * hppa-tdep.h (hppa_write_pc): Likewise.
5031 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5032 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5033 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5034 * ia64-tdep.c (ia64_write_pc): Likewise.
5035 * ia64-tdep.h (ia64_write_pc): Likewise.
5036 * m32r-tdep.c (m32r_write_pc): Likewise.
5037 * m88k-tdep.c (m88k_write_pc): Likewise.
5038 * mep-tdep.c (mep_write_pc): Likewise.
5039 * mips-tdep.c (mips_write_pc): Likewise.
5040 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5041 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5042 * sparc-tdep.c (sparc_write_pc): Likewise.
5043 * spu-tdep.c (spu_write_pc): Likewise.
5044
5045 * mips-tdep.c (read_signed_register): Remove.
5046 (read_signed_register_pid): Likewise.
5047 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5048 Use REGCACHE instead of calling read_signed_register_pid.
5049
5050 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5051
5052 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5053 * gdbarch.c, gdbarch.h: Regenerate.
5054 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5055 (push_dummy_code): Likewise. Pass it to callee.
5056 (call_function_by_hand): Pass current regcache to push_dummy_code.
5057
5058 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5059 argument. Use it instead of current_regcache.
5060
5061 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5062 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5063
5064 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5065
5066 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5067 * gdbarch.c, gdbarch.h: Regenerate.
5068 * infrun.c (handle_inferior_event): Pass current frame to
5069 gdbarch_get_longjmp_target.
5070
5071 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5072 Read registers from FRAME instead of using read_register.
5073 Use get_frame_arch instead of current_gdbarch.
5074 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5075 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5076 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5077 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5078 (mips64_linux_get_longjmp_target): Likewise.
5079 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5080
5081 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5082
5083 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5084 * gdbarch.c, gdbarch.h: Regenerate.
5085 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5086 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5087 * infrun.c (handle_inferior_event): Pass current frame to
5088 gdbarch_skip_trampoline_code and skip_language_trampoline.
5089
5090 * language.c (unk_lang_trampoline): Add FRAME argument.
5091 (skip_language_trampoline): Add FRAME argument. Pass it to
5092 skip_trampoline callback.
5093 * language.h: Add forward declaration of struct frame_info.
5094 (struct language_defn): Add FRAME argument to skip_trampoline.
5095 (skip_language_trampoline): Add FRAME argument.
5096 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5097 to skip_trampoline callback.
5098 * cp-abi.h: Add forward declaration of struct frame_info.
5099 (cplus_skip_trampoline): Add FRAME argument.
5100 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5101 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5102 to gdbarch_skip_trampoline_code.
5103 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5104 to gdbarch_skip_trampoline_code.
5105
5106 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5107 * symtab.h (find_solib_trampoline_target): Likewise.
5108 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5109 find_solib_trampoline_target.
5110
5111 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5112 from FRAME instead of calling read_register.
5113
5114 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5115 argument. Read registers from FRAME instead of using read_register.
5116 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5117 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5118
5119 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5120 argument.
5121
5122 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5123
5124 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5125 registers from FRAME instead of using read_signed_register.
5126
5127 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5128 argument.
5129 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5130 instead of using read_register.
5131 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5132 ppc64_standard_linkage_target.
5133 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5134 Pass it to find_solib_trampoline_target. Read registers from FRAME
5135 instead of using read_register.
5136
5137 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5138 argument.
5139
5140 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5141
5142 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5143 FRAME argument.
5144 * gdbarch.c, gdbarch.h: Regenerate.
5145 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5146
5147 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5148 registers from FRAME instead of using read_register.
5149 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5150 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5151 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5152 argument by FRAME.
5153
5154 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5155 from FRAME instead of using read_register.
5156 (thumb_get_next_pc): Likewise.
5157 (arm_get_next_pc): Likewise.
5158 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5159 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5160 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5161 argument by FRAME.
5162
5163 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5164 from FRAME instead of using read_register.
5165 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5166 to find_step_target.
5167
5168 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5169 from FRAME instead of using read_register / read_signed_register.
5170 (extended_mips16_next_pc): Likewise.
5171 (mips16_next_pc): Likewise.
5172 (mips_next_pc): Likewise.
5173 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5174 to mips_next_pc. Use get_frame_pc instead of read_pc.
5175 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5176 argument by FRAME.
5177
5178 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5179 of current frame. Read registers from FRAME.
5180 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5181 branch_dest. Use get_frame_pc instead of read_pc.
5182 (rs6000_software_single_step): Likewise.
5183 (bl_to_blrl_insn_p): Do not call branch_dest.
5184 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5185 argument by FRAME.
5186
5187 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5188 Read registers from FRAME instead of current regcache.
5189 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5190 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5191 * sparc-tdep.c (sparc_address_from_register): Remove.
5192 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5193 GDBARCH. Pass FRAME to step_trap callback.
5194 (sparc_step_trap): Add FRAME argument.
5195 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5196 to sparc_analyze_control_transfer. Read registers from FRAME instead
5197 of calling sparc_address_from_register.
5198 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5199 step_trap callback.
5200 (sparc_address_from_register): Remove prototype.
5201 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5202 (sparcnbsd_step_trap): Add FRAME argument.
5203
5204 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5205 by FRAME. Read registers from FRAME instead of REGCACHE.
5206
5207 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5208
5209 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5210 instead of calling read_register.
5211
5212 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5213 calling write_register.
5214
5215 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5216 calling write_register.
5217
5218 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5219 instead of calling read_register.
5220 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5221 instead of calling read_register and write_register.
5222
5223 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5224 instead of current_regcache.
5225
5226 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5227 of calling write_register.
5228 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5229 parameter instead of current_regcache.
5230
5231 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5232 instead of calling read_register.
5233 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5234 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5235 (mips_n32n64_push_dummy_call): Likewise.
5236 (mips_o32_push_dummy_call): Likewise.
5237 (mips_o64_push_dummy_call): Likewise.
5238
5239 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5240 parameter instead of current_regcache.
5241
5242 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5243 Use it instead of read_register and write_register.
5244 (xtensa_register_read_masked): Likewise.
5245 (xtensa_pseudo_register_read): Update call.
5246 (xtensa_pseudo_register_write): Likewise.
5247 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5248 instead of calling read_register.
5249 (xtensa_push_dummy_call): Update comment.
5250
5251 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5252
5253 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5254 by frame_unwind_register_signed calls.
5255 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5256 frame allocations when called with NULL NEXT_FRAME parameter.
5257 (read_next_frame_reg): Remove.
5258
5259 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5260 instead of reading the FPSCR register.
5261 (sh_frame_cache): Pass unwound FPSCR register value to
5262 sh_analyze_prologue.
5263 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5264
5265 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5266 instead of reading the CTBP register.
5267 (v850_frame_cache): Pass unwound CTBP register value to
5268 v850_analyze_prologue.
5269
5270 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5271
5272 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5273 * sh-tdep.c (sh_show_regs): Likewise.
5274 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5275 (sh_generic_show_regs): Add FRAME parameter. Use register
5276 values from that frame instead of calling read_register.
5277 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5278 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5279 sh_dsp_show_regs): Likewise.
5280 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5281 sh64_show_regs): Likewise.
5282
5283 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5284
5285 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5286 current regcache instead of calling read_register.
5287
5288 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5289
5290 * mep-tdep.c (current_me_module): Read from current regcache
5291 instead of calling read_register.
5292 (current_options): Likewise.
5293
5294 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5295
5296 * cris-tdep.c (cris_stopped_data_address): Read register values
5297 from current frame instead of calling read_register.
5298 * frv-tdep.c (frv_stopped_data_address): Likewise.
5299
5300 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5301
5302 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5303 instead of write_register (PC_REGNUM, ...).
5304
5305 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5306
5307 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5308 explaining why the PC adjustment code is necessary.
5309
5310 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5311
5312 * m68k-tdep.h (enum m68k_flavour): New.
5313 (struct gdbarch_tdep): New fields
5314 float_return, flavour and fpregs_present.
5315 * m68k-tdep.c (m68k_register_type): Use
5316 fpregs_present and conditionalize floating
5317 registers type on flavour.
5318 (m68k_register_names): New.
5319 (m68k_register_name): Use the above.
5320 (m68k_convert_register_p): Consult fpregs_present.
5321 (m68k_register_to_value, m68k_value_to_register):
5322 Use register_type to obtain the type of floating
5323 point registers.
5324 (m68k_svr4_extract_return_value): Check tdep->float_return.
5325 Use register_type to get the type of floating
5326 point regiters.
5327 (m68k_svr4_store_return_value): Likewise.
5328 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5329 (m68k_analyze_register_saves): Likewise.
5330 (m68k_gdbarch_init): Extract infromation
5331 from XML description, if present. Guess coldfire by
5332 looking at the file, if present. Conditionalize
5333 setting of long double format. Set decr_pc_after_break
5334 to 2 on coldfire and fido. Enable XML-driven
5335 register description.
5336 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5337 size of tdep->fpreg_type, as opposed to hardcoded value.
5338 * Makefile.in (m68k-tdep.o): Update dependencies.
5339
5340 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5341
5342 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5343 qXfer:spu:write remote packet types.
5344
5345 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5346
5347 * xml-tdesc.c (tdesc_start_target): New.
5348 (target_attributes): New.
5349 (tdesc_elements): Use it.
5350 * features/gdb-target.dtd: Add #FIXED version attribute for
5351 <target>.
5352
5353 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5354
5355 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5356
5357 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5358
5359 * fork-child.c (fork_inferior): Update comment.
5360
5361 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5362
5363 * features/Makefile: Generate regformats for mips-linux and
5364 mips64-linux.
5365 * features/sort-regs.xsl: Correct typo.
5366 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5367 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5368 files.
5369
5370 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5371
5372 * config/mips/linux.mh (TDEP_XML): New.
5373 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5374 * mips-linux-nat.c (mips_linux_register_addr): Handle
5375 MIPS_RESTART_REGNUM.
5376 (mips64_linux_register_addr): Likewise.
5377 (super_xfer_partial, mips_linux_xfer_partial): New.
5378 (_initialize_mips_linux_nat): Add them to the target_ops.
5379 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5380 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5381 (mips_linux_o32_sigframe_init)
5382 (mips_linux_n32n64_sigframe_init): Likewise.
5383 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5384 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5385 "org.gnu.gdb.mips.linux" feature.
5386 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5387 (mips_linux_restart_reg_p): New prototype.
5388 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5389 initialization routine.
5390 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5391
5392 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5393
5394 * Makefile.in (mips-tdep.o): Update.
5395 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5396 (mips_n32_n64_aliases, mips_register_aliases): New.
5397 (mips_register_name): Call tdesc_register_name.
5398 (mips_tdesc_register_reggroup_p): New.
5399 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5400 (mips_gdbarch_init): Add target-described register support.
5401 Register aliases for register names.
5402 * target-descriptions.c (tdesc_register_name): Make global.
5403 (tdesc_register_in_reggroup_p): New function, broken out from
5404 tdesc_register_reggroup_p.
5405 (tdesc_register_reggroup_p): Use it.
5406 * target-descriptions.h (tdesc_register_name)
5407 (tdesc_register_in_reggroup_p): New prototypes.
5408 * NEWS: Correct formatting. Mention MIPS register support.
5409 * features/mips-cp0.xml, features/mips-fpu.xml,
5410 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5411 features/mips64-cpu.xml: New files.
5412
5413 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5414
5415 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5416 * valops.c (value_cast): Likewise.
5417 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5418 * ui-out.c (ui_out_field_core_addr): Likewise.
5419 * tracepoint.c (tracepoints_info): Likewise.
5420 * symtab.c (print_msymbol_info): Likewise.
5421 * solib-irix.c (irix_current_sos)
5422 (irix_open_symbol_file_object): Likewise.
5423 * remote.c (build_remote_gdbarch_data): Likewise.
5424 * prologue-value.c (make_pv_area): Likewise.
5425 * procfs.c (info_mappings_callback): Likewise.
5426 * printcmd.c (print_scalar_formatted)
5427 (deprecated_print_address_numeric): Likewise.
5428 * memattr.c (mem_info_command): Likewise.
5429 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5430 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5431 * exec.c (print_section_info): Likewise.
5432 * dwarf2read.c (read_subrange_type): Likewise.
5433 * dwarf2loc.c (find_location_expression): Likewise.
5434 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5435 (signed_address_type, execute_stack_op): Likewise.
5436 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5437 * gdbarch.c, gdbarch.h: Regenerate.
5438
5439 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5440
5441 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5442 * arch-utils.c (show_architecture): Likewise.
5443 * remote-mips.c (mips_open): Likewise
5444 * nto-tdep.c (nto_find_and_open_solib)
5445 (nto_init_solib_absolute_prefix): Likewise.
5446 * nto-procfs (procfs_open): Likewise.
5447 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5448 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5449 * gdbarch.c, gdbarch.h: Regenerate.
5450
5451 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5452
5453 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5454 * gdbtypes.c (build_flt): Likewise.
5455 * gdbarch.c, gdbarch.h: Regenerate.
5456
5457 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5458
5459 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5460 gdbarch_breakpoint_from_pc.
5461 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5462 * remote.c (remote_insert_breakpoint)
5463 (remote_insert_hw_breakpoint): Likewise.
5464 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5465 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5466 * breakpoint.h (bp_target_info): Likewise (comment).
5467 * breakpoint.c (read_memory_nobpt): Likewise.
5468 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5469 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5470 * gdbarch.c, gdbarch.h: Regenerate.
5471
5472 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5473
5474 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5475 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5476 * solib-pa64.c (read_dynamic_info): Likewise.
5477 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5478 * solib.c (info_sharedlibrary_command): Likewise.
5479 * s390-nat.c (SUBOFF): Likewise.
5480 * p-valprint.c (pascal_val_print): Likewise.
5481 * procfs.c (info_proc_mappings): Likewise.
5482 * printcmd.c (decode_format): Likewise.
5483 * nto-tdep.c (nto_truncate_ptr): Likewise.
5484 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5485 (mips64_linux_get_longjmp_target): Likewise.
5486 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5487 * jv-valprint.c (java_value_print): Likewise.
5488 * jv-lang.c (get_java_object_header_size): Likewise.
5489 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5490 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5491 (hppa_hpux_unwind_adjust_stub): Likewise.
5492 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5493 * gdbtypes.c (make_pointer_type, make_reference_type)
5494 (smash_to_memberptr_type): Likewise.
5495 * gdbarch.c, gdbarch.h: Regenerate.
5496
5497 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5498
5499 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5500 (print_gp_register_row): Stop before printing a register bigger
5501 than the ABI register size.
5502 (mips_print_registers_info): Update call to mips_print_register.
5503
5504 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5505
5506 * expression.h (enum exp_opcode): Document a register name for
5507 OP_REGISTER.
5508 * parse.c (write_dollar_variable): Write the register name for
5509 OP_REGISTER.
5510 (operator_length_standard): Expect the register name following
5511 OP_REGISTER.
5512 * ada-lang.c (resolve_subexp): Likewise.
5513 * ax-gdb.c (gen_expr): Likewise.
5514 * eval.c (evaluate_subexp_standard): Likewise.
5515 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5516 Likewise.
5517 * tracepoint.c (encode_actions): Likewise.
5518
5519 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5520
5521 * utils.c (set_screen_size): Use INT_MAX for default columns.
5522
5523 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5524
5525 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5526 qXfer:spu:write packet types.
5527
5528 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5529
5530 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5531 * gdbarch.c, gdbarch.h: Regenerate.
5532
5533 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5534
5535 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5536 gdbarch_stab_reg_to_regnum.
5537 * stabsread.c (define_symbol): Likewise.
5538 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5539 gdbarch_ecoff_reg_to_regnum.
5540 * mdebugread.c (parse_symbol): Likewise.
5541 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5542 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5543 gdbarch_dwarf_reg_to_regnum.
5544 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5545 * coffread.c (process_coff_symbol): Likewise.
5546 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5547 gdbarch_dwarf2_reg_to_regnum.
5548 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5549 (locexpr_describe_location): Likewise.
5550 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5551 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5552 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5553 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5554 * gdbarch.c, gdbarch.h: Regenerate.
5555
5556 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5557
5558 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5559 gdbarch_smash_text_address.
5560 * somread.c (som_symtab_read): Likewise.
5561 * elfread.c (record_minimal_symbol): Likewise.
5562 * dbxread.c (process_one_symbol): Likewise.
5563 * coffread.c (coff_symtab_read): Likewise.
5564 * gdbarch.c, gdbarch.h: Regenerate.
5565
5566 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5567
5568 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5569 * findvar.c (value_from_register): Likewise.
5570 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5571 * valops.c (value_assign): Likewise.
5572 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5573 gdbarch_convert_register_p.
5574 * findvar.c (value_from_register): Likewise.
5575 * valops.c (value_assign): Likewise.
5576 * gdbarch.c, gdbarch.h: Regenerate.
5577
5578 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5579
5580 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5581 gdbarch_register_sim_regno.
5582 * sim-regno.h (sim_regno): Likewise (comment).
5583 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5584 * gdbarch.c, gdbarch.h: Regenerate.
5585
5586 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5587
5588 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5589 gdbarch_virtual_frame_pointer.
5590 * tracepoint.c (encode_actions): Likewise.
5591 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5592 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5593 * gdbarch.c, gdbarch.h: Regenerate.
5594
5595 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5596
5597 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5598 * p-lang.c (pascal_create_fundamental_type): Likewise.
5599 * objc-lang.c (objc_create_fundamental_type): Likewise.
5600 * mdebugread.c (_initialize_mdebugread): Likewise.
5601 * m2-lang.c (m2_create_fundamental_type)
5602 (_initialize_m2_language): Likewise.
5603 * gdbtypes.c (build_gdbtypes): Likewise.
5604 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5605 * doublest.c (floatformat_from_length): Likewise.
5606 * c-lang.c (c_create_fundamental_type): Likewise.
5607 * ada-lang.c (ada_create_fundamental_type)
5608 (ada_language_arch_info): Likewise.
5609 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5610 * value.c (unpack_double): Likewise (comment).
5611 * gdbtypes.c (build_gdbtypes): Likewise.
5612 * doublest.c (floatformat_from_length): Likewise.
5613 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5614 * valarith.c (value_binop): Likewise.
5615 * p-lang.c (pascal_create_fundamental_type): Likewise.
5616 * objc-lang.c (objc_create_fundamental_type): Likewise.
5617 * mdebugread.c (_initialize_mdebugread): Likewise.
5618 * m2-lang.c (m2_create_fundamental_type): Likewise.
5619 * gdbtypes.c (build_gdbtypes): Likewise.
5620 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5621 * doublest.c (floatformat_from_length): Likewise.
5622 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5623 * c-lang.c (c_create_fundamental_type): Likewise.
5624 * ada-lex.l (processReal): Likewise.
5625 * ada-lang.c (ada_create_fundamental_type)
5626 (ada_language_arch_info): Likewise.
5627 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5628 * value.c (unpack_double): Likewise (comment).
5629 * gdbtypes.c (build_gdbtypes): Likewise.
5630 * doublest.c (floatformat_from_length): Likewise.
5631 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5632 gdbarch_long_double_bit.
5633 * p-lang.c (pascal_create_fundamental_type): Likewise.
5634 * objc-lang.c (objc_create_fundamental_type): Likewise.
5635 * m2-lang.c (m2_create_fundamental_type): Likewise.
5636 * gdbtypes.c (build_gdbtypes): Likewise.
5637 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5638 * doublest.c (floatformat_from_length): Likewise.
5639 * c-lang.c (c_create_fundamental_type): Likewise.
5640 * ada-lex.l (processReal): Likewise.
5641 * ada-lang.c (ada_create_fundamental_type)
5642 (ada_language_arch_info): Likewise.
5643 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5644 gdbarch_long_double_format.
5645 * gdbtypes.c (build_gdbtypes): Likewise.
5646 * doublest.c (floatformat_from_length): Likewise.
5647 * gdbarch.c, gdbarch.h: Regenerate.
5648
5649 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5650
5651 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5652 * ada-lang.c (ada_create_fundamental_type)
5653 (ada_language_arch_info): Likewise.
5654 * c-lang.c (c_create_fundamental_type): Likewise.
5655 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5656 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5657 * m2-lang.c (m2_create_fundamental_type): Likewise.
5658 * objc-lang.c (objc_create_fundamental_type): Likewise.
5659 * p-lang.c (pascal_create_fundamental_type): Likewise.
5660 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5661 * c-exp.y (parse_number): Likewise.
5662 * objc-exp.y (parse_number): Likewise.
5663 * ada-lex.l (processInt): Likewise.
5664 * f-exp.y (parse_number): Likewise.
5665 * p-exp.y (parse_number): Likewise.
5666 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5667 (gdbtypes_post_init, build_gdbtypes): Likewise.
5668 * p-lang.c (pascal_create_fundamental_type): Likewise.
5669 * parse.c (build_parse): Likewise.
5670 * xcoffread.c (_initialize_xcoffread): Likewise.
5671 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5672 (read_range_type): Likewise.
5673 * objc-lang.c (objc_create_fundamental_type): Likewise.
5674 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5675 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5676 (m2_create_fundamental_type): Likewise.
5677 * c-lang.c (c_create_fundamental_type): Likewise.
5678 * coffread.c (coff_read_enum_type): Likewise.
5679 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5680 * dwarf2read.c (new_symbol): Likewise.
5681 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5682 * c-exp.y (parse_number): Likewise.
5683 * objc-exp.y (parse_number): Likewise.
5684 * ada-lex.l (processInt): Likewise.
5685 * f-exp.y (parse_number): Likewise.
5686 * p-exp.y (parse_number): Likewise.
5687 * valarith.c (value_binop): Likewise.
5688 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5689 * ada-lang.c (ada_create_fundamental_type)
5690 (ada_language_arch_info): Likewise.
5691 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5692 * symfile.c (TARGET_LONG_BYTES): Likewise.
5693 * p-lang.c (pascal_create_fundamental_type): Likewise.
5694 * objc-lang.c (objc_create_fundamental_type): Likewise.
5695 * m2-lang.c (m2_create_fundamental_type): Likewise.
5696 * f-lang.c (f_create_fundamental_type): Likewise.
5697 * c-lang.c (c_create_fundamental_type): Likewise.
5698 * coffread.c (decode_base_type): Likewise.
5699 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5700 * c-exp.y (parse_number): Likewise.
5701 * objc-exp.y (parse_number): Likewise.
5702 * p-exp.y (parse_number): Likewise.
5703 * ada-lang.c (ada_create_fundamental_type)
5704 (ada_language_arch_info): Likewise.
5705 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5706 * stabsread.c (read_range_type): Likewise.
5707 * p-lang.c (pascal_create_fundamental_type): Likewise.
5708 * objc-lang.c (objc_create_fundamental_type): Likewise.
5709 * m2-lang.c (m2_create_fundamental_type): Likewise.
5710 * f-lang.c (f_create_fundamental_type): Likewise.
5711 * c-lang.c (c_create_fundamental_type): Likewise.
5712 * gdbarch.c, gdbarch.h: Regenerate.
5713
5714 2007-06-12 Andreas Schwab <schwab@suse.de>
5715
5716 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5717 (struct frame_unwind): Add dealloc_cache.
5718 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5719
5720 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5721 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5722 (libunwind_frame_unwind): Set dealloc_cache.
5723 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5724
5725 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5726 Markus Deuling <deuling@de.ibm.com>
5727
5728 * remote.c (remote_write_qxfer): New function.
5729 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5730 (remote_read_qxfer): Do not cache empty objects.
5731 (_initialize_remote): Add PACKET_qXfer_spu_read and
5732 PACKET_qXfer_spu_write.
5733
5734 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5735
5736 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5737 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5738
5739 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5740 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5741 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5742 * spu-tdep.c (infospucmdlist): New variable.
5743 (spu_register_name): Handle additional pseudo registers.
5744 (spu_register_type): Likewise.
5745 (spu_pseudo_register_read): Likewise.
5746 (spu_pseudo_register_write): Likewise.
5747 (spu_pseudo_register_read_spu): New function.
5748 (spu_pseudo_register_write_spu): Likewise.
5749 (info_spu_event_command): New function.
5750 (info_spu_signal_command): Likewise.
5751 (info_spu_mailbox_list): Likewise.
5752 (info_spu_mailbox_command): Likewise.
5753 (spu_mfc_get_bitfield): Likewise.
5754 (info_spu_dma_cmdlist): Likewise.
5755 (info_spu_dma_command): Likewise.
5756 (info_spu_proxydma_command): Likewise.
5757 (info_spu_command): Likewise.
5758 (_initialize_spu_tdep): Install "info spu" commands.
5759
5760 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5761
5762 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5763 accessing non-seekable spufs files.
5764
5765 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5766
5767 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5768 gdbarch_skip_trampoline_code.
5769 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5770 * objc-lang.c (objc_skip_trampoline)
5771 (objc_submethod_helper_data): Likewise.
5772 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5773 * infrun.c (handle_inferior_event): Likewise.
5774 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5775 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5776 gdbarch_in_solib_return_trampoline.
5777 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5778 * infrun.c (handle_inferior_event): Likewise.
5779 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5780 * gdbarch.c, gdbarch.h: Regenerate.
5781
5782 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5783
5784 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5785 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5786 * linespec.c (minsym_found): Likewise.
5787 * infrun.c (step_into_function): Likewise.
5788 * gdbarch.c, gdbarch.h: Regenerate.
5789
5790 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5791
5792 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5793 * valops.c (value_allocate_space_in_inferior): Likewise.
5794 * gdbarch.c, gdbarch.h: Regenerate.
5795
5796 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5797
5798 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5799 gdbarch_memory_insert_breakpoint.
5800 * mem-break.c (memory_insert_breakpoint): Likewise.
5801 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5802 gdbarch_memory_remove_breakpoint.
5803 * mem-break.c (memory_remove_breakpoint): Likewise.
5804 * gdbarch.c, gdbarch.h: Regenerate.
5805
5806 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5807
5808 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5809 gdbarch_fetch_tls_load_module_address.
5810 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5811 gdbarch_fetch_tls_load_module_address_p.
5812 * gdbarch.c, gdbarch.h: Regenerate.
5813
5814 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5815
5816 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5817 gdbarch_decr_pc_after_break.
5818 * tracepoint.c (trace_dump_command): Likewise.
5819 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5820 * linux-thread-db.c (check_event): Likewise.
5821 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5822 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5823 * frame.h: Likewise (comment).
5824 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5825 * aix-thread.c (aix_thread_wait): Likewise.
5826 * gdbarch.c, gdbarch.h: Regenerate.
5827
5828 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5829
5830 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5831 gdbarch_address_class_type_flags.
5832 * dwarf2read.c (read_tag_pointer_type): Likewise.
5833 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5834 gdbarch_address_class_type_flags_p.
5835 * dwarf2read.c (read_tag_pointer_type): Likewise.
5836 * gdbarch.c, gdbarch.h: Regenerate.
5837
5838 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5839
5840 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5841 * value.c (value_as_address): Likewise (comment).
5842 * remote-mips.c (common_breakpoint): Likewise.
5843 * regcache.c (read_pc_pid): Likewise.
5844 * printcmd.c (do_one_display): Likewise.
5845 * monitor.c (monitor_write_memory, monitor_read_memory)
5846 (monitor_insert_breakpoint): Likewise.
5847 * mips-tdep.c (heuristic_proc_start): Likewise.
5848 * infrun.c (insert_step_resume_breakpoint_at_frame)
5849 (insert_step_resume_breakpoint_at_caller): Likewise.
5850 * buildsym.c (record_line): Likewise.
5851 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5852 (arm_get_next_pc): Likewise.
5853 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5854 (store_regs): Likewise.
5855 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5856 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5857 * gdbarch.c, gdbarch.h: Regenerate.
5858
5859 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5860
5861 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5862 * tracepoint.c (scope_info): Likewise.
5863 * target.c (debug_print_register): Likewise.
5864 * stack.c (frame_info): Likewise.
5865 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5866 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5867 (sh64_media_print_registers_info)
5868 (sh64_compact_print_registers_info): Likewise.
5869 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5870 * remote-sim.c (gdbsim_fetch_register): Likewise.
5871 * remote.c (packet_reg): Likewise (comment).
5872 * reggroups.c (default_register_reggroup_p): Likewise.
5873 * regcache.c (regcache_dump): Likewise.
5874 * printcmd.c (address_info): Likewise.
5875 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5876 * mt-dep.c (mt_registers_info): Likewise.
5877 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5878 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5879 (mips_read_fp_register_double, mips_print_fp_register)
5880 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5881 (mips_register_sim_regno): Likewise.
5882 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5883 * inf-ptrace.c (inf_ptrace_fetch_register)
5884 (inf_ptrace_store_register): Likewise.
5885 * infcmd.c (default_print_registers_info): Likewise.
5886 * ia64-linux-nat.c (ia64_linux_fetch_register)
5887 (ia64_linux_store_register): Likewise.
5888 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5889 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5890 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5891 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5892 (hppa_hpux_store_register): Likewise.
5893 * findvar.c (locate_var_value): Likewise.
5894 * dwarf2loc.c (locexpr_describe_location): Likewise.
5895 * dwarf2-frame.c (execute_cfa_program): Likewise.
5896 * arm-tdep.c (arm_push_dummy_call): Likewise.
5897 * arch-utils.c (legacy_register_sim_regno): Likewise.
5898 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5899 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5900 * mi/mi-main.c (mi_cmd_data_list_register_names)
5901 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5902 (mi_cmd_data_write_register_values): Likewise.
5903 * gdbarch.c, gdbarch.h: Regenerate.
5904
5905 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5906
5907 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5908
5909 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5910
5911 * remote.c (process_g_packet): Don't check size.
5912 * gdbarch.sh: Remove register_bytes_ok.
5913 * gdbarch.c: Regenerated.
5914 * gdbarch.h: Regenerated.
5915 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5916 (m68k_register_bytes_ok): Remove.
5917 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5918
5919 2007-06-06 Andreas Schwab <schwab@suse.de>
5920
5921 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5922 (destroy_addr_space_name): Define.
5923 (libunwind_load): Get address of destroy_addr_space function.
5924 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5925 returning unsuccessfully.
5926 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5927 returning.
5928 (libunwind_sigtramp_frame_sniffer): Likewise.
5929 (libunwind_get_reg_special): Likewise.
5930
5931 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5932
5933 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5934 gdbarch_fetch_pointer_argument.
5935 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5936 * gdbarch.c, gdbarch.h: Regenerate.
5937
5938 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5939
5940 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5941 gdbarch_have_nonsteppable_watchpoint.
5942 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5943 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5944 gdbarch_cannot_step_breakpoint.
5945 * infrun.c (resume): Likewise.
5946 * gdbarch.c, gdbarch.h: Regenerate.
5947
5948 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5949
5950 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5951 * stack.c (print_frame_args): Likewise.
5952 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5953 * stack.c (print_args_stub, frame_info): Likewise.
5954 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5955 * stack.c (print_args_stub, frame_info): Likewise.
5956 * gdbarch.c, gdbarch.h: Regenerate.
5957
5958 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5959
5960 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5961 gdbarch_coff_make_msymbol_special.
5962 * coffread.c (coff_symtab_read): Likewise.
5963 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5964 gdbarch_elf_make_msymbol_special.
5965 * elfread.c (elf_symtab_read): Likewise.
5966 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5967 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5968 * gdbarch.c, gdbarch.h: Regenerate.
5969
5970 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5971
5972 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5973 gdbarch_frame_red_zone_size.
5974 * gdbarch.c, gdbarch.h: Regenerate.
5975
5976 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5977
5978 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5979 * infcall.c (call_function_by_hand): Likewise.
5980 * gcore.c (derive_stack_segment): Likewise.
5981 * frame.c (frame_id_inner): Likewise.
5982 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5983 * ada-lang.c (ensure_lval): Likewise.
5984 * gdbarch.c, gdbarch.h: Regenerate.
5985
5986 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5987
5988 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5989 gdbarch_address_to_pointer.
5990 * findvar.c (store_typed_address): Likewise.
5991 * gdbtypes.c (make_pointer_type): Likewise (comment).
5992 * procfs.c (procfs_address_to_host_pointer): Likewise.
5993 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5994 (value_of_builtin_frame_fp_reg): Likewise.
5995 (value_of_builtin_frame_pc_reg): Likewise.
5996 * utils.c (paddress): Likewise (comment).
5997 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5998 gdbarch_pointer_to_address.
5999 * findvar.c (extract_typed_address): Likewise.
6000 * gdbtypes.c (make_pointer_type): Likewise (comment).
6001 * valops.c (value_cast): Likewise (comment).
6002 * gdbarch.c, gdbarch.h: Regenerate.
6003
6004 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6005
6006 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6007 * infrun.c (handle_inferior_event): Likewise.
6008 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6009 gdbarch_get_longjmp_target_p.
6010 * breakpoint.c (breakpoint_re_set): Likewise.
6011 * infrun.c (handle_inferior_event): Likewise.
6012 * gdbarch.c, gdbarch.h: Regenerate.
6013
6014 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6015
6016 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6017 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6018 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6019 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6020 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6021 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6022 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6023 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6024 current_ex_event, child_get_current_exception_event): Remove.
6025 (hppa_hpux_inferior_created): Remove.
6026 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6027
6028 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6029 (deprecated_exception_support_initialized): Remove.
6030 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6031 (deprecated_exception_support_initialized): Remove.
6032 (breakpoint_init_inferior): Remove handling of non-zero
6033 deprecated_exception_catchpoints_are_fragile.
6034
6035 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6036 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6037 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6038 deprecated_hp_som_som_object_present.
6039 * eval.c (evaluate_subexp_standard): Likewise.
6040 * valops.c (value_cast): Likewise.
6041
6042 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6043 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6044 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6045
6046 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6047
6048 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6049 (struct objfile): Remove import_list, import_list_size,
6050 export_list, export_list_size members.
6051 (is_in_import_list): Remove prototype.
6052 * objfiles.c (is_in_import_list): Remove.
6053 * somread.c (init_import_symbols, init_export_symbols): Remove.
6054 (som_symfile_read): Do not call init_import_symbols. Do not
6055 set objfile->export_list and objfile->export_list_size.
6056
6057 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6058
6059 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6060 Use the original objfile if necessary.
6061
6062 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6063
6064 * defs.h (ldirname): New prototype.
6065 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6066 missing.
6067 * utils.c (ldirname): New function.
6068 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6069
6070 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6071
6072 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6073
6074 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6075
6076 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6077
6078 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6079
6080 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6081
6082 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6083
6084 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6085 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6086 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6087 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6088 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6089 ppc_linux_at_sigtramp_return_path): Remove.
6090
6091 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6092
6093 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6094 (xtensa_register_write_masked, xtensa_register_read_masked)
6095 (xtensa_extract_return_value, xtensa_store_return_value
6096 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6097 TARGET_BYTE_ORDER by gdbarch_byte_order.
6098 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6099 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6100 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6101 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6102 (sh64_push_dummy_call, sh64_extract_return_value)
6103 (sh64_store_return_value, sh64_register_convert_to_virtual)
6104 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6105 (sh64_pseudo_register_write, sh64_do_fp_register)
6106 (sh64_frame_prev_register): Likewise.
6107 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6108 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6109 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6110 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6111 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6112 * ppc-linux-nat.c (store_register): Likewise.
6113 * nto-tdep.c (nto_find_and_open_solib)
6114 (nto_init_solib_absolute_prefix): Likewise.
6115 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6116 (mips_convert_register_p, mips_eabi_push_dummy_call)
6117 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6118 (mips_o32_push_dummy_call, mips_o32_return_value)
6119 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6120 (mips_read_fp_register_single, mips_read_fp_register_double)
6121 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6122 (mips_breakpoint_from_pc): Likewise.
6123 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6124 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6125 (mips_linux_o32_sigframe_init): Likewise.
6126 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6127 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6128 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6129 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6130 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6131 * coffread.c (process_coff_symbol): Likewise.
6132 * arm-tdep.c (convert_from_extended, convert_to_extended)
6133 (gdb_print_insn_arm): Likewise.
6134
6135 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6136
6137 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6138 * i386-tdep.c (i386_dbx_reg_to_regnum)
6139 (i386_svr4_reg_to_regnum): Likewise.
6140 * inf-ptrace.c (inf_ptrace_fetch_registers)
6141 (inf_ptrace_store_registers): Likewise.
6142 * corelow.c (get_core_registers): Likewise.
6143 * i386-linux-nat.c (supply_gregset, fill_gregset)
6144 (i386_linux_fetch_inferior_registers)
6145 (i386_linux_store_inferior_registers): Likewise.
6146 * remote.c (init_remote_state,packet_reg_from_regnum)
6147 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6148 (remote_prepare_to_store,store_registers_using_G)
6149 (remote_store_registers,remote_arch_state): Likewise.
6150 * tracepoint.c (encode_actions): Likewise.
6151 * mi/mi-main.c (mi_cmd_data_list_register_names)
6152 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6153 (mi_cmd_data_write_register_values): Likewise.
6154 * tui/tui-regs.c (tui_show_register_group)
6155 (tui_show_register_group): Likewise.
6156 * xtensa-tdep.h (FP_ALIAS): Likewise.
6157 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6158 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6159 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6160 * win32-nat.c (do_win32_fetch_inferior_registers)
6161 (do_win32_store_inferior_registers,fetch_elf_core_registers
6162 * user-regs.h: Likewise (comment).
6163 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6164 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6165 * target-descriptions.h: Likewise (comment).
6166 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6167 * target.c (debug_print_register): Likewise.
6168 * stack.c (frame_info): Likewise.
6169 * stabsread.c (define_symbol): Likewise.
6170 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6171 (sh64_media_print_registers_info)
6172 (sh64_compact_print_registers_info): Likewise.
6173 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6174 * rs6000-nat.c (fetch_register,store_register): Likewise.
6175 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6176 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6177 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6178 * remote-m32r-sdi.c (m32r_fetch_registers)
6179 (m32r_store_registers): Likewise.
6180 * reggroups.c (default_register_reggroup_p): Likewise.
6181 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6182 (regcache_restore,regcache_dump): Likewise.
6183 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6184 * mips-tdep.c (mips_xfer_register,mips_register_name)
6185 (mips_register_reggroup_p,mips_pseudo_register_read)
6186 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6187 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6188 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6189 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6190 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6191 (print_gp_register_row,mips_print_registers_info)
6192 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6193 (mips_register_sim_regno): Likewise.
6194 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6195 (mips_linux_n32n64_sigframe_init): Likewise.
6196 * mips-linux-nat.c (mips_linux_register_addr)
6197 (mips64_linux_register_addr): Likewise.
6198 * findvar.c (value_of_register): Likewise.
6199 * infcmd.c (default_print_registers_info,registers_info)
6200 (print_vector_info,print_float_info): Likewise.
6201 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6202 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6203 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6204 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6205 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6206 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6207 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6208 (ia64_linux_store_registers): Likewise.
6209 * hpux-thread.c (hpux_thread_fetch_registers)
6210 (hpux_thread_store_registers): Likewise.
6211 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6212 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6213 (h8300_register_type): Likewise.
6214 * dwarf2-frame.c (dwarf2_frame_cache)
6215 (dwarf2_frame_state_alloc_regs): Likewise.
6216 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6217 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6218 (crisv32_cannot_store_register,cris_register_name): Likewise.
6219 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6220 * arch-utils.c (legacy_register_sim_regno)
6221 (legacy_virtual_frame_pointer): Likewise.
6222 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6223 * arm-tdep.h: Likewise (comment).
6224 * frv-tdep.c (frv_register_sim_regno): Likewise.
6225 * m68klinux-nat.c (old_fetch_inferior_registers)
6226 (old_store_inferior_registers): Likewise.
6227 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6228 * irix5-nat.c (fetch_core_registers): Likewise.
6229 * hppa-tdep.c (hppa_frame_cache): Likewise.
6230 * hppa-linux-nat.c (hppa_linux_register_addr)
6231 (hppa_linux_fetch_inferior_registers)
6232 (hppa_linux_store_inferior_registers): Likewise.
6233 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6234 (hppa_hpux_store_inferior_registers): Likewise.
6235 * amd64-nat.c (amd64_native_gregset_reg_offset)
6236 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6237 * dbug-rom.c (dbug_regname): Likewise.
6238 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6239 (HARD_PAGE_REGNUM (comment)): Likewise.
6240 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6241 * i386-tdep.c (i386_dbx_reg_to_regnum)
6242 (i386_svr4_reg_to_regnum): Likewise.
6243 * mi/mi-main.c (mi_cmd_data_list_register_names)
6244 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6245 (mi_cmd_data_write_register_values): Likewise.
6246 * gdbarch.c, gdbarch.h: Regenerate.
6247 * tui/tui-regs.c (tui_show_register_group): Likewise.
6248 * xtensa-tdep.h (FP_ALIAS): Likewise.
6249 * user-regs.h: Likewise (comment).
6250 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6251 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6252 * target-descriptions.h: Likewise (comment).
6253 * target.c (debug_print_register): Likewise.
6254 * stack.c (frame_info): Likewise.
6255 * stabsread.c (define_symbol): Likewise.
6256 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6257 (sh64_compact_print_registers_info): Likewise.
6258 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6259 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6260 (regcache_restore,regcache_dump): Likewise.
6261 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6262 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6263 (mips_stab_reg_to_regnum): Likewise.
6264 * findvar.c (value_of_register): Likewise.
6265 * infcmd.c (default_print_registers_info,registers_info)
6266 (print_vector_info,print_float_info): Likewise.
6267 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6268 * h8300-tdep.c (h8300_register_type): Likewise.
6269 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6270 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6271 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6272 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6273 * parse.c: Remove comment.
6274 * gdbarch.c, gdbarch.h: Regenerate
6275
6276 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6277
6278 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6279 gdbarch_cannot_fetch_register.
6280 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6281 * hppa-linux-nat.c (fetch_register): Likewise.
6282 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6283 * m68klinux-nat.c (fetch_register): Likewise.
6284 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6285 Likewise.
6286 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6287 gdbarch_cannot_store_register.
6288 * hppa-linux-nat.c (store_register): Likewise.
6289 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6290 * regcache.c (regcache_raw_write): Likewise.
6291 * m68klinux-nat.c (store_register): Likewise.
6292 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6293 * gdbarch.c, gdbarch.h: Regenerate.
6294
6295 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6296
6297 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6298 * gdbarch.c, gdbarch.h: Regenerate.
6299
6300 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6301
6302 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6303 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6304 * gdbarch.c, gdbarch.h: Regenerate.
6305
6306 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6307
6308 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6309 * ax-gdb.c (gen_bitfield_ref): Likewise.
6310 * mi/mi-main.c (get_register): Likewise.
6311 * findvar.c (default_value_from_register, extract_signed_integer)
6312 (extract_unsigned_integer, extract_long_unsigned_integer)
6313 (store_signed_integer, store_unsigned_integer): Likewise.
6314 * regcache.c (regcache_dump): Likewise.
6315 * value.c (lookup_internalvar, value_of_internalvar)
6316 (set_internalvar): Likewise.
6317 * defs.h: Likewise.
6318 * valprint.c (print_binary_chars, print_octal_chars)
6319 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6320 * infcmd.c (default_print_registers_info): Likewise.
6321 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6322 * stabsread.c (define_symbol): Likewise.
6323 * doublest.c (floatformat_from_length, floatformat_from_type)
6324 (extract_typed_floating, store_typed_floating): Likewise.
6325 * gdbarch.c, gdbarch.h: Regenerate.
6326
6327 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6328
6329 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6330 gdbarch_call_dummy_location.
6331 * infcall.c (call_function_by_hand): Likewise.
6332 * inferior.h: Change comment.
6333 * arch-utils.c: Change comment.
6334 * gdbarch.c, gdbarch.h: Regenerate.
6335
6336 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6337
6338 * solib-aix5.c: Delete.
6339 * Makefile.in (solib-aix5.o): Delete rule.
6340
6341 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6342
6343 * breakpoint.h (enum bpstat_what_main_action): Remove
6344 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6345 * infrun.c (process_event_stop_test): Do not check for it.
6346
6347 2007-05-22 Chris Dearman <chris@mips.com>
6348 Maciej W. Rozycki <macro@mips.com>
6349
6350 * ser-unix.c (show_serial_hwflow): New function.
6351 (hardwire_raw): Add hardware flow control support.
6352 (_initialize_ser_hardwire): Add "set/show remoteflow".
6353 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6354 * NEWS: Document the new command.
6355
6356 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6357
6358 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6359 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6360 define for i[[3456]]86-*-linux* native configurations.
6361 * config.in, configure: Regenerate.
6362
6363 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6364
6365 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6366 a core file. Add comment in the function description.
6367
6368 2007-05-18 Caroline Tice <ctice@apple.com>
6369
6370 * c-valprint.c (c_value_print): If the initialized field of the
6371 value struct is 0, print out "[uninitialized]" before the value.
6372 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6373 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6374 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6375 ctx->initialized appropriately. Verify no location op follows
6376 DW_OP_GNU_uninit.
6377 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6378 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6379 set_value_initialized.
6380 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6381 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6382 * value.c (struct value): New field, initialized.
6383 (allocate_value): Initialize new field.
6384 (set_value_initialized): New function.
6385 (value_initialized): New function.
6386 * value.h (value_initialized): New extern declaration.
6387 (set_value_initialized): Likewise.
6388
6389 2007-05-18 Caroline Tice <ctice@apple.com>
6390
6391 * MAINTAINERS (Write After Approval): Add self.
6392
6393 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6394
6395 * gdbtypes.c (make_reference_type): Preserve the type chain
6396 and set the length of all the variants of the pointer type.
6397
6398 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6399
6400 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6401 and set the length of all the variants of the pointer type.
6402
6403 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6404
6405 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6406 comment.
6407 (mips_o64_push_dummy_call): Reformat a comment.
6408
6409 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6410
6411 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6412 (score_prologue_frame_base_address): Return fp to keep gdb print
6413 local variables correctly when debugging information is stabs.
6414
6415 (score_analyze_prologue): For software watchpoint, fetch all the
6416 instructions from range [startaddr, pc] once and identify them locally
6417 to reduce memory access.
6418 (score_malloc_and_get_memblock, score_free_memblock)
6419 (score_adjust_memblock_ptr): New functions.
6420 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6421
6422 (score_target_can_use_watch, score_stopped_by_watch)
6423 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6424 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6425 New functions for remote & local hw-watchpoint and hw-breakpoint.
6426
6427 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6428
6429 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6430 declarations as well.
6431
6432 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6433
6434 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6435 * config/arm/tm-embed.h: Delete file.
6436
6437 * arm-tdep.h (arm_software_single_step): Declare.
6438 * arm-tdep.c (arm_software_single_step): Make global.
6439 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6440 from here to ...
6441 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6442 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6443 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6444 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6445
6446 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6447 allow defines to be overriden by TM file.
6448 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6449 change default to {0xbe,0xbe}.
6450 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6451 arm_obsd_thumb_be_breakpoint): New global variables.
6452 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6453 tdep->thumb_breakpoint_size.
6454 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6455 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6456 tdep->thumb_breakpoint_size.
6457
6458 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6459
6460 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6461
6462 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6463 saved-gpreg-size".
6464
6465 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6466 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6467 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6468 (mips_abi_regsize): Simplify.
6469 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6470 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6471 (mips_o32_return_value, mips_o64_push_dummy_call)
6472 (mips_o64_return_value): Propogate constant register sizes. Use the
6473 ABI register size instead of mips_stack_argsize.
6474 (mips_dump_tdep): Don't print mips_stack_argsize.
6475 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6476 settings.
6477
6478 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6479
6480 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6481 * config/mips/tm-linux.h: Delete.
6482 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6483 (mips_linux_in_dynsym_resolve_code): Make static. Use
6484 svr4_in_dynsym_resolve_code.
6485 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6486 set_solib_ops.
6487 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6488 global.
6489 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6490 * Makefile.in (mips-linux-tdep.o): Update.
6491 * solib.c (set_solib_ops): New.
6492 (current_target_so_ops): Update comment.
6493 * solib.h (set_solib_ops): New prototype.
6494
6495 2007-05-16 Chris Dearman <chris@mips.com>
6496
6497 * printcmd.c (do_examine): Fix typos in a comment.
6498
6499 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6500
6501 * configure.ac: Allow sysroots to be relocated under $prefix as
6502 well as $exec_prefix.
6503 * configure: Regenerate.
6504
6505 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6506
6507 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6508 (offsetof): Do not define.
6509 (find_stub_with_shl_get): Use numerical value 3 instead of
6510 symbolic value TYPE_PROCEDURE.
6511
6512 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6513
6514 * gdb_proc_service.h (paddr_t): Delete typedef.
6515 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6516 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6517 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6518 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6519 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6520 * Makefile.in (proc-service.o): Update.
6521
6522 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6523
6524 * Makefile.in (mips-tdep.o): Update.
6525 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6526 unwinder.
6527
6528 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6529
6530 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6531 instead of store_typed_address.
6532 * value.c (pack_long): New.
6533 (value_from_longest): Use it.
6534 * value.h (pack_long): New prototype.
6535
6536 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6537
6538 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6539 DW_EH_PE_signed if appropriate.
6540
6541 2007-05-14 Paul Brook <paul@codesourcery.com>
6542 Daniel Jacobowitz <dan@codesourcery.com>
6543
6544 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6545 function.
6546 (dwarf_decode_lines): Check for line info without a file.
6547
6548 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6549
6550 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6551 as hexadecimal.
6552
6553 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6554
6555 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6556 STRUCTOP_STRUCT.
6557 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6558 STRUCTOP_STRUCT.
6559 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6560
6561 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6562
6563 * gdbarch.sh (read_sp): Remove.
6564 * gdbarch.c, gdbarch.h: Regenerate.
6565 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6566
6567 * avr-tdep.c (avr_read_sp): Remove.
6568 (avr_unwind_sp): New function.
6569 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6570 * mips-tdep.c (mips_read_sp): Remove.
6571 (mips_unwind_sp): New function.
6572 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6573 * score-tdep.c (score_read_unsigned_register): Remove.
6574 (score_read_sp): Remove.
6575 (score_unwind_sp): New function.
6576 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6577
6578 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6579
6580 * buildsym.c (start_subfile): Handle absolute pathnames
6581 while comparing subfile names.
6582
6583 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6584
6585 * hppa-hpux-tdep.c: Include "regcache.h".
6586 * hppa-linux-tdep.c: Likewise.
6587 * hppa-tdep.c: Include "gdb_stdint.h".
6588 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6589 it to paddr_nz.
6590 * Makefile.in: Update dependencies.
6591
6592 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6593
6594 * blockframe.c: Remove obsolete comments.
6595 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6596 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6597 * hppa-tdep.h (enum hppa_regnum): Likewise.
6598 * mips-tdep.h: Likewise.
6599 * m68hc11-tdep.c: Likewise.
6600
6601 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6602
6603 * inferior.h (read_sp): Remove prototype.
6604 * regcache.c (read_sp): Remove.
6605 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6606 * infcall.c (call_function_by_hand): Likewise.
6607 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6608 of calling read_sp.
6609 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6610
6611 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6612
6613 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6614 instead of read_register and read_register_pid.
6615
6616 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6617 argument instead of PTID. Use regcache functions instead of
6618 read_register_pid.
6619 (ia64_linux_insert_watchpoint): Update call.
6620 (ia64_linux_stopped_data_address): Use regcache functions
6621 instead of read_register_pid and write_register_pid.
6622
6623 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6624
6625 * libunwind-frame.h (struct regcache): Add forward declaration.
6626 (libunwind_get_reg_special): Add REGCACHE argument.
6627 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6628 argument. Pass it to unw_init_remote_p.
6629
6630 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6631 libunwind_get_reg_special.
6632 (ia64_access_reg): Remove "write" case.
6633 (ia64_access_fpreg): Likewise. Read from next_frame passed
6634 as callback argument instead of from current_regcache.
6635 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6636 passed as callback argument instead of from current_regcache.
6637 (ia64_access_rse_fpreg): New function.
6638 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6639
6640 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6641
6642 * NEWS: Mention SPU overlay support.
6643
6644 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6645
6646 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6647
6648 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6649
6650 * breakpoint.c (remove_breakpoint): Do not remove software
6651 breakpoints in unmapped overlay sections.
6652
6653 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6654
6655 * spu-tdep.c: Include "observer.h".
6656 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6657 (spu_overlay_data): New variable.
6658 (struct spu_overlay_table): New type.
6659 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6660 spu_overlay_new_objfile): New functions.
6661 (spu_gdbarch_init): Install spu_overlay_update.
6662 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6663 allocate spu_overlay_data objfile data.
6664
6665 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6666
6667 * gdbarch.sh (overlay_update): New gdbarch function.
6668 (struct obj_section): Add forward declaration.
6669 * gdbarch.c, gdbarch.h: Regenerate.
6670
6671 * symfile.c (simple_overlay_update): Make global.
6672 (target_overlay_update): Remove variable.
6673 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6674 target_overlay_update.
6675 (overlay_load_command): Likewise.
6676 * symfile.h (struct obj_section): Add forward declaration.
6677 (simple_overlay_update): Add prototype.
6678
6679 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6680
6681 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6682
6683 * observer.sh: Add "struct objfile" forward declaration.
6684 * target.h (deprecated_target_new_objfile_hook): Remove.
6685 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6686 (clear_symtab_users): Call observer_notify_new_objfile.
6687 (symbol_file_add_with_addrs_or_offsets): Likewise.
6688 * rs6000-nat.c: Include "observer.h".
6689 (vmap_ldinfo): Call observer_notify_new_objfile.
6690 (xcoff_relocate_core): Likewise.
6691 * remote.c (remote_new_objfile_chain): Remove.
6692 (remote_new_objfile): Do not call remote_new_objfile_chain.
6693 (_initialize_remote): Use observer_attach_new_objfile.
6694 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6695 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6696 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6697 * aix-thread.c: Include "observer.h".
6698 (target_new_objfile_chain): Remove.
6699 (new_objfile): Do not call target_new_objfile_chain.
6700 (_initialize_aix_thread): Use observer_attach_new_objfile.
6701 * hpux-thread.c: Include "observer.h"
6702 (target_new_objfile_chain): Remove.
6703 (hpux_thread_new_objfile): Make static. Do not call
6704 target_new_objfile_chain.
6705 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6706 * linux-thread-db.c: Include "observer.h".
6707 (target_new_objfile_chain): Remove.
6708 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6709 (_initialize_thread_db): Use observer_attach_new_objfile.
6710 * sol-thread.c: Include "observer.h".
6711 (target_new_objfile_chain): Remove.
6712 (sol_thread_new_objfile): Make static. Do not call
6713 target_new_objfile_chain.
6714 (_initialize_sol_thread): Use observer_attach_new_objfile.
6715 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6716 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6717 $(observer_h).
6718
6719 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6720
6721 * gdbarch.sh (remote_translate_xfer_address): Remove.
6722 * gdbarch.h, gdbarch.c: Regenerate.
6723 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6724 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6725 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6726 call gdbarch_remote_translate_xfer_address.
6727 * frv-tdep.c (frv_gdbarch_init): Do not call
6728 set_gdbarch_remote_translate_xfer_address.
6729 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6730 (ia64_gdbarch_init): Do not install it.
6731
6732 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6733
6734 * NEWS: Mention change in handling the -tui option.
6735
6736 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6737
6738 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6739 typo.
6740
6741 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6742
6743 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6744 (breakpoint_inserted_here_p): Call it.
6745 (software_breakpoint_inserted_here_p): Likewise.
6746
6747 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6748
6749 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6750 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6751 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6752 (inf_ptrace_store_register): Likewise.
6753 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6754 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6755
6756 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6757
6758 * linux-nat.c (linux_trad_target): Adapt parameter list.
6759 * linux-nat.h (linux_trad_target): Likewise.
6760
6761 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6762
6763 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6764 (mips_linux_cannot_store_register): Likewise.
6765 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6766 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6767 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6768 (mips64_linux_register_addr): Likewise.
6769 (mips_linux_register_u_offset): Adapt parameter list. Pass
6770 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6771
6772 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6773 * config/mips/nm-linux.h: Delete file.
6774
6775 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6776
6777 * remote.c (remote_detach): Error out if remote can't detach.
6778
6779 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6780
6781 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6782 instruction's opcode in the "opcode" variable and declares new
6783 variable "closing_insn".
6784
6785 2007-05-10 Chris Dearman <chris@mips.com>
6786 Maciej W. Rozycki <macro@mips.com>
6787
6788 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6789 whitespace when setting a var_filename.
6790
6791 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6792
6793 * main.c (captured_main): Recognize -tui option and print an error
6794 message when the TUI is not configured.
6795
6796 2007-05-09 Andreas Schwab <schwab@suse.de>
6797
6798 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6799 set removed members.
6800 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6801
6802 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6803
6804 * gdbarch.sh (deprecated_store_struct_return): Remove.
6805 * gdbarch.c, gdbarch.h: Regenerate.
6806 * frv-tdep.c (frv_store_struct_return): Remove.
6807 (frv_gdbarch_init): Do not install it.
6808
6809 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6810
6811 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6812 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6813 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6814
6815 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6816
6817 * spu-linux-nat.c: Include "gdb_stdint.h".
6818 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6819 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6820 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6821 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6822 (spu_child_wait): Mark up string for translation.
6823
6824 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6825 Luis Machado <luisgpm@br.ibm.com>
6826
6827 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6828 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6829 BC_INSTRUCTION): Define.
6830 (deal_with_atomic_sequence): New function.
6831 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6832 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6833 gdbarch_software_single_step routine.
6834
6835 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6836
6837 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6838 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6839 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6840 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6841 spu_child_post_attach, spu_fetch_inferior_registers,
6842 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6843 memory addresses as ULONGEST, not CORE_ADDR.
6844
6845 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6846
6847 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6848 * gdbarch.h, gdbarch.c: Regenerate.
6849
6850 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6851 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6852 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6853
6854 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6855 Add REGCACHE argument. Use it instead of read/write_register.
6856 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6857
6858 * config/pa/tm-hppah.h: Delete file.
6859 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6860 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6861
6862 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6863
6864 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6865 * NEWS: Mention improved C++ thunk support.
6866 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6867 * cp-abi.c (cplus_skip_trampoline): New.
6868 * cp-abi.h (cplus_skip_trampoline): New prototype.
6869 (struct cp_abi_ops): Add skip_trampoline member.
6870 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6871 (init_gnuv3_ops): Set skip_trampoline.
6872
6873 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6874
6875 * rs6000-tdep.c (struct frame_extra_info): Delete.
6876
6877 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6878
6879 * linux-thread-db.c: Update some FIXME comments.
6880 (thread_db_xfer_partial): Delete.
6881 (init_thread_db_ops): Do not set to_xfer_partial.
6882
6883 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6884
6885 * inftarg.c, infptrace.c: Remove files.
6886 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6887 (inftarg.o, infptrace.o): Remove rules.
6888 * gdbcore.h (register_addr): Remove prototype.
6889 * inferior.h (kill_inferior, store_inferior_registers,
6890 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6891 call_ptrace, pre_fork_inferior): Remove prototypes.
6892 * target.h (child_xfer_memory, child_pid_to_exec_file,
6893 child_core_file_to_sym_file, child_post_attach,
6894 child_post_startup_inferior, child_acknowledge_created_inferior,
6895 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6896 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6897 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6898 child_follow_fork, child_reported_exec_events_per_exec_call,
6899 child_has_exited, child_thread_alive): Remove prototypes.
6900
6901 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6902
6903 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6904 (sparc_store_inferior_registers): Likewise.
6905 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6906 (sparc_fetch_inferior_registers): ... this.
6907 (store_inferior_registers): Rename to ...
6908 (sparc_store_inferior_registers): ... this.
6909 (sparc_target): Update callback names.
6910 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6911 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6912
6913 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6914
6915 * linux-nat.c (child_post_attach): Rename to ...
6916 (linux_child_post_attach): ... this. Make static.
6917 (child_follow_fork): Rename to ...
6918 (linux_child_follow_fork): ... this. Make static.
6919 (child_insert_fork_catchpoint): Rename to ...
6920 (linux_child_insert_fork_catchpoint): ... this. Make static.
6921 (child_insert_vfork_catchpoint): Rename to ...
6922 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6923 (child_insert_exec_catchpoint): Rename to ...
6924 (linux_child_insert_exec_catchpoint): ... this. Make static.
6925 (child_pid_to_exec_file): Rename to ...
6926 (linux_child_pid_to_exec_file): ... this. Make static.
6927 Add prototype.
6928 (linux_handle_extended_wait): Update call.
6929 (linux_xfer_partial): Update callback routine names.
6930
6931 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6932
6933 * configure.host (alpha*-*-osf[12]*): Remove support.
6934 * NEWS: Mention removed configurations.
6935
6936 * config/alpha/alpha-osf1.mh: Delete file.
6937 * config/alpha/alpha-osf2.mh: Delete file.
6938 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6939 and infptrace.o.
6940 * config/alpha/nm-osf.h: Delete file.
6941 * config/alpha/nm-osf2.h: Delete file.
6942 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6943 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6944 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6945
6946 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6947 (register_addr, kernel_u_size): Remove.
6948 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6949
6950 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6951
6952 * regcache.c (regcache_invalidate): New function.
6953 (register_cached): Remove.
6954 (set_register_cached): Remove.
6955 (deprecated_registers_fetched): Remove.
6956 (registers_changed): Use regcache_invalidate instead
6957 of set_register_cached.
6958 (regcache_raw_read): Update comment.
6959
6960 * regcache.h (regcache_invalidate): Add prototype.
6961 (register_cached): Remove.
6962 (set_register_cached): Remove.
6963 (deprecated_registers_fetched): Remove.
6964
6965 * findvar.c (value_of_register): Do not call register_cached.
6966 * frame.c (frame_register): Likewise.
6967 * tui/tui-regs.c (tui_get_register): Likewise.
6968
6969 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6970 (process_g_packet): Likewise.
6971 (remote_fetch_registers): Likewise.
6972 * remote-sim.c (gdbsim_fetch_register): Likewise.
6973 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6974 by regcache_invalidate.
6975 (mt_pseudo_register_write): Likewise.
6976 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6977
6978 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6979 call by loop over regcache_raw_supply (..., NULL).
6980
6981 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6982
6983 * target.h (struct target_ops): Add REGCACHE parameter to
6984 to_prepare_to_store.
6985 (target_prepare_to_store): Likewise.
6986 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6987 (update_current_target): Adapt prepare_to_store de_fault rule.
6988
6989 * regcache.c (regcache_raw_write): Pass regcache to
6990 target_prepare_to_store.
6991
6992 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6993 Do not call CHILD_PREPARE_TO_STORE.
6994 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6995 * procfs.c (procfs_prepare_to_store): Likewise.
6996
6997 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6998 * go32-nat.c (go32_prepare_to_store): Likewise.
6999 * monitor.c (monitor_prepare_to_store): Likewise.
7000 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7001 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7002 * remote-mips.c (mips_prepare_to_store): Likewise.
7003 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7004 * win32-nat.c (win32_prepare_to_store): Likewise.
7005
7006 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7007 Use it instead of current_regcache.
7008
7009 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7010 parameter. Pass it on to next target.
7011 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7012
7013 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7014
7015 * target.h (struct regcache): Add forward declaration.
7016 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7017 and to_store_registers target operations.
7018 (target_fetch_registers, target_store_registers): Update.
7019
7020 * regcache.c (regcache_raw_read): Replace register_cached by
7021 regcache_valid_p. Pass regcache to target_fetch_registers.
7022 (regcache_raw_write): Pass regcache to target_store_registers.
7023
7024 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7025 store_regs, store_wmmx_regs): Replace register_cached by
7026 regcache_valid_p.
7027
7028 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7029 to target_fetch_registers calls.
7030 * corelow.c (core_open): Likewise.
7031 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7032 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7033 ps_lsetfpregs): Likewise.
7034 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7035 ps_lsetfpregs): Likewise.
7036 * win32-nat.c (win32_resume): Likewise.
7037 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7038 to target_store_registers call.
7039 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7040
7041 * inferior.h (store_inferior_registers): Update prototype.
7042 (fetch_inferior_registers): Likewise.
7043 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7044 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7045 Update function pointer signatures.
7046
7047 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7048 use it instead of current_regcache, update calls.
7049 (aix_thread_store_registers): Likewise.
7050 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7051 (alphabsd_store_inferior_registers): Likewise.
7052 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7053 (amd64bsd_store_inferior_registers): Likewise.
7054 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7055 (amd64_linux_store_inferior_registers): Likewise.
7056 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7057 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7058 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7059 (arm_linux_fetch_inferior_registers): Likewise.
7060 (arm_linux_store_inferior_registers): Likewise.
7061 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7062 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7063 (store_register, store_regs, store_fp_register, store_fp_regs,
7064 armnbsd_store_registers): Likewise.
7065 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7066 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7067 (bsd_uthread_store_registers): Likewise.
7068 * corelow.c (get_core_registers): Likewise.
7069 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7070 go32_store_registers): Likewise.
7071 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7072 (hppabsd_store_registers): Likewise.
7073 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7074 (hppa_hpux_fetch_inferior_registers): Likewise.
7075 (hppa_hpux_store_register): Likewise.
7076 (hppa_hpux_store_inferior_registers): Likewise.
7077 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7078 (hppa_linux_fetch_inferior_registers): Likewise.
7079 (hppa_linux_store_inferior_registers): Likewise.
7080 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7081 (hpux_thread_store_registers): Likewise.
7082 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7083 (i386bsd_store_inferior_registers): Likewise.
7084 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7085 gnu_store_registers): Likewise.
7086 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7087 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7088 Likewise.
7089 (i386_linux_fetch_inferior_registers): Likewise.
7090 (i386_linux_store_inferior_registers): Likewise.
7091 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7092 (ia64_linux_fetch_registers): Likewise.
7093 (ia64_linux_store_register): Likewise.
7094 (ia64_linux_store_registers): Likewise.
7095 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7096 (inf_child_store_inferior_registers): Likewise.
7097 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7098 (inf_ptrace_fetch_registers): Likewise.
7099 (inf_ptrace_store_register): Likewise.
7100 (inf_ptrace_store_registers): Likewise.
7101 * infptrace.c (fetch_register, store_register): Likewise.
7102 (fetch_inferior_registers, store_inferior_registers): Likewise.
7103 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7104 (m32r_linux_fetch_inferior_registers): Likewise.
7105 (m32r_linux_store_inferior_registers): Likewise.
7106 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7107 (m68kbsd_store_inferior_registers): Likewise.
7108 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7109 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7110 fetch_fpregs, store_fpregs): Likewise.
7111 (m68k_linux_fetch_inferior_registers): Likewise.
7112 (m68k_linux_store_inferior_registers): Likewise.
7113 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7114 (m88kbsd_store_inferior_registers): Likewise.
7115 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7116 (mips64obsd_store_inferior_registers): Likewise.
7117 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7118 (mips64_linux_regsets_store_registers): Likewise.
7119 (mips64_linux_fetch_registers): Likewise.
7120 (mips64_linux_store_registers): Likewise.
7121 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7122 (mipsnbsd_store_inferior_registers): Likewise.
7123 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7124 (monitor_fetch_registers, monitor_store_registers): Likewise.
7125 * nto-procfs.c (procfs_fetch_registers): Likewise.
7126 (procfs_store_registers): Likewise.
7127 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7128 fetch_register, supply_vrregset, fetch_altivec_registers,
7129 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7130 (store_altivec_register, store_spe_register, store_register,
7131 fill_vrregset, store_altivec_registers, store_ppc_registers,
7132 ppc_linux_store_inferior_registers): Likewise.
7133 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7134 (ppcnbsd_store_inferior_registers): Likewise.
7135 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7136 (ppcobsd_store_registers): Likewise.
7137 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7138 * remote.c (fetch_register_using_p, process_g_packet,
7139 fetch_registers_using_g, remote_fetch_registers): Likewise.
7140 (store_register_using_P, store_registers_using_G,
7141 remote_store_registers): Likewise.
7142 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7143 m32r_store_register, m32r_store_register): Likewise.
7144 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7145 * remote-sim.c (gdbsim_fetch_register): Likewise.
7146 (gdbsim_store_register): Likewise.
7147 * rs6000-nat.c (fetch_register, store_register): Likewise.
7148 (rs6000_fetch_inferior_registers): Likewise.
7149 (rs6000_store_inferior_registers): Likewise.
7150 * s390-nat.c (fetch_regs, store_regs): Likewise.
7151 (fetch_fpregs, store_fpregs): Likewise.
7152 (s390_linux_fetch_inferior_registers): Likewise.
7153 (s390_linux_store_inferior_registers): Likewise.
7154 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7155 (shnbsd_store_inferior_registers): Likewise.
7156 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7157 (sol_thread_store_registers): Likewise.
7158 * sparc-nat.c (fetch_inferior_registers): Likewise.
7159 (store_inferior_registers): Likewise.
7160 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7161 (spu_store_inferior_registers): Likewise.
7162 * target.c (debug_print_register): Likewise.
7163 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7164 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7165 (vaxbsd_store_inferior_registers): Likewise.
7166 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7167 (win32_fetch_inferior_registers): Likewise.
7168 (win32_store_inferior_registers): Likewise.
7169
7170 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7171
7172 * gdbcore.h (struct regcache): Add forward declaration.
7173 (struct core_fns): Add REGCACHE argument to core_read_registers
7174 callback.
7175 * corelow.c (get_core_register_section): Add REGCACHE argument,
7176 use it instead of current_regcache, pass it to core_read_registers
7177 callback.
7178 (get_core_registers): Add current_regcache as parameter to
7179 get_core_register_section calls.
7180
7181 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7182 use it instead of current_regcache.
7183 * armnbsd-nat.c (fetch_core_registers): Likewise.
7184 (fetch_elfcore_registers): Likewise.
7185 * core-regset.c (fetch_core_registers): Likewise.
7186 * cris-tdep.c (fetch_core_registers): Likewise.
7187 * irix5-nat.c (fetch_core_registers): Likewise.
7188 * m68klinux-nat.c (fetch_core_registers): Likewise.
7189 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7190 * win32-nat.c (fetch_elf_core_registers): Likewise.
7191
7192 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7193
7194 * gregset.h (struct regcache): Add forward declaration.
7195 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7196 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7197 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7198 (fill_gregset): Add REGCACHE parameter.
7199 (fill_fpregset): Likewise.
7200 (fill_fpxregset): Likewise.
7201
7202 Update all definitions accordingly:
7203 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7204 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7205 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7206 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7207 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7208 (supply_gregset): Add REGCACHE parameter, use it instead of
7209 current_regcache. Make GREGSETP parameter const, adapt casts.
7210 (supply_fpregset): Add REGCACHE parameter, use it instead of
7211 current_regcache. Make FPREGSETP parameter const, adapt casts.
7212 (fill_gregset): Add REGCACHE parameter, use it instead of
7213 current_regcache.
7214 (fill_fpregset): Likewise.
7215
7216 Update all callers to pass in current_regcache as the new argument:
7217 * core-regset.c: Include "regcache.h".
7218 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7219 * procfs.c: Include "regcache.h".
7220 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7221 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7222 (procfs_do_thread_registers): Likewise.
7223 (procfs_make_note_section): Likewise.
7224 * proc-service.c: Include "regcache.h".
7225 (ps_lgetregs): Update fill_gregset call.
7226 (ps_lsetregs): Update supply_gregset call.
7227 (ps_lgetfpregs): Update fill_fpregset call.
7228 (ps_lsetfpregs): Update supply_fpregset call.
7229 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7230 supply_fpregset calls.
7231 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7232 (ps_lgetregs): Update fill_gregset call.
7233 (ps_lsetregs): Update supply_gregset call.
7234 (ps_lgetfpregs): Update fill_fpregset call.
7235 (ps_lsetfpregs): Update supply_fpregset call.
7236
7237 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7238 fill_fpregset, and fill_fpxregset calls.
7239 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7240 (store_regs): Update fill_gregset call.
7241 (fetch_fpregs): Update supply_fpregset call.
7242 (store_fpregs): Update fill_fpregset call.
7243 (fetch_fpxregs): Update supply_fpxregset call.
7244 (store_fpxregs): Update fill_fpxregset call.
7245 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7246 (store_regs): Update fill_gregset call.
7247 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7248 (store_regs): Update fill_gregset call.
7249 (fetch_fpregs): Update supply_fpregset call.
7250 (store_fpregs): Update fill_fpregset call.
7251 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7252 * s390-nat.c (fetch_regs): Update supply_gregset call.
7253 (store_regs): Update fill_gregset call.
7254 (fetch_fpregs): Update supply_fpregset call.
7255 (store_fpregs): Update fill_fpregset call.
7256
7257 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7258 dependencies.
7259
7260 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7261
7262 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7263 it instead of current_regcache.
7264 (parse_register_dump): Add REGCACHE parameter, pass it to
7265 supply_register callback.
7266 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7267 parse_register_dump.
7268 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7269 parse_register_dump and dumpregs callback.
7270 (monitor_wait): Pass current_regcache to parse_register_dump and
7271 monitor_dump_regs.
7272 (monitor_fetch_register): Pass current_regcache to
7273 monitor_supply_register.
7274 (monitor_fetch_registers): Pass current_regcache to
7275 monitor_dump_regs.
7276 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7277 supply_register and dumpregs callbacks.
7278 (monitor_supply_register, monitor_dump_reg_block): Update
7279 prototypes.
7280 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7281 it to monitor_supply_register.
7282 * dink32-rom.c (dink32_supply_register): Likewise.
7283 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7284 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7285 instead of current_regcache.
7286
7287 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7288
7289 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7290 Add REGCACHE parameter. Use it instead of current_regcache.
7291 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7292 i386nto_supply_gregset and i386nto_supply_fpregset.
7293 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7294 of current_regcache.
7295
7296 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7297 nto_supply_ helper functions.
7298 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7299
7300 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7301
7302 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7303 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7304 and regset_fill member function pointers.
7305 (nto_dummy_supply_regset): Adapt prototype.
7306
7307 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7308
7309 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7310 instead of current_regcache. Make REGS const.
7311 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7312 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7313 prototypes.
7314 * shnbsd-nat.c: Include "regcache.h".
7315 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7316 shnbsd_supply_reg.
7317 (shnbsd_store_inferior_registers): Pass current_regcache to
7318 shnbsd_fill_reg.
7319 * Makefile.in (shbsd-nat.o): Update dependencies.
7320
7321 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7322
7323 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7324 instead of current_regcache.
7325 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7326 Make GREGSETP const, remove superfluous casts.
7327 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7328 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7329 superfluous casts.
7330 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7331 (supply_64bit_reg): Likewise
7332 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7333 Make GREGSETP const, adapt casts accordingly.
7334 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7335 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7336 casts accordingly.
7337 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7338 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7339 helper routines.
7340 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7341 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7342 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7343 Adapt prototypes.
7344 * mips-linux-nat.c: Include "regcache.h".
7345 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7346 current_regcache to mips{64}_(supply|fill)_ helper routines.
7347 (mips64_linux_regsets_fetch_registers): Likewise.
7348 (mips64_linux_regsets_store_registers): Likewise.
7349
7350 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7351 REGCACHE argument; replace current_regcache. Make REGS const.
7352 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7353 replace current_regcache.
7354 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7355 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7356 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7357 mipsnbsd_store_inferior_registers): Pass current_regcache to
7358 mipsnbsd_(supply|fill)_... helper routines.
7359
7360 * Makefile.in (mips-linux-nat.o): Update dependencies.
7361
7362 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7363
7364 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7365 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7366 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7367 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7368 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7369 * i386gnu-nat.c (store_fpregs): Likewise.
7370 * i386v4-nat.c (fill_fpregset): Likewise.
7371 * go32-nat.c (store_register, go32_store_registers): Likewise.
7372
7373 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7374
7375 * cris-tdep.c (supply_gregset): Rename to ...
7376 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7377 instead of current_regcache.
7378 (fetch_core_registers): Update call. Pass current_regcache.
7379
7380 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7381
7382 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7383 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7384 Use it instead of current_regcache.
7385 (supply_fparegset): Rename to ...
7386 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7387 Use it instead of current_regcache.
7388 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7389 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7390
7391 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7392
7393 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7394 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7395 use it instead of current_regcache.
7396 * alpha-tdep.h (struct regcache): Add forward declaration.
7397 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7398 alpha_fill_fp_regs): Update prototypes.
7399
7400 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7401 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7402 * alpha-linux-nat.c: Include "regcache.h".
7403 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7404 current_regcache to alpha_supply/fill_ routines.
7405
7406 * alphabsd-tdep.c: Include "regcache.h".
7407 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7408 pass it to alpha_supply_ routines. Make REGS const.
7409 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7410 pass it to alpha_fill_ routines.
7411 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7412 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7413 alphabsd_fill_fpreg): Update prototypes.
7414
7415 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7416 fill_fpregset, alphabsd_fetch_inferior_registers,
7417 alphabsd_store_inferior_registers): Pass current_regcache to
7418 alphabsd_supply/fill_ routines.
7419
7420 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7421 dependencies.
7422
7423 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7424
7425 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7426 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7427 instead of current_regcache.
7428 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7429 REGCACHE parameter, pass it to supply_ routines.
7430 (aix_thread_fetch_registers): Pass current_regcache to
7431 fetch_regs_user_thread and fetch_regs_kernel_thread.
7432
7433 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7434 Add REGCACHE parameter, use it instead of current_regcache.
7435 Call regcache_valid_p instead of register_cached.
7436 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7437 Also, pass REGCACHE to fill_ routines.
7438 (aix_thread_store_registers): Pass current_regcache to
7439 store_regs_user_thread and store_regs_kernel_thread.
7440
7441 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7442
7443 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7444 pointed to by GREGSETP.
7445
7446 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7447
7448 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7449 of regcache_raw_read_signed.
7450 (fill_fpregset): Use regcache_raw_collect instead of
7451 regcache_raw_read.
7452
7453 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7454
7455 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7456 point arguments, test explicitly for use of the EABI32 ABI
7457 instead of inferring this condition from tests on register
7458 sizes.
7459
7460 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7461
7462 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7463 prior to allocating its location.
7464
7465 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7466
7467 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7468 based on mips_abi_regsize() whose result is known in advance.
7469 (mips_o64_push_dummy_call): Likewise.
7470
7471 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7472
7473 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7474 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7475
7476 * mips-linux-nat.c: Include "gregset.h".
7477 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7478 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7479 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7480 fill_fpregset): Move to mips-linux-nat.c.
7481
7482 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7483
7484 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7485
7486 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7487 (read_register): ... here.
7488 (deprecated_write_register_gen): Remove, inline ...
7489 (write_register): ... here.
7490 * regcache.h (deprecated_read_register_gen): Remove prototype.
7491 (deprecated_write_register_gen): Likewise.
7492
7493 * remote-sim.c (gdbsim_store_register): Replace call to
7494 deprecated_read_register_gen with regcache_cooked_read.
7495 * target.c (debug_print_register): Replace calls to
7496 deprecated_read_register_gen and read_register with
7497 regcache_cooked_read.
7498
7499 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7500
7501 * hpux-thread.c (hpux_thread_store_registers): Use
7502 regcache_raw_collect, not regcache_raw_read.
7503 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7504 not regcache_raw_write.
7505
7506 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7507
7508 * gdbarch.sh: Remove deprecated_register_byte.
7509 * gdbarch.c, gdbarch.h: Regenerate.
7510 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7511 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7512
7513 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7514 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7515 read-only register caches. Make REGCACHE parameter const.
7516 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7517
7518 * mi/mi-main.c (old_regs): Remove.
7519 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7520 (register_changed_p): Reimplement to compare two register caches.
7521 (mi_cmd_data_list_changed_registers): Update caller.
7522 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7523 * mi/mi-interp.c (mi_interpreter_init): Do not call
7524 mi_setup_architecture_data.
7525
7526 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7527
7528 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7529 inline definition at the places the macros are used.
7530 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7531
7532 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7533
7534 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7535 "gdb_string.h".
7536 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7537 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7538 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7539 (rs6000_aix_regset_from_core_section): New function.
7540 (rs6000_aix_init_osabi): Register it.
7541 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7542 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7543 * rs6000-nat.c (CoreRegs): Do not define type.
7544 (fetch_core_registers, rs6000_core_fns): Remove.
7545 (_initialize_core_rs6000): Do not register it. Rename to ...
7546 (_initialize_rs6000_nat): ... this.
7547 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7548
7549 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7550
7551 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7552 (dwarf2_read_address): Sign extend return address as required by
7553 target architecture.
7554
7555 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7556
7557 * solib-frv.c (lm_base): Bail out if the main executable has
7558 not been relocated.
7559
7560 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7561
7562 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7563 of FPCR register in fpregset.
7564
7565 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7566
7567 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7568 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7569
7570 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7571
7572 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7573 * rs6000-nat.c (rs6000_wait): New function.
7574 (_initialize_core_rs6000): Install it as to_wait target method.
7575 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7576
7577 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7578
7579 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7580 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7581 * rs6000-nat.c (super_create_inferior): New variable.
7582 (rs6000_create_inferior): Make static. Adapt argument list. Call
7583 original version of create_inferior via super_create_inferior.
7584 (_initialize_core_rs6000): Install to_create_inferior target method.
7585
7586 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7587
7588 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7589 (aix_thread_xfer_partial): ... this.
7590 (init_aix_thread_ops): Install to_xfer_partial instead
7591 of deprecated_xfer_memory target method.
7592
7593 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7594 and inftarg.o, add inf-ptrace.o.
7595 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7596 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7597 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7598 (fetch_inferior_registers): Rename to ...
7599 (rs6000_fetch_inferior_registers): ... this. Make static.
7600 (store_inferior_registers): Rename to ...
7601 (rs6000_store_inferior_registers): ... this. Make static.
7602 (read_word, child_xfer_memory): Remove.
7603 (rs6000_xfer_partial): New function.
7604 (kernel_u_size): Remove.
7605 (_initialize_core_rs6000): Add inf_ptrace-based target.
7606 * Makefile.in (rs6000-nat.o): Update dependencies.
7607
7608 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7609
7610 * inf-ptrace.c: Include "gdb_stdint.h".
7611 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7612 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7613 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7614 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7615 (inf_ptrace_store_register): Likewise.
7616 * Makefile.in (inf-ptrace.o): Update dependencies.
7617
7618 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7619
7620 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7621 * configure.tgt (rs6000-*-*): Likewise.
7622 * config/rs6000/aix4.mh: Delete file.
7623 * config/rs6000/aix4.mt: Delete file.
7624 * config/rs6000/rs6000.mh: Delete file.
7625 * config/rs6000/rs6000.mt: Delete file.
7626
7627 * config/powerpc/nm-aix.h: Delete file.
7628 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7629
7630 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7631
7632 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7633 Remove obsolete part of comment.
7634 (store_regs_user_thread): Use uint32_t temporaries when calling
7635 fill_sprs32.
7636 (store_regs_kernel_thread): Likewise. Add assertion to verify
7637 correct size of struct ptsprs members.
7638 (aix_thread_xfer_memory): Fix type of myaddr.
7639 (aix_thread_extra_thread_info): Fix compiler warning.
7640 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7641 (fetch_register, store_register): Adapt callers.
7642
7643 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7644
7645 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7646
7647 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7648
7649 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7650 and "regcache.h".
7651 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7652 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7653 (alpha_linux_regset_from_core_section): New function.
7654 (alpha_linux_init_abi): Install it.
7655 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7656 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7657 <sys/procfs.h>, and "gregset.h".
7658 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7659 Move from config/alpha/nm-linux.h.
7660 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7661 from alpha-nat.c.
7662 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7663 * alpha-nat.c: Remove #ifdef __linux__ section.
7664 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7665 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7666 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7667 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7668 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7669 (NATDEPFILES): Remove alpha-nat.o.
7670 * config/alpha/nm-linux.h: Delete file.
7671 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7672 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7673 (alpha-linux-tdep.o): Likewise.
7674
7675 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7676
7677 * mips-linux-nat.c: No longer include "gdbcore.h".
7678 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7679 (mips64_linux_register_addr): Likewise.
7680 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7681 mips64_linux_register_addr instead of register_addr.
7682 * mips-linux-tdep.c (mips_linux_register_addr,
7683 mips64_linux_register_addr): Move to mips-linux-nat.c.
7684 (register_addr): Remove.
7685 (register_addr_data, init_register_addr_data): Remove.
7686 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7687 (set_mips_linux_register_addr): Remove.
7688 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7689 * Makefile.in (mips-linux-nat.o): Update dependencies.
7690
7691 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7692
7693 * linux-nat.c (linux_register_u_offset): Remove.
7694 (linux_target_install_ops): New function.
7695 (linux_target): Use it.
7696 (linux_trad_target): New function.
7697 * linux-nat.h (linux_trad_target): Declare.
7698
7699 * alpha-linux-nat.c: Include "gdbcore.h".
7700 (alpha_linux_register_u_offset): New function.
7701 (_initialize_alpha_linux_nat): Use linux_trad_target.
7702
7703 * mips-linux-nat.c: Include "gdbcore.h".
7704 (mips_linux_register_u_offset): New function.
7705 (_initialize_mips_linux_nat): Use linux_trad_target.
7706
7707 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7708 * config/arm/nm-linux.h: Delete file.
7709
7710 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7711 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7712
7713 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7714 * config/ia64/nm-linux.h: Delete file.
7715
7716 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7717 * config/m32r/nm-linux.h: Delete file.
7718
7719 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7720 * config/m68k/nm-linux.h: Delete file.
7721
7722 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7723 * config/pa/nm-linux.h: Delete file.
7724
7725 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7726 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7727 * config/powerpc/nm-linux.h: Delete file.
7728
7729 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7730 * config/s390/nm-linux.h: Delete file.
7731
7732 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7733 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7734 * config/sparc/nm-linux.h: Delete file.
7735
7736 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7737 (mips-linux-nat.o): Likewise.
7738
7739 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7740
7741 * core-aout.c: Delete file.
7742 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7743 (core-aout.o): Delete rule.
7744 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7745
7746 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7747
7748 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7749 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7750 KERNEL_U_ADDR): Remove.
7751
7752 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7753 (cannot_fetch_register, cannot_store_register): Remove.
7754 (fetch_register): Inline cannot_fetch_register and register_addr.
7755 (store_register): Inline cannot_store_register and register_addr.
7756 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7757 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7758 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7759 Remove.
7760
7761 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7762 (fetch_register): Inline register_addr.
7763 (store_register): Inline register_addr.
7764 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7765 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7766 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7767
7768 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7769 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7770 REGISTER_U_ADDR): Remove.
7771
7772 * hppa-linux-nat.c (register_addr): Rename to ...
7773 (hppa_linux_register_addr): ... this. Make static.
7774 (fetch_register, store_register): Adapt callers.
7775 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7776
7777 * ppc-linux-nat.c (kernel_u_size): Remove.
7778 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7779
7780 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7781 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7782 (NAT_FILE): Remove.
7783 * config/vax/nm-vax.h: Delete file.
7784
7785 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7786
7787 * MAINTAINERS (Write After Approval): Add myself.
7788
7789 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7790
7791 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7792 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7793 (m68k_linux_sigcontext_reg_offset): Fix typo.
7794 (target_is_uclinux): New.
7795 (m68k_linux_inferior_created): New.
7796 (m68k_linux_get_sigtramp_info): Check for uClinux or
7797 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7798 uClinux.
7799 (_initialize_m68k_linux_tdep): Register
7800 m68k_linux_inferior_created.
7801
7802 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7803
7804 * win32-nat.c (win32_detach): Remove delete_command call.
7805 Resume inferior with win32_resume instead of win32_continue.
7806
7807 2007-04-19 Jerome Guitton <guitton@adacore.com>
7808
7809 * ser-mingw.c (fd_is_file): New function.
7810 (file_select_thread): New function.
7811 (ser_console_wait_handle): Add special handling for files.
7812
7813 2007-04-18 Denis Pilat <denis.pilat@st.com>
7814
7815 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7816 when missing from DW_TAG_subrange_type. Remove the handling of null
7817 return from die_type.
7818
7819 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7820
7821 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7822 change to rearrange some brackets.
7823 (mips_n32n64_push_dummy_call): Likewise.
7824 (mips_o32_push_dummy_call): Likewise.
7825 (mips_o64_push_dummy_call): Likewise.
7826
7827 2007-04-18 Denis Pilat <denis.pilat@st.com>
7828
7829 * infcmd.c (post_create_inferior): Start with a call to
7830 target_terminal_ours.
7831
7832 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7833
7834 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7835 brackets.
7836 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7837 expressions.
7838 (mips_o32_push_dummy_call): Likewise.
7839 (mips_o64_push_dummy_call): Likewise.
7840
7841 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7842
7843 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7844 comment.
7845
7846 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7847
7848 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7849 comment.
7850 (mips_o32_push_dummy_call): Likewise.
7851
7852 2007-04-17 Andreas Schwab <schwab@suse.de>
7853
7854 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7855 sal to be bigger than the end of the function.
7856
7857 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7858 Nigel Stephens <nigel@mips.com>
7859
7860 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7861 argument alignment requirements when calculating stack space
7862 required. When aligning an arg register to eight bytes
7863 boundary, align stack_offset too. Write floating-point
7864 arguments to the appropriate integer register if need go there.
7865 (mips_o64_push_dummy_call): Likewise.
7866
7867 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7868
7869 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7870 "sig" arguments, add "regcache" argument.
7871 * gdbarch.c, gdbarch.h: Regenerate.
7872
7873 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7874 (handle_inferior_event): Call remove_single_step_breakpoints directly
7875 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7876
7877 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7878 Remove handling of !insert_breakpoints_p case.
7879 * arm-tdep.c (arm_software_single_step): Likewise.
7880 * cris-tdep.c (cris_software_single_step): Likewise.
7881 * mips-tdep.c (mips_software_single_step): Likewise.
7882 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7883 * sparc-tdep.c (sparc_software_single_step): Likewise.
7884 * spu-tdep.c (spu_software_single_step): Likewise.
7885
7886 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7887 * mips-tdep.h (mips_software_single_step): Likewise.
7888 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7889 * sparc-tdep.h (sparc_software_single_step): Likewise.
7890
7891 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7892
7893 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7894 when removing single-step breakpoints.
7895
7896 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7897
7898 * varobj.h (varobj_set_frozen): New
7899 (varobj_get_frozen): New.
7900 (varobj_update): New parameter explicit.
7901 * varobj.c (struct varobj): New fields frozen
7902 and not_fetched.
7903 (varobj_set_frozen, varobj_get_frozen): New.
7904 (install_new_value): Don't fetch values for
7905 frozen variable object, or children thereof. Allow
7906 a frozen variable object to have non-fetched value.
7907 (varobj_update): Allow updating child variables.
7908 Don't traverse frozen children.
7909 (new_variable): Initialize the frozen field.
7910 (c_value_of_variable): Return NULL for frozen
7911 variable without any value yet.
7912 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7913 'explicit'.
7914 (mi_cmd_var_create): Output the 'frozen' field,
7915 as soon as testsuite is adjusted to expect that field.
7916 (mi_cmd_var_set_frozen): New.
7917 (mi_cmd_var_update): Pass the 'explicit' parameter to
7918 varobj_update_one.
7919 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7920 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7921
7922 2007-04-13 Paul Brook <paul@codesourcery.com>
7923
7924 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7925 ieee_double.
7926 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7927
7928 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7929
7930 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7931 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7932 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7933 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7934 * Makefile.in: Remove references to deleted files.
7935 * README: Do not mention deleted ROM monitor interfaces.
7936 * defs.h (enum language): Delete language_scm.
7937 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7938 (dump_subexp_body_standard): Likewise.
7939 * parse.c (operator_length_standard): Likewise.
7940 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7941 * remote-mips.c: Do not include remote-utils.h.
7942 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7943 throughout.
7944 * value.c: Do not include scm-lang.h.
7945 (unpack_long): Delete scm_unpack call.
7946 * config/h8300/h8300.mt, config/mips/embed.mt,
7947 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7948 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7949 deleted files.
7950 * NEWS: Mention removed files.
7951
7952 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7953
7954 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7955 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7956
7957 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7958
7959 * NEWS: Mention removal of HP aCC support.
7960
7961 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7962
7963 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7964 first entry for static executables.
7965 (breakpoint_addr): Delete unused variable.
7966 (elf_locate_base): Search for _r_debug in static executables.
7967 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7968 also.
7969
7970 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7971
7972 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7973 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7974 (mention): Remove bp_through_sigtramp support.
7975 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7976
7977 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7978
7979 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7980 shlib events.
7981
7982 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7983
7984 * infrun.c: Doc fixes.
7985 (handle_inferior_event): Clarify debug message.
7986 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7987
7988 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7989
7990 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7991
7992 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7993
7994 * config/m68k/tm-monitor.h: Delete file.
7995 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7996 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7997 call moved to ...
7998 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7999 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8000
8001 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8002
8003 * gdbarch.sh (software_single_step): Change the return type
8004 from void to int and reformatted some comments to <= 80
8005 columns.
8006 * gdbarch.c, gdbarch.h: Regenerated.
8007 * alpha-tdep.c (alpha_software_single_step): Likewise.
8008 * alpha-tdep.h (alpha_software_single_step): Likewise.
8009 * arm-tdep.c (arm_software_single_step): Likewise.
8010 * cris-tdep.c (cris_software_single_step): Likewise.
8011 * mips-tdep.c (mips_software_single_step): Likewise.
8012 * mips-tdep.h (mips_software_single_step): Likewise.
8013 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8014 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8015 * sparc-tdep.c (sparc_software_single_step): Likewise.
8016 * sparc-tdep.h (sparc_software_single_step): Likewise.
8017 * spu-tdep.c (spu_software_single_step): Likewise.
8018 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8019 and act accordingly.
8020
8021 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8022
8023 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8024 * configure: Regenerate.
8025 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8026
8027 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8028
8029 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8030
8031 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8032
8033 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8034 macros.
8035 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8036 distinct on the TYPE_STUB_SUPPORTED debug targets.
8037 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8038
8039 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8040
8041 * sparc-tdep.c (X_RS2): New macro.
8042 (sparc_skip_stack_check): New function.
8043 (sparc_analyze_prologue): Adjust PC past stack probing
8044 sequence if necessary.
8045
8046 2007-04-10 Andreas Schwab <schwab@suse.de>
8047
8048 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8049 register.
8050
8051 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8052
8053 * breakpoint.c (gdb_breakpoint_query): Really return an
8054 enum gdb_rc.
8055 (gdb_breakpoint): Likewise.
8056 * thread.c (gdb_list_thread_ids): Likewise.
8057 (gdb_thread_select): Likewise.
8058 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8059 (mi_cmd_thread_list_ids): Remove bogus initialization.
8060
8061 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8062
8063 * Makefile.in (SFILES): Remove hpacc-abi.c.
8064 (COMMON_OBS): Remove hpacc-abi.o.
8065 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8066 (hpacc-abi.o, hpread.o): Delete rules.
8067 * somread.c: Delete extern declarations from hpread.c.
8068 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8069 (som_symfile_finish): Do not call hpread_symfile_finish.
8070 (som_symfile_init): Do not call hpread_symfile_init.
8071 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8072 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8073 * hpacc-abi.c, hpread.c: Deleted.
8074
8075 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8076
8077 * solib-svr4.c (enable_break): Simplify return value.
8078 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8079
8080 2007-04-10 Andreas Schwab <schwab@suse.de>
8081
8082 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8083 l_ld_size, l_next_size, l_prev_size, l_name_size.
8084
8085 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8086 to extract addresses from link map.
8087 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8088 (LM_NEXT): Likewise.
8089 (LM_NAME): Likewise.
8090 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8091 (elf_locate_base): Likewise.
8092 (open_symbol_file_object): Likewise.
8093 (svr4_fetch_objfile_link_map): Likewise.
8094 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8095 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8096 l_ld_size.
8097 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8098 (svr4_lp64_fetch_link_map_offsets): Likewise.
8099
8100 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8101 removed members. Set l_ld_offset to -1 if not present.
8102
8103 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8104
8105 Pass stderr of program run with "target remote |"
8106 via gdb_stderr.
8107 * serial.c (serial_open): Set error_fd to -1.
8108 * serial.h (struct serial): New field error_fd.
8109 (struct serial_opts): New field avail.
8110 * ser-pipe.c (pipe_open): Create another pair
8111 of sockets. Pass stderr to gdb.
8112 * ser-mingw.c (pipe_windows_open): Pass
8113 PEX_STDERR_TO_PIPE to pex_run. Initialize
8114 sd->error_fd.
8115 (pipe_avail): New.
8116 (_initialize_ser_windows): Hook pipe_avail.
8117 * ser-base.c (generic_readchar): Check if there's
8118 anything in stderr channel and route that to gdb_stderr.
8119
8120 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8121
8122 * dbxread.c (read_ofile_symtab): Move current_objfile
8123 clearing to after end_stabs.
8124
8125 2007-04-01 Andreas Schwab <schwab@suse.de>
8126
8127 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8128 gdbarch instead of current_gdbarch.
8129
8130 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8131
8132 * varobj.c (varobj_create): Keep varobj value
8133 NULL when evaluating the type.
8134
8135 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8136
8137 * NEWS: Mention new Windows CE support.
8138
8139 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8140
8141 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8142 the obsoletion stanza.
8143 * NEWS: Mention deleted targets.
8144
8145 * config/sh/tm-wince.h: Remove.
8146 * config/sh/wince.mt: Remove.
8147 * config/mips/tm-wince.h: Remove.
8148 * config/mips/wince.mt: Remove.
8149
8150 * wince.c: Remove.
8151 * wince-stub.c: Remove.
8152 * wince-stub.h: Remove.
8153 * Makefile.in (wince.o): Remove rule.
8154 (wince-stub.o): Likewise.
8155
8156 * mips-tdep.c (mips_next_pc): Make static.
8157 * mips-tdep.h (mips_next_pc): Remove declaration.
8158 * arm-tdep.c (arm_pc_is_thumb): Make static.
8159 (thumb_get_next_pc): Likewise.
8160 (arm_get_next_pc): Likewise.
8161 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8162 (arm_pc_is_thumb): Likewise.
8163 (thumb_get_next_pc): Likewise.
8164 (arm_get_next_pc): Likewise.
8165
8166 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8167
8168 * MAINTAINERS: Remove d10v entry.
8169 * Makefile.in (SFILES): Remove dwarfread.c.
8170 (COMMON_OBS): Remove dwarfread.o.
8171 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8172 (remote-est.o, rom68k-rom.o): Delete.
8173 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8174 target est, target rom68k, and DWARF 1.
8175 * configure.tgt: Mark d10v as removed.
8176 * dwarf2read.c: Doc update.
8177 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8178 and lnsize.
8179 (elf_locate_sections): Do not set them.
8180 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8181 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8182 * config/m68k/monitor.mt (TDEPFILES): Prune.
8183 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8184 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8185
8186 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8187
8188 * doublest.c (convert_floatformat_to_doublest): Use
8189 floatformat_classify.
8190 (floatformat_is_nan): Rename to...
8191 (floatformat_classify): ...this. Return more information.
8192 * doublest.h (enum float_kind): New.
8193 (floatformat_is_nan): Replace prototype...
8194 (floatformat_classify): ...with this one.
8195 * valprint.c (print_floating): Use floatformat_classify. Handle
8196 infinity.
8197
8198 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8199
8200 * README: Mention ISO C library requirement.
8201
8202 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8203
8204 * Makefile.in (SFILES): Remove nlmread.c.
8205 (COMMON_OBS): Remove nlmread.o.
8206 (nlmread.o): Delete rule.
8207 * README: Delete reference to remote-st.c.
8208 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8209 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8210 GDB_OSABI_LYNXOS.
8211 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8212 (_initialize_i386_tdep): Do not reference them.
8213 * nlmread.c: Delete file.
8214 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8215 * target.c: Doc update.
8216 * thread.c: Delete commented include.
8217 * config/alpha/tm-alpha.h: Doc update.
8218
8219 2007-03-30 Chris Dearman <chris@mips.com>
8220
8221 * utils.c (string_to_core_addr): Comment typo.
8222
8223 2007-03-30 Chris Dearman <chris@mips.com>
8224
8225 * mips-tdep.c: Comment typo.
8226
8227 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8228
8229 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8230 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8231 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8232 * config/powerpc/nm-ppc64-linux.h: Remove file.
8233 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8234 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8235 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8236 * infptrace.c (call_ptrace): Likewise.
8237 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8238 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8239 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8240 (store_register): Likewise.
8241
8242 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8243
8244 * Makefile.in (varobj.o): Add missing dependency.
8245
8246 2007-03-29 Michael Snyder <msnyder@access-company.com>
8247
8248 * MAINTAINERS: Update my email address.
8249
8250 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8251
8252 Add support for exception handling with multiple versions of
8253 the Ada runtime:
8254 * ada-lang.c: Update general comments on how Ada exception catchpoints
8255 are implemented.
8256 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8257 (__gnat_raise_nodefer_with_msg): Delete.
8258 (ada_unhandled_exception_name_addr_ftype): New type.
8259 (exception_support_info): New type.
8260 (ada_unhandled_exception_name_addr): Add forward declaration.
8261 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8262 (default_exception_support_info): New constant.
8263 (exception_support_info_fallback): Likewise.
8264 (exception_info): New global variable.
8265 (ada_exception_support_info_sniffer): New function.
8266 (ada_executable_changed_observer): Likewise.
8267 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8268 ada_unhandled_exception_name_addr.
8269 (ada_unhandled_exception_name_addr): Reimplement to match the
8270 latest Ada runtime implementation.
8271 (error_breakpoint_runtime_sym_not_found): Delete.
8272 (ada_exception_sym_name): Get the exception sym name from
8273 exception_info rather than hardcoding it.
8274 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8275 Update error handling.
8276 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8277
8278 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8279
8280 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8281 (remote-st.o, uw-thread.o): Delete.
8282 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8283 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8284 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8285 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8286 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8287 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8288 rs6000-*-lynxos* to an obsoletion stanza.
8289 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8290 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8291 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8292 i[34567]86-*-netware*.
8293 * NEWS: Mention deleted targets.
8294
8295 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8296 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8297 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8298 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8299 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8300 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8301 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8302 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8303 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8304 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8305 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8306 config/rs6000/tm-rs6000ly.h: Delete files.
8307
8308 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8309
8310 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8311 * interps.c (clear_interpreter_hooks): Do not clear
8312 deprecated_registers_changed_hook.
8313 * regcache.c (registers_changed): Do not call it.
8314 * top.c (deprecated_registers_changed_hook): Do not define it.
8315 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8316 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8317 (tui_remove_hooks): Do not remove it.
8318 (tui_selected_frame_level_changed_hook): Check for negative level.
8319 Use get_selected_frame.
8320 (tui_registers_changed_hook): Deleted.
8321
8322 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8323
8324 * stabsread.c (add_undefined_type): Add extra parameter.
8325 Now handles nameless types separately.
8326 (struct nat): New type.
8327 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8328 New static variables.
8329 (read_type): Update calls to add_undefined_type.
8330 (add_undefined_type_noname): New function.
8331 (add_undefined_type_1): Renames from add_undefined_type.
8332 (cleanup_undefined_types_noname): New function.
8333 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8334 (cleanup_undefined_types): New handles nameless types separately.
8335 (_initialize_stabsread): Initialize our new static constants.
8336
8337 2007-03-29 Denis Pilat <denis.pilat@st.com>
8338
8339 * configure.ac: Test for signal.h.
8340 * configure, config.in: Regenerate.
8341
8342 2007-03-29 Denis Pilat <denis.pilat@st.com>
8343
8344 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8345 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8346
8347 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8348
8349 * arm-wince-tdep.c: New.
8350 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8351 (MT_CFLAGS): Delete.
8352 (TM_CLIBS): Delete.
8353 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8354 solib-legacy.o, solib-svr4.o, and remove wince.o.
8355 * configure.tgt (arm*-*-mingw32ce*): Add.
8356 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8357 (do_target_signal_to_host): Silence 'not used' warning.
8358 * config/arm/tm-wince.h: Remove.
8359
8360 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8361
8362 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8363 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8364
8365 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8366 * config/ia64/tm-linux.h: Remove file.
8367 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8368 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8369 legacy_pc_in_sigtramp.
8370 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8371 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8372 Remove func_name argument.
8373 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8374
8375 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8376 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8377 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8378 (HAVE_STEPPABLE_WATCHPOINT): Define.
8379
8380 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8381 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8382 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8383 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8384 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8385 target_insert_watchpoint, target_remove_watchpoint): Remove.
8386 (FETCH_INFERIOR_REGISTERS): Define.
8387 * ia64-linux-nat.c (ia64_register_addr): Make static.
8388 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8389 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8390 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8391 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8392 (ia64_linux_stopped_by_watchpoint): Make static.
8393 (ia64_linux_can_use_hw_breakpoint): New function.
8394 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8395 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8396 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8397
8398 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8399
8400 * linespec.c: Include language.h.
8401 (find_methods): Add language parameter. Call
8402 lookup_symbol_in_language. Pass language down.
8403 (add_matching_methods): Likewise. Call
8404 lookup_symbol_in_language.
8405 (add_constructors): Likewise.
8406 (find_method): Pass sym_class to collect_methods.
8407 (collect_methods): Add sym_class parameter. Pass language
8408 down.
8409 * symtab.c (lookup_symbol): Rename to ...
8410 (lookup_symbol_in_language): ... this. Add language
8411 parameter. Use passed language instead of current_language.
8412 (lookup_symbol): New as wrapper around
8413 lookup_symbol_in_language.
8414 (lookup_symbol_aux): Add language parameter. Use passed
8415 language instead of current_language.
8416 (search_symbols): Indent.
8417 * symtab.h (enum language): Forward declare.
8418 (lookup_symbol_in_language): Declare.
8419 (lookup_symbol): Update description.
8420 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8421 * ada-lang.c (restore_language): Remove.
8422 (lookup_symbol_in_language): Remove.
8423
8424 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8425
8426 * breakpoint.c (bpstat_num): Add int *num parameter.
8427 * breakpoint.h (bpstat_num): Likewise.
8428 * infcmd.c (continue_command): Adjust to new bpstat_num
8429 interface.
8430 (program_info): Likewise.
8431
8432 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8433
8434 * config/sh/tm-sh.h: Remove file.
8435 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8436 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8437 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8438 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8439
8440 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8441
8442 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8443 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8444 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8445 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8446 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8447 sequence if target_shortname is "remote".
8448
8449 2007-03-27 Anton Blanchard <anton@samba.org>
8450
8451 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8452 instead of wordsize when looking for the LR in a stack frame.
8453
8454 2007-03-27 Andreas Schwab <schwab@suse.de>
8455 Daniel Jacobowitz <dan@codesourcery.com>
8456
8457 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8458 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8459 argument. Update all callers.
8460 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8461 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8462 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8463 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8464 (dwarf2_frame_set_adjust_regnum): ...this.
8465 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8466 * rs6000-tdep.c: Include "dwarf2-frame.h".
8467 (rs6000_adjust_frame_regnum): Define.
8468 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8469 Register rs6000_adjust_frame_regnum.
8470
8471 * Makefile.in (rs6000-tdep.o): Update dependencies.
8472
8473 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8474
8475 * Makefile.in: Add support for a "pdf" target.
8476
8477 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8478
8479 * amd64-tdep.c (amd64_init_frame_cache): New function.
8480 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8481
8482 2007-03-26 Nigel Stephens <nigel@mips.com>
8483 Maciej W. Rozycki <macro@mips.com>
8484
8485 * ui-out.c (ui_out_field_core_addr): Truncate address to
8486 TARGET_ADDR_BIT size before printing.
8487
8488 2007-03-22 Nigel Stephens <nigel@mips.com>
8489 Maciej W. Rozycki <macro@mips.com>
8490
8491 * remote-mips.c (mips_xfer_memory): Update prototype.
8492
8493 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8494
8495 * symfile.h: #include "symtab.h"
8496
8497 2007-03-22 Denis Pilat <denis.pilat@st.com>
8498
8499 * utils.c (pagination_on_command, pagination_off_command):
8500 Remove useless prototypes.
8501
8502 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8503
8504 Fix PR pascal/2232.
8505 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8506 instead of TYPE_NAME for object base class name.
8507
8508
8509 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8510
8511 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8512 Specify frame type in calls to frame_func_unwind().
8513
8514 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8515
8516 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8517 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8518 (refine_prologue_limit): Delete.
8519 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8520 Assume lim_pc is set. Correct check for incomplete prologues.
8521 Do not skip clobbers of the frame pointer.
8522 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8523 sal.
8524
8525 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8526
8527 * frame.c (frame_pop): Check to see whether there's a frame to
8528 which we can pop first.
8529
8530 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8531
8532 * MAINTAINERS (Write After Approval): Add myself.
8533
8534 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8535
8536 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8537 (handle_inferior_event): Remove unnecessary braces.
8538 * breakpoint.c (bpstat_what): Remove wrong comment.
8539
8540 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8541
8542 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8543 (spu_gdbarch_init): Install it.
8544
8545 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8546
8547 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8548 object types, not 0.
8549
8550 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8551
8552 * spu-tdep.c (spu_frame_align): New function.
8553 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8554
8555 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8556
8557 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8558 (spu_software_single_step): Likewise.
8559 (spu_read_pc, spu_write_pc): New functions.
8560 (spu_gdbarch_init): Install them.
8561
8562 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8563
8564 * cli/cli-dump.c (struct callback_data): load_offset needs to
8565 have signed long type.
8566
8567 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8568
8569 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8570 Revert the previous change that had some unexpected side-effects
8571 on mips32.
8572 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8573 function to get the address of the calling instruction.
8574
8575 2007-03-07 Denis Pilat <denis.pilat@st.com>
8576
8577 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8578 get_selected_frame by deprecated_safe_get_selected_frame.
8579
8580 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8581
8582 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8583 "gdb_string.h". Don't include "nbsd-tdep.h".
8584 (SIZEOF_STRUCT_REG): Remove.
8585 (SHNBSD_SIZEOF_GREGS): New.
8586 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8587 (shnbsd_regset_from_core_section): New functions.
8588 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8589 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8590 shnbsd_supply_gregset, shnbsd_collect_gregset.
8591 (shnbsd_gregset): New variable.
8592 (shnbsd_init_abi): Set regset_from_core_section.
8593 (GDB_OSABI_NETBSD_CORE): New define.
8594 (shnbsd_core_osabi_sniffer): New function.
8595 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8596 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8597 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8598 nbsd-tdep.o.
8599 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8600
8601 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8602
8603 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8604 length of the types referenced by the new type CV ring.
8605
8606 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8607
8608 * frame.c (frame_pop, frame_observer_target_changed): Call
8609 reinit_frame_cache.
8610 (flush_cached_frames): Rename to reinit_frame_cache and delete
8611 old implementation.
8612 * frame.h (flush_cached_frames): Delete prototype and update comment.
8613
8614 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8615 reinit_frame_cache instead of flush_cached_frames. Do not call
8616 select_frame after reinit_frame_cache.
8617 * corelow.c (core_open): Likewise.
8618 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8619 * infrun.c (prepare_to_proceed, context_switch)
8620 (handle_inferior_event): Likewise.
8621 * linux-fork.c (fork_load_infrun_state): Likewise.
8622 * ocd.c (ocd_start_remote): Likewise.
8623 * remote-e7000.c (e7000_start_remote): Likewise.
8624 * remote-mips.c (device): Likewise.
8625 * thread.c (switch_to_thread): Likewise.
8626 * tracepoint.c (finish_tfind_command): Likewise.
8627 * gdbarch.c: Regenerated.
8628
8629 2007-02-28 Jerome Guitton <guitton@adacore.com>
8630 Joel Brobecker <brobecker@adacore.com>
8631
8632 * gdbtypes.c (check_typedef): Do not replace stub type if
8633 the resolved type is not defined in the same objfile.
8634
8635 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8636
8637 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8638
8639 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8640
8641 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8642 symbol for Ada units when the symbol is defined using 't' rather
8643 than 'Tt' as symbol descriptor.
8644
8645 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8646
8647 * config/mips/tm-nbsd.h: Delete file.
8648 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8649 * config/sh/tm-nbsd.h: Delete file.
8650 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8651
8652 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8653
8654 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8655 unused WRONG_PARAM value since it was recently deleted.
8656
8657 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8658
8659 * varobj.c (varobj_update): Free temporary vectors.
8660
8661 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8662
8663 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8664 * config/powerpc/tm-linux.h: Delete file.
8665 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8666 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8667 (TEXT_SEGMENT_BASE): Do not redefine.
8668 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8669 from config/rs6000/tm-rs6000.h.
8670 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8671 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8672 (TEXT_SEGMENT_BASE): Remove.
8673 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8674 (rs6000_in_solib_return_trampoline): Remove.
8675 (SKIP_TRAMPOLINE_CODE): Remove.
8676 (rs6000_skip_trampoline_code): Remove.
8677 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8678 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8679 (FP0_REGNUM): Remove.
8680 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8681 (rs6000_set_host_arch_hook): Remove.
8682 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8683 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8684 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8685 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8686 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8687 * rs6000-nat.c: Include "rs6000-tdep.h".
8688 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8689 (set_host_arch): Rename to ...
8690 (rs6000_create_inferior): ... this. Make public.
8691 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8692 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8693 (rs6000_create_inferior): Remove.
8694 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8695 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8696 set_gdbarch_in_solib_return_trampoline, and
8697 set_gdbarch_skip_trampoline_code.
8698 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8699 from config/rs6000/tm-rs6000.h.
8700
8701 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8702
8703 * buildsym.c (record_producer): Do nothing if no producer is provided.
8704
8705 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8706
8707 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8708 to check changelist is non-NULL. Call error if the frontend tries
8709 to update a non-root variable.
8710
8711 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8712
8713 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8714
8715 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8716 (dwarf2_frame_sniffer): Update.
8717 (dwarf2_signal_frame_this_id): New function.
8718 (dwarf2_signal_frame_unwind): Use it.
8719 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8720 * frame.c (frame_func_unwind): Add this_type argument.
8721 (get_frame_func): Update.
8722 (frame_unwind_address_in_block): Add this_type argument and check it.
8723 Fix a typo.
8724 (get_frame_address_in_block): Update.
8725 * frame.h (enum frame_type): Move higher in the file.
8726 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8727 argument.
8728
8729 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8730 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8731 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8732 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8733 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8734 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8735 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8736 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8737 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8738 frame_func_unwind and frame_unwind_address_in_block to specify
8739 the frame type. Use frame_unwind_address_in_block instead of
8740 frame_pc_unwind in sniffers.
8741
8742 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8743
8744 * frame.c (deprecated_selected_frame): Rename to...
8745 (selected_frame): ...this. Make static.
8746 (get_selected_frame, select_frame): Update.
8747 * frame.h (deprected_select_frame): Delete.
8748 (deprecated_safe_get_selected_frame): Update comments.
8749
8750 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8751 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8752 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8753 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8754 tui/tui.c: Replace references to deprecated_selected_frame.
8755
8756 2007-02-27 Fred Fish <fnf@specifix.com>
8757
8758 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8759 directly decrement the stack pointer, accumulate their operand into
8760 the stack offset, and mark the function as not being frameless.
8761
8762 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8763
8764 * arch-utils.c (selected_byte_order): New.
8765 * arch-utils.h (selected_byte_order): New prototype.
8766 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8767
8768 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8769
8770 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8771 (default_symfile_offsets): Check VMA here. Update section VMAs.
8772
8773 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8774
8775 * remote.c (init_remote_state): Add special handling for placeholder
8776 registers.
8777
8778 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8779
8780 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8781 (filenames_h): New variable.
8782 (clean): Clean up xml-builtin.c and stamp-xml.
8783 (arm-linux-nat.o): Update.
8784 * config/arm/linux.mh (TDEP_XML): Define.
8785 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8786 (arm_linux_has_wmmx_registers): New.
8787 (GET_THREAD_ID): Fix typo.
8788 (IWMMXT_REGS_SIZE): Define.
8789 (fetch_wmmx_regs, store_wmmx_regs): New.
8790 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8791 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8792 (super_xfer_partial, arm_linux_xfer_partial): New.
8793 (_initialize_arm_linux_nat): Use them.
8794 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8795 (xml_builtin_xfer_partial): New function.
8796 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8797 * NEWS: Update mention of iWMMXt support.
8798
8799 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8800
8801 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8802 if there are no FPA registers.
8803 (arm_dwarf_reg_to_regnum): New function.
8804 (arm_register_type, arm_register_name): Return minimal values for
8805 unsupported registers.
8806 (arm_register_sim_regno): Handle iWMMXt registers.
8807 (arm_gdbarch_init): Record missing FPA registers if indicated by
8808 a target description. Recognize iWMMXt registers. Only register
8809 "info float" for FPA. Use ARM_NUM_REGS. Register
8810 arm_dwarf_reg_to_regnum.
8811 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8812 constants.
8813 (struct gdbarch_tdep): Add have_fpa_registers.
8814 * features/xscale-iwmmxt.xml: Update capitalization.
8815 * regformats/arm-with-iwmmxt.dat: Regenerated.
8816
8817 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8818
8819 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8820
8821 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8822
8823 * MAINTAINERS (mep): New target.
8824
8825 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8826
8827 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8828 Richard Sandiford:
8829 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8830 (mep-tdep.o): New rule.
8831 * configure.tgt (mep-*-*): New target.
8832 * mep-tdep.c: New file.
8833 * config/mep/mep.mt: New file.
8834
8835 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8836
8837 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8838 BREAKPOINT_HIT and STOP_UNKNOWN.
8839
8840 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8841
8842 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8843
8844 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8845
8846 * gdb_expat.h (XMLCALL): Define if not already defined.
8847
8848 2007-02-20 Andreas Schwab <schwab@suse.de>
8849
8850 * Makefile.in (symfile.o): Update dependencies.
8851
8852 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8853
8854 * MAINTAINERS: Disable -Werror for cris simulator. Build
8855 sparc64-solaris2.10 instead of the broken sparc-elf.
8856 * solib-frv.c: Include "solib.h".
8857 * Makefile.in (solib-frv.o): Update.
8858 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8859 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8860 (xtensa_frame_this_id, xtensa_frame_prev_register)
8861 (xtensa_push_dummy_call): Use %p.
8862
8863 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8864
8865 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8866 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8867 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8868 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8869 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8870 (sparc-linux-tdep.o): Update.
8871
8872 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8873
8874 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8875 (xtensa_mask_t): Change mask field to be a separate array.
8876 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8877 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8878 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8879 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8880 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8881 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8882 (mask14, mask15): Rename to
8883 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8884 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8885 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8886 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8887 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8888 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8889 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8890 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8891 (xtensa_submask14, xtensa_submask15): New.
8892 (rmap): Follow strict aliasing rules doing static initialization.
8893
8894 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8895
8896 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8897 handling from here...
8898 (tdesc_register_type): ...to here.
8899 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8900 * features/arm-core.xml: Use code_ptr and data_ptr.
8901
8902 2007-02-13 Denis Pilat <denis.pilat@st.com>
8903
8904 * varobj.h (enum varobj_update_error): New enum.
8905 * varobj.c (struct varobj_root): Add is_valid member.
8906 (varobj_get_type): Check for invalid varobj.
8907 (varobj_get_attributes): Likewise.
8908 (variable_editable):Likewise.
8909 (varobj_update): Likewise. Use varobj_update_error.
8910 (new_root_variable): Set root varobj as valid by default.
8911 (varobj_invalidate): New function.
8912 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8913 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8914 Use varobj_update_error.
8915
8916 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8917
8918 Fix PR pascal/2223.
8919 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8920 Pascal language marker.
8921 * dwarf2read.c (set_cu_language): Likewise.
8922
8923 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8924
8925 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8926 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8927 instead of target_terminal_init since inferior_ptid isn't set yet.
8928
8929 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8930
8931 * MAINTAINERS (Write After Approval): Add myself.
8932
8933 2007-02-09 Fred Fish <fnf@specifix.com>
8934
8935 Based on work by Apple Computer, Inc.
8936 * event-top.c (async_request_quit): Call quit() whenever either
8937 quit_flag is set or immediate_quit is set.
8938
8939 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8940
8941 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8942 type to a pointer to const struct block.
8943 (ada_lookup_symbol_list): Don't cast away constness when calling
8944 remove_out_of_scope_renamings.
8945
8946 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8947
8948 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8949 address of 'filename'; it is always non null.
8950
8951 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8952
8953 * exec.c (add_to_section_table): Do not discard empty sections.
8954
8955 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8956
8957 * features/Makefile, features/arm-with-iwmmxt.xml,
8958 features/gdbserver-regs.xsl, features/number-regs.xsl,
8959 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8960 * regformats/arm-with-iwmmxt.dat: Generate.
8961 * NEWS: Mention iWMMXt.
8962
8963 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8964
8965 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8966 (xml-tdesc.o): Update.
8967 * xml-support.c: Add a comment.
8968 (gdb_xml_enums_boolean): New variable.
8969 (gdb_xml_parse_attr_enum): Use strcasecmp.
8970 * xml-support.h (gdb_xml_enums_boolean): Declare.
8971 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8972 next_regnum, and current_union.
8973 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8974 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8975 (field_attributes, union_children, reg_attributes, union_attributes)
8976 (vector_attributes, feature_attributes, feature_children): New.
8977 (target_children): Make static. Add <feature>.
8978 (tdesc_elements): Make static.
8979 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8980 (struct tdesc_feature, tdesc_feature_p): New types.
8981 (struct target_desc): Add features member.
8982 (struct tdesc_arch_data, tdesc_data): New.
8983 (target_find_description): Clarify error message. Warn about
8984 ignored register descriptions.
8985 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8986 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8987 (tdesc_data_cleanup, tdesc_numbered_register)
8988 (tdesc_numbered_register_choices, tdesc_find_register)
8989 (tdesc_register_name, tdesc_register_type)
8990 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8991 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8992 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8993 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8994 (tdesc_create_feature, tdesc_record_type): New.
8995 (free_target_description): Free features.
8996 (_initialize_target_descriptions): Initialize tdesc_data.
8997 * arch-utils.c (default_remote_register_number): New.
8998 * arch-utils.h (default_remote_register_number): New prototype.
8999 * target-descriptions.h (set_tdesc_pseudo_register_name)
9000 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9001 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9002 (tdesc_numbered_register, tdesc_numbered_register_choices)
9003 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9004 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9005 (tdesc_create_reg): Declare.
9006 * gdbarch.sh (remote_register_number): New entry.
9007 * gdbarch.c, gdbarch.h: Regenerate.
9008 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9009 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9010
9011 * arm-tdep.c (arm_register_aliases): New.
9012 (arm_register_name_strings): Rename to...
9013 (arm_register_names): ...this. Make const. Delete the old version.
9014 (current_option, arm_register_byte): Delete.
9015 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9016 (value_of_arm_user_reg): New.
9017 (arm_gdbarch_init): Verify any described registers. Call
9018 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9019 for standard register names.
9020 (_initialize_arm_tdep): Do not adjust arm_register_names.
9021 * user-regs.c (struct user_reg): Add baton member.
9022 (append_user_reg, user_reg_add_builtin, user_regs_init)
9023 (user_reg_add, value_of_user_reg): Use a baton for user
9024 register functions.
9025 * std-regs.c: Update.
9026 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9027 (user_reg_add): Add baton argument.
9028 * NEWS: Mention target description register support.
9029 * features/arm-core.xml, features/arm-fpa.xml: New.
9030 * eval.c (evaluate_subexp_standard): Allow ptype $register
9031 when the program is not running.
9032
9033 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9034
9035 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9036
9037 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9038
9039 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9040 info->disassembler_options to "any".
9041
9042 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9043
9044 * varobj.c (install_new_value): Only call value_get_print_value
9045 if changeable.
9046
9047 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9048
9049 Reported by timeless@gmail.com:
9050 * gdb/target.c (target_flash_erase): Do not return void value.
9051 (target_flash_done): Likewise.
9052 * gdb/cli/cli-cmds.c (source_command): Likewise.
9053
9054 2007-02-08 Fred Fish <fnf@specifix.com>
9055
9056 Based on work by Apple Computer, Inc.
9057 * event-top.c (handle_sigint): Set quit_flag.
9058 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9059 if quit_flag has already been reset.
9060
9061 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9062
9063 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9064 up.
9065
9066 2007-02-08 Fred Fish <fnf@specifix.com>
9067
9068 * defs.h (request_quit): Remove declaration.
9069 * utils.c (request_quit): Remove definition.
9070
9071 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9072 Jan Kratochvil <jan.kratochvil@redhat.com>
9073 Daniel Jacobowitz <dan@codesourcery.com>
9074
9075 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9076 (skip_prologue): Allow bl->blrl used by PIC code.
9077
9078 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9079 Daniel Jacobowitz <dan@codesourcery.com>
9080
9081 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9082 initialize tmp_obstack.
9083 * p-valprint.c (pascal_object_print_value_fields)
9084 (pascal_object_print_value): Likewise.
9085
9086 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9087
9088 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9089
9090 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9091
9092 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9093 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9094
9095 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9096
9097 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9098 (xml_cache): New.
9099 (tdesc_parse_xml): Cache expanded descriptions.
9100
9101 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9102
9103 * Makefile.in (XMLFILES): New.
9104 (COMMON_OBS): Add xml-builtin.o.
9105 (xml-builtin.c, stamp-xml): New rules.
9106 (xml-tdesc.o): Update.
9107 * features/feature_to_c.sh: New file.
9108 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9109 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9110 (gdb_xml_start_element): Initialize scope after possibly reallocating
9111 scopes. Move cleanup later. Handle the XInclude description
9112 specially.
9113 (gdb_xml_end_element): Only parse the body if there is a current element.
9114 Call XML_DefaultCurrent if there is no element.
9115 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9116 (struct xinclude_parsing_data, xinclude_start_include)
9117 (xinclude_end_include, xml_xinclude_default)
9118 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9119 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9120 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9121 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9122 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9123 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9124 XInclude directives. Use the compiled in DTD.
9125 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9126 directory name. Do not warn here.
9127 (file_read_description_xml): Update call. Warn here instead. Pass
9128 a dirname as baton.
9129 (fetch_available_features_from_target): New.
9130 (target_read_description_xml): Use it.
9131 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9132 to handle XInclude.
9133 * features/xinclude.dtd: New file.
9134
9135 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9136
9137 * linux-thread-db.c (check_for_thread_db): Return early if we have
9138 no libthread_db support.
9139
9140 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9141
9142 * mi/mi-parse.h: Include <sys/time.h>.
9143
9144 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9145
9146 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9147 instead of print_variable_value to print values.
9148
9149 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9150
9151 * mi/mi-main.c: Numerous formatting changes.
9152 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9153 removed in my previous change.
9154
9155 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9156
9157 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9158 Use 1000000L instead of 1000000.
9159
9160 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9161
9162 Based on work by Apple Computer, Inc.
9163
9164 * configure.ac: Test for sys/resource.h and getrusage.
9165 * configure, config.in: Regenerate.
9166
9167 * mi/mi-main.c: Include <sys/resource.h> if present.
9168 (rusage): Declare if HAVE_GETRUSAGE.
9169 (current_command_ts, do_timings): New static variables.
9170 (timestamp, print_diff_now, print_diff, timeval_diff):
9171 New static timing functions.
9172 (mi_cmd_enable_timings): New function for new MI command.
9173 (captured_mi_execute_command, mi_execute_async_cli_command):
9174 Call timing functions.
9175
9176 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9177 -enable-timings.
9178
9179 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9180
9181 * mi/mi-parse.h: (mi_timestamp): New structure.
9182 (mi_parse): Add mi_timestamp* member.
9183
9184 2007-02-02 Denis Pilat <denis.pilat@st.com>
9185
9186 * thread.c (make_cleanup_restore_current_thread): New function.
9187 (info_threads_command): Use of make_cleanup_restore_current_thread
9188 to restore the current thread and the selected frame.
9189 (restore_selected_frame): New function.
9190 (struct current_thread_cleanup): Add frame_id field.
9191 (do_restore_current_thread_cleanup): Add restoring of the selected
9192 frame.
9193 (make_cleanup_restore_current_thread): Likewise.
9194 (thread_apply_all_command): backup the selected frame while
9195 entering the function and restore it at exit.
9196 (thread_apply_command): Likewise.
9197
9198 2007-02-02 Denis Pilat <denis.pilat@st.com>
9199
9200 * MAINTAINERS (Write After Approval): Add myself to the list.
9201
9202 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9203
9204 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9205 (m32r_store_register): Ditto.
9206
9207 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9208
9209 * ser-mingw.c (pipe_windows_open)
9210 (pipe_windows_read, pipe_windows_write): Declare
9211 variables at the top of the function.
9212
9213 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9214
9215 * doublest.c (floatformat_from_length): Use the right element from
9216 gdbarch floatformats.
9217 (floatformat_from_type, extract_typed_floating)
9218 (store_typed_floating): Likewise.
9219 * doublest.h: Remove declarations for undefined floatformat arrays.
9220 * gdbarch.sh (float_format, double_format, long_double_format): Change
9221 to pairs.
9222 (pformat): Update for pairs.
9223 * gdbarch.c, gdbarch.h: Regenerated.
9224 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9225 (floatformats_ieee_double_littlebyte_bigword)
9226 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9227 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9228 (floatformats_vax_d): New variables.
9229 (builtin_type_ieee_single, builtin_type_ieee_double)
9230 (builtin_type_arm_ext, builtin_type_ia64_spill)
9231 (builtin_type_ia64_quad): Replace arrays with individual types.
9232 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9233 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9234 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9235 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9236 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9237 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9238 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9239 unused and endian-specific types.
9240 (recursive_dump_type): Update for floatformat pairs.
9241 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9242 (build_gdbtypes): Use build_flt.
9243 (_initialize_gdbtypes): Update set of initialized types.
9244 * gdbtypes.h: Update declarations to match gdbtypes.c.
9245 (struct main_type): Store a pointer to two floatformats.
9246 * arch-utils.c (default_float_format, default_double_format): Delete.
9247 * arch-utils.h (default_float_format, default_double_format): Delete.
9248
9249 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9250 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9251 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9252 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9253 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9254
9255 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9256
9257 * target.c (maintenance_print_target_stack): New function.
9258 (initialize_targets): Add new "maintenance print target-stack"
9259 command.
9260
9261 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9262
9263 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9264
9265 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9266
9267 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9268 (struct dwarf2_loclist_baton): Likewise.
9269
9270 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9271
9272 * cli/cli-script.c: Include breakpoint.h.
9273 (build_command_line): Require arguments only for if and while
9274 commands.
9275 (get_command_line, execute_user_command, execute_control_command):
9276 Fix wording of warning messages.
9277 (print_command_lines): Print breakpoint commands.
9278 (execute_control_command): Call commands_from_control_command to
9279 handle the `commands' command inside a body of a flow-control
9280 command.
9281 (read_next_line): Recognize the `commands' command and build a
9282 command line structure for it.
9283 (recurse_read_control_structure, read_command_lines): Handle
9284 `commands' similarly to `if' and `while'.
9285
9286 * breakpoint.c (get_number_trailer): Document the special meaning
9287 of NULL as the first argument PP.
9288 (commands_from_control_command): New function.
9289
9290 * breakpoint.h (commands_from_control_command): Add prototype.
9291
9292 * defs.h (commands_control): New enumerated value for enum
9293 command_control_type.
9294
9295 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9296
9297 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9298 (ada_exception_sal): Update accordingly.
9299
9300 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9301
9302 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9303 * NEWS: Describe CHAR array vs. string identifcation rules.
9304
9305 2007-01-25 Paul Brook <paul@codesourcery.com>
9306
9307 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9308
9309 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9310
9311 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9312 expression is empty, bother to return the 'optimized out' value we
9313 construct. (Thanks to Carl Burch.)
9314
9315 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9316
9317 * varobj.c (c_value_of_root, c_value_of_child)
9318 (cplus_describe_child): Don't call release_value.
9319
9320 2007-01-24 Thiemo Seufer <ths@mips.com>
9321
9322 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9323 initialization.
9324
9325 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9326
9327 Refactor getting children name, value and type access
9328 for varobjs in C++.
9329 * varobj.c (get_type_deref): Remove.
9330 (adjust_value_for_child_access): New.
9331 (c_number_of_children): Use the above.
9332 (c_describe_child): Likewise.
9333 (enum accessibility): New.
9334 (match_accessibility): New function.
9335 (cplus_describe_child): New function.
9336 (cplus_name_of_child, cplus_value_of_child)
9337 (cplus_type_of_child): Reimplement in terms
9338 of cplus_describe_child.
9339 (cplus_number_of_children): Use
9340 adjust_value_for_child_access.
9341
9342 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9343
9344 Fix computation of the 'editable' attribute and
9345 value changeability for for references.
9346 * varobj.c (get_value_type): New function.
9347 (c_variable_editable): Use get_value_type.
9348 (varobj_value_is_changeable): Likewise.
9349
9350 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9351
9352 * source.c (find_and_open_source): Try rewriting the source
9353 path inside filename if dirname is NULL.
9354
9355 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9356
9357 * dwarf2read.c (add_partial_symbol): Create an extra partial
9358 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9359 (new_symbol): Likewise for symbols.
9360
9361 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9362
9363 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9364
9365 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9366
9367 * value.c (value_primitive_field): Copy the full 'location'
9368 contents, instead of assuming that copying ADDRESS will
9369 bring over everything in the union. Remove obsolete comment.
9370
9371 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9372
9373 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9374 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9375 (m32c_m16c_pointer_to_address): Separate code from declarations.
9376
9377 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9378
9379 * target.c (update_current_target): Correct typo.
9380
9381 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9382
9383 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9384 declaration.
9385
9386 2007-01-11 Andrew Cagney <cagney@redhat.com>
9387 Daniel Jacobowitz <dan@codesourcery.com>
9388 Jan Kratochvil <jan.kratochvil@redhat.com>
9389
9390 * dwarf2-frame.c (execute_cfa_program): New support of
9391 `DW_CFA_GNU_negative_offset_extended'.
9392
9393 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9394
9395 * NEWS: Mention flash support for "load" and new remote packets.
9396
9397 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9398
9399 * breakpoint.c (delete_command): Skip redundant loop iterations.
9400
9401 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9402
9403 * gdbarch.sh (register_type): Update comment.
9404 * gdbarch.h: Regenerated.
9405 * arch-utils.c (generic_register_size): Call register_type.
9406 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9407 * m32c-tdep.c (check_for_saved): Likewise.
9408 * mips-tdep.c (mips_print_register, print_gp_register_row)
9409 (mips_print_registers_info): Likewise.
9410 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9411 Likewise.
9412 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9413 (sh64_do_register, sh64_print_register)
9414 (sh64_media_print_registers_info): Likewise.
9415 * tui/tui-regs.c (tui_register_format): Likewise.
9416
9417 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9418
9419 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9420
9421 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9422 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9423 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9424 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9425 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9426 (make_symbol_completion_list): Likewise.
9427
9428 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9429 Daniel Jacobowitz <dan@codesourcery.com>
9430
9431 * buildsym.c (end_symtab): Use preallocated symtab if available.
9432 Fill in SYMBOL_SYMTAB.
9433 * buildsym.h (struct subfile): Add symtab member.
9434 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9435 (struct file_entry): Add symtab.
9436 (free_cu_line_header): New function.
9437 (read_file_scope): Use it. Save line_header in the cu. Process
9438 lines before DIEs.
9439 (add_file_name): Initialize new symtab member.
9440 (dwarf_decode_lines): Create symtabs for included files.
9441 (new_symbol): Set SYMBOL_SYMTAB.
9442 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9443 (search_symbols): Likewise.
9444 * symtab.h (struct symbol): Add symtab member.
9445 (SYMBOL_SYMTAB): Define.
9446
9447 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9448
9449 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9450
9451 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9452
9453 * arch-utils.c (show_endian): Correct reversed condition.
9454
9455 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9456
9457 * MAINTAINERS (Write After Approval): Add myself.
9458
9459 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9460 Vladimir Prus <vladimir@codesourcery.com>
9461
9462 Fix 'selected frame' varobjs.
9463 * varobj.c (struct varobj): Remove the error field.
9464 (varobj_set_value): Don't check var->error.
9465 (install_new_value): Don't set var->error.
9466 (varobj_update): Always pass the new value
9467 of the root via install_new_value.
9468 (create_child): Don't set error field.
9469 (new_variable): Likewise.
9470 (c_value_of_root): Always reevaluate the value
9471 of selected frame varobjs in the selected frame.
9472 Don't call reinit_frame_cache.
9473
9474 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9475
9476 * source.c (_initialize_source): Improve the help text of
9477 the substitute-path commands.
9478
9479 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9480
9481 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9482 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9483 (frv_skip_prologue): Remove prototypes.
9484 (frv_adjust_breakpoint_address): Renamed from
9485 frv_gdbarch_adjust_breakpoint_address.
9486 (frv_gdbarch_init): Adjust.
9487
9488 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9489
9490 * gdbarch.sh (deprecated_extract_return_value)
9491 (deprecated_store_return_value): Remove.
9492 (extract_return_value, store_return_value): Remove default values.
9493 * gdbarch.c, gdbarch.h: Regenerate.
9494 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9495 (legacy_store_return_value): Remove.
9496 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9497 Remove.
9498
9499 * mi/mi-main.c: Remove obsolete comment.
9500
9501 * regcache.c, regcache.h (deprecated_register_bytes)
9502 (deprecated_read_register_bytes)
9503 (deprecated_write_register_bytes): Remove.
9504
9505 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9506 Don't forget to move destination pointer.
9507
9508 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9509
9510 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9511
9512 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9513
9514 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9515 past entry function with recent newlib.
9516
9517 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9518
9519 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9520 introduction. Specify -var-update more exactly.
9521
9522 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9523
9524 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9525
9526 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9527
9528 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9529 the Global Maintainers' invitation to be a global maintainer.
9530
9531 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9532
9533 * infrun.c (singlestep_pc): New variable.
9534 (resume): Set singlestep_pc.
9535 (context_switch): Add a debugging message. Flush the frame cache.
9536 (handle_inferior_event): Add debugging messages. Handle thread
9537 hops when a software single step has completed. Let context_switch
9538 handle flushing the frame cache.
9539
9540 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9541
9542 * NEWS: Mention target descriptions, "set tdesc filename",
9543 "unset tdesc filename", "show tdesc filename", and
9544 qXfer:features:read.
9545 * arch-utils.c (choose_architecture_for_target): New function.
9546 (gdbarch_info_fill): Call it.
9547 * target-descriptions.c (struct property): Make members non-const.
9548 (struct target_desc): Add arch member.
9549 (target_description_filename): New variable.
9550 (target_find_description): Try via XML first.
9551 (tdesc_architecture): New.
9552 (free_target_description, make_cleanup_free_target_description): New.
9553 (set_tdesc_property): Call xstrdup.
9554 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9555 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9556 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9557 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9558 * target-descriptions.h (tdesc_architecture)
9559 (make_cleanup_free_target_description, set_tdesc_architecture): New
9560 prototypes.
9561 * Makefile.in (SFILES): Add xml-tdesc.c.
9562 (COMMON_OBS): Add xml-tdesc.o.
9563 (target-descriptions.o): Update.
9564 (xml-tdesc.o): New rule.
9565 * xml-tdesc.c, xml-tdesc.h: New files.
9566 * remote.c (PACKET_qXfer_features): New enum.
9567 (remote_protocol_features): Add qXfer:features:read.
9568 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9569 (_initialize_remote): Register qXfer:features:read.
9570 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9571 * features/gdb-target.dtd: New file.
9572
9573 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9574
9575 * copyright.sh: Clarify error.
9576
9577 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9578
9579 * symtab.c (matching_bfd_sections): Fix VMA matching for
9580 prelinked objects.
9581
9582 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9585 nested symbols.
9586
9587 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9588
9589 Updated copyright notices for most files.
9590
9591 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9592
9593 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9594
9595 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9596
9597 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9598 exec_prefix.
9599 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9600 '${prefix}'.
9601 * configure, config.in: Regenerate.
9602 * defs.h (debug_file_directory): Declare.
9603 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9604 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9605 relocate it if DEBUGDIR_RELOCATABLE.
9606 * symfile.c (debug_file_directory): Make non-static.
9607 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9608 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9609 (_initialize_symfile): Don't initialize debug_file_directory here.
9610
9611 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9612
9613 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9614 statements.
9615
9616 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9617
9618 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9619 frame_unwind_register to recurse.
9620 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9621 (alpha_heuristic_frame_prev_register): Likewise.
9622 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9623 * m32c-tdep.c (m32c_prev_register): Likewise.
9624 * frame.c (frame_register_unwind_location): Remove FIXME.
9625
9626 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9627 Eli Zaretskii <eliz@gnu.org>
9628
9629 * copyright.sh: New file.
9630
9631 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9632
9633 * configure.ac: Check for XML_StopParser.
9634 * xml-support.c (gdb_xml_body_text): Check for an error.
9635 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9636 (gdb_xml_end_element_wrapper): Likewise.
9637 * config.in, configure: Regenerated.
9638
9639 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9640
9641 * varobj.c (install_new_value): Always update print_value.
9642 (value_get_print_value): Immediately return NULL for missing
9643 values.
9644
9645 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9646
9647 * configure.ac: Tighten pattern for extracting value of
9648 DEPRECATED_TM_FILE from the target makefile fragment.
9649 * configure: Regenerated.
9650
9651 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9652
9653 * linux-nat.c (struct simple_pid_list): Add status.
9654 (add_to_pid_list): Record the PID's status.
9655 (linux_record_stopped_pid): Likewise. Make static.
9656 (pull_pid_from_list): Return the saved status.
9657 (linux_nat_handle_extended): Deleted.
9658 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9659 Make static. Handle non-SIGSTOP for a new thread's first signal.
9660 (flush_callback): Handle unexpected pending signals.
9661 (linux_nat_wait): Update calls to changed functions.
9662 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9663 Remove prototypes for newly static functions.
9664
9665 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9666
9667 * gdbarch.sh (value_from_register): New gdbarch function.
9668 * gdbarch.c, gdbarch.h: Regenerate.
9669 * findvar.c (default_value_from_register): New function.
9670 (value_from_register): Use gdbarch_value_from_register.
9671 * value.h (default_value_from_register): Declare.
9672 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9673 spu_value_to_register): Remove.
9674 (spu_value_from_register): New function.
9675 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9676 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9677 Call set_gdbarch_value_from_register.
9678 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9679 s390_value_to_register): Remove.
9680 (s390_value_from_register): New function.
9681 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9682 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9683 Call set_gdbarch_value_from_register.
9684
9685 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9686
9687 * NEWS: Add "set sysroot" and "show sysroot".
9688 * solib.c (solib_absolute_prefix): Delete. Replace
9689 all uses with gdb_sysroot.
9690 (_initialize_solib): Add "set sysroot" and "show sysroot".
9691 Make "solib-absolute-prefix" an alias to it.
9692
9693 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9694
9695 * frame.c (get_frame_register_bytes): New function.
9696 (put_frame_register_bytes): Likewise.
9697 * frame.h (get_frame_register_bytes): Declare.
9698 (put_frame_register_bytes): Likewise.
9699 * findvar.c (value_from_register): Always construct lval_register
9700 values. Use get_frame_register_bytes.
9701 * valops.c (value_assign): Use get_frame_register_bytes and
9702 put_frame_register_bytes.
9703
9704 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9705
9706 * MAINTAINERS: Update Stan Shebs' email address.
9707
9708 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9709
9710 * ada-lang.c (is_known_support_routine): Improve the implementation.
9711
9712 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9713
9714 * ada-lang.c: Add include of source.h.
9715 (is_known_support_routine): Improve the check verifying that the file
9716 associated to this frame exists.
9717 * Makefile.in (ada-lang.o): Add dependency on source.h.
9718
9719 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9720
9721 * ax-general.c (ax_const_l): Select proper opcode for the given
9722 value.
9723
9724 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9725
9726 * varobj.c (c_value_of_root): Don't select frame if variable
9727 object is out of scope.
9728
9729 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9730
9731 * varobj.c (struct varobj): New member print_value.
9732 (install_new_value): Compare last printed value with current one
9733 instead of contents.
9734 (new_variable): Initialize var->print_value to NULL.
9735 (free_variable): Free var->print_value.
9736 (value_get_print_value): New function derived from
9737 c_value_of_variable.
9738 (c_value_of_variable): Use value_get_print_value.
9739
9740 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9741
9742 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9743
9744 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9745
9746 * NEWS: Add entries for new catch commands.
9747
9748 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9749
9750 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9751 (add_partial_symbol): Correct identification of external references.
9752 (process_structure_scope): Likewise.
9753 (read_partial_die): Handle DW_AT_byte_size attribute.
9754
9755 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9756
9757 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9758
9759 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9760
9761 * varobj.c (get_type_deref): Fix variable objects for references to
9762 pointers.
9763
9764 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9765
9766 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9767 with no symbols.
9768
9769 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9770
9771 * memory-map.c (struct_memory_map_parsing_data): Remove most
9772 members. Make property_name an array.
9773 (free_memory_map_parsing_data, memory_map_start_element)
9774 (memory_map_end_element, memory_map_character_data): Delete.
9775 (memory_map_start_memory, memory_map_end_memory)
9776 (memory_map_start_property, memory_map_end_property): New functions.
9777 (property_attributes, memory_children, memory_type_enum)
9778 (memory_attributes, memory_map_children, memory_map_elements): New.
9779 (parse_memory_map): Rewrite.
9780 * xml-support.c (debug_xml): New.
9781 (xml_get_required_attribute, xml_get_integer_attribute)
9782 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9783 Delete.
9784 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9785 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9786 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9787 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9788 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9789 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9790 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9791 New.
9792 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9793 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9794 (enum gdb_xml_element_flag, struct gdb_xml_element)
9795 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9796 (struct gdb_xml_enum): New.
9797 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9798 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9799 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9800 (xml_get_required_attribute, xml_get_integer_attribute)
9801 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9802 * Makefile.in (xml_support_h, xml-support.o): Update.
9803
9804 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9805
9806 * Makefile.in (eval.o): Update dependencies.
9807 * eval.c: Include "ui-out.h" and "exceptions.h".
9808 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9809 Use value_zero if an error occurs when avoiding side effects.
9810 * varobj.c (c_value_of_root): Initialize new_val.
9811
9812 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9813
9814 * varobj.c (varobj_list_children): Stop if the number of children is
9815 unknown.
9816 (c_number_of_children):
9817
9818 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9819
9820 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9821 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9822 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9823 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9824 sizeof, instead of hardcoded constants.
9825
9826 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9827
9828 * CONTRIBUTE: Use sourceware.org.
9829
9830 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9831
9832 * buildsym.c (start_subfile): Handle producer.
9833 (record_producer): New function.
9834 * buildsym.h (struct subfile): Include producer.
9835 (record_producer): New prototype.
9836 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9837 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9838 armcc_cfa_offsets_reversed.
9839 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9840 (dwarf2_frame_find_quirks): New function.
9841 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9842 (decode_frame_entry_1): Record the CIE version. Record the
9843 augmentation. Skip armcc augmentations.
9844 * dwarf2read.c (read_file_scope): Save the producer.
9845 * symtab.h (struct symtab): Rename unused version member to
9846 producer.
9847
9848 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9849
9850 * configure.ac (build_warnings): Use -Wall and
9851 -Wdeclaration-after-statement.
9852 * configure: Regenerated.
9853
9854 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9855
9856 Simplify access to variours properties of child
9857 variable objects in C.
9858 * varobj.c (value_struct_element_index): New function.
9859 (c_describe_child): New function.
9860 (c_name_of_child, c_value_of_child)
9861 (c_type_of_child): Rewrite to use c_describe_child.
9862
9863 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9864
9865 gdb/
9866 * varobj.c: Include "vec.h".
9867 (varobj_p): New typedef, declare vector of those.
9868 (struct varobj): Use vector for the 'children' member.
9869 (child_exists): Remove.
9870 (save_child_in_parent): Remove.
9871 (remove_child_from_parent): Remove.
9872 (struct varobj_child): Remove.
9873 (struct vstack): Remove.
9874 (vpush, vpop): Remove.
9875 (varobj_list_children): Adjust to work work vector.
9876 (varobj_update): Likewise. Use vectors for
9877 working stack and result.
9878 (delete_variable_1): Likewise.
9879 * Makefile.in (varobj.o): Update dependencies.
9880
9881 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9882
9883 Port from Apple's version.
9884 gdb/
9885 * varobj.c (type_changeable): Rename to...
9886 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9887 (is_root_p): New function. Use it everywhere.
9888
9889 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9890
9891 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9892 then plain 'fixup'.
9893
9894 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9895
9896 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9897
9898 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9899
9900 * hpread.c (hpread_type_lookup): Fix compilation failure.
9901
9902 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9903
9904 * NEWS: New port to S+core.
9905 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9906 Add myself.
9907
9908 * Makefile.in: Add dependencies for S+core files.
9909 * configure.tgt (score*, score-*-*): Add S+core target.
9910 * config/score/embed.mt: New file.
9911 * score-tdep.c: New file.
9912 * score-tdep.h: New file.
9913
9914 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9915
9916 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9917 the appropriate type rather than a bogus void type.
9918
9919 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9920
9921 * ada-lang.h (ada_find_printable_frame): Remove.
9922 (ada_exception_catchpoint_p, ada_decode_exception_location)
9923 (ada_decode_assert_location): Add declaration.
9924 * ada-lang.c: Add include of annotate.h and valprint.h.
9925 (exception_catchpoint_kind): New enum.
9926 (function_name_from_pc, is_known_support_routine)
9927 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9928 (ada_exception_name_addr_1, ada_exception_name_addr)
9929 (print_it_exception, print_one_exception, print_mention_exception)
9930 (print_it_catch_exception, print_one_catch_exception)
9931 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9932 (print_it_catch_exception_unhandled)
9933 (print_one_catch_exception_unhandled)
9934 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9935 (print_one_catch_assert, print_mention_catch_assert)
9936 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9937 (ada_get_next_arg, catch_ada_exception_command_split)
9938 (ada_exception_sym_name, ada_exception_sym_name)
9939 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9940 (ada_parse_catchpoint_condition, ada_exception_sal)
9941 (ada_decode_exception_location)
9942 (ada_decode_assert_location): New function.
9943 (catch_exception_unhandled_breakpoint_ops): New global variable.
9944 (catch_assert_breakpoint_ops): New global variable.
9945 * breakpoint.c: Add include of ada-lang.h.
9946 (print_one_breakpoint): Do not print the condition for Ada
9947 exception catchpoints.
9948 (create_ada_exception_breakpoint): New function.
9949 (catch_ada_exception_command, catch_assert_command): New function.
9950 (catch_command_1): Add support for the new "catch exception" and
9951 "catch assert" commands.
9952 (_initialize_breakpoint): Add help description for the new catch
9953 commands.
9954 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9955 valprint.h.
9956 (breakpoint.o): Add dependency on ada-lang.h.
9957
9958 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9959
9960 * coffread.c (cs_to_section): If bfd_section is found, always
9961 return its section index.
9962 (coff_symtab_read): Determine the minimal_symbol_type using the
9963 bfd_section flags.
9964
9965 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9966 Daniel Jacobowitz <dan@codesourcery.com>
9967
9968 * Makefile.in (top.o): Update.
9969 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9970 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9971 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9972 New.
9973 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9974
9975 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9976
9977 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9978 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9979
9980 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9981
9982 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9983 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9984 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9985 greater than or equal to zero.
9986 * m2-typeprint.c (m2_array): Likewise.
9987 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9988 * gdbtypes.c (copy_type_recursive): Correct == typo.
9989 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9990 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9991 greater than zero.
9992 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9993 (default_macro_scope): Remove unused variable.
9994 * prologue-value.h (pv_area_find_reg): Don't name an argument
9995 "register".
9996 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9997 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9998 type.
9999 (cleanup_sigint_signal_handler): Remove casts.
10000 * valprint.c (val_print): Use a volatile local for the modified
10001 argument.
10002 * varobj.c (languages): Remove extra array dimension.
10003 (varobj_create): Correct access to languages array.
10004 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10005 missing braces.
10006 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10007 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10008 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10009 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10010 (mi_cmd_data_write_memory): Likewise.
10011 * signals/signals.c (target_signal_to_string): Cast to int before
10012 comparing.
10013 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10014 Update all callers.
10015
10016 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10017
10018 * NEWS: Mention pointer to member improvements.
10019 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10020 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10021 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10022 * c-typeprint.c (c_print_type): Update for new type codes.
10023 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10024 (c_type_print_base): Likewise.
10025 (c_type_print_args): Rewrite.
10026 * c-valprint.c (c_val_print): Update for new type codes. Remove
10027 support for references to members. Treat methods like functions.
10028 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10029 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10030 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10031 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10032 (struct cp_abi_ops): Add corresponding members.
10033 * cp-valprint.c (cp_print_class_method): Delete.
10034 (cp_find_class_member): New function.
10035 (cp_print_class_member): Use it. Simplify support for bogus
10036 member pointers.
10037 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10038 lookup_methodptr_type.
10039 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10040 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10041 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10042 pointer support.
10043 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10044 references returned by user defined operators.
10045 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10046 (f_type_print_varspec_suffix): Remove support for member pointers.
10047 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10048 and adjusted.
10049 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10050 (lookup_methodptr_type): New.
10051 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10052 (recursive_dump_type): Update for new types.
10053 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10054 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10055 (lookup_memberptr_type, lookup_methodptr_type)
10056 (smash_to_memberptr_type): New prototypes.
10057 (smash_to_method_type): Formatting fix.
10058 (lookup_member_type, smash_to_member_type): Delete prototypes.
10059 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10060 Do not rely on debug information for the vptr or the method's
10061 enclosing type. Handle function descriptors for IA64.
10062 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10063 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10064 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10065 (gnuv3_method_ptr_to_value): New.
10066 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10067 * hpread.c (hpread_type_lookup): Update for new types.
10068 * infcall.c (value_arg_coerce): Likewise.
10069 * m2-typeprint.c (m2_print_type): Remove explicit support
10070 for member pointers.
10071 * m2-valprint.c (m2_val_print): Likewise.
10072 * p-typeprint.c (pascal_type_print_varspec_prefix)
10073 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10074 * p-valprint.c (pascal_val_print): Likewise.
10075 (pascal_object_print_class_method, pascal_object_print_class_member):
10076 Delete.
10077 * p-lang.h (pascal_object_print_class_method)
10078 (pascal_object_print_class_member): Delete prototypes.
10079 * stabsread.c (read_type): Update for new types.
10080 * typeprint.c (print_type_scalar): Likewise.
10081 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10082 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10083 argument. Construct a pointer to member if the address of a
10084 function or data member is requested.
10085 (value_cast_pointers): Don't modify the input value.
10086 (value_cast): Adjust pointer to member handling for new types.
10087 Allow null pointer to member constants. Don't modify the input
10088 value.
10089 (value_ind): Remove pointer to member check. Handle function
10090 descriptors for function pointers.
10091 (value_struct_elt, value_find_oload_method_list, check_field):
10092 Remove pointer to member checks.
10093 * value.c (unpack_long): Allow pointers to data members.
10094 (value_from_longest): Allow member pointers.
10095 * value.h (value_aggregate_elt): Add want_address.
10096 * varobj.c (c_variable_editable): Remove check for members.
10097 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10098 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10099 in virtual tables.
10100 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10101 * c-lang.h (cp_print_class_method): Delete prototype.
10102 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10103 * mips-tdep.c (mips_gdbarch_init): Likewise.
10104 * gdbarch.c, gdbarch.h: Regenerated.
10105
10106 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10107
10108 * rs6000-tdep.c (rs6000_use_struct_convention)
10109 (rs6000_extract_return_value, rs6000_store_return_value)
10110 (rs6000_extract_struct_value_address): Remove.
10111 (rs6000_return_value): New function.
10112 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10113 store_return_value, deprecated_extract_struct_value_address and
10114 deprecated_use_struct_convention. Use rs6000_return_value
10115 instead.
10116
10117 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10118
10119 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10120 -display-disable, -display-enable, -display-insert and
10121 -display-list.
10122
10123 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10124
10125 * breakpoint.c (remove_breakpoint): Remove dead code.
10126
10127 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10128
10129 * varobj.c: Include block.h.
10130 (c_value_of_root): Check scope within nested statements.
10131
10132 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10133
10134 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10135 regcache_cooked_write_signed instead of
10136 deprecated_write_register_bytes.
10137
10138 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10139
10140 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10141
10142 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10143
10144 Followed the Start of New Year Procedure:
10145 * ChangeLog-2006: New file, containing all the entries for 2006.
10146 * ChangeLog: Removed all 2006 entries, and changed the reference
10147 to the previous ChangeLog to point to ChangeLog 2006.
10148 * top.c (print_gdb_version): Update copyright year.
10149
10150 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10151
10152 * Makefile.in (remote-sds.o): Remove.
10153 * remote-sds.c: Delete.
10154
10155 For older changes see ChangeLog-2006.
10156 \f
10157 Local Variables:
10158 mode: change-log
10159 left-margin: 8
10160 fill-column: 74
10161 version-control: never
10162 coding: utf-8
10163 End:
This page took 0.222946 seconds and 5 git commands to generate.