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