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