* configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2
3 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4 stopping quietly.
5
6 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
7
8 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
9 Include "features/rs6000/powerpc-vsx64.c".
10 (ppc_supply_vsxregset): New function.
11 (ppc_collect_vsxregset): New function.
12 (IS_VSX_PSEUDOREG): New macro.
13 (IS_EFP_PSEUDOREG): New macro.
14 (vsx_register_p): New function.
15 (ppc_vsx_support_p): New function.
16 (rs6000_builtin_type_vec128): New function.
17 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
18 correct names for VSX registers and EFPR registers.
19 (rs6000_pseudo_register_type): Return correct types for VSX
20 and EFPR registers.
21 (rs6000_pseudo_register_reggroup_p): Return correct group for
22 VSX and EFPR registers.
23 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
24 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
25 (vsx_pseudo_register_read): New function.
26 (vsx_pseudo_register_write): New function.
27 (efpr_pseudo_register_read): New function.
28 (efpr_pseudo_register_write): New function.
29 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
30 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
31 (rs6000_gdbarch_init): Declare have_vsx.
32 Initialize new upper half VSX registers.
33 Initialize VSX-related and EFPR-related pseudo-registers variables.
34 Adjust the number of pseudo registers accordingly.
35
36 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
37 and SIZEOF_VSRREGS.
38 (gdb_vsxregset_t): New type.
39 (have_ptrace_getsetvsxregs): New variable.
40 (fetch_vsx_register): New function.
41 (fetch_register): Handle VSX registers.
42 (fetch_vsx_registers): New function.
43 (fetch_ppc_registers): Handle VSX registers.
44 (store_ppc_registers): Handle VSX registers.
45 (store_vsx_register): New function.
46 (store_register): Handle VSX registers.
47 (store_vsx_registers): New function.
48 (ppc_linux_read_description): Handle VSX-enabled inferiors.
49 (gdb_vsxregset_t): New type.
50 (supply_vsxregset): New function.
51 (fill_vsxregset): New function.
52
53 * ppc-tdep.h (vsx_register_p): New prototype.
54 (vsx_support_p): New prototype.
55 (ppc_vsr0_regnum): New variable.
56 (ppc_vsr0_upper_regnum): Likewise.
57 (ppc_efpr0_regnum): Likewise.
58 (ppc_builtin_type_vec128): New type.
59 (ppc_num_vsrs): New constant.
60 (ppc_num_vshrs): New constant.
61 (ppc_num_efprs): Likewise.
62 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
63 (ppc_supply_vsxregset): New prototype.
64 (ppc_collect_vsxregset): New prototype.
65
66 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
67 Include "features/rs6000/powerpc-vsx64l.c".
68 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
69 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
70 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
71 (ppc_linux_regset_from_core_section): Handle VSX core section.
72 (ppc_linux_core_read_description): Support VSX-enabled core files.
73
74 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
75 Declare tdesc_powerpc_vsx64l
76
77 * corelow.c (get_core_register_section): Support VSX-enabled
78 core files.
79
80 * features/rs6000/power-vsx.xml: New VSX descriptions.
81 * features/rs6000/powerpc-vsx32.xml: New file.
82 * features/rs6000/powerpc-vsx32l.xml: New file.
83 * features/rs6000/powerpc-vsx64.xml: New file.
84 * features/rs6000/powerpc-vsx64l.xml: New file.
85 * features/rs6000/powerpc-vsx32.c: New file (generated).
86 * features/rs6000/powerpc-vsx32l.c: New file (generated).
87 * features/rs6000/powerpc-vsx64.c: New file (generated).
88 * features/rs6000/powerpc-vsx64l.c: New file (generated).
89 * features/Makefile: Updated with new descriptions.
90 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
91 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
92
93 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
94
95 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
96 call linux_target twice.
97
98 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
99
100 * nto-tdep.c (lm_info): Updated struct lm_info definition from
101 solib-svr4.c
102 (LM_ADDR): Use l_addr if available; if not, use link map and set
103 l_addr.
104
105 2008-08-14 Tom Tromey <tromey@redhat.com>
106
107 * macrocmd.c (macro_define_command): Check for NULL argument.
108 (macro_undef_command): Likewise.
109
110 2008-08-14 Pedro Alves <pedro@codesourcery.com>
111
112 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
113
114 2008-08-13 Pedro Alves <pedro@codesourcery.com>
115
116 * breakpoint.c (always_inserted_auto, always_inserted_on)
117 (always_inserted_off, always_inserted_enums): New.
118 (always_inserted_mode): Change type to char* and point to
119 always_inserted_auto.
120 (show_always_inserted_mode): In auto mode, also show the current
121 effect of the option.
122 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
123 (_initialize_breakpoint): Make the "set breakpoints
124 always-inserted" command an enum command. Extend help to describe
125 the auto mode.
126
127 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
128
129 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
130 query valid) bit. Ignore bits outside the condition field.
131 (info_spu_proxydma_command): Ignore bits outside the field.
132
133 2008-08-12 Michael Snyder <msnyder@vmware.com>
134
135 * MAINTAINERS: Update my email address.
136
137 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
138
139 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
140
141 2008-08-12 Pedro Alves <pedro@codesourcery.com>
142
143 Add no-ack mode to the remote protocol --- optionally stop ACKing
144 packets and responses when we have a reliable communication
145 medium.
146
147 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
148
149 * remote.c (struct remote_state): Add noack_mode field.
150 (PACKET_QStartNoAckMode): New.
151 (remote_start_remote): Don't any outstanding packet here.
152 (remote_open_1): Clear noack_mode. Ack any outstanding packet
153 here. Activate noack mode if requested.
154 (remote_protocol_features): Add QStartNoAckMode.
155 (remote_open_1):
156 (putpkt_binary): Don't send ack in noack mode.
157 (read_frame): Don't recompute the checksum in noack mode.
158 (getpkt_sane): Skip sending ack if in noack mode.
159 (_initialize_remote): Add set/show remote noack mode.
160 * NEWS: Note the new features.
161
162 2008-08-11 Kevin Buettner <kevinb@redhat.com>
163
164 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
165 New macros.
166 (rs6000_skip_main_prologue): New function.
167 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
168
169 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
170
171 * MAINTAINERS (Write After Approval): Add self.
172
173 2008-08-11 Stan Shebs <stan@codesourcery.com>
174
175 ARM BE8 support.
176 * disasm.c (gdb_disassemble_info): Set endian_code.
177 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
178 * gdbarch.h, gdbarch.c: Regenerate.
179 * arch-utils.c (initialize_current_architecture): Set the
180 default byte_order_for_code.
181 (gdbarch_info_init): Ditto.
182 (gdbarch_info_fill): Ditto.
183 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
184 (thumb_analyze_prologue): Swap halfword if code endianness is
185 different from general endianness.
186 (arm_skip_prologue): Similarly.
187 (arm_scan_prologue): Ditto.
188 (thumb_get_next_pc): Ditto.
189 (arm_get_next_pc): Ditto.
190 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
191 choose correct endianness for breakpoints.
192
193 2008-08-10 Pedro Alves <pedro@codesourcery.com>
194
195 * bsd-kvm.c: Include "gdbthread.h".
196 (bsd_kvm_ptid): New.
197 (bsd_kvm_open): Add a main thread.
198 (bsd_kvm_close): Delete it.
199 (bsd_kvm_thread_alive): New.
200 (bsd_kvm_pid_to_str): New.
201 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
202 bsd_kvm_pid_to_str.
203 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
204
205 2008-08-09 Pedro Alves <pedro@codesourcery.com>
206
207 * buildsym.c (start_subfile): Properly cast sentinel in concat
208 call.
209 * cp-name-parser.y: Include "config.h".
210 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
211 concat call.
212 * gdb_select.h: Include sys/time.h if sys/select.h is not
213 available.
214
215 2008-08-09 Pedro Alves <pedro@codesourcery.com>
216
217 * go32-nat.c: Include "gdbthread.h".
218 (go32_stop, go32_kill_inferior): Delete the main thread.
219 (go32_create_inferior): Add it.
220 (go32_thread_alive, go32_pid_to_str): New.
221 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
222
223 2008-08-09 Pedro Alves <pedro@codesourcery.com>
224
225 * go32-nat.c (fetch_register, store_register): Pass the regcache
226 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
227 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
228 (struct seg_descr, struct seg_descr): pack the whole struct
229 instead of each member individually.
230
231 2008-08-09 Andreas Schwab <schwab@suse.de>
232
233 * python/python.c (_initialize_python): Use unabbreviated commands
234 in prefix name.
235
236 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * Makefile.in (stamp-h): Also create .deps.
239
240 2008-08-09 Tom Tromey <tromey@redhat.com>
241
242 * Makefile.in (generated_files): Add GNULIB_H.
243
244 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
245
246 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
247 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
248 Revise comment.
249 (pa64_current_sos): Remove map private warning warning.
250 * solib-som.c: Include string.h and sys/utsname.h.
251 (get_hpux_major_release): New function.
252 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
253 about shared library private mapping on HP-UX 11 and later. Only force
254 private mapping of shared libraries on HP-UX 10 and earlier.
255 (link_map_start): Delete warning.
256
257 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
258 H.J. Lu <hongjiu.lu@intel.com>
259 Mark Kettenis <kettenis@gnu.org>
260
261 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
262 (amd64_init_frame_cache): Initialize saved_sp_reg.
263 (amd64_analyze_stack_align): New.
264 (amd64_analyze_prologue): Call it.
265 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
266 %rip to 8 when halfway aligning the stack.
267
268 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
269 AMD64_R14_REGNUM.
270
271 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
272 saved_sp_reg.
273 (i386_alloc_frame_cache): Remove stack_align. Initialize
274 saved_sp_reg to -1.
275 (i386_analyze_stack_align): Rewrite.
276 (i386_frame_cache): Use saved_sp_reg if it is valid.
277
278 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
279
280 * target.c: Include "solib.h".
281 (target_pre_inferior): Call no_shared_libraries.
282 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
283 or clear_solib.
284 (attach_command): Do not call clear_solib.
285
286 2008-08-09 Mark Kettenis <kettenis@gnu.org>
287
288 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
289 the %eip register.
290
291 2008-08-08 Tom Tromey <tromey@redhat.com>
292
293 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
294 POSTCOMPILE.
295 (python-utils.o): Likewise.
296
297 2008-08-08 Andreas Schwab <schwab@suse.de>
298
299 * corefile.c (_initialize_core): Remove spurious paren from set
300 gnutarget doc string.
301
302 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
303
304 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
305 Define PPC_FEATURE_BOOKE.
306 (ppc_linux_get_hwcap): New function.
307 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
308 4-bytes alignment restrictions.
309 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
310 positioning of the read/write flags.
311 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
312 4-bytes alignment.
313
314 2008-08-08 Pedro Alves <pedro@codesourcery.com>
315
316 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
317
318 * win32-nat.c (win32_add_thread): Change thread argument type to
319 ptid_t. Adjust.
320 (win32_add_thread): Adjust.
321 (win32_delete_thread): Change thread argument type to ptid_t.
322 Adjust.
323 (win32_fetch_inferior_registers, win32_store_inferior_registers)
324 (win32_resume, get_win32_debug_event, get_win32_debug_event)
325 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
326 (init_win32_ops): Put to_magic last.
327 (win32_win32_thread_alive): Adjust.
328
329 2008-08-08 Pedro Alves <pedro@codesourcery.com>
330
331 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
332 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
333
334 2008-08-08 Pedro Alves <pedro@codesourcery.com>
335
336 * remote-m32r-sdi.c: Include "gdbthread.h".
337 (remote_m32r_ptid): New.
338 (m32r_close): Delete the main thread.
339 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
340 main thread.
341 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
342 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
343
344 2008-08-07 Tom Tromey <tromey@redhat.com>
345 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
346
347 * aclocal.m4, configure: Rebuild.
348 * configure.in: Call ZW_CREATE_DEPDIR,
349 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
350 (MAKE, GMAKE): New substs.
351 * acinclude.m4: Include depstand.m4.
352 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
353 COMPILE, POSTCOMPILE, depcomp): New variables.
354 Remove all _h variables.
355 Remove many .o targets.
356 ($(srcdir)/copying.c): avoid backslash-newline after comment
357 sign (@maintainer_mode_true@).
358 (HFILES_NO_SRCDIR): Regenerate.
359 (generated_files): New variable.
360 (all_gdbtk_cflags): Likewise.
361 (.c.o): Rewrote.
362 (init.o, version.o, copying.o): Remove.
363 (distclean): Remove DEPDIR.
364 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
365 printcmd.o, procfs.o, v850ice.o): Rewrite.
366 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
367 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
368 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
369 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
370 gdbtk-wrapper.o): Likewise.
371 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
372 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
373 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
374 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
375 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
376 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
377 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
378 tui-wingeneral.o, tui-winsource.o): Likewise.
379 (all_object_files): New variable.
380 ($(all_object_files)): New target.
381 Include dependency files, when using GNU Make.
382
383 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
384
385 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
386 the valid bit set. Ensure display order respects partial
387 order defined by dependency bits.
388
389 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
390
391 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
392 setup.
393
394 2008-08-06 Mark Kettenis <kettenis@gnu.org>
395
396 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
397 OpenBSD 4.3.
398
399 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
400 Tom Tromey <tromey@redhat.com>
401 Thiago Jung Bauermann <bauerman@br.ibm.com>
402 Doug Evans <dje@google.com>
403
404 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
405 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
406 PYTHON_CFLAGS): New.
407 (python_h, python_internal_h): New.
408 (cli-script.o): Depend on python.h
409 (python.o, python-utils.o): New.
410 * cli/cli-script.c (print_command_lines): Handle python_control.
411 (execute_control_command): Handle python_control.
412 (execute_control_command_untraced): New function.
413 (while_command): Call execute_control_command_untraced.
414 (if_command): Likewise.
415 (get_command_line): Remove static attribute.
416 (read_next_line): Handle "python".
417 (recurse_read_control_structure): Handle python_control.
418 (read_command_lines): Handle python_control.
419 Include python.h.
420 * cli/cli-script.h (get_command_line): Add prototype.
421 (execute_control_command_untraced): Likewise.
422 * configure.ac: Add --with-python.
423 * defs.h (enum command_control_type) <python_control>: New
424 constant.
425 * python/python-internal.h: New file.
426 * python/python.c: New file.
427 * python/python.h: New file.
428 * python/python-utils.c: New file.
429 * NEWS: Mention Python scripting support and its new commands.
430
431 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
432
433 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
434
435 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
436
437 * MAINTAINERS (Write After Approval): Add self.
438
439 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
440
441 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
442 (insert_breakpoint_locations): Likewise.
443
444 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
445
446 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
447 breakpoint.
448 (set_longjmp_breakpoint): Likewise.
449
450 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
451
452 PR build/2490
453 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
454 defined.
455
456 2008-08-05 Tom Tromey <tromey@redhat.com>
457
458 * bcache.c (deprecated_bcache_added): Initialize obstack.
459 (bcache_xmalloc): Don't initialize obstack.
460 (bcache_xfree): Conditionally free obstack.
461 (bcache_memory_used): Update.
462
463 2008-08-05 Tom Tromey <tromey@redhat.com>
464
465 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
466 bcache_full.
467 (append_psymbol_to_list): Accept a const pointer.
468 (add_psymbol_to_list): Fix const correctness.
469 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
470 (bcache_full): Declare.
471 * bcache.c (bcache_data, deprecated_bcache): Remove.
472 (bcache): Use bcache_full.
473 (bcache_full): Rename from deprecated_bcache_added. Change return
474 type.
475
476 2008-08-04 Stan Shebs <stan@codesourcery.com>
477
478 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
479 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
480 (enable_break): Remove test of BKPT_AT_SYMBOL.
481
482 2008-08-02 Keith Seitz <keiths@redhat.com>
483
484 * acinclude.m4: Include ../config/tcl.m4 to pick up
485 standard Tcl configury bits.
486 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
487 * configure.ac: Don't check if ../itcl exists when building
488 gdbtk. It could be installed.
489 Rewrite gdbtk configury to allow for using system-supplied
490 Tcl and Tk. Gdbtk no longer requires build-time access to
491 itcl and itk.
492 * Makefile.in: Remove everything related to itcl and itk.
493 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
494 configure.ac.
495 Remove v850ice.o build rule.
496 (ALL_TCL_CFLAGS): New convenience defintion. Change all
497 gdbtk sources to use it.
498 * configure: Regenerate.
499
500 2008-07-31 Stan Shebs <stan@codesourcery.com>
501
502 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
503
504 2008-07-30 Stan Shebs <stan@codesourcery.com>
505
506 * objfiles.c (TARGET_KEEP_SECTION): Remove.
507 (add_to_objfile_sections): Remove use.
508
509 2008-07-29 Tom Tromey <tromey@redhat.com>
510
511 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
512 (lookup_cmd_composition): Likewise.
513
514 2008-07-29 Tom Tromey <tromey@redhat.com>
515
516 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
517 dead code. Fix indentation.
518
519 2008-07-29 Stan Shebs <stan@codesourcery.com>
520
521 * main.c (captured_main): Remove long-unused #if 0 blocks.
522
523 2008-07-28 Tom Tromey <tromey@redhat.com>
524
525 * annotate.h (deprecated_annotate_starting_hook): Remove.
526 (deprecated_annotate_stopped_hook): Remove.
527 (deprecated_annotate_exited_hook): Remove.
528 * Makefile.in (annotate.o): Depend on observer_h.
529 * top.c (deprecated_delete_breakpoint_hook): Remove.
530 (deprecated_create_breakpoint_hook): Likewise.
531 (deprecated_modify_breakpoint_hook): Likewise.
532 * interps.c (clear_interpreter_hooks): Update for removed hooks.
533 * breakpoint.c (mention): Don't call removed hook.
534 (delete_breakpoint): Likewise.
535 (disable_breakpoint): Likewise.
536 (do_enable_breakpoint): Likewise.
537 * annotate.c: Include observer.h.
538 (breakpoint_changed): Change type of argument.
539 (_initialize_annotate): Register observers.
540 (deprecated_annotate_starting_hook): Remove.
541 (deprecated_annotate_stopped_hook): Remove.
542 (deprecated_annotate_exited_hook): Remove.
543 (annotate_starting): Update for hook removal.
544 (annotate_stopped): Likewise.
545 (annotate_exited): Likewise.
546 * defs.h (deprecated_delete_breakpoint_hook): Remove.
547 (deprecated_create_breakpoint_hook): Likewise.
548 (deprecated_modify_breakpoint_hook): Likewise.
549
550 2008-07-28 Tom Tromey <tromey@redhat.com>
551
552 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
553
554 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
555
556 * configure.ac: Check for the GNU/Linux ptrace signature.
557 * configure: Regenerated.
558
559 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
560
561 * linux-nat.c (resume_callback): Add more debugging output.
562 (linux_nat_has_pending_sigint): New function, based on
563 linux_nat_has_pending.
564 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
565 (stop_wait_callback): Remove flush_mask handling. Honor
566 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
567 to recursive calls.
568 (linux_nat_has_pending, flush_callback): Remove.
569 (linux_nat_filter_event): Check for ignore_sigint.
570 (linux_nat_wait): Remove flush_mask support and call to
571 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
572 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
573
574 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
575
576 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
577 report events from resumed threads.
578
579 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
580
581 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
582 (mips_linux_init_abi): Set tdep->syscall_next_pc.
583 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
584 mips-tdep.h.
585 (mips32_next_pc): Handle the syscall instruction.
586 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
587 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
588
589 2008-07-26 Tom Tromey <tromey@redhat.com>
590
591 PR gdb/1158:
592 * valops.c (value_struct_elt): Treat function-valued field as a
593 static method.
594
595 2008-07-26 Tom Tromey <tromey@redhat.com>
596
597 PR gdb/1136:
598 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
599 longer tokens first.
600
601 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
602
603 Kill cmd_async_ok.
604 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
605 (get_cmd_async_ok): Remove.
606 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
607 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
608 * infcmd.c (_initialize_infcmd): Likewise.
609 * thread.c (_initialize_thread): Likewise.
610
611 2008-07-25 Joseph Myers <joseph@codesourcery.com>
612
613 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
614 128-bit long doubles in even-odd pairs of FPRs. Do not
615 right-align float arguments for big-endian.
616 (mips_n32n64_return_value): Apply return value convention for
617 structs containing one or two floating-point values to soft-float
618 as well as hard-float. Handle 128-bit long doubles in such
619 structs.
620 (mips_o32_push_dummy_call): Only skip one integer register for a
621 float argument passed in an FPR.
622
623 2008-07-25 Tom Tromey <tromey@redhat.com>
624
625 * tui/tui-hooks.c: Include observer.h.
626 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
627 Remove.
628 (tui_bp_created_observer, tui_bp_deleted_observer,
629 tui_bp_modified_observer): New globals.
630 (tui_install_hooks): Use observers, not events.
631 (tui_remove_hooks): Likewise.
632 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
633 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
634 globals.
635 (breakpoint_notify): Check mi_can_breakpoint_notify.
636 (breakpoint_hooks): Remove.
637 (mi_cmd_break_insert): Attach observers. Don't use events.
638 * tracepoint.c: Include observer.h, not gdb-events.h.
639 (tracepoint_operation, trace_pass_command): Notify observer.
640 * interps.c: Don't include gdb-events.h.
641 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
642 * gdbarch.c: Rebuild.
643 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
644 (deprecated_current_gdbarch_select_hack): Notify observer.
645 * breakpoint.h: Don't include gdb-events.h.
646 * breakpoint.c: Don't include gdb-events.h.
647 (condition_command): Notify observer.
648 (commands_command): Likewise.
649 (commands_from_control_command): Likewise.
650 (mention, delete_breakpoint, set_ignore_count): Likewise.
651 (disable_breakpoint, do_enable_breakpoint): Likewise.
652 * Makefile.in (gdb_events_h): Remove.
653 (breakpoint_h): Update.
654 (COMMON_OBS): Remove gdb-events.o.
655 (gdb-events.o): Remove.
656 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
657 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
658 * gdb-events.c: Remove.
659 * gdb-events.h: Remove.
660 * gdb-events.sh: Remove.
661
662 2008-07-24 Pedro Alves <pedro@codesourcery.com>
663
664 * remote.c (remote_threads_extra_info): Don't query the remote
665 server about info on the internally added main thread.
666
667 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
668
669 * nto-procfs.c (procfs_attach): Populate initial thread list.
670 (procfs_wait): Return new pid, built from the inferior status.
671
672 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
673
674 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
675 * configure: Regenerate.
676
677 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
678
679 * nto-procfs.c (procfs_xfer_memory): Changed signature.
680 (procfs_resume): Workaround for dereferencing type-punned pointer
681 warning.
682 * nto-tdep.c (nto_parse_redirection): Change signature to be const
683 correct.
684 * nto-tdep.h (nto_parse_redirection): Likewise.
685
686 2008-07-21 Stan Shebs <stan@codesourcery.com>
687
688 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
689 * gdbarch.sh: Adjust comment to refer to
690 in_solib_dynsym_resolve_code().
691 * gdbarch.h, gdbarch.c: Update.
692 * solib-osf.c: Ditto.
693 * infrun.c: Ditto.
694 (handle_inferior_event): Use in_solib_dynsym_resolve_code
695 unconditionally.
696 * config/mips/nm-irix5.h: Remove undef of
697 IN_SOLIB_DYNSYM_RESOLVE_CODE.
698
699 2008-07-21 Tom Tromey <tromey@redhat.com>
700
701 * symfile.c (reread_symbols): Don't pass argument to observer.
702 * exec.c (exec_file_attach): Don't pass argument to observer.
703 * ada-lang.c (ada_executable_changed_observer): Remove argument.
704 * symtab.c (symtab_observer_executable_changed): Remove argument.
705 * observer.sh: Handle functions with no arguments.
706
707 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
708 Chris Demetriou <cgd@google.com>
709
710 * elfread.c (elf_symfile_segments): Fix the check that each loadable
711 section fits within an ELF segment to handle ELF segments that hit
712 the end of the address space.
713
714 2008-07-20 Chris Demetriou <cgd@google.com>
715
716 * MAINTAINERS (Write After Approval): Add self.
717
718 2008-07-18 Tom Tromey <tromey@redhat.com>
719
720 PR gdb/855:
721 * NEWS: Add entry for macro commands.
722 * Makefile.in (macrocmd.o): Add gdb_string.h.
723 * macroscope.h (user_macro_scope): Declare.
724 (default_macro_scope): Update documentation.
725 (macro_user_macros): Declare.
726 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
727 Use user_macro_scope.
728 (null_macro_lookup): Remove.
729 * macrotab.h (macro_callback_fn): Declare.
730 (macro_for_each): Likewise.
731 (macro_allow_redefinitions): Likewise.
732 * macrotab.c (foreach_macro): New function
733 (macro_for_each): Likewise.
734 (struct macro_table) <redef_ok>: New field.
735 (macro_allow_redefinitions): New function.
736 (new_macro_table): Update.
737 (macro_define_function): Likewise.
738 (macro_define_object): Likewise.
739 * macroscope.c (user_macro_scope): New function.
740 (default_macro_scope): Use it.
741 (macro_user_macros): New global.
742 (standard_macro_lookup): Look in macro_user_macros.
743 (_initialize_macroscope): New function.
744 * macroexp.h (macro_is_whitespace, macro_is_digit,
745 macro_is_identifier_nondigit): Declare.
746 * macroexp.c (macro_is_whitespace): Rename. No longer static.
747 (macro_is_digit): Likewise.
748 (macro_is_identifier_nondigit): Likewise.
749 (get_identifier): Update.
750 (get_pp_number): Likewise.
751 (get_token): Likewise.
752 * macrocmd.c (skip_ws): New function.
753 (extract_identifier): Likewise.
754 (free_macro_definition_ptr): Likewise.
755 (user_macros): Remove.
756 (macro_define_command): Implement.
757 (_initialize_macrocmd): Update.
758 (macro_undef_command): Implement.
759 (print_one_macro): New function.
760 (macro_list_command): Implement.
761
762 2008-07-18 Joseph Myers <joseph@codesourcery.com>
763
764 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
765 in BFD ELF check.
766 * configure: Regenerate.
767
768 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
769
770 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
771
772 2008-07-15 Andreas Schwab <schwab@suse.de>
773
774 * valops.c (value_cast_pointers): Follow typedefs when checking
775 result of coercion.
776
777 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
778
779 * block.c (block_function): Renamed to ...
780 (block_linkage_function): ... this. All callers changed.
781 * block.h (block_function): Renamed to ...
782 (block_linkage_function): ... this.
783
784 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
785
786 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
787
788 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
789
790 * frame.c (frame_sp_unwind): Delete.
791 (get_frame_sp): Do not use it.
792 * frame.h (frame_sp_unwind): Delete prototype.
793
794 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
795
796 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
797
798 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
799
800 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
801 * frame.c (frame_unwind_address_in_block): Delete.
802 (get_frame_address_in_block): Do not use it. Check the type
803 of the next frame first.
804 (frame_cleanup_after_sniffer): Update comment.
805 * frame.h (frame_unwind_address_in_block): Delete prototype.
806 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
807
808 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
809
810 * frame.c (frame_func_unwind): Delete.
811 (get_frame_func): Do not use it.
812 * frame.h (frame_func_unwind): Delete prototype.
813 * hppa-tdep.c (hppa_frame_cache): Update comment.
814 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
815
816 2008-07-14 Stan Shebs <stan@codesourcery.com>
817
818 * remote-sim.c (init_gdbsim_ops): Remove
819 TARGET_REDEFINE_DEFAULT_OPS.
820
821 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
822
823 * findvar.c (read_var_value): Remove unused variable.
824
825 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
826
827 * infrun.c (handle_inferior_event): Tag threads as stopped
828 before inserting breakpoints.
829
830 2008-07-15 Hui Zhu <teawater@gmail.com>
831
832 * MAINTAINERS: Added myself to section Write After Approval.
833
834 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
835
836 PR gdb/2477
837 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
838
839 2008-07-14 Pedro Alves <pedro@codesourcery.com>
840
841 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
842 (i386_dicos_push_dummy_code): New.
843 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
844 Register i386_dicos_push_dummy_code.
845
846 2008-07-14 Markus Deuling <deuling@de.ibm.com>
847
848 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
849 (mips_n32n64_push_dummy_call, mips_o64_return_value)
850 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
851
852 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
853 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
854 (mips_n32n64_fp_arg_chunk_p): Update caller.
855
856 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
857 (mips_n32n64_push_dummy_call): Update caller.
858
859 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
860 current_gdbarch.
861 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
862 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
863
864
865 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
866 current_gdbarch.
867 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
868 (mips_o64_push_dummy_call): Update caller.
869
870 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
871 (fp_register_arg_p, mips_dump_tdep): Update caller.
872
873 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
874 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
875
876 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
877 current_gdbarch.
878 (mips32_scan_prologue): Update caller.
879
880 (heuristic_proc_start): Add gdbarch as parameter. Replace
881 current_gdbarch.
882 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
883
884 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
885 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
886 the current architecture. Update call to getregs_supplies.
887 (getregs_supplies): Add gdbarch as parameter and replace
888 current_gdbarch.
889
890 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
891 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
892 NBSD_MIPS_JB_ELEMENT_SIZE.
893 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
894 replace current_gdbarch.
895
896 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
897 current_gdbarch.
898 (mips_fetch_registers, mips_store_registers): Update call
899 to mips_map_regno.
900 (mips_load): Use get_regcache_arch to get at the current_architecture
901 and replace current_gdbarch.
902
903 2008-07-13 Pedro Alves <pedro@codesourcery.com>
904
905 * thread.c (restore_selected_frame): On fail to restore, select
906 the innermost frame, and don't crash when warning the user.
907
908 2008-07-13 Hui Zhu <teawater@gmail.com>
909
910 * symtab.c (expand_line_sal): Fix a memory leak.
911
912 2008-07-13 Pedro Alves <pedro@codesourcery.com>
913
914 * utils.c (struct continuation): Define as inheriting struct
915 cleanup.
916 (add_continuation, do_all_continuations)
917 (discard_all_continuations, add_intermediate_continuation)
918 (do_all_intermediate_continuations)
919 (discard_all_intermediate_continuations): Adjust.
920
921 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
922
923 Skip varobj in running threads.
924 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
925 thread is not stopped, skip the varobj.
926 * Makefile.in: Update dependencies.
927
928 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
929
930 Enable all commands while inferiour is running
931 * mi/mi-main.c (mi_cmd_execute): Don't check if
932 inferiour is executing.
933
934 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
935
936 Allow all CLI command even if target is executing.
937 * gdb/top.c (execute_command_1): Don't check if the inferiour
938 is running.
939
940 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
941
942 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
943 Fix printing of frame, when frame is wrong.
944
945 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
946
947 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
948 backchain is unreadable.
949
950 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
951
952 * spu-linux-nat.c: Include "gdbthread.h".
953 (spu_child_post_startup_inferior): Register main thread.
954 (spu_child_post_attach): Likewise.
955 * Makefile.in (spu-linux-nat.o): Update dependencies.
956
957 2008-07-12 Pedro Alves <pedro@codesourcery.com>
958
959 Rewrite continuations internals on top of cleanups and plug
960 continuation arguments leaks.
961
962 * defs.h (struct continuation): Make it opaque.
963 (add_continuation, add_intermediate_continuation): Drop the int
964 argument of the continuation hook argument. Add
965 continuation_free_args argument.
966 (do_all_continuations, do_all_intermediate_continuations): Drop
967 the error_p argument.
968
969 * utils.c (add_continuation): Drop the int argument of the
970 continuation hook argument. Add continuation_free_args argument.
971 Reimplement on top of cleanups.
972 (do_all_continuations): Drop error argument. Reimplement on top
973 of cleanups.
974 (discard_all_continuations): Reimplement on top of cleanups.
975 (add_intermediate_continuation): Drop the int argument of the
976 continuation hook argument. Add continuation_free_args argument.
977 Reimplement on top of cleanups.
978 (do_all_intermediate_continuations): Drop error argument.
979 Reimplement on top of cleanups.
980 (discard_all_intermediate_continuations): Reimplement on top of
981 cleanups.
982
983 * breakpoint.c (until_break_command_continuation): Drop error
984 argument. Add xfree as continuation argument deleter.
985
986 * inf-loop.c (inferior_event_handler): On error, discard all
987 continuations. Adjust to new do_all_intermediate_continuations
988 and do_all_continuations interfaces.
989
990 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
991 Pass xfree as continuation argument deleter.
992 (finish_command_continuation): Drop error_p argument. Adjust.
993 (finish_command_continuation_free_arg): New.
994 (finish_command): Pass finish_command_continuation_free_arg as
995 continuation argument deleter. Adjust to new do_all_continuations
996 interfaces.
997 (attach_command_continuation): Drop error_p argument.
998 (attach_command_continuation_free_args): New.
999 (attach_command): Pass attach_command_continuation_free_args as
1000 continuation argument deleter.
1001
1002 * interps.c (interp_set): Adjust to new do_all_continuations
1003 interfaces.
1004
1005 * event-top.c (stdin_event_handler): In error, also discard the
1006 intermediate continuations.
1007
1008 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1009
1010 Replace struct continuation_args by void* and per command structs.
1011
1012 * top.c (execute_command): Remove unused arg1 and arg2 locals.
1013
1014 * breakpoint.c (struct until_break_command_continuation_args):
1015 New.
1016 (until_break_command_continuation): Take a void* instead of a
1017 continuations_arg. Adjust.
1018 (until_break_command): Adjust to use struct
1019 until_break_command_continuation_args instead of struct
1020 continuation_arg.
1021
1022 * infcmd.c (struct step_1_continuation_args): New.
1023 (step_1_continuation): Take a void* instead of a
1024 continuations_arg. Adjust to use struct step_1_continuation_args.
1025 (step_once): Adjust to use struct step_1_continuation_args.
1026
1027 (struct finish_command_continuation_args): New.
1028 (finish_command_continuation): Take a void* instead of a
1029 continuations_arg. Adjust to use struct
1030 finish_command_continuation_args.
1031 (finish_command): Adjust to use struct
1032 finish_command_continuation_args.
1033 (struct attach_command_continuation_args): New.
1034 (attach_command_continuation): Take a void* instead of a
1035 continuations_arg. Adjust to use struct
1036 attach_command_continuation_args.
1037 (attach_command): Adjust to use struct
1038 attach_command_continuation_args.
1039
1040 * defs.h (struct continuation_arg): Delete.
1041 (struct continuation): Replace the struct continuation_arg*
1042 parameter of continuation_hook by a void*. Replace "arg_list"
1043 member by a new "args" member with void* type.
1044 (add_continuation, add_intermediate_continuation): Replace struct
1045 continuation_arg type usages by void* usages.
1046
1047 * utils.c (add_continuation, do_all_continuations)
1048 (add_intermediate_continuation)
1049 (do_all_intermediate_continuations): Replace struct
1050 continuation_arg type usages by void* usages. Pass "args" instead
1051 of "arg_list".
1052
1053 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1054
1055 * infrun.c (struct thread_stepping_state): Delete sal member.
1056 (init_thread_stepping_state): Add local sal. Use it instead of
1057 tss->sal.
1058 (handle_inferior_event): New local stop_pc_sal. Use it instead of
1059 tss->sal.
1060 (step_into_function): Add local stop_func_sal. Use it instead of
1061 tss->sal.
1062
1063 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1064
1065 Implement -exec-continue/-exec-interrupt --all.
1066 * infcmd.c (continue_1): New, extracted from
1067 (continue_command): ...here.
1068 (interrupt_target_1): New, extracted from
1069 (interrupt_target_command): ...here.
1070 * inferior.h (continue_1, interrupt_target_1): New.
1071 * mi/mi-main.c (mi_cmd_exec_continue)
1072 (mi_cmd_exec_interrupt): Handle --all.
1073
1074 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1075
1076 Implement --thread and --frame.
1077 * gdbthread.h (find_thread_id): Declare.
1078 * thread.c (find_thread_id): Make non-static.
1079 * mi/mi-main.c (mi_cmd_execute): Switch to the right
1080 thread and frame, if necessary.
1081 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
1082 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1083
1084 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1085
1086 * infrun.c (resume): Discard cleanups on early exit path.
1087
1088 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1089
1090 * infrun.c (normal_stop): For MI, report which threads
1091 were stopped.
1092
1093 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1094
1095 Report thread state in -thread-info output.
1096 * thread.c (print_thread_info): Add new field "state".
1097
1098 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1099
1100 * infrun.c (handle_inferior_event): Also ignore a
1101 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1102
1103 2008-07-11 Tom Tromey <tromey@redhat.com>
1104
1105 * completer.c (complete_line_internal): New function, from
1106 complete_line. Add 'for_help' parameter.
1107 (complete_line): Use it.
1108 (command_completer): Move later. Rewrite.
1109
1110 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1111
1112 * thread.c (thread_apply_command): Move making the cleanup out of
1113 the loop.
1114
1115 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1116
1117 Exited threads.
1118
1119 * thread.c (enum thread_state): New.
1120 (thread_state main_thread_running): Delete, in favor of...
1121 (thread_state main_thread_state): ... this. Update throughout.
1122 (clear_thread_inferior_resources): New, split from free_thread.
1123 (free_thread): Call clear_thread_inferior_resources.
1124 (init_thread_list): Set main thread to stopped state.
1125 (add_thread_silent): Take care of PTID reuses.
1126 (delete_thread): If deleting inferior_ptid or a thread with
1127 refcount > 0, mark it as exited, but still keep it in the list.
1128 Only notify of thread exits, if we haven't done so yet.
1129 (iterate_over_threads): Make it safe to delete threads while
1130 iterating over them.
1131 (do_captured_list_thread_ids): Don't account for exited threads.
1132 (thread_alive): Check for the THREAD_EXITED state, and don't set
1133 ptid to -1 on exited threads.
1134 (set_running): Update to account for extra possible states.
1135 (is_thread_state): New.
1136 (is_stopped, is_exited): New.
1137 (is_running): Implement in terms of is_thread_state.
1138 (any_running): Update.
1139 (print_thread_info): Update. Account for exited threads. Don't
1140 warn about missed frame restoring here, its done in the cleanup.
1141 (switch_to_thread): Don't read from a thread that has gone.
1142 (restore_current_thread): In non-stop mode, do a full context
1143 switch.
1144 (restore_selected_frame): Add a frame_level argument. Rewrite.
1145 (struct current_thread_cleanup): Add selected_frame_level and
1146 was_stopped members.
1147 (do_restore_current_thread_cleanup): Check if thread was stopped
1148 and still is, and if the target has registers, stack and memory
1149 before restoring the selected frame. Don't delete the cleanup
1150 argument here.
1151 (restore_current_thread_cleanup_dtor): New.
1152 (make_cleanup_restore_current_thread): Remove all arguments.
1153 Rewrite.
1154 (thread_apply_all_command): Update. Prune threads.
1155 (thread_apply_command): Update.
1156 (thread_command): Account for currently selected exited thread.
1157 (do_captured_thread_select): Check for a running thread. Prune
1158 threads.
1159 (_initialize_thread): Make "info threads", "thread", "thread
1160 apply", and "thread apply all" appliable without a selected thread.
1161 * gdbthread.h (struct thread_info): Replace running_ by state_.
1162 Add refcount.
1163 (is_exited, is_stopped): Declare.
1164 (make_cleanup_restore_current_thread): Remove all arguments.
1165 * infrun.c: Include "event-top.h".
1166 (fetch_inferior_event): In non-stop mode, restore selected thread
1167 and frame after handling the event and running breakpoint
1168 commands. Display GDB prompt if needed.
1169 (normal_stop): In non-stop mode, don't print thread switching
1170 notice.
1171 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1172 (get_cmd_no_selected_thread_ok): New.
1173 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1174 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1175 Declare.
1176 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1177 no-selected-thread ok.
1178 * top.c (execute_command): Check for non no-selected-thread-ok
1179 commands.
1180 * linux-nat.c (struct saved_ptids, threads_to_delete)
1181 (record_dead_thread, prune_lwps): Delete.
1182 (exit_lwp): Unconditionally delete thread.
1183 (linux_nat_resume): Remove prune_lwps call.
1184 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1185 of is_running. Adjust to make_cleanup_restore_current_thread
1186 interface change.
1187 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1188 selected thread has exited.
1189 * inf-loop.c (inferior_event_handler): Don't display the prompt
1190 here.
1191 * varobj.c (c_value_of_root): Update.
1192 * defs.h (make_cleanup_dtor): Declare.
1193 * utils.c (make_cleanup_dtor): New.
1194
1195 * Makefile.in (infrun.o): Depend on $(event_top_h).
1196
1197 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1198
1199 Add "continue -a" and "interrupt -a" options for non-stop mode.
1200
1201 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1202 (continue_command): Add "-a" option.
1203 (interrupt_target_command): Add "-a" option.
1204 (_initialize_infcmd): Add extend help of continue and interrupt
1205 command to mention the new "-a" option. Mark "continue" async ok.
1206
1207 2008-07-10 Doug Evans <dje@google.com>
1208
1209 Add "set print symbol-loading on|off".
1210 * NEWS: Document new option.
1211 * symfile.h (print_symbol_loading): Declare.
1212 * symfile.c (print_symbol_loading): New global.
1213 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1214 from ..." if print_symbol_loading.
1215 (_initialize_symfile): Add set/show print symbol-loading.
1216 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1217 if print_symbol_loading.
1218
1219 2008-07-10 Pedro Alves <pedro@codesourcery.com>
1220
1221 Non-stop linux native.
1222
1223 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1224 here.
1225 (get_pending_status): Implement non-stop mode.
1226 (linux_nat_detach): Stop threads before detaching.
1227 (linux_nat_resume): In non-stop mode, always resume only a single
1228 PTID.
1229 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1230 add new lwp to GDB's thread table, and mark as running, executing
1231 and stopped appropriately.
1232 (linux_nat_filter_event): Don't assume there are other running
1233 threads when a thread exits.
1234 (linux_nat_wait): Mark the main thread as running and executing.
1235 In non-stop mode, don't stop all lwps.
1236 (linux_nat_kill): Stop lwps before killing them.
1237 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1238 alive.
1239 (send_sigint_callback): New.
1240 (linux_nat_stop): New.
1241 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1242
1243 * linux-nat.h (thread_db_attach_lwp): Declare.
1244
1245 * linux-thread-db.c (thread_get_info_callback): Check for new
1246 threads if we have none.
1247 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1248 stopped lwp. Check for new threads if we have none.
1249 (thread_db_attach_lwp): New.
1250 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1251 (check_event): Set proc_handle.pid to the stopped lwp.
1252 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1253 lwp available, bail out if there is none.
1254
1255 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1256 PTRACE_KILL.
1257
1258 2008-07-10 Kevin Buettner <kevinb@redhat.com>
1259
1260 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1261 `current_pc' from CORE_ADDR to ULONGEST.
1262
1263 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1264 gdbsim_stop().
1265
1266 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1267
1268 * NEWS (New commands): Mention "set disable-randomization".
1269 * configure.ac: Add check for HAVE_PERSONALITY and
1270 HAVE_DECL_ADDR_NO_RANDOMIZE.
1271 * configure, config.in: Regenerate.
1272 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1273 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1274 ADDR_NO_RANDOMIZE.
1275 (disable_randomization, show_disable_randomization)
1276 (set_disable_randomization): New.
1277 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1278 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1279 variable DISABLE_RANDOMIZATION.
1280 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1281 DISABLE_RANDOMIZATION.
1282
1283 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1284
1285 Adjust all targets to new target_stop interface.
1286
1287 * gnu-nat.c (gnu_stop): Add ptid argument.
1288 * go32-nat.c (go32_stop): Add ptid argument.
1289 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1290 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1291 * monitor.c (monitor_stop): Add ptid argument.
1292 (monitor_open): Pass inferior_ptid to monitor_stop.
1293 (monitor_interrupt): Pass inferior_ptid to target_stop.
1294 (monitor_stop): Add ptid argument.
1295 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1296 (procfs_create_inferior): Add ptid argument.
1297 * procfs.c (procfs_stop): Add ptid argument.
1298 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1299 * remote-sim.c (gdbsim_stop): Add ptid argument.
1300 * sol-thread.c (sol_thread_stop): Add ptid argument.
1301 * win32-nat.c (win32_stop): Add ptid argument.
1302
1303 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1304
1305 Non-stop inferior control.
1306
1307 * infrun.c (resume): In non-stop mode, always resume just one
1308 thread.
1309 (proceed): Don't call prepare_to_proceed in non-stop mode.
1310 (fetch_inferior_event): In non-stop mode, switch context before
1311 handling the event.
1312 (error_is_running, ensure_not_running): New.
1313 (handle_inferior_event): In non-stop mode: Mark only the event
1314 thread as stopped. Require that the target module manages adding
1315 threads to the thread list. Assert that there isn't a
1316 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1317 (normal_stop): Only mark not-running if inferior hasn't exited.
1318 In non-stop mode, only mark the event thread.
1319
1320 * thread.c:Include "cli/cli-decode.h".
1321 (print_thread_info): Don't read from a running thread.
1322 Output "(running)" if thread is running.
1323 (switch_to_thread): Don't read stop_pc if thread is executing.
1324 (do_restore_current_thread_cleanup): Don't write to a running
1325 thread.
1326 (thread_apply_all_command): Don't read from a running thread. In
1327 non-stop mode, do a full context-switch instead of just switching
1328 threads.
1329 (thread_apply_command): In non-stop mode, do a full context-switch
1330 instead of just switching threads.
1331 (do_captured_thread_select): Likewise. Inform user if selected
1332 thread is running.
1333 (_initialize_thread): Mark "info threads" and "thread" and
1334 async_ok.
1335
1336 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1337 unregister the target from the event loop.
1338
1339 * infcmd.c (continue_command, step_1, jump_command)
1340 (signal_command): Ensure the selected thread isn't running.
1341 (interrupt_target_command): In non-stop mode, interrupt only the
1342 selected thread.
1343
1344 * inferior.h (error_is_running, ensure_not_running): Declare.
1345
1346 * target.h (struct target_ops): Add ptid argument to the to_stop
1347 member.
1348 (target_stop): Add ptid_t argument.
1349
1350 * target.c (update_current_target): Add ptid argument to to_stop's
1351 type.
1352 (debug_to_stop): Add ptid_t argument.
1353 (debug_to_rcmd): Set to_stop_ptid.
1354
1355 * remote.c (remote_stop): Add ptid_t argument.
1356 (async_remote_interrupt): Add inferior_ptid to target_stop.
1357 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1358
1359 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1360
1361 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1362
1363 Don't rely on ecs->wait_for_more.
1364
1365 * infrun.c (proceed): Clear the stepping state, set
1366 previous_inferior_ptid and clear infwait state.
1367 (wait_for_inferior): Don't clear the stepping state, set
1368 previous_inferior_ptid, or clear the infwait state here.
1369 (fetch_inferior_event): Don't clear the stepping state, set
1370 previous_inferior_ptid, or clear the infwait state here. Don't
1371 condition on wait_for_more.
1372
1373 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1374
1375 Refactor infrun a bit.
1376
1377 * infrun.c (currently_stepping): Take a struct
1378 thread_stepping_state instead of an execution_control_state.
1379 (struct thread_stepping_state): New, split from
1380 execution_control_state.
1381 (gtss, tss): New globals.
1382 (proceed): Clear the stepping state, set previous_inferior_ptid
1383 and clear infwait state.
1384 (init_wait_for_inferior): Clear the stepping state,
1385 previous_inferior_ptid and infwait state.
1386 (waiton_ptid, infwait_state): New, split from
1387 execution_control_state.
1388 (struct execution_control_state): Members that persist through
1389 events moved out to either struct thred_stepping_state or made
1390 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1391 (wait_for_inferior, fetch_inferior_event): Use local
1392 execution_control_state. Update to execution_control_state split.
1393 (init_execution_control_state): Adjust.
1394 (init_thread_stepping_state): New, extracted from
1395 init_execution_control_state.
1396 (context_switch): Take a ptid instead of an
1397 execution_control_state.
1398 (context_switch_to): Adjust.
1399 (adjust_pc_after_break): Adjust.
1400 (init_infwait_state): New.
1401 (handle_inferior_event): Adjust.
1402
1403 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1404 Vladimir Prus <vladimir@codesourcery.com>
1405
1406 Per-thread commands.
1407
1408 * gdbthread.h: Remove unneeded forward declarations.
1409 Include "inferior.h".
1410 (struct thread_info): Add continuations,
1411 intermediate_continuations, proceed_to_finish, step_over_calls,
1412 stop_step, step_multi and stop_signal members.
1413 (save_infrun_state): Add continuations,
1414 intermediate_continuations, proceed_to_finish, step_over_calls,
1415 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1416 (load_infrun_state): Add continuations,
1417 intermediate_continuations, proceed_to_finish, step_over_calls,
1418 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1419
1420 * thread.c (load_infrun_state): In non-stop mode, load
1421 continuations, intermediate_continuations, proceed_to_finish,
1422 step_over_calls, stop_step, step_multi and stop_signal.
1423 (save_infrun_state): Store continuations,
1424 intermediate_continuations, proceed_to_finish, step_over_calls,
1425 stop_step, step_multi, stop_signal and stop_bpstat.
1426 (save_infrun_state): Store continuations,
1427 intermediate_continuations, proceed_to_finish, step_over_calls,
1428 stop_step, step_multi, stop_signal and stop_bpstat.
1429 (free_thread): Clear The thread's stop_bpstat.
1430
1431 * inferior.h (context_switch_to): Declare.
1432
1433 * infrun.c (ecss): New global.
1434 (context_switch): Context switch continuations,
1435 intermediate_continuations, proceed_to_finish, step_over_calls,
1436 stop_step, step_multi, stop_signal and stop_bpstat.
1437 (wait_for_inferior): Use global ecss.
1438 (async_ecss, async_ecs): Delete.
1439 (fetch_inferior_event): Use global ecss.
1440 (context_switch_to): New.
1441
1442 * top.c (execute_command): In non-stop, only check if the current
1443 thread is running, in all-stop, check if there's any thread
1444 running.
1445
1446 * breakpoint.c (bpstat_remove_breakpoint): New.
1447 (bpstat_remove_breakpoint_callback): New.
1448 (delete_breakpoint): Clear the stop_bpstats of all threads.
1449
1450 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1451 current thread is running, in all-stop, check if there's any
1452 thread running.
1453
1454 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1455
1456 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1457
1458 Add non_stop global.
1459
1460 * inferior.h (non_stop): Declare.
1461 * infrun.c (non_stop, non_stop_1): New.
1462 (set_non_stop, show_non_stop): New.
1463 (_initialize_infrun): Add "set/show non-stop" command.
1464
1465 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1466
1467 Adjust fork/vfork/exec to pass ptids around.
1468
1469 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1470 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1471 Take a ptid_t.
1472 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1473 type to ptid.
1474 * breakpoint.c (print_it_typical, bpstat_check_location)
1475 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1476 (create_fork_vfork_event_catchpoint): Adjust.
1477 * infrun.c (fork_event): Change parent_pid and child_pid types to
1478 ptid.
1479 (follow_exec, inferior_has_forked, inferior_has_vforked)
1480 (inferior_has_execd): Take a ptid_t and don't trim it.
1481 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1482 * linux-nat.c (linux_child_follow_fork): Adjust.
1483 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1484 * inf-ttrace.c (inf_ttrace_wait): Adjust.
1485 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
1486
1487 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1488
1489 Add "executing" property to threads.
1490
1491 * inferior.h (target_executing): Delete.
1492 * gdbthread.h (struct thread_info): Add executing_ field.
1493 (set_executing, is_executing): New.
1494 * thread.c (main_thread_executing): New.
1495 (init_thread_list): Clear it and also main_thread_running.
1496 (is_running): Return false if target has no execution.
1497 (any_running, is_executing, set_executing): New.
1498
1499 * top.c: Include "gdbthread.h".
1500 (target_executing): Delete.
1501 (execute_command): Replace target_executing check by any_running.
1502 * event-top.c: Include "gdbthread.h".
1503 (display_gdb_prompt, command_handler): Replace target_executing by
1504 is_running.
1505 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
1506 here. Replace target_executing by is_running.
1507 * infrun.c (handle_inferior_event): Mark all threads as
1508 not-executing.
1509 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
1510 here.
1511 * stack.c (get_selected_block): Return null if inferior is
1512 executing.
1513 * target.c (target_resume): Mark resumed ptid as executing.
1514 * breakpoint.c (until_break_command): Replace target_executing
1515 check by is_executing.
1516 * remote.c (remote_async_resume): Don't mark inferior as executing
1517 here.
1518 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
1519 by any_running.
1520
1521 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
1522 (mi_execute_async_cli_command): Replace target_executing by
1523 is_running.
1524
1525 * frame.c (get_current_frame): Error out if the current thread is
1526 executing.
1527 (has_stack_frames): New.
1528 (get_selected_frame, deprecated_safe_get_selected_frame): Check
1529 has_stack_frames.
1530
1531 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
1532 $(gdbthread_h).
1533
1534 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1535
1536 * symfile.c (load_command): Reopen the exec file and reread
1537 symbols before anything else.
1538
1539 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1540
1541 * remote-sim.c: Include gdbthread.h.
1542 (remote_sim_ptid): New global.
1543 (gdbsim_create_inferior): Silently add the main task to GDB's
1544 thread list.
1545 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
1546 task from GDB's thread list.
1547 (gdbsim_resume): Adjust to use remote_sim_ptid.
1548 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
1549 (init_gdbsim_ops): Register gdbsim_thread_alive and
1550 gdbsim_pid_to_str.
1551 (_initialize_remote_sim): Initialize remote_sim_ptid.
1552 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
1553
1554 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1555
1556 * monitor (monitor_ptid): New global.
1557 (monitor_open): Silently add the main task to GDB's thread list.
1558 (monitor_close, monitor_mourn_inferior): Silently delete the main
1559 task from GDB's thread list.
1560 (monitor_thread_alive, monitor_pid_to_str): New.
1561 (init_base_monitor_ops): Register monitor_thread_alive and
1562 monitor_pid_to_str.
1563 (_initialize_remote_monitors): Initialize monitor_ptid.
1564
1565 * gdbthread.h (delete_thread_silent): Declare.
1566 * thread.c (delete_thread): Rename to ...
1567 (delete_thread_1): ... this. Add "silent" parameter. If silent,
1568 don't do exit notifications.
1569 (delete_thread, delete_thread_silent): New, as wrappers to
1570 delete_thread_1.
1571
1572 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1573
1574 * breakpoint.c (update_global_location_list): Add boolean
1575 "should_insert" argument. Only insert locations if caller told it
1576 too.
1577 (update_global_location_list_nothrow): Add boolean "should_insert"
1578 argument. Pass it to update_global_location_list.
1579 (insert_breakpoints, create_longjmp_breakpoint)
1580 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
1581 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1582 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
1583 (enable_watchpoints_after_interactive_call_stop)
1584 (set_momentary_breakpoint, create_breakpoints)
1585 (break_command_really, watch_command_1)
1586 (create_ada_exception_breakpoint, update_breakpoint_locations)
1587 (do_enable_breakpoint, enable_command): Pass true to
1588 update_global_location_list.
1589 (bpstat_stop_status, disable_overlay_breakpoints)
1590 (disable_watchpoints_before_interactive_call_start)
1591 (delete_breakpoint, disable_breakpoint, disable_command): Pass
1592 false to update_global_location_list.
1593 (update_breakpoints_after_exec): Don't temporarily disable
1594 always-inserted mode.
1595
1596 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1597
1598 * breakpoint.c (mark_breakpoints_out): Make public.
1599 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
1600 here. Update comment.
1601 * breakpoint.h (mark_breakpoints_out): Declare.
1602
1603 * linux-nat.c (linux_handle_extended_wait): On
1604 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
1605 * inf-ttrace.c (inf_ttrace_wait): Likewise.
1606
1607 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1608
1609 * infrun.c (follow_exec): Reset shared libraries before adding the
1610 main exec file.
1611
1612 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1613
1614 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
1615
1616 2008-07-07 Pedro Alves <pedro@codesourcery.com>
1617
1618 * i386-dicos-tdep.c: Include "inferior.h".
1619 (i386_dicos_frame_align): New.
1620 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
1621 dummy location ON_STACK.
1622 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
1623
1624 2008-07-07 Joel Brobecker <brobecker@adacore.com>
1625
1626 * gstdint.h: New file.
1627
1628 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
1629
1630 * mi/mi-interp.c (mi_on_resume): Don't try to report
1631 resumed thread it the thread list is empty.
1632
1633 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
1634
1635 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
1636 completer for set to filename_completer.
1637
1638 NEWS: Mention it.
1639
1640 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
1641
1642 Implement -target-attach.
1643 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
1644
1645 2008-06-21 Hui Zhu <teawater@gmail.com>
1646
1647 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
1648
1649 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1650
1651 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
1652 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
1653
1654 * target.h (struct target_ops): Add to_attach_no_wait member.
1655 (target_attach_no_wait): New.
1656 * target.c (update_current_target): Inherit to_attach_no_wait.
1657
1658 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
1659 target_attach_no_wait runtime check.
1660
1661 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
1662 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
1663 win32_ops.
1664
1665 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1666
1667 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
1668 on debug_displaced being set.
1669
1670 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1671
1672 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
1673 directly instead of get_frame_id.
1674
1675 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1676
1677 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
1678 (deal_with_atomic_sequence): Update BC masks.
1679 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
1680 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
1681
1682 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1683
1684 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
1685 register, not the previous frame's.
1686
1687 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1688
1689 * source.c (select_source_symtab): Make sure we skip namespace
1690 symtabs when showing cpp source code.
1691
1692 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
1693
1694 * MAINTAINERS (Authorized committers): Fix my email address.
1695
1696 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1697
1698 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
1699 -target-download and -target-select via CLI, so that
1700 the quoting rules are the same as they were (unfortunately)
1701 in all prior gdb releases.
1702 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
1703 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1704 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
1705 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1706 (mi_cmd_execute): Set current_token even for commands
1707 routed via CLI.
1708
1709 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
1710
1711 * alphafbsd-tdep.c: Update for unwinder changes.
1712 * alpha-linux-tdep.c: Likewise.
1713 * alphanbsd-tdep.c: Likewise.
1714 * alphaobsd-tdep.c: Likewise.
1715 * avr-tdep.c: Likewise.
1716 * cris-tdep.c: Likewise.
1717 * frv-linux-tdep.c: Likewise.
1718 * frv-tdep.c: Likewise.
1719 * h8300-tdep.c: Likewise.
1720 * hppa-linux-tdep.c: Likewise.
1721 * iq2000-tdep.c: Likewise.
1722 * m32c-tdep.c: Likewise.
1723 * m32r-linux-tdep.c: Likewise.
1724 * m32r-tdep.c: Likewise.
1725 * m68hc11-tdep.c: Likewise.
1726 * mep-tdep.c: Likewise.
1727 * mn10300-tdep.c: Likewise.
1728 * mt-tdep.c: Likewise.
1729 * score-tdep.c: Likewise.
1730 * sh64-tdep.c: Likewise.
1731 * sh-tdep.c: Likewise.
1732 * sparc64fbsd-tdep.c: Likewise.
1733 * sparc64nbsd-tdep.c: Likewise.
1734 * sparc64obsd-tdep.c: Likewise.
1735 * v850-tdep.c: Likewise.
1736 * vaxobsd-tdep.c: Likewise.
1737 * vax-tdep.c: Likewise.
1738 * xstormy16-tdep.c: Likewise.
1739
1740 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1741
1742 * mi/mi-main.c (enum captured_mi_execute_command_actions)
1743 (captured_mi_execute_command_args): Remove.
1744 (captured_mi_execute_command): Cast the closure to mi_parse
1745 pointer, not to captured_mi_execute_command_args, and don't
1746 set the action field thereof.
1747 (mi_execute_command): Pass struct mi_parse, not
1748 captured_mi_execute_command_args to captured_mi_execute_command.
1749 (mi_execute_command): Remove (dead) code for suppressing
1750 printing prompt.
1751
1752 2008-06-28 Pedro Alves <pedro@codesourcery.com>
1753
1754 * linux-nat.c (enum sigchld_state): New.
1755 (linux_nat_async_events_state): Renamed from
1756 linux_nat_async_events_enabled.
1757 (linux_nat_event_pipe_push, my_waitpid): Adjust.
1758 (sigchld_default_action): New.
1759 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
1760 unconditionally.
1761 (linux_nat_create_inferior): Set events state to sigchld_default
1762 state.
1763 (linux_nat_resume): Adjust.
1764 (linux_nat_wait): Call linux_nat_async_events unconditionally.
1765 (sigchld_handler): Adjust.
1766 (linux_nat_async_mask): Don't set SIGCHLD actions here.
1767 (get_pending_events): Adjust.
1768 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1769 instead of a boolean.
1770 (linux_nat_async): Adjust.
1771 (_initialize_linux_nat): Capture default SIGCHLD action into
1772 sigchld_default_action.
1773
1774 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1775
1776 * breakpoint.c (moribund_locations): New.
1777 (bpstat_stop_status): Process moribund locations.
1778 (update_global_location_list): Add removed
1779 locations to moribund_locations.
1780 (breakpoint_retire_moribund): New.
1781 * breakpoint.h (struct bp_location): New field
1782 events_till_retirement.
1783 (breakpoint_retire_moribund): Declare.
1784 * thread.c (thread_count): New.
1785 * infrun.c (handle_inferior_event): Call
1786 breakpoint_retire_moribund.
1787 * gdbthread.h (thread_count): Declare.
1788
1789 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1790
1791 * dfp.c (decimal_convert): Call match_endianness before and after
1792 conversion.
1793
1794 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1795
1796 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1797 unsupported and we fall back to memory_insert_breakpoint, we
1798 use the unmodified requested address.
1799
1800 2008-06-27 Joel Brobecker <brobecker@adacore.com>
1801
1802 * dwarf2read.c (read_attribute_value): Issue a complaint when
1803 adjusting size attribute values of 0xffffffff as zero.
1804
1805 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1806
1807 * i386-tdep.c (i386_16_byte_align_p): New.
1808 (i386_push_dummy_call): Determine stack space required for
1809 arguments going forwards allowing for 16-byte alignment, then push
1810 arguments going forwards.
1811
1812 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1813
1814 * infrun.c (start_remote): Don't clear thread list here.
1815 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1816 list here.
1817 * remote.c (record_currthread): Upgrade the main thread and its
1818 entry in the thread list if this is the first time we hear about
1819 threads.
1820 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1821 a tid member always alive.
1822 (remote_find_new_threads): Don't update the main thread here.
1823 (remote_start_remote): Clear thread list here. Always add the
1824 main thread.
1825 (extended_remote_attach_1): Add the main thread here.
1826 (extended_remote_mourn_1): Re-add the main thread here.
1827 (extended_remote_create_inferior_1): Add a main thread.
1828
1829 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1830
1831 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1832
1833 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1834
1835 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1836 globals.
1837 (general_thread, continue_thread): Change type to ptid_t.
1838 (record_currthread): Take a ptid_t parameter instead of an
1839 integer.
1840 (MAGIC_NULL_PID): Delete.
1841 (set_thread): Take a ptid_t parameter and adjust.
1842 (set_general_thread, set_continue_thread): New.
1843 (remote_thread_alive, remote_newthread_step)
1844 (remote_current_thread, remote_find_new_threads)
1845 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1846 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1847 (threadalive_test, remote_pid_to_str)
1848 (remote_get_thread_local_address): Adjust.
1849 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1850 and any_thread_ptid.
1851
1852 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1853
1854 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1855 * configure: Regenerated.
1856
1857 2008-06-26 Joel Brobecker <brobecker@adacore.com>
1858
1859 * dwarf2read.c (read_attribute_value): Treat size attribute
1860 values of 0xffffffff as if the attribute value was zero.
1861
1862 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1863
1864 * linux-nat.c: Add description of overall logic.
1865
1866 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1867
1868 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1869 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1870 all dependencies on $(gdb_stdint_h).
1871 (distclean): Do not delete gdb_stdint.h.
1872 * acinclude.m4: Do not use stdint.m4.
1873 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1874 uintptr_t, and gdb_stdint.h.
1875 * defs.h: Include <stdint.h>.
1876 * gdb_thread_db.h: Assume stdint.h is already included.
1877 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1878 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1879 include gdb_stdint.h.
1880 * configure, config.in: Regenerate.
1881
1882 2008-06-26 Joseph Myers <joseph@codesourcery.com>
1883
1884 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1885 decimal floating-point values in GPRs for soft-float.
1886 (do_ppc_sysv_return_value): Handle returning decimal
1887 floating-point values in GPRs for soft-float.
1888
1889 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1890
1891 * target.c (target_read_until_error): New.
1892 * target.h (target_read_until_error): Declare.
1893 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1894 target_read_until_error.
1895
1896 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1897
1898 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1899 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1900 after the DECFLOAT detection to fix a memory leak. Remove the
1901 redundant NUM initialization. Protect the DECFLOAT detection memory
1902 access before the P block. Restore the P memory content for the
1903 DECFLOAT detection.
1904
1905 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1906
1907 Kill the return value for all MI command functions.
1908 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1909 (mi_cmd_argv_ftype): Change return type to void.
1910
1911 * mi/mi-main.c: Adjust all function that implement
1912 MI commands to return nothing.
1913 (struct captured_mi_execute_command_actions):
1914 Remove the rc field.
1915 (mi_cmd_execute): Return nothing.
1916 (mi_execute_async_cli_command): Return nothing.
1917 (mi_cmd_exec_interrupt): Don't print ^done here.
1918 (mi_cmd_target_select): Don't print ^connected here.
1919 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1920 Special-case -target-select and output ^connected, not ^done.
1921
1922 * mi/mi-cmd-break.c: Adjust.
1923 * mi/mi-cmd-disas.c: Adjust.
1924 * mi/mi-cmd-env.c: Adjust.
1925 * mi/mi-cmd-file.c: Adjust.
1926 * mi/mi-cmd-stack.c: Adjust.
1927 * mi/mi-cmd-target.c: Adjust.
1928 * mi/mi-cmd-var.c: Adjust.
1929 * mi/mi-interp.c: Adjust.
1930 * mi/mi-symbol-cmds.c: Adjust.
1931
1932 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1933
1934 Emit ^running via observer.
1935 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
1936 ^running here.
1937 (mi_on_resume): Print ^running if not previously output.
1938 * mi/mi-main.c (running_result_record_printed): New.
1939 (captured_mi_execute_command): Reset
1940 running_result_record_printed. Use running_result_record_printed
1941 to decide if we should skip ^done.
1942 (mi_execute_async_cli_command): Don't print ^running here.
1943 * mi/mi-main.h (current_token, running_result_record_printed):
1944 Declare.
1945
1946 2008-06-24 Michael Snyder <msnyder@specifix.com>
1947
1948 * infrun.c (_initialize_infrun): White space and typo fix.
1949
1950 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
1951
1952 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
1953 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
1954 when first loading DLL with "dll" command.
1955
1956 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1957
1958 * gnu-nat.c (proc_string): Use capital T for "Thread".
1959
1960 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1961
1962 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
1963
1964 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1965
1966 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1967 the target cannot run.
1968
1969 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1970
1971 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1972 we're attaching to a running process.
1973
1974 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
1975
1976 * win32-nat.c (handle_load_dll): Give dll name and load address
1977 if debug_events is on.
1978 (handle_unload_dll): Likewise.
1979
1980 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
1981
1982 Don't suppress *running when doing finish.
1983 * infcall.c (call_function_by_hand): Set both
1984 suppress_resume_observer and suppress_stop_observer.
1985 * infcmd.c (suppress_run_stop_observers): Split into...
1986 (suppress_resume_observer, suppress_stop_observer): ...those.
1987 (finish_command_continuation): Clear suppress_stop_observer.
1988 (finish_command): Set suppress_stop_observer.
1989 * inferior.h (suppress_run_stop_observers): Split into...
1990 (suppress_resume_observer, suppress_stop_observer): ...those.
1991 * infrun.c (normal_stop): Check for suppress_stop_observer.
1992 * thread.c (set_running): Check for suppress_resume_observer.
1993
1994 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
1995 Pierre Muller <muller@ics.u-strasbg.fr>
1996
1997 * gdbarch.sh (gdbarch_skip_main_prologue): New.
1998 * gdbarch.h, gdbarch.c: Regenerate.
1999 * i386-tdep.h (i386_skip_main_prologue): Declare.
2000 * i386-tdep.c (i386_skip_main_prologue): New.
2001 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
2002 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
2003 * symtab.c (find_function_start_sal): When pc points at the "main"
2004 function, call gdbarch_skip_main_prologue.
2005
2006 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
2007
2008 * value.c (value_primitive_field): Fetch lazy register values.
2009
2010 2008-06-11 Pedro Alves <pedro@codesourcery.com>
2011
2012 * NEWS: Mention support removal of undocumented S AA p PID stop
2013 reply packet.
2014
2015 * remote.c (remote_wait): Remove undocumented S AA p PID support.
2016
2017 2008-06-10 Stan Shebs <stan@codesourcery.com>
2018
2019 * MAINTAINERS: Update my affiliation and address.
2020
2021 2008-06-10 Andreas Schwab <schwab@suse.de>
2022
2023 * top.c (print_gdb_version): Don't print final newline.
2024
2025 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2026
2027 Implement *running.
2028 * Makefile.in: Update dependencies.
2029 * gdbthread.h (struct thread_info): New field
2030 running_.
2031 (set_running, is_running): New.
2032 * thread.c (set_running, is_running): New.
2033 * inferior.h (suppress_normal_stop_observer): Rename to...
2034 (suppress_run_stop_observers): ..this.
2035 * infcmd.c (suppress_normal_stop_observer): Rename to...
2036 (suppress_run_stop_observers): ..this.
2037 (finish_command_continuation, finish_command): Adjust.
2038 * infcall.c (call_function_by_hand): Adjust.
2039 * infrun.c (normal_stop): Call set_running.
2040 * target.c (target_resume): New. Call set_running.
2041 * target.h (target_resume): Convert from macro to
2042 a function.
2043
2044 * mi/mi-interp.c (mi_on_resume): New.
2045 (mi_interpreter_init): Register mi_on_resume.
2046
2047 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2048
2049 Use observers to report stop events in MI.
2050 * mi/mi-interp.c (mi_on_normal_stop): New.
2051 (mi_interpreter_init): Register mi_on_normal_stop.
2052 (mi_interpreter_exec_continuation): Remove.
2053 (mi_cmd_interpreter_exec): Don't register the above.
2054 * mi/mi-main.c (captured_mi_execute_command): Don't care
2055 about sync_execution.
2056 (mi_execute_async_cli_command): Don't install continuation. Don't
2057 print *stopped.
2058 (mi_exec_async_cli_cmd_continuation): Remove.
2059
2060 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2061
2062 Suppress normal stop observer when it's problematic.
2063 * inferior.h (suppress_normal_stop_observer): New.
2064 * infcall.c (call_function_by_hand): Disable stop events when
2065 doing function calls.
2066 * infmcd.c (suppress_normal_stop_observer): New.
2067 (finish_command_continuation): Call normal_stop observer
2068 explicitly.
2069 (finish_command): Disable stop events inside proceed.
2070 * infrun.c (normal_stop): Don't call normal stop observer if
2071 suppressed of if multi-step is in progress.
2072
2073 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2074
2075 Remove stale code.
2076 * infrun.c (finish_command): Don't pass cleanup
2077 to continuation.
2078 (finish_command_continuation): Don't grab cleanup from
2079 the passed data, as we don't use, and cannot, use it anyway.
2080
2081 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2082
2083 Introduce common cleanup for restoring integers.
2084 * defs.h (make_cleanup_restore_integer): New declaration.
2085 (struct cleanup): New field free_arg.
2086 (make_my_cleanup_2): New.
2087 * utils.c (restore_integer_closure, restore_integer)
2088 (make_cleanup_restore_integer): New.
2089 (make_my_cleanup): Initialize the free_arg field and
2090 renamed to make_my_cleanup_2.
2091 (do_my_cleanups): Call free_arg.
2092 (discard_cleanups): Call free_arg.
2093 * breakpoint.c (restore_always_inserted_mode): Remove.
2094 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2095
2096 2008-06-09 Doug Evans <dje@google.com>
2097
2098 * remote.c (remote_wait): Include beginning of malformed packet
2099 in error output.
2100
2101 2008-06-09 Tom Tromey <tromey@redhat.com>
2102
2103 * completer.c (complete_line): Don't special-case
2104 expression_completer.
2105 (expression_completer): Only pass last word to
2106 location_completer.
2107 * c-exp.y (yylex): Check 'token', not 'operator'.
2108
2109 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
2110
2111 * configure.ac (build_warnings): Add -Wno-format for mingw.
2112 * configure: Regenerated.
2113
2114 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2115
2116 * NEWS: Make indentation consistent. Move exec tracing entry out
2117 of remote packet list.
2118
2119 2008-06-06 Tom Tromey <tromey@redhat.com>
2120
2121 * value.h (evaluate_subexpression_type, extract_field_op):
2122 Declare.
2123 * printcmd.c (_initialize_printcmd): Use expression_completer for
2124 'p', 'inspect', 'call'.
2125 * parser-defs.h (parse_field_expression): Declare.
2126 * parse.c: Include exceptions.h.
2127 (in_parse_field, expout_last_struct): New globals.
2128 (mark_struct_expression): New function.
2129 (prefixify_expression): Return int.
2130 (prefixify_subexp): Return int. Use expout_last_struct.
2131 (parse_exp_1): Update.
2132 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2133 in_parse_field.
2134 (parse_field_expression): New function.
2135 * expression.h (parse_field_expression): Declare.
2136 (in_parse_field): Likewise.
2137 * eval.c (evaluate_subexpression_type): New function.
2138 (extract_field_op): Likewise.
2139 * completer.h (expression_completer): Declare.
2140 * completer.c (expression_completer): New function.
2141 (count_struct_fields, add_struct_fields): New functions.
2142 * c-exp.y (yyparse): Redefine.
2143 (COMPLETE): New token.
2144 (exp): New productions.
2145 (saw_name_at_eof, last_was_structop): New globals.
2146 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2147 (c_parse): New function.
2148 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2149 for watch, awatch, and rwatch.
2150 * Makefile.in (parse.o): Depend on exceptions_h.
2151
2152 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2153
2154 PR gdb/1147
2155 * gdb/valopts.c (find_overload_match): Handle references
2156 to pointers.
2157
2158 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
2159
2160 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2161 account the bitsize of the 'from' operand.
2162
2163 2008-06-06 Pedro Alves <pedro@codesourcery.com>
2164
2165 * annotate.h (annotate_thread_changed): Declare.
2166
2167 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
2168
2169 * annotate.c (annotate_thread_changed): New function.
2170 * thread.c (thread_command) : Use it.
2171 * infrun.c (normal_stop): Use it.
2172
2173 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
2174 Nathan Sidwell <nathan@codesourcery.com>
2175 Joseph Myers <joseph@codesourcery.com>
2176
2177 * acinclude.m4: Include ../config/acx.m4.
2178 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2179 * configure, config.in: Regenerate.
2180 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2181 address.
2182 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2183
2184 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2185
2186 Replace 'target async' by 'maintenance set remote-async' and
2187 'target remote' combination.
2188
2189 * remote.c (remote_async_wait): Merge into remote_wait, and
2190 remove.
2191 (remote_async_permitted, remote_async_permitted_set): New
2192 variables.
2193 (set_maintenance_remote_async_permitted)
2194 (show_maintenance_remote_async_permitted): New functions.
2195 (remote_async_ops, extended_async_remote_ops): Delete.
2196 (remote_async_open, extended_remote_async_open): Delete.
2197 (remote_open_1): Drop async_p parameter. Update callers. Replace
2198 async_p with remote_async_permitted checks.
2199 (extended_async_remote_attach): Delete.
2200 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2201 (remote_async_terminal_inferior): Rename to...
2202 (remote_terminal_inferior): ... this, and add
2203 remote_async_termitted check.
2204 (remote_async_terminal_ours): Rename to...
2205 (remote_terminal_ours): ... this, and add remote_async_termitted
2206 check.
2207 (remote_wait, remote_async_wait): Merge and leave remote_wait
2208 only.
2209 (remote_kill, remote_async_kill): Merge and leave remote_kill
2210 only.
2211 (remote_async_mourn, extended_async_remote_mourn): Delete.
2212 (extended_remote_create_inferior_1): Drop async_p parameter.
2213 Update callers. Always use extended_remote_ops.
2214 (extended_remote_async_create_inferior): Delete.
2215 (remote_return_zero): Delete.
2216 (init_remote_ops): Register remote_can_async_p, remote_async,
2217 remote_async_mask, remote_terminal_inferior and
2218 remote_terminal_ours.
2219 (remote_can_async_p, remote_is_async_p): Check for
2220 remote_async_permitted.
2221 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2222 (set_remote_cmd): Don't add async and extended-async targets.
2223 (_initialize_remote): Add set/show remote-async maintenance
2224 commands.
2225
2226 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2227
2228 * remote.c (kill_kludge): Delete.
2229 (remote_wait, remote_async_wait): Don't set it.
2230 (remote_kill, remote_async_kill): Don't do anything with it.
2231
2232 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2233
2234 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2235
2236 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2237
2238 * bcache.c (bcache_data): Call deprecated_bcache_added function.
2239 (deprecated_bcache_added): New function name. Body of function
2240 bcache_data is used here with the addition of 'added' argument.
2241 * bcache.h (deprecated_bcache_added): New function.
2242 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2243 work from add_psymbol_to_list - initialises partial symbol and stashes
2244 it in objfile's cache.
2245 (append_psymbol_to_list): New helper function, takes other part of
2246 work from add_psymbol_to_list - adds partial symbol to the given list.
2247 (add_psymbol_to_list): Call helper functions instead of doing work
2248 here. If adding to global list, do not duplicate partial symbols in the
2249 partial symtab.
2250
2251 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2252
2253 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2254 'exception caught|thrown' message.
2255
2256 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2257
2258 * Makefile.in: Update dependencies.
2259 * dwarf2expr.c: New include "gdb_assert.h".
2260 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2261 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2262 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2263 Increase/decrease RECURSION_DEPTH around the function.
2264
2265 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2266
2267 * remote.c (get_offsets): Handle a single segment.
2268 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2269 than segments.
2270
2271 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2272
2273 * solib-svr4.c (struct lm_info): Add lm_addr.
2274 (main_lm_addr): New.
2275 (svr4_default_sos): Set lm_addr.
2276 (svr4_current_sos): Set lm_addr and main_lm_addr.
2277 (svr4_fetch_objfile_link_map): Rewrite.
2278 (svr4_clear_solib): Clear main_lm_addr.
2279
2280 2008-06-03 Michael Snyder <msnyder@redhat.com>
2281 Joseph Myers <joseph@codesourcery.com>
2282
2283 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2284 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2285
2286 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2287
2288 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2289
2290 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2291
2292 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2293
2294 2008-06-01 Joel Brobecker <brobecker@adacore.com>
2295
2296 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2297 treat pointers in data space as function descriptors if the
2298 target address is also in the data space.
2299
2300 2008-05-30 Joel Brobecker <brobecker@adacore.com>
2301
2302 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2303 the trad-frame register value for the SP register.
2304
2305 2008-05-29 Mark Kettenis <kettenis@gnu.org>
2306
2307 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2308
2309 2008-05-28 Joel Brobecker <brobecker@adacore.com>
2310
2311 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2312 that identifies function descriptors outside of the .opd section.
2313
2314 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2315
2316 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
2317 temporary catchpoints. In MI add missing fields 'reason', 'disp',
2318 'bkptno'.
2319 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2320 catchpoints.
2321 (handle_gnu_v3_exceptions): Use tempflag.
2322
2323 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2324
2325 Refactor varobj_update interface.
2326 * varobj.c (varobj_update): Report changes as vector. Also
2327 return not just a list of varobj, but a list of special structures
2328 that tell what exactly has changed.
2329 * varobj.h (enum varobj_update_error): Rename to
2330 varobj_scope_status.
2331 (struct varobj_update_result_t): New.
2332 (varobj_update): Adjust prototype.
2333 * mi/mi-cmd-var.c: Adjust for changes.
2334
2335 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2336
2337 * varobj.c (varobj_update): Fix comment typo.
2338 Fix indentation.
2339
2340 2008-05-26 Joel Brobecker <brobecker@adacore.com>
2341
2342 Set the symtab field of symbols read from ECOFF debugging entries.
2343 * mdebugread.c (add_symbol): Add new parameter symtab.
2344 (parse_symbol): Update calls to add_symbol throughout.
2345
2346 2008-05-27 Andreas Schwab <schwab@suse.de>
2347
2348 * symtab.h (enum address_class): Remove LOC_REGPARM and
2349 LOC_COMPUTED_ARG.
2350 (struct symbol): Add is_argument.
2351 (SYMBOL_IS_ARGUMENT): Define.
2352
2353 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2354 * buildsym.c (finish_block): Likewise.
2355 * stack.c (print_frame_args, print_block_frame_locals)
2356 (print_frame_arg_vars): Likewise.
2357 * symtab.c (lookup_block_symbol): Likewise.
2358 * tracepoint.c (add_local_symbols): Likewise.
2359 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2360
2361 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2362 * dwarf2read.c (new_symbol): Likewise.
2363 * mdebugread.c (parse_symbol): Likewise.
2364 * stabsread.c (define_symbol): Likewise.
2365
2366 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2367 and LOC_COMPUTED_ARG.
2368 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2369 * ax-gdb.c (gen_var_ref): Likewise.
2370 * eval.c (evaluate_subexp_for_address): Likewise.
2371 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2372 * m2-exp.y (yylex): Likewise.
2373 * printcmd.c (address_info): Likewise.
2374 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2375 * tracepoint.c (collect_symbol, scope_info): Likewise.
2376
2377 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2378
2379 * gdbarch.sh: Added new gdbarch struct
2380 core_regset_sections.
2381 * gdbarch.c: Refreshed.
2382 * gdbarch.h: Refreshed.
2383 * regset.h (core_regset_section): Declared.
2384 * linux-nat.c (linux_nat_do_thread_registers): Added
2385 support for the new gdbarch struct core_regset_sections.
2386 * utils.c (host_address_to_string): New function.
2387 * defs.h (host_address_to_string): New prototype.
2388 * i386-linux-tdep.c (i386_regset_rections): New register
2389 sections list for i386.
2390 (i386_linux_init_abi): Initialized new gdbarch struct
2391 core_regset_sections.
2392 * Makefile.in: Updated to reflect dependency changes.
2393 * ppc-linux-tdep.c (ppc_regset_sections): Register
2394 sections list for ppc.
2395 (ppc_linux_init_abi): Initialized new gdbarch struct
2396 core_regset_sections
2397
2398 2008-05-24 Andreas Schwab <schwab@suse.de>
2399
2400 * linespec.c (decode_objc): Save current language around call to
2401 get_selected_block.
2402
2403 2008-05-23 Joel Brobecker <brobecker@adacore.com>
2404
2405 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2406 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2407 Return the proper bound value if the array index type is an
2408 enumerated type. Compute the high bound if requested.
2409 (val_print_array_elements): Handle the case when the array
2410 element has a null size.
2411 * ada-valprint.c (print_optional_low_bound): Add handling
2412 for empty arrays or arrays of zero-size elements.
2413 (ada_val_print_array): New function, extracted out from
2414 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2415 handle empty arrays and arrays of zero-size elements.
2416 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2417 code by call to ada_val_print_array.
2418 (ada_value_print): Remove handling of null array. The handling
2419 was incomplete and is now better handled by ada_val_print_array.
2420
2421 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2422
2423 * annotate.c (annotate_source, annotate_frame_begin): Replace
2424 deprecated_print_address_numeric with paddress.
2425 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2426 * tui/tui-stack.c (tui_make_status_line): Likewise.
2427
2428 * defs.h (deprecated_print_address_numeric): Remove.
2429 * printcmd.c (deprecated_print_address_numeric): Remove.
2430 * maint.c (maint_print_section_info): Fix comment.
2431
2432 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2433
2434 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2435 print_binary_chars, print_char_chars): Add byte_order parameter and
2436 replace gdbarch_byte_order.
2437 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2438 expressions and remove them. Remove unused TWO_TO_FOURTH.
2439 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2440 endianness. Update call to print_hex_chars.
2441 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2442 print_binary_chars, print_char_chars): Add byte_order parameter.
2443 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2444 get at the endianness. Update print_*_char calls to use byte_order.
2445
2446 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2447
2448 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2449 instead of a union.
2450 (SYMBOL_LOCATION_BATON): Update.
2451
2452 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2453
2454 * symtab.h (enum address_class): Remove LOC_BASEREG and
2455 LOC_BASEREG_ARG.
2456 (struct symbol): Remove "basereg" member of "aux_value" union.
2457 (SYMBOL_BASEREG): Remove.
2458
2459 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2460 or LOC_BASEREG_ARG.
2461 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2462 (ada_add_block_symbols): Likewise.
2463 * ax-gdb.c (gen_var_ref): Likewise.
2464 * buildsym.c (finish_block): Likewise.
2465 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2466 * m2-exp.y (yylex): Likewise.
2467 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2468 * printcmd.c (address_info): Likewise.
2469 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2470 (print_frame_arg_vars): Likewise.
2471 * symmisc.c (print_symbol): Likewise.
2472 * symtab.c (lookup_block_symbol): Likewise.
2473 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2474 (scope_info): Likewise.
2475
2476 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2477
2478 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2479
2480 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2481 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2482 (ada_add_block_symbols): Likewise.
2483 * ax-gdb.c (gen_var_ref): Likewise.
2484 * buildsyms.c (finish_block): Likewise.
2485 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2486 * m2-exp.y (yylex): Likewise.
2487 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2488 * printcmd.c (address_info): Likewise.
2489 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
2490 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2491 * symtab.c (lookup_block_symbol): Likewise.
2492 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2493 (scope_info): Likewise.
2494
2495 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2496
2497 * symtab.h (enum address_class): Remove LOC_INDIRECT and
2498 LOC_HP_THREAD_LOCAL_STATIC.
2499
2500 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
2501 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
2502 (read_var_value): Likewise.
2503 * buildsym.c (finish_block): Likewise.
2504 * objfiles.c (objfile_relocate): Likewise.
2505 * printcmd.c (address_info): Likewise.
2506 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2507 * tracepoint.c (scope_info): Likewise.
2508
2509 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2510 Maxim Grigoriev <maxim2405@gmail.com>
2511
2512 * xtensa-tdep.c (xtensa_read_register): Remove.
2513 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
2514 argument litbase to call0_frame_cache().
2515 (call0_track_op, call0_analyze_prologue)
2516 (call0_frame_cache): Use extra argument litbase.
2517
2518 2008-05-21 Joel Brobecker <brobecker@adacore.com>
2519
2520 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2521
2522 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2523
2524 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2525
2526 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2527
2528 * alpha-mdebug-tdep.c: Include "trad-frame.h".
2529 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
2530 struct trad_frame_saved_reg *.
2531 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
2532 trad_frame_alloc_saved_regs. Update accesses. Record previous
2533 value of SP as being vfp.
2534 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
2535 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2536
2537 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2538
2539 * score-tdep.c (score_print_insn): Get the current endianess from
2540 disassemble_info instead of gdbarch_byte_order.
2541
2542 2008-05-21 Pedro Alves <pedro@codesourcery.com>
2543
2544 * frame.c (get_prev_frame_1): Build frame id before setting
2545 this_frame->prev_p, not after.
2546
2547 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
2548
2549 * annotate.c (annotate_new_thread): New function for new-thread
2550 annotation.
2551 * annotate.h: (annotate_new_thread): New extern.
2552 * thread.c (add_thread_with_info): Use it.
2553 * Makefile.in (thread.o): Add dependency on annotate.h.
2554
2555 2008-05-20 Joel Brobecker <brobecker@adacore.com>
2556
2557 * win32-nat.c (win32_wait): Block the control-c event while
2558 waiting for a debug event.
2559
2560 2008-05-19 Pedro Alves <pedro@codesourcery.com>
2561
2562 * symtab.h (lookup_symbol_in_language): Update comment.
2563 * symtab.c (lookup_symbol_aux_block): Update comment.
2564 * ada-lang.c (ada_lookup_symbol_list): Update comment.
2565
2566 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2567
2568 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
2569 (lookup_symbol): Likewise.
2570 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
2571 (lookup_symbol): Likewise.
2572 (search_symbols): Update.
2573
2574 * linespec.c (find_methods, collect_methods): Update.
2575 (add_matching_methods, add_constructors): Update.
2576 (decode_compound, decode_dollar, decode_variable): Update.
2577 (lookup_prefix_sym): Update.
2578
2579 (symbol_found): Remove SYM_SYMTAB parameter.
2580 Use SYMBOL_SYMTAB (sym) instead.
2581
2582 * gdbtypes.c (lookup_typename): Update.
2583 (lookup_struct, lookup_union, lookup_enum): Update.
2584 (lookup_template_type): Update.
2585 (check_typedef): Update.
2586 * language.c (lang_bool_type): Update.
2587 * mdebugread.c (parse_procedure): Update.
2588 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2589 * parse.c (write_dollar_variable): Update.
2590 * printcmd.c (address_info): Update.
2591 * source.c (select_source_symtab): Update.
2592 * stack.c (print_frame_args, print_frame_arg_vars): Update.
2593 * valops.c (find_function_in_inferior): Update.
2594 (value_struct_elt_for_reference): Update.
2595 * value.c (value_static_field, value_fn_field): Update.
2596
2597 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2598 * arm-tdep.c (arm_skip_prologue): Update.
2599 * mt-tdep.c (mt_skip_prologue): Update.
2600 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
2601
2602 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
2603 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
2604 (add_defn_to_vec): Likewise.
2605 (ada_add_block_symbols): Likewise.
2606 (lookup_cached_symbol, cache_symbol): Likewise.
2607 (standard_lookup): Update.
2608 (ada_lookup_symbol_list): Update.
2609
2610 * c-valprint.c (c_val_print): Update.
2611 * cp-support.c (cp_lookup_rtti_type): Update.
2612 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
2613 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
2614 * p-valprint.c (pascal_val_print): Update.
2615 * scm-lang.c (scm_lookup_name): Update.
2616
2617 * c-exp.y: Update.
2618 * f-exp.y: Update.
2619 * jv-exp.y: Update.
2620 * m2-exp.y: Update.
2621 * objc-exp.y: Update.
2622 * p-exp.y: Update.
2623
2624 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2625
2626 * language.h (struct language_defn): Remove SYMTAB parameter from
2627 la_lookup_symbol_nonlocal callback function pointer.
2628
2629 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2630 (ada_lookup_encoded_symbol): Likewise.
2631 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2632 Always call fixup_symbol_section.
2633 (ada_lookup_symbol): Remove SYMTAB parameter.
2634 (ada_lookup_symbol_nonlocal): Likewise.
2635 * ada-exp.y (write_object_renaming): Update.
2636 (find_primitive_type): Likewise.
2637
2638 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2639 (cp_lookup_symbol_namespace): Likewise.
2640 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
2641 (lookup_symbol_file): Likewise.
2642 (lookup_possible_namespace_symbol): Likewise.
2643 (cp_lookup_symbol_nonlocal): Likewise.
2644 (cp_lookup_symbol_namespace): Likewise.
2645 (cp_lookup_nested_type): Update.
2646
2647 * scm-valprint.c (scm_inferior_print): Update.
2648 * valops.c (value_maybe_namespace_elt): Update.
2649
2650 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
2651 lookup_lib_global_symbol callback function pointer.
2652 (solib_global_lookup): Remove SYMTAB parameter.
2653 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
2654 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2655
2656 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2657 (lookup_symbol_static): Likewise.
2658 (lookup_symbol_global): Likewise.
2659 (lookup_symbol_aux_block): Likewise.
2660 (lookup_global_symbol_from_objfile): Likewise.
2661 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
2662 (lookup_symbol_aux_local): Likewise.
2663 (lookup_symbol_aux_block): Likewise.
2664 (lookup_symbol_aux_symtabs): Likewise.
2665 (lookup_symbol_aux_psymtabs): Likewise.
2666 (lookup_global_symbol_from_objfile): Likewise.
2667 (basic_lookup_symbol_nonlocal): Likewise.
2668 (lookup_symbol_static): Likewise.
2669 (lookup_symbol_global): Likewise.
2670
2671 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2672
2673 2008-05-17 Pedro Alves <pedro@codesourcery.com>
2674
2675 * remote.c (init_extended_remote_ops): Fix typo.
2676
2677 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2678
2679 * NEWS: Mention new DICOS x86 target configuration.
2680
2681 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2682 Ulrich Weigand <uweigand@de.ibm.com>
2683
2684 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
2685 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
2686
2687 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
2688 use it instead of ginfo->value.address. Look up minimal symbol by
2689 address and name. Assume OBJFILE is non-NULL.
2690 (fixup_symbol_section): Ensure we always have an objfile to look
2691 into. Extract and pass to fixup_section the symbol's address that
2692 will match the minimal symbol's address.
2693 (fixup_psymbol_section): Likewise.
2694
2695 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
2696 overlays and the addrmap returned the wrong section.
2697
2698 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
2699 calling fixup_symbol_section.
2700
2701 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2702
2703 * minsyms.c: Include "target.h".
2704 (find_solib_trampoline_target): Handle minimal symbols pointing
2705 to function descriptors as well.
2706 * Makefile.in (minsyms.o): Update dependencies.
2707
2708 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
2709 (ppc64_standard_linkage1): ... this. Fix optional instructions.
2710 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
2711 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
2712 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
2713 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
2714 (ppc64_standard_linkage_target): Rename to ...
2715 (ppc64_standard_linkage1_target): ... this.
2716 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
2717 (ppc64_skip_trampoline_code): Support three variants of standard
2718 linkage stubs. Call find_solib_trampoline_target to handle
2719 glink stubs.
2720
2721 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2722
2723 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
2724 ppc64_sysv_abi_adjust_breakpoint_address.
2725 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2726 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2727
2728 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2729
2730 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
2731 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
2732 of ppc_linux_skip_trampoline_code.
2733
2734 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2735
2736 * gdbarch.sh: Delete dwarf_reg_to_regnum.
2737 * gdbarch.c, gdbarch.h: Regenerated.
2738 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
2739 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
2740 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
2741
2742 2008-05-15 Pedro Alves <pedro@codesourcery.com>
2743
2744 * linux-nat.c (trap_ptid): Delete.
2745 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
2746 Adjust.
2747 * linux-thread-db.c (thread_db_wait): Adjust.
2748
2749 2008-05-15 Joel Brobecker <brobecker@adacore.com>
2750
2751 * linespec.c (decode_line_1): Fix a couple of comments.
2752
2753 2008-05-15 Alan Modra <amodra@bigpond.net.au>
2754
2755 * dbxread.c: Formatting.
2756 (INTERNALIZE_SYMBOL): Init n_other.
2757 (set_namestring): Take pointer to nlist arg rather than struct
2758 copy. Update all callers.
2759
2760 2008-05-15 Andreas Schwab <schwab@suse.de>
2761
2762 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
2763 (dwarf2read.o): Add $(addrmap_h).
2764
2765 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2766
2767 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2768 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2769 to handle ppc32 PLT entries.
2770 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2771 only on ppc64.
2772
2773 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2774
2775 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2776 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2777 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2778 (lookup_minimal_symbol_by_pc_section): Use
2779 lookup_minimal_symbol_by_pc_section_1.
2780 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2781
2782 2008-05-13 Joel Brobecker <brobecker@adacore.com>
2783
2784 * findcmd.c: Add #include "gdb_stdint.h".
2785 * Makefile.in (findcmd.o): Update dependencies.
2786
2787 2008-05-11 David S. Miller <davem@davemloft.net>
2788
2789 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2790 long double size override, Linux does use 128-bit now.
2791
2792 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2793 (sparc_linux_write_pc): New function.
2794 (sparc32_linux_init_abi): Register it.
2795 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2796 (sparc64_linux_write_pc): New function.
2797 (sparc64_linux_init_abi): Register it.
2798
2799 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2800 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2801
2802 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2803
2804 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2805 and info.tdep_info before calling gdbarch_init_osabi.
2806
2807 2008-05-09 Joel Brobecker <brobecker@adacore.com>
2808
2809 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2810 the type of the right hand side of the assignment to the type
2811 of the left hand side if the left hand side is a convenience
2812 variable.
2813
2814 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2815
2816 * NEWS: Mention gdbserver bi-arch capability.
2817
2818 2008-05-09 Doug Evans <dje@google.com>
2819
2820 New "find" command.
2821 * NEWS: Document find command and qSearch:memory packet.
2822 * Makefile.in (SFILES): Add findcmd.c.
2823 (COMMON_OBJS): Add findcmd.o.
2824 (findcmd.o): New rule.
2825 * findcmd.c: New file.
2826 * target.h (target_ops): New member to_search_memory.
2827 (simple_search_memory): Declare.
2828 (target_search_memory): Declare.
2829 * target.c (simple_search_memory): New fn.
2830 (target_search_memory): New fn.
2831 * remote.c (PACKET_qSearch_memory): New packet kind.
2832 (remote_search_memory): New fn.
2833 (init_remote_ops): Init to_search_memory.
2834 (init_extended_remote_ops): Ditto.
2835 (_initialize_remote): Add qSearch:memory packet config command.
2836
2837 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2838
2839 * thread.c (_initialize_thread): Don't use commas and periods in
2840 first line of doc string of "set/show print thread-events".
2841
2842 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2843
2844 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2845 Update for unwinder changes.
2846
2847 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2848
2849 * frame.c (get_frame_base_address, get_frame_locals_address)
2850 (get_frame_args_address): Pass the correct frame when calling
2851 frame_base_find_by_frame.
2852
2853 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2854
2855 * remote.c (extended_remote_attach_1): Call target_find_description.
2856
2857 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2858
2859 * remote.c (extended_remote_create_inferior_1): Clean up
2860 before marking the target running.
2861
2862 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2863
2864 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2865 changes.
2866
2867 2008-05-07 Joel Brobecker <brobecker@adacore.com>
2868
2869 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2870 sparc64-sol2-tdep.c: Update for unwinder changes.
2871
2872 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2873
2874 * cp-support.c (mangled_name_to_comp): Initialize storage.
2875 (unqualified_name_from_comp): Likewise.
2876
2877 2008-05-07 Jie Zhang <jie.zhang@analog.com>
2878
2879 * remote.c (remote_insert_breakpoint): Call get_remote_state
2880 after gdbarch_breakpoint_from_pc is called.
2881 (remote_insert_hw_breakpoint): Likewise.
2882
2883 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2884
2885 * valprint.c (val_print): Add new language parameter and use it
2886 instead of using the current_language. Update calls to val_print
2887 throughout.
2888 (common_val_print): Add new langauge parameter and pass it to
2889 val_print.
2890 * value.h (struct language_defn): Add opaque declaration.
2891 (val_print, common_val_print): Update declarations.
2892 * stack.c (print_frame_args): Update call to common_val_print
2893 using the appropriate language.
2894 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2895 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2896 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2897 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2898 #include "language.h" if necessary.
2899 Update calls to val_print and common_val_print.
2900 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2901 Update dependencies.
2902
2903 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2904
2905 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2906 pointing inside a non-executable section as function descriptors.
2907
2908 2008-05-06 Pedro Alves <pedro@codesourcery.com>
2909
2910 * inf-loop.c (inferior_event_handler): Run all continuations and
2911 print any language change before running the breakpoint commands.
2912
2913 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2914
2915 * frame-unwind.c (frame_unwind_got_bytes): New function.
2916 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2917 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2918 for unwinder changes.
2919
2920 2008-05-05 Doug Evans <dje@google.com>
2921
2922 * NEWS: Mention new /m modifier for disassemble command.
2923 * cli/cli-cmds.c (print_disassembly): New function.
2924 (disassemble_current_function): New function
2925 (disassemble_command): Recognize /m modifier, print mixed
2926 source+assembly.
2927 (init_cli_cmds): Update disassemble help text.
2928
2929 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2930
2931 * xtensa-tdep.c: Update for unwinder changes.
2932
2933 2008-05-05 Andreas Schwab <schwab@suse.de>
2934
2935 Update m68k port for unwinder changes.
2936 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
2937 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
2938 (m68k_frame_unwind): Use default_frame_sniffer.
2939 (m68k_frame_sniffer): Remove.
2940 (m68k_frame_base_address): Expect this_frame.
2941 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
2942 this_frame.
2943 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
2944 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
2945 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
2946 parameter instead of pc value.
2947 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
2948 Expect this_frame.
2949 (m68k_linux_sigtramp_frame_this_id)
2950 (m68k_linux_sigtramp_frame_prev_register)
2951 (m68k_linux_sigtramp_frame_sniffer): Update signature.
2952 (m68k_linux_sigtramp_frame_unwind): Use
2953 m68k_linux_sigtramp_frame_sniffer.
2954 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
2955
2956 * m68klinux-nat.c (store_register): Fix typo.
2957
2958 2008-05-05 Pedro Alves <pedro@codesourcery.com>
2959
2960 * infcmd.c (step_1): Put thread id on the stack to avoid possible
2961 NULL dereferencing.
2962
2963 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
2964
2965 * symfile.c (reread_symbols): Update objfile's entry point.
2966
2967 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
2968 Joel Brobecker <brobecker@adacore.com>
2969
2970 * ada-lang.c: Update throughout to use symbol_matches_domain
2971 instead of matching the symbol domain explictly.
2972 * dwarf2read.c (add_partial_symbol): Do not add new psym for
2973 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
2974 class as typedefs. See lookup_partial_symbol function.
2975 (new_symbol): Similar to add_partial_symbol, do not create
2976 symbol for the typedef. See lookup_block_symbol.
2977 * symtab.c (symbol_matches_domain): New function, takes care
2978 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
2979 (lookup_partial_symbol): Use symbol_matches_domain to see if the
2980 found psym domain matches the given domain.
2981 (lookup_block_symbol): Likewise.
2982
2983 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2984
2985 * top.c (command_line_handler_continuation): Remove.
2986 (execute_command): Do not install the above.
2987
2988 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2989
2990 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
2991 and catch all exceptions from it.
2992 * top.c (command_line_handler_continuation): Don't
2993 call bpstat_do_action here.
2994
2995 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2996
2997 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
2998 (struct die_info): Remove type.
2999 (read_type_die, read_typedef, read_base_type, read_subrange_type)
3000 (read_structure_type, read_enumeration_type, read_array_type)
3001 (read_tag_pointer_type, read_tag_ptr_to_member_type)
3002 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
3003 (read_tag_string_type, read_subroutine_type, read_set_type)
3004 (read_unspecified_type): Delete prototypes. Remove check for
3005 already-loaded type. Return the new type.
3006 (set_die_type): Return the new type.
3007 (reset_die_and_siblings_types): Delete.
3008 (load_comp_unit, load_full_comp_unit): Set type_hash.
3009 (process_queue): Remove call to reset_die_and_siblings_types.
3010 (process_die): Do not read most types here. Use read_type_die
3011 for others.
3012 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
3013 (quirk_gcc_member_function_pointer): Return the new type.
3014 (process_structure_scope, process_enumeration_scope): Use
3015 get_die_type and read the DIE's type.
3016 (read_full_die): Do not initialize die->type.
3017 (tag_type_to_type): Use read_type_die.
3018 (read_type_die): Check for already defined types. Return the
3019 type.
3020 (determine_prefix): Use get_die_type.
3021 (set_die_type): Return the type.
3022 (get_die_type): Take a CU argument. Check for no type_hash.
3023
3024 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3025
3026 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
3027 locals.
3028
3029 2008-05-04 Pedro Alves <pedro@codesourcery.com>
3030
3031 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
3032 and bp_longjmp_resume breakpoints.
3033 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
3034 meaningful.
3035 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
3036 breakpoints. Create bp_longjmp breakpoints as momentary
3037 breakpoints.
3038 (enable_longjmp_breakpoint): Delete.
3039 (set_longjmp_breakpoint): New.
3040 (disable_longjmp_breakpoint): Delete.
3041 (delete_longjmp_breakpoint): New.
3042 (set_longjmp_resume_breakpoint): Delete.
3043 (set_momentary_breakpoint_at_pc): New.
3044 (breakpoint_re_set_one): Don't delete bp_longjmp and
3045 bp_longjmp_resume breakpoints.
3046 (breakpoint_re_set): Don't create longjmp and longjmp-resume
3047 breakpoints.
3048
3049 * infrun.c (step_resume_breakpoint): Add comment.
3050 (struct execution_control_state): Delete handling_longjmp member.
3051 (init_execution_control_state). Don't clear handling_longjmp.
3052 (context_switch): Don't context switch handling_longjmp.
3053 (handle_inferior_event): If handling a bp_longjmp breakpoint,
3054 create a bp_longjmp_resume breakpoint, and set it as current
3055 step_resume_breakpoint, then step over the longjmp breakpoint. If
3056 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
3057 breakpoint, delete the longjmp-resume breakpoint, and stop
3058 stepping.
3059 (currently_stepping): Remove handling_longjmp from expression.
3060 (insert_step_resume_breakpoint_at_sal): Update comment.
3061 (insert_longjmp_resume_breakpoint): New.
3062
3063 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
3064 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
3065 declarations.
3066 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
3067 (set_longjmp_resume_breakpoint): Delete declaration.
3068
3069 * gdbthread.h (save_infrun_state): Remove handling_longjmp
3070 parameter.
3071 (load_infrun_state): Delete *handling_longjmp parameter.
3072 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
3073 Update body.
3074 (load_infrun_state): Delete *handling_longjmp parameter. Update
3075 body.
3076
3077 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
3078 (delete_longjmp_breakpoint_cleanup): New.
3079 (step_1): Call set_longjmp_breakpoint instead of
3080 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
3081 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
3082 (step_1_continuation): Pass thread id in the continuation args to
3083 step_once.
3084 (step_once): Add thread parameter. Pass thread id the the
3085 continuation.
3086
3087 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 Set CU BASE_ADDRESS already from partial DIEs.
3090 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
3091 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
3092 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3093 from these variables if it was still unset.
3094
3095 * Makefile.in: Update dependencies.
3096 * dwarf2read.c: Include "addrmap.h"
3097 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3098 (dwarf2_ranges_read): New prototype.
3099 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3100 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3101 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3102 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3103 comment for it. Add the found ranges to RANGES_PST. New variable
3104 BASEADDR, initialize it the common way.
3105 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3106 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3107 HAS_RANGES_OFFSET for the later processing.
3108 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3109 * symtab.c: Include "addrmap.h"
3110 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3111 Move the psymtab locator into ...
3112 (find_pc_sect_psymtab_closer): ... a new function.
3113
3114 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3115
3116 * arch-utils.c (gdbarch_update_p): Use default values for
3117 info.abfd and info.target_desc if they are NULL.
3118 (gdbarch_from_bfd): Remove assertion.
3119 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3120 using the current target description.
3121 (gdbarch_info_fill): Do not use default values for info->abfd
3122 and info->target_desc.
3123
3124 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3127
3128 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3129
3130 * inferior.h (read_pc_pid, write_pc_pid): Remove.
3131 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3132
3133 * regcache.c (read_pc_pid): Remove, replace by ...
3134 (regcache_read_pc): ... this function.
3135 (write_pc_pid): Remove, replace by ...
3136 (regcache_write_pc): ... this function.
3137 (read_pc, write_pc): Update.
3138
3139 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3140 write_pc_pid by regcache_read_pc and regcache_write_pc.
3141 (displaced_step_fixup): Likewise.
3142 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3143 (prepare_to_proceed): Likewise.
3144 (proceed): Likewise.
3145 (adjust_pc_after_break): Likewise.
3146 (handle_inferior_event): Likewise.
3147
3148 * linux-nat.c (cancel_breakpoint): Likewise.
3149 * linux-thread-db.c (check_event): Likewise.
3150 * aix-thread.c (aix_thread_wait): Likewise.
3151 * tracepoint.c (trace_dump_command): Likewise.
3152
3153 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3154
3155 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3156 SYMBOL_LOCATION_BATON.
3157
3158 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
3159
3160 * target.h (struct target_ops): New field to_auxv_parse.
3161 * auxv.c (default_auxv_parse): New, renamed from previous
3162 target_auxv_parse.
3163 (target_auxv_parse): Try to call target method. Fallback to
3164 default_auxv_parse if not found.
3165 * procfs.c (procfs_auxv_parse): New.
3166 (init_procfs_ops): On Solaris, in 64-bit mode, install
3167 procfs_auxv_parse.
3168
3169 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3170
3171 * symfile.c (add_symbol_file_command): Use paddress rather than
3172 hex_string to print the address.
3173
3174 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3175
3176 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3177 return the null frame ID to terminate the backtrace.
3178
3179 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3180
3181 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3182 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3183 (SIG_FRAME_PC_OFFSET): Likewise.
3184 (SIG_FRAME_LR_OFFSET): Likewise.
3185 (SIG_FRAME_FP_OFFSET): Likewise.
3186 (rs6000_push_dummy_call): Likewise.
3187 (rs6000_return_value): Likewise.
3188 (rs6000_convert_from_func_ptr_addr): Likewise.
3189 (branch_dest, rs6000_software_single_step): Likewise.
3190 (deal_with_atomic_sequence): Rename to ...
3191 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3192 Do not call branch_dest; inline required parts of that function.
3193 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3194 with SYMBOL_LINKAGE_NAME.
3195 (struct reg, regsize): Delete.
3196 (read_memory_addr): Delete; inline into callers.
3197 (rs6000_skip_prologue): Move after skip_prologue.
3198 (skip_prologue): Remove prototype.
3199 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3200 initialization as if this variable were true. Do not install
3201 ppc64_sysv_abi_adjust_breakpoint_address.
3202
3203 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3204 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3205 and "breakpoint.h".
3206 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3207 (SIG_FRAME_PC_OFFSET): Likewise.
3208 (SIG_FRAME_LR_OFFSET): Likewise.
3209 (SIG_FRAME_FP_OFFSET): Likewise.
3210 (rs6000_push_dummy_call): Likewise.
3211 (rs6000_return_value): Likewise.
3212 (rs6000_convert_from_func_ptr_addr): Likewise.
3213 (branch_dest, rs6000_software_single_step): Likewise. Replace
3214 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3215 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3216 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3217 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3218 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3219
3220 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3221 (AIX_TEXT_SEGMENT_BASE): New macro.
3222 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3223 by AIX_TEXT_SEGMENT_BASE.
3224
3225 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3226 (struct gdbarch_tdep): Remove text_segment_base member.
3227 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3228 ppc64_sysv_abi_adjust_breakpoint_address.
3229
3230 * Makefile.in (rs6000-tdep.o): Update dependencies.
3231 (rs6000-aix-tdep.o): Likewise.
3232
3233 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
3234 Thiago Jung Bauermann <bauerman@br.ibm.com>
3235
3236 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3237 * doublest.c (convert_typed_floating): Fix typo in comment.
3238 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3239 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3240 * frame.c (frame_unwind_address_in_block): Likewise.
3241 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3242 * symtab.h (struct symbol): Likewise.
3243 * tramp-frame.h (struct trad_frame_cache): Likewise.
3244 * value.c (allocate_repeat_value): Likewise.
3245
3246 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3247
3248 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3249 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3250
3251 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3252
3253 * parse.c (parse_exp_in_context): Don't override
3254 expression_context_pc if get_selected_block returned a valid
3255 block.
3256
3257 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3258
3259 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3260 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3261 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3262 Delete.
3263 * c-typeprint.c (c_type_print_base): Delete handling of template
3264 instantiations.
3265 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3266 (METHOD_PTR_TO_VOFFSET): Delete.
3267 * defs.h (QUIT_FIXME): Delete.
3268 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3269 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3270 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3271 ninstantiations, and instantiations.
3272 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3273 (TYPE_FN_FIELD_INLINED): Delete.
3274 * srec.h (SREC_BINARY): Delete.
3275 * symtab.c (symbol_init_demangled_name): Delete.
3276 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3277 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3278 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3279 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3280 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3281 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3282 * target.h (enum thread_control_capabilities): Delete tc_switch.
3283 (target_can_switch_threads): Delete.
3284
3285 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3286
3287 * Makefile.in (objfiles.o): Update.
3288 * exec.c (exec_set_section_address): Support p->addr != 0.
3289 * objfiles.c (objfile_relocate): Update exec_ops section
3290 addresses.
3291 * symfile.c (place_section): Move exec_set_section_address call...
3292 (default_symfile_offsets): ...to here.
3293
3294 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3295
3296 * Makefile.in (ppc_linux_tdep_h): New macro.
3297 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3298 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3299 (powerpc_e500l_c): Likewise.
3300 (ppc-linux-nat.o): Update dependencies.
3301 (ppc-linux-tdep.o): Update dependencies.
3302 (rs6000-tdep.o): Update dependencies.
3303
3304 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3305 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3306 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3307 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3308 (tdesc_powerpc_e500): Remove.
3309
3310 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3311 and "features/rs6000/powerpc-altivec64.c".
3312 (ppc_supply_reg, ppc_collect_reg): Make global.
3313 (variants): Use tdesc_powerpc_32 for "powerpc" and
3314 tdesc_powerpc_altivec64 for "powerpc64".
3315 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3316
3317 * ppc-linux-tdep.h: New file.
3318
3319 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3320 Include "features/rs6000/powerpc-32l.c".
3321 Include "features/rs6000/powerpc-altivec32l.c".
3322 Include "features/rs6000/powerpc-64l.c".
3323 Include "features/rs6000/powerpc-altivec64l.c".
3324 Include "features/rs6000/powerpc-e500l.c".
3325 (ppc_linux_supply_gregset): New function.
3326 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3327 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3328 (ppc64_linux_gregset): Likewise.
3329 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3330 (ppc_linux_trap_reg_p): New function.
3331 (ppc_linux_write_pc): New function.
3332 (ppc_linux_core_read_description): New function.
3333 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3334 ppc_linux_core_read_description. Install orig_r3 and trap
3335 registers if present in the target description.
3336 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3337
3338 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3339 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3340 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3341 (fetch_ppc_registers): Likewise.
3342 (store_ppc_registers): Likewise.
3343 (store_register): Likewise.
3344 (ppc_linux_read_description): Check whether AltiVec is supported.
3345 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3346 Linux target description.
3347
3348 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3349 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3350 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3351 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3352 rs6000/powerpc-e500. Update -expedite variables accordingly.
3353
3354 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3355 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3356 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3357 * features/rs6000/powerpc-e500.c: Regenerate.
3358 * features/rs6000/powerpc-32.c: Regenerate.
3359 * features/rs6000/powerpc-64.c: Regenerate.
3360
3361 * features/rs6000/power-linux.xml: New file.
3362 * features/rs6000/power64-linux.xml: New file.
3363 * features/rs6000/powerpc-32l.xml: New file.
3364 * features/rs6000/powerpc-altivec32l.xml: New file.
3365 * features/rs6000/powerpc-64l.xml: New file.
3366 * features/rs6000/powerpc-altivec64l.xml: New file.
3367 * features/rs6000/powerpc-e500l.xml: New file.
3368 * features/rs6000/powerpc-32l.c: New (generated) file.
3369 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3370 * features/rs6000/powerpc-64l.c: New (generated) file.
3371 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3372 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3373
3374 * regformats/reg-ppc.dat: Remove.
3375 * regformats/reg-ppc64.dat: Remove.
3376 * regformats/rs6000/powerpc-32.dat: Remove.
3377 * regformats/rs6000/powerpc-64.dat: Remove.
3378 * regformats/rs6000/powerpc-e500.dat: Remove.
3379 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3380 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3381 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3382 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3383 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3384
3385 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3386
3387 * thread.c (delete_thread): Call observer_notify_thread_exit.
3388 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3389 thread_exit observer.
3390 (mi_thread_exit): New.
3391
3392 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3393
3394 * breakpoint.c (create_exception_catchpoint): Remove prototype
3395 for already deleted function.
3396 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3397 * frame.h (show_stack_frame): Remove prototype.
3398 * stack.c (show_stack_frame): Remove empty, unused function.
3399 * source.c (symtab_to_fullname, print_source_lines): Small fix
3400 in comment.
3401 * value.c (show_values): Update comments to mention "show values"
3402 command instead of "info history".
3403
3404 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3405
3406 * linespec.c: Include "target.h".
3407 (minsym_found): Handle minimal symbols pointing to function
3408 descriptors. Use find_function_start_pc.
3409 * minsyms.c (msymbol_objfile): New function.
3410 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3411 to function descriptors.
3412 * symtab.c (fixup_section): Only use minimal symbol at the same
3413 address to determine section of a symbol.
3414 (find_function_start_pc): New function.
3415 (find_function_start_sal): Use it.
3416 * symtab.h (msymbol_objfile): Add prototype.
3417 (find_function_start_pc): Likewise.
3418 * value.c: Include "objfiles.h".
3419 (value_fn_field): Handle minimal symbols pointing to function
3420 descriptors.
3421 * Makefile.in (linespec.o): Update dependencies.
3422 (value.o): Likewise.
3423
3424 2008-05-02 Joel Brobecker <brobecker@adacore.com>
3425
3426 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3427 inside a PAD type is a bitfield.
3428
3429 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3430
3431 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3432 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3433 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3434 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3435 Allow typedefs when checking for function pointer arguments.
3436 Right-align small structs passed on the stack.
3437 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3438 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3439 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3440
3441 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3442
3443 * Makefile.in (arm-tdep.o): Update.
3444 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3445 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3446 (arm_pc_is_thumb): Use mapping symbols.
3447 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3448 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3449 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3450 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3451 * gdbarch.sh: Add record_special_symbol.
3452 * gdbarch.c, gdbarch.h: Regenerated.
3453 * objfiles.c (struct objfile_data): Add cleanup member.
3454 (register_objfile_data_with_cleanup): New function, from
3455 register_objfile_data.
3456 (register_objfile_data): Use it.
3457 (objfile_free_data): Call clear_objfile_data.
3458 (clear_objfile_data): Call cleanup functions.
3459 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3460
3461 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3462
3463 * objfiles.c (init_entry_point_info): Handle shared libraries.
3464
3465 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3466
3467 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3468 lowest_pc.
3469
3470 2008-05-02 Jim Blandy <jimb@codesourcery.com>
3471 Pedro Alves <pedro@codesourcery.com>
3472
3473 Implement displaced stepping.
3474
3475 * gdbarch.sh (max_insn_length): New 'variable'.
3476 (displaced_step_copy, displaced_step_fixup)
3477 (displaced_step_free_closure, displaced_step_location): New
3478 functions.
3479 (struct displaced_step_closure): Add forward declaration.
3480 * gdbarch.c, gdbarch.h: Regenerated.
3481
3482 * arch-utils.c: #include "objfiles.h".
3483 (simple_displaced_step_copy_insn)
3484 (simple_displaced_step_free_closure)
3485 (displaced_step_at_entry_point): New functions.
3486 * arch-utils.h (simple_displaced_step_copy_insn)
3487 (simple_displaced_step_free_closure)
3488 (displaced_step_at_entry_point): New prototypes.
3489
3490 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
3491 (I386_MAX_MATCHED_INSN_LEN): ... this.
3492 (i386_absolute_jmp_p, i386_absolute_call_p)
3493 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
3494 (i386_displaced_step_fixup): New functions.
3495 (struct i386_insn, i386_match_insn): Update.
3496 (i386_gdbarch_init): Set gdbarch_max_insn_length.
3497 * i386-tdep.h (I386_MAX_INSN_LEN): New.
3498 (i386_displaced_step_fixup): New prototype.
3499 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
3500 Register gdbarch_displaced_step_copy,
3501 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
3502 and gdbarch_displaced_step_location functions.
3503
3504 * infrun.c (debug_displaced): New variable.
3505 (show_debug_displaced): New function.
3506 (struct displaced_step_request): New struct.
3507 (displaced_step_request_queue, displaced_step_ptid)
3508 (displaced_step_gdbarch, displaced_step_closure)
3509 (displaced_step_original, displaced_step_copy)
3510 (displaced_step_saved_copy, can_use_displaced_stepping): New
3511 variables.
3512 (show_can_use_displaced_stepping, use_displaced_stepping)
3513 (displaced_step_clear, cleanup_displaced_step_closure)
3514 (displaced_step_dump_bytes, displaced_step_prepare)
3515 (displaced_step_clear_cleanup, write_memory_ptid)
3516 (displaced_step_fixup): New functions.
3517 (resume): Call displaced_step_prepare.
3518 (proceed): Call read_pc once, and remember the value. If using
3519 displaced stepping, don't remove breakpoints.
3520 (handle_inferior_event): Call displaced_step_fixup. Add some
3521 debugging output. When we try to step over a breakpoint, but get
3522 a signal to deliver to the thread instead, ensure the step-resume
3523 breakpoint is actually inserted. If a thread hop is needed, and
3524 displaced stepping is enabled, don't remove breakpoints.
3525 (init_wait_for_inferior): Call displaced_step_clear.
3526 (_initialize_infrun): Add "set debug displaced" command. Add
3527 "maint set can-use-displaced-stepping" command. Clear
3528 displaced_step_ptid.
3529 * inferior.h (debug_displaced): Declare variable.
3530 (displaced_step_dump_bytes): Declare function.
3531
3532 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
3533 dependencies.
3534
3535 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3536
3537 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
3538 (arm_force_mode_string, arm_show_fallback_mode)
3539 (arm_show_force_mode): New.
3540 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
3541 arm_frame_is_thumb.
3542 (_initialize_arm_tdep): Add "set arm fallback-mode"
3543 and "set arm force-mode".
3544 * NEWS: Document new commands.
3545
3546 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
3547
3548 * main.h (batch_silent): Declare.
3549 * event-top.c: Include main.h.
3550 (gdb_setup_readline): Remove extern batch_silent declaration.
3551 * infrun.c (normal_stop): Don't print source location when running in
3552 --batch-silent mode.
3553 * Makefile.in (event-top.o): Add main.h dependency.
3554
3555 2008-05-02 Andreas Schwab <schwab@suse.de>
3556
3557 * target.h (struct target_ops): Add
3558 to_watchpoint_addr_within_range.
3559 (target_watchpoint_addr_within_range): New function.
3560 * target.c (update_current_target): Inherit
3561 to_watchpoint_addr_within_range, defaulting to
3562 default_watchpoint_addr_within_range.
3563 (default_watchpoint_addr_within_range): New function.
3564 (debug_to_watchpoint_addr_within_range): New function.
3565 (setup_target_debug): Set to_watchpoint_addr_within_range.
3566 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
3567 New function.
3568 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
3569 * breakpoint.c (watchpoints_triggered): Use
3570 target_watchpoint_addr_within_range.
3571
3572 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3573
3574 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
3575 (i[34567]86-*-dicos*, x86_64-*-dicos*):
3576 Set gdb_osabi to GDB_OSABI_DICOS.
3577
3578 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
3579 * osabi.c (gdb_osabi_name): Add "DICOS".
3580
3581 * i386-dicos-tdep.c: New file.
3582
3583 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
3584 (ALLDEPFILES): Add i386-dicos-tdep.c.
3585 (i386-dicos-tdep.o): New rule.
3586
3587 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3588
3589 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
3590 and register the fork's PTID as a thread.
3591
3592 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3593
3594 PR gdb/1665
3595 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
3596 assign its value to the breakpoint created.
3597 (create_breakpoints): Add breakpoint_ops argument and pass it
3598 to create_breakpoint call.
3599 (break_command_really): Add breakpoint_ops argument and pass/assign
3600 appropriately.
3601 (break_command_1): Pass NULL as ops argument.
3602 (set_breakpoint): Pass NULL as ops argument.
3603 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
3604 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
3605 catch and throw catchpoints.
3606
3607 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3608
3609 PR gdb/2343
3610 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
3611 translate signal numeric value from the target to GDB's enum
3612 target_signal.
3613 * gdbarch.c, gdbarch.h: Regenerated.
3614 * gdbarch.sh: Added two new functions target_signal_from_host and
3615 target_signal_to_host.
3616 * target.h (default_target_signal_from_host,
3617 default_target_signal_to_host): New functions - declarations.
3618 * signals/signals.c (struct gdbarch): New declaration.
3619 (default_target_signal_to_host, default_target_signal_from_host): New
3620 functions.
3621
3622 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3623 Pedro Alves <pedro@codesourcery.com>
3624
3625 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
3626 Johnston <jjohnstn@redhat.com>.
3627
3628 * NEWS: Mention attach to stopped process fix.
3629 * infcmd.c (detach_command, disconnect_command): Discard the thread
3630 list.
3631 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
3632 attaching. Use signal_stop_state.
3633 (signal_stop_state): Check stop_soon.
3634 * linux-nat.c (kill_lwp): Declare earlier.
3635 (pid_is_stopped, linux_nat_post_attach_wait): New.
3636 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
3637 comments.
3638 (linux_nat_attach): Use linux_nat_post_attach_wait.
3639 (detach_callback, linux_nat_detach): Improve handling for signalled
3640 processes.
3641 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
3642 from the process ID.
3643 * Makefile.in (infcmd.o): Update.
3644
3645 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3646
3647 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
3648 * arm-tdep.c (arm_frame_is_thumb): New.
3649 (arm_pc_is_thumb): Clarify comment.
3650 (thumb_analyze_prologue): Remove PC special case.
3651 (thumb_scan_prologue): Take a block_addr argument. Use it for
3652 find_pc_partial_function. Remove unused variables.
3653 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
3654 for find_pc_partial_function. Remove PC special case.
3655 (arm_prologue_prev_register): Add special handling for PC and CPSR.
3656 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
3657 (arm_get_next_pc): Use arm_frame_is_thumb.
3658 (arm_write_pc): Use CPSR_T instead of 0x20.
3659 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
3660 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
3661 (CPSR_T): Define.
3662 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
3663 DWARF2_FRAME_REG_FN.
3664 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
3665 DWARF2_FRAME_REG_FN.
3666 (struct dwarf2_frame_state_reg): Add FN to loc union.
3667
3668 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
3669
3670 * exec.c (print_section_info): Add missing '\n'.
3671
3672 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
3673
3674 * thread.c (add_thread): Move observer call to ...
3675 (add_thread_silent): ... here.
3676
3677 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3678
3679 * rs6000-tdep.c: Update for unwinder changes.
3680 * ppcobsd-tdep.c: Likewise.
3681
3682 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3683
3684 * s390-tdep.c: Update for unwinder changes.
3685
3686 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3687
3688 * spu-tdep.c: Update for unwinder changes.
3689
3690 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3691
3692 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
3693 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
3694 sparc64-linux-tdep.c: Update for unwinder changes.
3695
3696 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3697
3698 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
3699 for unwinder changes.
3700 * mips-tdep.c: Likewise.
3701 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
3702 raw one.
3703
3704 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3705
3706 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
3707 unwinder changes.
3708
3709 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3710
3711 Update i386 and amd64 ports for unwinder changes.
3712
3713 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
3714 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
3715 (amd64_frame_unwind): Use default_frame_sniffer.
3716 (amd64_frame_sniffer): Delete.
3717 (amd64_sigtramp_frame_cache): Expect this_frame.
3718 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
3719 (amd64_sigtramp_frame_sniffer): Update signature.
3720 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
3721 (amd64_frame_base_address): Expect this_frame.
3722 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
3723 this_frame.
3724 (amd64_init_abi): Use set_gdbarch_dummy_id and
3725 frame_unwind_append_unwinder.
3726 * i386-tdep.c (i386_frame_cache): Expect this_frame.
3727 (i386_frame_this_id, i386_frame_prev_register): Update signature.
3728 (i386_frame_unwind): Use default_frame_sniffer.
3729 (i386_frame_sniffer): Delete.
3730 (i386_sigtramp_frame_cache): Expect this_frame.
3731 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
3732 (i386_sigtramp_frame_sniffer): Update signature.
3733 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
3734 (i386_frame_base_address): Update signature.
3735 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
3736 (i386_push_dummy_call): Update comment.
3737 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
3738 Expect this_frame.
3739 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
3740 and frame_unwind_append_unwinder.
3741 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
3742 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
3743 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
3744 i386nbsd-tdep.c: Update for unwinder changes.
3745
3746 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3747
3748 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
3749 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
3750 this_frame.
3751 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
3752 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
3753 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
3754 signature.
3755 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
3756 this_frame.
3757 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
3758 Update signature.
3759 * tramp-frame.h (struct tramp_frame): Update signature of init.
3760 * Makefile.in (trad-frame.o): Update.
3761
3762 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3763
3764 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
3765 (execute_stack_op): Put this_frame in the baton.
3766 (execute_cfa_program): Take this_frame.
3767 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3768 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3769 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3770 (dwarf2_frame_this_id): Adjust to work on this_frame.
3771 (dwarf2_signal_frame_this_id): Delete.
3772 (dwarf2_frame_prev_register): Update signature. Use new frame
3773 unwind methods.
3774 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3775 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3776 dwarf2_frame_sniffer.
3777 (dwarf2_append_unwinders): New.
3778 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3779 this_frame.
3780 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3781 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3782 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3783 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3784 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3785 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3786 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3787 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3788 (dwarf2_append_unwinders): Declare.
3789 (dwarf2_frame_base_sniffer): Update declaration.
3790 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3791 this_frame.
3792
3793 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3794
3795 Convert frame unwinders to use the current frame and
3796 "struct value".
3797
3798 * frame.c (frame_debug): Make global.
3799 (get_frame_id): Pass this frame to unwinder routines.
3800 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3801 (do_frame_register_read): Do not discard the return value of
3802 frame_register_read.
3803 (frame_register_unwind): Remove debug messages. Use
3804 frame_unwind_register_value.
3805 (frame_unwind_register_value, get_frame_register_value): New
3806 functions.
3807 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3808 (get_frame_args_address, get_frame_type): Pass this frame to
3809 unwinder routines.
3810 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3811 functions.
3812 * frame.h: Update comments.
3813 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3814 (frame_prepare_for_sniffer): Declare.
3815 * frame-unwind.h: Update comments and parameter names.
3816 (default_frame_sniffer): Declare.
3817 (frame_prev_register_ftype): Return a struct value *.
3818 (struct frame_unwind): Remove prev_pc member.
3819 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3820 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3821 (frame_unwind_got_register, frame_unwind_got_memory)
3822 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3823 * frame-base.h: Update comments and parameter names.
3824 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3825 if necessary. Add debugging output.
3826 * sentinel-frame.c (sentinel_frame_prev_register)
3827 (sentinel_frame_this_id): Update for new signature.
3828 (sentinel_frame_prev_pc): Delete.
3829 (sentinel_frame_unwinder): Remove prev_pc.
3830 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3831 prev_pc.
3832 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3833 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3834 (frame_unwind_append_sniffer): Delete.
3835 (frame_unwind_append_unwinder): New function.
3836 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3837 from unwinders. Use frame_prepare_for_sniffer.
3838 (default_frame_sniffer, frame_unwind_got_optimized)
3839 (frame_unwind_got_register, frame_unwind_got_memory)
3840 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3841 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3842 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3843 signature.
3844 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3845 * gdbarch.c, gdbarch.c: Regenerated.
3846 * frame-base.c (default_frame_base_address)
3847 (default_frame_locals_address, default_frame_args_address): Update
3848 for new signature.
3849 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3850 * infcall.c (call_function_by_hand): Update comments.
3851 * Makefile.in (frame-unwind.o): Update dependencies.
3852
3853 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3854
3855 * ada-lang.c (ada_value_primitive_packed_val): Only check
3856 value_lazy for memory lvals.
3857 * findvar.c (value_of_register_lazy): New function.
3858 (locate_var_value): Only check value_lazy for memory lvals.
3859 * valarith.c (value_subscripted_rvalue): Likewise.
3860 * valops.c (value_fetch_lazy): Handle both memory and register
3861 lvals.
3862 (search_struct_field, value_slice): Only check value_lazy for memory
3863 lvals.
3864 * value.c (struct value): Update comment for lazy.
3865 (value_primitive_field): Only check value_lazy for memory lvals.
3866 * value.h (value_lazy): Update comment.
3867 (value_of_register_lazy): Declare.
3868
3869 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3870
3871 * corefile.c (reopen_exec_file): Close any open files.
3872
3873 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3874
3875 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3876 show_memory_breakpoints to 1 while reading the instruction bundle.
3877
3878 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3879
3880 * gdbarch.sh: Document the return_value method. Explain that
3881 the FUNCTYPE parameter might be NULL.
3882 * gdbarch.h: Regenerated.
3883 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3884 type when calling using_struct_return, as this is unnecessary
3885 on this target.
3886
3887 2008-04-28 Joel Brobecker <brobecker@adacore.com>
3888
3889 * terminal.h (create_tty_session): Fix return type.
3890
3891 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3892
3893 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3894
3895 2008-04-26 Joel Brobecker <brobecker@adacore.com>
3896
3897 * breakpoint.c (condition_command, commands_from_control_command)
3898 (break_command_really): Minor reformatting.
3899
3900 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3901
3902 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3903
3904 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3905
3906 * amd64-tdep.c (amd64_get_longjmp_target): New.
3907 (amd64_init_abi): Register amd64_get_longjmp_target as
3908 gdbarch_get_longjmp_target callback.
3909 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3910
3911 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3912
3913 * breakpoint.h (enum bpstat_what_main_action): Delete
3914 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3915
3916 * breakpoint.c (clrs): Delete.
3917 (bpstat_what): Update table.
3918
3919 * infrun.c (handle_inferior_event): Remove
3920 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3921
3922 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3923
3924 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3925 Adjust all prototypes using mi_cmd_args_ftype to use
3926 mi_cmd_argv_ftype.
3927 (struct mi_cmd): Remove the args_func field.
3928 * mi/mi-cmds.c: Don't provide value for the args_func field.
3929 * mi/mi-main.c (mi_execute_async_cli_command)
3930 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3931 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3932 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
3933 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
3934 (mi_cmd_target_download): Adjust.
3935 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
3936 (mi_cmd_execute): Do not check for args_func.
3937 (mi_execute_async_cli_command): Adjust.
3938 * mi/mi-parse.c: Don't check for args_func.
3939
3940 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3941
3942 * breakpoint.c (bpstat_check_location)
3943 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
3944 New, extracted from bpstat_stop_status.
3945 (bpstat_stop_status): Use the above.
3946
3947 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3948
3949 * mi/mi-main.c (last_async_command): Rename to current_token.
3950 (previous_async_command): Remove.
3951 (mi_cmd_gdb_exit): Adjust.
3952 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
3953 (mi_cmd_target_select): Adjust.
3954 (mi_cmd_execute): Don't set previous_async_command. Free token
3955 here even in async mode.
3956 (mi_execute_async_cli_command): Adjust.
3957 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
3958 token.
3959 (mi_load_progress): Adjust.
3960
3961 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3962
3963 * infcmd.c (step_1_continuation): Always disable longjmp
3964 breakpoint if we're not going to do another step.
3965
3966 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3967
3968 exec_cleanup murder.
3969 * breakpoint.c (until_break_command_continuation): Add
3970 the 'error' parameter. Directly delete the breakoint as
3971 opposed to running cleanups.
3972 (until_break_command): Install continuation only
3973 after starting the target. Don't use exec cleanups,
3974 use ordinary cleanups. Discard cleanups is successfully
3975 started the target in async mode.
3976 (make_cleanup_delete_breakpoint): Remove.
3977 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
3978 declaration.
3979 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
3980 declarations.
3981 (struct continations): Add the 'error' parameter to the
3982 continuation_hook field.
3983 (add_continuation, do_all_continuations)
3984 (add_intermediate_continuation)
3985 (do_all_intermediate_continuations): Add the 'error' parameter.
3986 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
3987 * inf-loop.c (inferior_event_handler): Instead of calling
3988 discard_all_continuations, use do_all_continuations with 1 as
3989 'error' parameter. Pass 0 as 'error' parameter in existing uses
3990 of discard_all_continuations.
3991 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
3992 cleanups.
3993 (step_once): Install continuation only after resuming the target.
3994 (step_1_continuation): Disable longjmp breakpoint on error.
3995 (finish_command_continuation): Add the error parameter. Delete
3996 the finish breakpoint directly, do not use cleanups.
3997 (finish_command): Do not use exec_cleanups. Always setup
3998 continuation. For sync case, immediately run them.
3999 (attach_command_continuation): Add the error parameter.
4000 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
4001 remove step_resume_breakpoint -- adjust delete it directly.
4002 * interps.c (interp_set): Adjust call to do_all_continations.
4003 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
4004 do exec cleanups.
4005 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
4006 cleanups.
4007 (mi_cmd_execute): Do not use exec_cleanup.
4008 (mi_execute_async_cli_command): Simplify the string concatenation
4009 logic. Do no use exec cleanup.
4010 (mi_exec_async_cli_cmd_continuation): New parameter error.
4011 Free last_async_command.
4012 * top.c (command_line_handler_continuation): New parameter error.
4013 * utils.c (exec_cleanup_chain, make_exec_cleanup)
4014 (do_exec_cleanups): Remove.
4015 (add_continuation, do_all_continations)
4016 (add_intermediate_continuation)
4017 (do_all_intermediate_continuations): New parameter error.
4018
4019 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4020
4021 * breakpoint.h (bp_location_p): New typedef.
4022 Register a vector of bp_location_p.
4023 * breakpoint.c (always_inserted_mode)
4024 (show_always_inserted_mode): New.
4025 (unlink_locations_from_global_list): Remove.
4026 (update_global_location_list)
4027 (update_global_location_list_nothrow): New.
4028 (update_watchpoint): Don't free locations.
4029 (should_insert_location): New.
4030 (insert_bp_location): Use should_insert_location.
4031 (insert_breakpoint_locations): Copied from
4032 insert_breakpoints.
4033 (insert_breakpoint): Use insert_breakpoint_locations.
4034 (bpstat_stop_status): Call update_global_location_list
4035 when disabling breakpoint.
4036 (allocate_bp_location): Don't add to bp_location_chain.
4037 (set_raw_breakpoint)
4038 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
4039 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
4040 (enable_overlay_breakpoints, disable_overlay_breakpoints)
4041 (set_longjmp_resume_breakpoint)
4042 (enable_watchpoints_after_interactive_call_stop)
4043 (disable_watchpoints_before_interactive_call_start)
4044 (create_internal_breakpoint)
4045 (create_fork_vfork_event_catchpoint)
4046 (create_exec_event_catchpoint, set_momentary_breakpoint)
4047 (create_breakpoints, break_command_1, watch_command_1)
4048 (create_exception_catchpoint)
4049 (handle_gnu_v3_exceptions)
4050 (disable_breakpoint, breakpoint_re_set_one)
4051 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4052 (create_ada_exception_breakpoint): : Don't call check_duplicates.
4053 Call update_global_location_list.
4054 (delete_breakpoint): Don't remove locations and don't
4055 try to reinsert them. Call update_global_location_list.
4056 (update_breakpoint_locations): Likewise.
4057 (restore_always_inserted_mode): New.
4058 (update_breakpoints_after_exec): Temporary disable
4059 always inserted mode.
4060 * Makefile.in: Update dependencies.
4061
4062 * infrun.c (proceed): Remove breakpoints while stepping
4063 over breakpoint.
4064 (handle_inferior_event): Don't remove or insert
4065 breakpoints.
4066 * linux-fork.c (checkpoint_command): Remove breakpoints
4067 before fork and insert after.
4068 (linux_fork_context): Remove breakpoints before switch
4069 and insert after.
4070 * target.c (target_disconnect, target_detach): Remove
4071 breakpoints from target.
4072
4073
4074 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4075
4076 * breakpoint.c (print_one_breakpoint_location): In MI
4077 mode, report the location string the breakpoint was
4078 originally created with.
4079
4080 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
4081
4082 * Makefile.in (xtensa-tdep.o): Update dependencies.
4083 * configure.tgt (xtensa*): Update dependencies.
4084 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
4085 Local variable areg renamed to arreg.
4086 (areg_number): New function.
4087 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
4088 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
4089 replaced by arreg_number.
4090 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
4091 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4092 (xtensa_scan_prologue): New function.
4093 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4094 when ENTRY instraction hasn't been executed yet. Get the frame pointer
4095 value based on prologue analysis. Fix the bugs preventing WS and
4096 AR4-AR7/A11 registers from getting right values for intermediate frames,
4097 whose registers have been already spilled.
4098 (xtensa_frame_prev_register): Fix WS register value. Use are_number
4099 and arreg_number appropriately.
4100 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4101 svr4_ilp32_fetch_link_map_offsets.
4102
4103 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
4104
4105 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4106 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4107
4108 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4109
4110 * acinclude.m4: Add override.m4.
4111 * configure: Regenerate.
4112
4113 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4114
4115 * ada-lang.c (get_selections): Variable PROMPT made non-const and
4116 initialized with a trailing space now. Use PROMPT_ARG of
4117 COMMAND_LINE_INPUT instead of printing it ourselves.
4118
4119 2008-04-22 Joel Brobecker <brobecker@adacore.com>
4120
4121 * NEWS: Document support for 64-bit core file.
4122
4123 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
4124
4125 * NEWS: Add information on calling convention and new SH CLI options.
4126
4127 * sh-tdep.c (sh_cc_gcc): New static string.
4128 (sh_cc_renesas): Ditto.
4129 (sh_cc_enum): New static string array.
4130 (sh_active_calling_convention): New static string pointer denoting
4131 active user chosen ABI.
4132 (sh_is_renesas_calling_convention): New function to return function
4133 specific ABI, or user choice if necessary.
4134 (sh_use_struct_convention): Rename first argument and turn around its
4135 meaning. Check for renesas ABI and return accordingly.
4136 (sh_use_struct_convention_nofpu): New function.
4137 (sh_next_flt_argreg): Get function type as third parameter. Check
4138 for renesas ABI and choose floating registers accordingly.
4139 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4140 struct return slot accordingly.
4141 (sh_push_dummy_call_nofpu): Ditto.
4142 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4143 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4144 (sh_return_value_fpu): Evaluate ABI and give to
4145 sh_use_struct_convention.
4146 (show_sh_command): New function.
4147 (set_sh_command): Ditto.
4148 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4149 CLI command.
4150
4151 * gdbarch.sh (return_value): Add func_type argument.
4152 * gdbarch.c: Regenerate.
4153 * gdbarch.h: Ditto.
4154 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4155 val_type so as not to collide with value_type function. Call
4156 using_struct_return with additional function type argument.
4157 * infcall.c (call_function_by_hand): Call using_struct_return and
4158 gdbarch_return_value with additional function type argument.
4159 * infcmd.c (print_return_value): Take addition func_type argument.
4160 Call gdbarch_return_value with additional function type argument.
4161 (finish_command_continuation): Call print_return_value with additional
4162 function type argument.
4163 (finish_command): Ditto.
4164 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4165 additional function type argument.
4166 * stack.c (return_command): Call using_struct_return and
4167 gdbarch_return_value with additional function type argument.
4168 * value.c (using_struct_return): Take additional function type argument.
4169 * value.h (using_struct_return): Accommodate declaration.
4170 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4171 * amd64-tdep.c (amd64_return_value): Ditto.
4172 * arm-tdep.c (arm_return_value): Ditto.
4173 * avr-tdep.c (avr_return_value): Ditto.
4174 * cris-tdep.c (cris_return_value): Ditto.
4175 * frv-tdep.c (frv_return_value): Ditto.
4176 * h8300-tdep.c (h8300_return_value): Ditto.
4177 (h8300h_return_value): Ditto.
4178 * hppa-tdep.c (hppa32_return_value): Ditto.
4179 (hppa64_return_value): Ditto.
4180 * i386-tdep.c (i386_return_value): Ditto.
4181 * ia64-tdep.c (ia64_return_value): Ditto.
4182 * iq2000-tdep.c (iq2000_return_value): Ditto.
4183 * m32c-tdep.c (m32c_return_value): Ditto.
4184 * m32r-tdep.c (m32r_return_value): Ditto.
4185 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4186 * m68k-tdep.c (m68k_return_value): Ditto.
4187 (m68k_svr4_return_value): Ditto.
4188 * m88k-tdep.c (m88k_return_value): Ditto.
4189 * mep-tdep.c (mep_return_value): Ditto.
4190 * mips-tdep.c (mips_eabi_return_value): Ditto.
4191 (mips_n32n64_return_value): Ditto.
4192 (mips_o32_return_value): Ditto.
4193 (mips_o64_return_value): Ditto.
4194 * mn10300-tdep.c (mn10300_return_value): Ditto.
4195 * mt-tdep.c (mt_return_value): Ditto.
4196 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4197 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4198 (ppc_sysv_abi_broken_return_value): Ditto.
4199 (ppc64_sysv_abi_return_value): Ditto.
4200 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4201 (ppc_sysv_abi_broken_return_value): Ditto.
4202 (ppc64_sysv_abi_return_value): Ditto.
4203 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4204 * rs6000-tdep.c (rs6000_return_value): Ditto.
4205 * s390-tdep.c (s390_return_value): Ditto.
4206 * score-tdep.c (score_return_value): Ditto.
4207 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4208 (sh_return_value_fpu): Ditto.
4209 * sh64-tdep.c (sh64_return_value): Ditto.
4210 * sparc-tdep.c (sparc32_return_value): Ditto.
4211 * sparc64-tdep.c (sparc64_return_value): Ditto.
4212 * spu-tdep.c (spu_return_value): Ditto.
4213 * v850-tdep.c (v850_return_value): Ditto.
4214 * vax-tdep.c (vax_return_value): Ditto.
4215 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4216 * xtensa-tdep.c (xtensa_return_value): Ditto.
4217
4218 * gdbtypes.h (struct type): Add calling_convention member.
4219 * dwarf2read.c (read_subroutine_type): Add calling convention read
4220 from DW_AT_calling_convention attribute to function type.
4221
4222 2008-04-22 Markus Deuling <deuling@de.ibm.com>
4223
4224 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4225 multi_f77_subscript to support values from registers.
4226 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4227 * value.h (value_subscripted_rvalue): Add prototype.
4228
4229 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4230 Fix output.
4231 * f-valprint.c (f_val_print): Likewise.
4232
4233 2008-04-21 Craig Silverstein <csilvers@google.com>
4234
4235 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4236 !HAVE_ZLIB_H case.
4237
4238 2008-04-21 Pedro Alves <pedro@codesourcery.com>
4239
4240 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4241 section is not a code section.
4242
4243 2008-04-19 Craig Silverstein <csilvers@google.com>
4244
4245 * NEWS: Add information on compressed debug sections.
4246
4247 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4248
4249 * mi/mi-cmd-var.c (varobj_update_one): Print new
4250 value for variable objects that changed type.
4251
4252 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4253
4254 * varobj.c (varobj_invalidate): Don't touch floating
4255 varobjs.
4256
4257 2008-04-19 Mark Kettenis <kettenis@gnu.org>
4258
4259 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4260 (multiple_symbols_cancel): Remove extra const.
4261 * symtab.h: Likewise.
4262
4263 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
4264
4265 * interps.c (top_level_interpreter): Rename static variable...
4266 (top_level_interpreter_ptr): ...to this.
4267 (top_level_interpreter): New function.
4268
4269 * interps.h: New extern for top_level_interpreter.
4270
4271 * linespec.c: Include interps.h and mi/mi-cmds.h.
4272 (decode_line_2): When using MI, always set all breakpoints in menu.
4273
4274 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4275
4276 2008-04-18 Craig Silverstein <csilvers@google.com>
4277
4278 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4279 * config.in, configure: Regenerate.
4280 * dwarf2read.c: Include zlib.h if present.
4281 Modified *_SECTION macros.
4282 (section_is_p): New.
4283 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4284 (dwarf2_resize_section): New.
4285 to determine whether a given section has a given name.
4286 (zlib_decompress_section): New.
4287 (dwarf2_read_section): Read the compressed section if present
4288 in the binary.
4289 * MAINTAINERS: Added myself to section Write After Approval.
4290
4291 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4292
4293 * defs.h (exec_set_section_offsets): Remove prototype.
4294 * exec.c (exec_set_section_offsets): Remove function.
4295
4296 2008-04-18 Joel Brobecker <brobecker@adacore.com>
4297
4298 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4299 in the search for the matching symbol.
4300
4301 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4302
4303 * breakpoint.c (update_watchpoint): Always reparse
4304 condition.
4305
4306 2008-04-17 Joel Brobecker <brobecker@adacore.com>
4307
4308 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4309 the breakpoint address only once.
4310
4311 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4312
4313 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4314 rather than a hard-coded architecture, for xcoff executables.
4315
4316 2008-04-17 Doug Evans <dje@google.com>
4317
4318 * buildsym.c (watch_main_source_file_lossage): New fn.
4319 (end_symtab): Call it.
4320
4321 * source.c (find_and_open_source): Add some comments clarifying
4322 handling of FULLNAME argument. Make static. Remove pointless
4323 xstrdup/xfree.
4324
4325 2008-04-17 Pedro Alves <pedro@codesourcery.com>
4326
4327 * inf-loop.c (inferior_event_handler): Also run the intermediate
4328 continuations in the INF_EXEC_COMPLETE case.
4329
4330 2008-04-16 Tom Tromey <tromey@redhat.com>
4331
4332 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4333 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4334 * cli/cli-decode.c (set_cmd_async_ok): New function.
4335 (get_cmd_async_ok): New function.
4336 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4337 "show" as async-ok.
4338 * top.c (execute_command): Use get_cmd_async_ok.
4339 * infcmd.c: Include cli/cli-decode.h.
4340 (_initialize_infcmd): Mark "interrupt" as async-ok.
4341 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4342
4343 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4344
4345 PR gdb/2445
4346 * exec.c: Correct "arch-utils.h" include.
4347
4348 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
4349
4350 PR gdb/2424
4351 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4352 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4353 * breakpoint.c (bpdisp_texst): New function. The function takes over
4354 the role of bpstats static array in print_one_breakpoint_location.
4355 (print_it_typical): Print "Temporary breakpoint" instead
4356 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4357 protocols, print disp field.
4358 (print_one_breakpoint_location): Removed bpdisps static definition.
4359 Call new bpstat_text function to get value for 'disp' field.
4360 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4361
4362 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4363
4364 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4365 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4366 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4367 * gnulib/Makefile.in: Regenerate.
4368
4369 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4370
4371 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4372 (defs_h): Use $(GNULIB_H).
4373 (all-lib): Depend on gnulib/Makefile.
4374 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4375 * config.in, gnulib/Makefile.in: Regenerated.
4376
4377 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4378
4379 * Makefile.in (LIBGNU, INCGNU): Define.
4380 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4381 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4382 (CLEANDIRS): New.
4383 ($(LIBGNU), all-lib): New rules.
4384 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4385 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4386 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4387 * gnulib: New directory, from gnulib-tool.
4388 * configure, aclocal.m4: Regenerated.
4389
4390 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4391
4392 * linux-thread-db.c (have_threads_callback): Check thread->private.
4393
4394 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
4395 Vladimir Prus <vladimir@codesourcery.com>
4396
4397 Fix @-varobjs.
4398 * varobj.c (value_of_root): Update the expression for
4399 floating varobjs.
4400 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4401 report that.
4402
4403 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4404
4405 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4406 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4407 (mi_cmd_var_set_format): Use new mi_parse_format.
4408 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4409 format.
4410 * Makefile.in (mi-cmd-var.o): Update dependencies.
4411
4412 * varobj.h (varobj_get_formatted_value): Declare.
4413 * varobj.c (my_value_of_variable): Added format parameter.
4414 (cplus_value_of_variable): Likewise.
4415 (java_value_of_variable): Likewise.
4416 (c_value_of_variable): Likewise. Evaluate expression based
4417 on format parameter.
4418 (struct language_specific): Add format parameter to function member
4419 *value_of_variable.
4420 (varobj_get_formatted_value): New.
4421 (varobj_get_value): Added format parameter to method call.
4422
4423 2008-04-08 Joel Brobecker <brobecker@adacore.com>
4424
4425 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4426 instance flags of the undefined type before calling replace_type.
4427
4428 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4429
4430 * target.h (enum strata): Remove the download_stratum.
4431
4432 2008-04-07 Doug Evans <dje@google.com>
4433
4434 * buildsym.h (last_source_file): Add dwarf info to comment.
4435 (last_source_start_addr): Ditto.
4436
4437 2008-04-07 Pedro Alves <pedro@codesourcery.com>
4438
4439 * alphanbsd-tdep.c: Include "target.h".
4440 * mn10300-tdep.c: Include "target.h".
4441 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4442
4443 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4444
4445 Fix breakpoint condition that use member variables.
4446 * valops.c (check_field): Remove.
4447 (check_field_in): Rename to check_field.
4448 (value_of_this): Use la_name_of_this.
4449 * value.h (check_field): Adjust prototype.
4450
4451 * language.h (la_value_of_this): Rename to la_name_of_this.
4452 * language.c (unknown_language_defn): Specify "this" for
4453 name_of_this.
4454 (auto_language_defn): Likewise.
4455 (local_language_defn): Likewise.
4456 * ada-lang.c (ada_language_defn): Adjust comment.
4457 * c-lang.c (c_language_defn): Adjust comment.
4458 (cplus_language_defn): Specify "this" for name_of_this.
4459 (asm_language_defn): Adjust comment.
4460 (minimal_language_defn): Adjust comment.
4461 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4462 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4463 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4464 * objc-lang.c (objc_language_defn): Specify "self" for
4465 name_of_this.
4466 * p-lang.c (pascal_language_defn): Specify "this" for
4467 name_of_this.
4468 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4469
4470 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4471 proper scope, and check for field in type of "this", without
4472 trying to create a value.
4473
4474 2008-04-04 Pedro Alves <pedro@codesourcery.com>
4475
4476 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4477 (mi_error_message): Delete declaration.
4478 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4479 returning MI_CMD_ERROR.
4480 * mi/mi-main.c (mi_error_message): Delete.
4481 (mi_cmd_exec_interrupt):
4482 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4483 (mi_cmd_thread_info): Call error instead of returning
4484 MI_CMD_ERROR.
4485 (mi_cmd_data_list_register_values): Call error instead of
4486 returning MI_CMD_ERROR. Adapt to new get_register interface.
4487 (get_register): Change return typo to void. Call error instead of
4488 returning MI_CMD_ERROR.
4489 (mi_cmd_data_write_register_values): Call error instead of
4490 returning MI_CMD_ERROR.
4491 (mi_cmd_list_features): Return MI_CMD_DONE.
4492 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
4493 (mi_execute_command): Always print exceptions with -error.
4494
4495 2008-04-04 Joel Brobecker <brobecker@adacore.com>
4496
4497 * NEWS: Mention new commands set/show multiple-symbols.
4498
4499 2008-04-03 Joel Brobecker <brobecker@adacore.com>
4500
4501 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
4502 (multiple_symbols_cancel): New constants.
4503 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
4504 (multiple_symbols_select_mode): New function.
4505 (_initialize_symtab): Add new set/show multiple-symbols commands.
4506 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
4507 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
4508 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
4509 setting.
4510 * linespec.c (decode_line_2): Likewise.
4511
4512 2008-04-03 Doug Evans <dje@sebabeach.org>
4513
4514 * symtab.h (enum free_code): Delete free_contents, unused.
4515 * symmisc.c (free_symtab_block): Delete.
4516 (free_symtab, case free_code): Delete.
4517
4518 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4519
4520 * valops.c (value_cast_structs): New function. Cast related
4521 STRUCT types up/down and return cast value. The body of this
4522 function comes mostly from value_cast_pointers.
4523 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
4524 to value_cast_structs. Now value_cast_pointers needs only create
4525 appropriate reference after using value_cast_structs for actual
4526 casting.
4527 (value_cast): Handle references.
4528
4529 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
4530
4531 * MAINTAINERS: Added myself to section Write After Approval.
4532
4533 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4534
4535 * ia64-tdep.c (examine_prologue): Correct array access.
4536
4537 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4538
4539 * cp-support.c (first_component_command): Return if no arguments.
4540
4541 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
4542
4543 * ser-mingw.c (ser_windows_open): Open requested name.
4544
4545 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4546
4547 * MAINTAINERS: Added myself.
4548
4549 2008-03-28 Pedro Alves <pedro@codesourcery.com>
4550
4551 * target.c (find_default_run_target): Allow a NULL `do_mesg'
4552 parameter. If it is NULL, don't call error.
4553 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
4554 `do_mesg' parameter to find_default_run_target. If no target was
4555 found, return 0.
4556
4557 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4558
4559 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
4560 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
4561 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
4562 Delete.
4563 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
4564
4565 2008-03-27 Joel Brobecker <brobecker@adacore.com>
4566
4567 GDB 6.8 released.
4568
4569 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4570
4571 * features/Makefile (%.dat): Set xmltarget to the base filename
4572 of the XML source, without subdirectory.
4573 * regformats/rs6000/powerpc-32.dat: Regenerate.
4574 * regformats/rs6000/powerpc-64.dat: Regenerate.
4575 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4576
4577 2008-03-27 Markus Deuling <deuling@de.ibm.com>
4578
4579 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4580 objfile arch.
4581
4582 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
4583
4584 * mi/mi-main.c (enum captured_mi_execute_command_actions):
4585 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
4586
4587 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4588
4589 * objfiles.h (struct objfile): New GDBARCH member.
4590 (get_objfile_arch): Add prototype.
4591 * objfiles.c: Include "arch-utils.h".
4592 (allocate_objfile): Look up gdbarch associated with bfd.
4593 (get_objfile_arch): New function.
4594 * Makefile (objfiles.o): Update dependencies.
4595
4596 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
4597 by objfile arch.
4598 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
4599 by frame arch.
4600 (locexpr_describe_location): Replace current_gdbarch by
4601 objfile arch.
4602 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
4603 (dwarf2_add_field): Likewise.
4604 (read_tag_pointer_type): Likewise.
4605 (read_base_type): Likewise.
4606 (new_symbol): Likewise.
4607
4608 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
4609 (decode_base_type, decode_function_type): Likewise.
4610 (coff_read_struct_type, coff_read_enum_type): Likewise.
4611 (coff_symtab_read): Replace current_gdbarch by objfile arch.
4612 (decode_base_type): Likewise.
4613 (coff_read_enum_type): Likewise.
4614 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
4615 (coff_read_enum_type): Likewise.
4616
4617 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
4618 (end_psymtab): Likewise.
4619 (process_one_symbol): Likewise.
4620
4621 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
4622 (parse_procedure): Likewise.
4623 (parse_partial_symbols): Likewise.
4624
4625 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
4626
4627 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
4628 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
4629 built-in types.
4630 (read_range_type): Replace current_gdbarch by objfile arch. Replace
4631 static range_index_type by built-in type.
4632 (read_one_struct_field): Replace current_gdbarch by objfile arch.
4633 (read_enum_type): Likewise.
4634
4635 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
4636 objfile arch.
4637
4638 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4639
4640 * varobj.h (varobj_floating_p): Declare.
4641 * varobj.c (varobj_floating_p): New.
4642 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
4643 '@' as the name, update all floating varobjs.
4644
4645 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4646
4647 * varobj.c (struct varobj_root): Rename use_selected_frame to
4648 floating, and clarify the meaning.
4649 (varobj_create, varobj_update, new_root_variable): Adjust.
4650 (value_of_root): Don't use type_changed as in variable,
4651 adjust comment.
4652 (c_value_of_root): Adjust.
4653
4654 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4655
4656 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
4657 gdb's thread list.
4658 (linux_nat_wait): Add main lwp to gdb's thread list.
4659 * linux-thread-db.c (find_new_threads_callback): Also attach to
4660 already listed threads which thread_db didn't know about yet.
4661
4662 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4663
4664 * linux-nat.c (drain_queued_events): Fix comment typo.
4665 (linux_nat_attach): In async mode, don't rely on storing a pending
4666 status. Instead place the wait status on the pipe.
4667 (linux_nat_resume): Remove unreacheable shortcut code in async
4668 mode.
4669 (stop_wait_callback): In async mode, don't store pending status.
4670 Instead, cancel breakpoints or resend the signal appropriatelly.
4671 (cancel_breakpoint): New, refactored from
4672 cancel_breakpoints_callback.
4673 (cancel_breakpoints_callback): Call cancel_breakpoint.
4674 (pipe_to_local_event_queue): Remove special token processing.
4675 (linux_nat_wait): Issue an internal error if a pending status is
4676 found in async mode.
4677
4678 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4679
4680 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
4681
4682 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
4683 Vladimir Prus <vladimir@codesourcery.com>
4684
4685 * varobj.c (struct varobj_root): New component thread_id.
4686 (varobj_get_thread_id, check_scope): New functions.
4687 (c_value_of_root): Use check_scope. Switch to the
4688 proper thread if necessary.
4689
4690 * varobj.h (varobj_get_thread_id): New extern.
4691
4692 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
4693
4694 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
4695
4696 PR gdb/544
4697 * top.c: Revert 2008-03-21 changes.
4698
4699 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4700
4701 * thread.c (make_cleanup_restore_current_thread): Make it
4702 globally visible.
4703 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4704 * varobj.c (varobj_update): Don't save/restore frame.
4705 (c_value_of_root): Save/restore thread and frame here,
4706 using make_cleanup_restore_current_thread.
4707 * Makefile.in: Update dependecies.
4708
4709 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4710
4711 * varobj.c (struct varobj_root): Clarify
4712 comment on the frame field.
4713 (varobj_create): Don't set frame if we have no
4714 block.
4715
4716 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4717
4718 PR gdb/544
4719 Suggested by Jan Kratochvil:
4720 * top.c (gdb_rl_operate_and_get_next_completion): Call
4721 rl_redisplay_function.
4722 (gdb_rl_redisplay): New.
4723 (init_main): Set rl_redisplay_function.
4724
4725 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
4726
4727 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4728 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
4729 (store_regs_kernel_thread): Likewise.
4730
4731 2008-03-21 Pedro Alves <pedro@codesourcery.com>
4732
4733 Linux native async support.
4734
4735 * target.h (struct target_ops): Delete to_async_mask_value and add
4736 to_async_mask.
4737 (target_is_async_p, target_async): Formatting.
4738 (target_async_mask_value): Delete.
4739 (target_async_mask): Delete function declaration, and add new
4740 target macro with the same name.
4741
4742 * target.c (update_current_target): Replace to_async_mask_value by
4743 to_async_mask. Default to_async_mask to return_one.
4744 (target_async_mask): Delete.
4745 (find_default_can_async_p, find_default_is_async_p): New.
4746 (init_dummy_target): register find_default_can_async_p and
4747 find_default_is_async_p on the dummy target.
4748
4749 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
4750 (debug_linux_nat_async): New global.
4751 (show_debug_linux_nat_async): New function.
4752 (linux_nat_async_enabled, linux_nat_async_mask_value)
4753 (linux_nat_event_pipe, linux_nat_num_queued_events)
4754 (linux_nat_async_events_enabled): New globals.
4755 (struct waitpid_result): New struct.
4756 (waitpid_queue): New global.
4757 (queued_waitpid, push_waitpid, drain_queued_events): New.
4758 (my_waitpid): Call queued_waitpid.
4759 (linux_child_follow_fork): Disable async events during the call.
4760 (blocked_mask): Delete.
4761 (sync_sigchld_action, async_sigchld_action): New globals.
4762 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
4763 async mode, block events during the call.
4764 (linux_nat_create_inferior): New.
4765 (linux_nat_attach): In sync mode, restore the mask states. In
4766 async mode, wake the event loop immediatelly.
4767 (detach_callback): Drain all queued events of the lwp we're
4768 detaching from.
4769 (linux_nat_detach): Block async mode, and drain events of the main
4770 process.
4771 (linux_nat_resume): If in async mode, mask async events during the
4772 call. If short circuiting, force event loop to wake up. If
4773 resuming, set target_executing, and register target events in the
4774 event loop.
4775 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4776 (linux_nat_wait): In async mode, block events during the call.
4777 Only enable/disable passing SIGINT to the inferior in sync mode.
4778 Get events from local waitpid queue. If no interesting events was
4779 found, return to events loop. Reregister target events in the
4780 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4781 (linux_nat_kill): Disable events on entry.
4782 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4783 here. Detach async mode from the event loop if there are no more
4784 forks available, otherwise leave it on.
4785 (sigchld_handler): Assure this is called only in sync mode.
4786 (linux_async_permitted, linux_async_permitted_1): New globals.
4787 (set_maintenance_linux_async_permitted)
4788 (show_maintenance_linux_async_permitted): New functions.
4789 (linux_nat_is_async_p, linux_nat_can_async_p)
4790 (linux_nat_async_mask): New.
4791 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4792 (get_pending_events, async_sigchld_handler): New.
4793 (linux_nat_async_events): New.
4794 (async_terminal_is_ours): New global.
4795 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4796 (async_client_callback, async_client_context): New.
4797 (linux_nat_async_file_handler, linux_nat_async)
4798 (linux_nat_disable_async, linux_nat_enable_async): New.
4799 (linux_nat_add_target): Register linux_nat_create_inferior,
4800 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4801 linux_nat_async_mask, linux_nat_terminal_inferior and
4802 linux_nat_terminal_ours.
4803 (_initialize_linux_nat): Remove local action variable, and update
4804 code that used it to use sync_sigchld_action. Add new
4805 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4806 set/show command in the maintenance class. Add new "linux-async"
4807 maintenance set/show command. Block SIGCHLD by default. Setup
4808 async_sichld_action, and sync_sigchld_action. Install the default
4809 async mode.
4810 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4811 the cancel signals.
4812
4813 * linux-thread-db.c (re_check_for_thread_db): New.
4814 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4815 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4816 (thread_db_async_mask): New.
4817 (init_thread_db_ops): Register thread_db_can_async_p,
4818 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4819
4820 * remote.c (remote_async_mask_value): New.
4821 (remote_return_zero): New.
4822 (init_remote_ops): Register remote_return_zero as callbacks of
4823 to_can_async_p and to_is_async_p.
4824 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4825 use remote_async_mask_value.
4826 (remote_async_mask): New.
4827 (init_remote_async_ops): Remove to_async_mask_value setting and
4828 register remote_async_mask as to_async_mask callback in
4829 remote_async_ops.
4830
4831 * Makefile.in (linux-nat.o): Update.
4832
4833 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4834
4835 * gdbthread.h (add_thread_with_info): New.
4836 * linux-thread-db.c: Add some documentation.
4837 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4838 (struct private_thread_info): Remove th_valid and ti_valid.
4839 Replace ti with tid.
4840 (thread_get_info_callback): Do not add TID to the new ptid. Do
4841 not cache th or ti.
4842 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4843 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4844 new PTID.
4845 (attach_thread): Handle an already-existing thread. Use
4846 add_thread_with_info. Cache the th and tid.
4847 (detach_thread): Verify that private was set. Remove verbose
4848 argument and printing. Update caller.
4849 (thread_db_detach): Do not adjust inferior_ptid.
4850 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4851 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4852 (thread_db_wait): Do not use lwp_from_thread.
4853 (thread_db_pid_to_str): Use the cached TID.
4854 (thread_db_extra_thread_info): Check that private is set.
4855 (same_ptid_callback): Delete.
4856 (thread_db_get_thread_local_address): Do not use it or check
4857 is_thread. Check that private is set. Assume that the thread
4858 handle is already cached.
4859 (init_thread_db_ops): Remove to_resume and to_kill.
4860 * thread.c (add_thread_with_info): New.
4861 (add_thread): Use it.
4862 * linux-nat.c (find_thread_from_lwp): Delete.
4863 (exit_lwp): Do not use it. Check print_thread_events. Print before
4864 deleting the thread.
4865 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4866 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4867 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4868 printf_unfiltered for thread exits.
4869 * procfs.c (procfs_wait): Likewise.
4870
4871 2008-03-21 Chris Demetriou <cgd@google.com>
4872
4873 * symtab.c (rbreak_command): Quote symbol name before passing
4874 it to break_command.
4875
4876 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4877
4878 * eval.c (evaluate_subexp_for_address): Clarify error message.
4879 Use value_must_coerce_to_target.
4880 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4881 * valops.c (value_assign): Call value_coerce_to_target when
4882 assigning to anything but internalvars. Leave GDB-side arrays
4883 as arrays when assigning to internalvars.
4884 (value_must_coerce_to_target, value_coerce_to_target): New.
4885 (value_coerce_array, value_addr): Call value_coerce_to_target.
4886 (value_array): Create the array in GDB's memory instead of
4887 the inferior's.
4888 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4889 Declare.
4890
4891 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4892
4893 * top.c (quit_confirm): Warn that we will kill the program.
4894
4895 2008-03-19 Pedro Alves <pedro@codesourcery.com>
4896
4897 * inflow.c (terminal_ours_1): Guard access to
4898 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4899
4900 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4901 Jim Blandy <jimb@codesourcery.com>
4902 Daniel Jacobowitz <drow@false.org>
4903
4904 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4905 (dwarf2_read_address): Update prototype.
4906
4907 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4908 (signed_address_type): Likewise.
4909 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4910 (execute_stack_op): Update calls to unsigned_address_type,
4911 signed_address_type and dwarf2_read_address. Fix implementation
4912 of DW_OP_deref_size.
4913
4914 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4915 (dwarf2_per_cu_addr_size): Likewise.
4916 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4917 (struct dwarf2_loclist_baton): Likewise.
4918
4919 * dwarf2loc.c (find_location_expression): Update calls to
4920 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4921 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4922 (locexpr_describe_location): Likewise.
4923 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4924 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4925 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4926 to dwarf2_per_cu_addr_size (per_cu).
4927 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
4928 (loclist_read_variable): Likewise.
4929 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
4930
4931 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
4932 instead of baton->objfile.
4933 (dwarf2_per_cu_obfile): New function.
4934 (dwarf2_per_cu_addr_size): Likewise.
4935
4936 * dwarf2-frame.c (struct comp_unit): Move higher.
4937 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
4938 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
4939 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
4940 parameter by using fde->eh_frame_p. Use read_encoded_value
4941 to implement DW_CFA_set_loc.
4942 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
4943 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
4944 execute_stack_op and execute_cfa_program.
4945 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
4946 (size_of_encoded_value): Remove.
4947 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
4948 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
4949 (add_cie): Set cie->unit backlink.
4950 (decode_frame_entry_1): Set cie->addr_size. Update calls to
4951 read_encoded_value.
4952 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
4953
4954 2008-03-17 Markus Deuling <deuling@de.ibm.com>
4955
4956 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
4957 gdbarch_bfd_arch_info.
4958
4959 2008-03-17 Joel Brobecker <brobecker@adacore.com>
4960
4961 * aix-thread.c (pdc_read_regs): Minor reformatting.
4962
4963 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
4964
4965 * thread.c (print_thread_info): Don't insist
4966 on having current thread if there are no
4967 threads at all.
4968
4969 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4970
4971 * infcmd.c (attach_command_post_wait)
4972 (attach_command_continuation): New.
4973 (attach_command): Support background async execution, and async
4974 execution in synchronous mode.
4975
4976 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4977
4978 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
4979 * symmisc.c (dump_symtab_1): Likewise.
4980 * wrapper.c (gdb_value_struct_elt): Likewise.
4981
4982 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4983
4984 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
4985
4986 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4987
4988 * linux-nat.c (linux_nat_filter_event): New, refactored from
4989 linux_nat_wait.
4990 (linux_nat_wait): Call linux_nat_filter_event.
4991
4992 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
4993
4994 * top.c (execute_command): Fix uninitialized variable error.
4995
4996 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
4997
4998 * Makefile.in (amd64nbsd-nat.o): New dependency.
4999 * amd64nbsd-nat.c: Include "nbsd-nat.h".
5000 (_initialize_amd64nbsd_nat): Update target vector to use
5001 nbsd_pid_to_exec_file.
5002 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
5003
5004 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
5005
5006 Remove ignoring leading exec events code.
5007 * fork-child.c (startup_inferior): Do not set
5008 inferior_ignoring_leading_exec_events.
5009 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
5010 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
5011 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
5012 (handle_inferior_event): Remove code for ignoring leading exec
5013 events.
5014 * target.c (update_current_target): Do not inherit, or default,
5015 to_reported_exec_events_per_exec_call.
5016 (debug_to_reported_exec_events_per_exec_call): Remove.
5017 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
5018 * target.h (target_reported_exec_events_per_exec_call): Remove.
5019 (struct target): Remove the to_reported_exec_events_per_exec_call
5020 field.
5021
5022 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
5023
5024 Implement -thread-info.
5025 * gdbthread.h (print_thread_info): Declare.
5026
5027 * thread.c (print_thread_info): New, extracted
5028 from info_threads_command and adjusted to
5029 work for CLI and MI.
5030 (info_threads_command): Use print_thread_info.
5031 * Makefile.in: Update dependencies.
5032
5033 * mi/mi-cmds.c (mi_cmds): Specify a handler
5034 for -thread-info.
5035 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
5036 * mi/mi-main.c (mi_cmd_thread_info): New.
5037 (mi_cmd_list_features): Include 'thread-info'.
5038
5039 2008-03-14 Kevin Buettner <kevinb@redhat.com>
5040
5041 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
5042 to decide whether to match instruction patterns using "sw" and "sd".
5043
5044 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5045
5046 * infcmd.c (jump_command): Postpone disabling stdin until after
5047 the possible query.
5048
5049 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5050
5051 * inflow.c (gdb_getpgrp): New.
5052 (gdb_has_a_terminal): Use get_getpgrp.
5053 (terminal_ours_1): If attach_flag is set, don't refetch
5054 inferior_process_group.
5055
5056 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5057
5058 * features/library-list.dtd: Allow "section" elements as children
5059 of "library". Add "section" element and describe its attributes.
5060
5061 * solib-target.c (struct lm_info): Add section_bases member.
5062 (library_list_start_segment): Error out if seen a section element.
5063 (library_list_start_section): New.
5064 (library_list_end_library): New.
5065 (solib_target_free_library_list): Free section_bases.
5066 (section_attributes): New.
5067 (library_children): Make "segment" optional. Add "section" child.
5068 (library_list_children): Register library_list_end_library.
5069 (solib_target_relocate_section_addresses): Handle section bases.
5070
5071 * NEWS: Mention new qXfer:libraries:read section offsets support.
5072
5073 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5074
5075 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
5076 (make_exec_error_cleanup): Remove declarations.
5077 * utils.c (exec_error_cleanup_chain): Remove.
5078 (do_exec_error_cleanups, discard_exec_error_cleanups)
5079 (make_exec_error_cleanup): Remove.
5080 * event-loop.c (start_event_loop): Adjust call to
5081 async_enable_stdin.
5082 * event-top.c (async_enable_stdin): Remove the paramater dummy.
5083 (async_disable_stdin): Don't register async_enable_stdin via
5084 cleanup.
5085 * inf-loop.c (inferior_event_handler): Don't
5086 call do_exec_error_cleanups. Call async_enable_stdin instead.
5087 * event-loop.c (start_event_loop): Adjust call to
5088 async_enable_stdin.
5089 * tui/tui-interp.c (tui_command_loop): Adjust call to
5090 async_enable_stdin.
5091
5092 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5093
5094 Async mode fixes.
5095 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5096 * breakpoint.c (bpstat_do_actions): In async mode,
5097 don't jump to top expecting stop_bpstat to be already
5098 updated.
5099 * event-loop.c (start_event_loop): Call async_enable_stdin
5100 on exception.
5101 * event-top.c (async_enable_stdin): Do nothing if sync_execution
5102 is not set.
5103 (command_handler): Do not setup continuation here.
5104 (command_line_handler_continuation): Move to...
5105 * top.c (command_line_handler_continuation): ... here.
5106 (execute_command): In async mode, register continuation.
5107 Don't check frame's language in running in async mode.
5108 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5109 * inf-loop.c (complete_execution): Inline into...
5110 (inferior_event_handler): ... here. Clear target_executing before
5111 doing any cleanups. Don't try to show prompt if the target was
5112 resumed.
5113 * infcmd.c (signal_command): Add support for async mode.
5114 (finish_command): Only add continuation if the target was
5115 successfully resumed.
5116 * remote.c (init_async_opts): Register to_get_thread_local_address
5117 handler.
5118 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5119 with sync_execution.
5120 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5121 on exception.
5122
5123 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5124
5125 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5126 * exec.c (exec_bfd_mtime): Define.
5127 (exec_close): Clear it.
5128 (exec_file_attach): Set it.
5129 * gdbcore.h (exec_bfd_mtime): Declare.
5130 * source.c (find_source_lines): Do not use bfd_get_mtime.
5131
5132 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5133
5134 * top.c (simplified_command_loop): Remove.
5135
5136 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5137
5138 Remove unused remote.c hooks.
5139 * remote.c (deprecated_target_resume_hook)
5140 (deprecated_target_wait_loop_hook): Remove.
5141 (remote_resume): Do not call deprecated_target_resume_hook.
5142 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5143 (remote_async_wait): Likewise.
5144
5145 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5146
5147 Implement MI notification for new threads.
5148 * doc/observer.texi (new_thread): Document.
5149 * observer.sh: Forward declare struct thread_info.
5150 * thread.c (add_thread): Notify observer.
5151
5152 * interps.h (interp_init_ftype): New parameter
5153 top_level.
5154 (interp_set): Likewise.
5155 (top_level_interpreter_data): Declare.
5156 * interps.c (interp_set): New parameter top_level.
5157 Pass it to interpreter's init function. Remember
5158 top level interpreter.
5159 (interpreter_exec_cmd): Adjust.
5160 (top_level_interpreter_data): New.
5161 * main.c (captured_main): Pass 1 for top_level
5162 parameter of interp_set.
5163 * cli/cli-interp.c (cli_interpreter_init): New
5164 parameter top_level.
5165 * tui/tui-interp.c (tui_init): New parameter top_level.
5166
5167 * mi/mi-interp.c (mi_new_thread): New.
5168 (mi_interpreter_init): If top level, register
5169 observer for new threads.
5170
5171 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
5172
5173 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5174
5175 * top.c (execute_command): Disable break and stop
5176 commands in async mode.
5177
5178 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5179
5180 revert:
5181 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5182 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5183 Call target_stop in the INF_QUIT_REQ case.
5184 * Makefile.in (inf-loop.o): Update.
5185
5186 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5187
5188 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5189 Call target_stop in the INF_QUIT_REQ case.
5190 * Makefile.in (inf-loop.o): Update.
5191
5192 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5193
5194 * top.c (execute_command): Enable break, info and interrupt
5195 commands in async mode.
5196
5197 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5198 Daniel Jacobowitz <dan@codesourcery.com>
5199
5200 * breakpoint.h (breakpoint_restore_shadows): New
5201 declaration.
5202 * breakpoint.c (breakpoint_restore_shadows): New.
5203 (read_memory_nobpt): Delete.
5204 * gdbcore.h (read_memory_nobpt): Delete declaration.
5205 * target.c (memory_xfer_partial): Call
5206 breakpoint_restore_shadows.
5207 (restore_show_memory_breakpoints)
5208 (make_show_memory_beakpoints_cleanup): New.
5209 (show_memory_breakpoints): New.
5210 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5211 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5212 Make sure we see memory breakpoints when checking if
5213 breakpoint is still there.
5214 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5215 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5216 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5217 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5218
5219 2008-03-12 Pedro Alves <pedro@codesourcery.com>
5220
5221 * thread.c (add_thread): Use printf_unfiltered to print.
5222
5223 2008-03-12 Joel Brobecker <brobecker@gnat.com>
5224
5225 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5226 that is true only on x86-solaris and x86_64-solaris.
5227 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5228 with proc_get_LDT_entry.
5229
5230 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5231
5232 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5233 * config.in, configure: Regenerate.
5234 * fork-child.c (fork_inferior): Call create_tty_session.
5235 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5236 (create_tty_session): New function.
5237 * terminal.h: Declare create_tty_session.
5238
5239 2008-03-12 Alan Modra <amodra@bigpond.net.au>
5240
5241 PR 5900
5242 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5243 * mipsread.c: Include elf/internal.h.
5244 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5245 to internal range.
5246
5247 2008-03-11 Markus Deuling <deuling@de.ibm.com>
5248
5249 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5250 to get at the current architecture and at the target specific vector.
5251 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5252 remove define of I387_ST0_REGNUM.
5253
5254 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5255
5256 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5257 get at the current architecture
5258 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5259 parameter.
5260
5261 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5262 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5263
5264 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5265 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5266 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5267
5268 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5269 at the target specific vector.
5270
5271 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5272 architecture. Use gdbarch_tdep to get at the target specific vector.
5273
5274 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5275 update caller. Use gdbarch_tdep to get at the target specific vector.
5276
5277 (i386_register_to_value: Use get_frame_arch to get at the current
5278 architecture.
5279
5280 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5281 parameter.
5282
5283 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5284 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5285 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5286 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5287
5288 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5289 undef's.
5290
5291 (i387_convert_register_p, i387_register_to_value,
5292 i387_value_to_register): Update call for i386_fp_regnum_p.
5293
5294 * i387-tdep.h: Remove comment.
5295 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5296 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5297 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5298 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5299 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5300
5301 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5302
5303 * Makefile.in (fork-child.o): Update.
5304 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5305 argument. Gather all gdbserver features together.
5306 * fork-child.c (exec_wrapper): New variable.
5307 (fork_inferior): Use it.
5308 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5309 (unset_exec_wrapper_command, _initialize_fork_child): New.
5310
5311 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5312
5313 * source.c (directory_command): Modify the determination of
5314 condition of terminal "from_tty".
5315
5316 2008-03-10 Matt Rice <ratmice@gmail.com>
5317
5318 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5319
5320 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5321
5322 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5323 of the data passing to strtoulst function.
5324 (info_spu_signal_command): Likewise.
5325
5326 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5327
5328 * mi/mi-interp.c (mi_command_loop): Remove
5329 commented-out code.
5330
5331 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5332
5333 * remote.c (extended_remote_attach_1): Make local variable pid an int
5334 instead of a pid_t.
5335
5336 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5337
5338 * solib-svr4.c (svr4_same_1): New function, originally extracted
5339 from svr4_same and expanded to handle the sparc64 case.
5340 (svr4_same): Move up and reimplement using svr4_same_1.
5341 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5342
5343 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5344
5345 * MAINTAINERS: Move self to Paper trail.
5346
5347 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5348
5349 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5350 * event-loop.c (call_async_signal_handler): New.
5351 * event-loop.h (call_async_signal_handler)
5352 (gdb_call_async_signal_handler): Declare.
5353 (mark_async_signal_handler): Add comments.
5354 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5355 * mingw-hdep.c (sigint_event, sigint_handler): New.
5356 (gdb_select): Use them. Wait for the readline signal handler
5357 to finish.
5358 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5359 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5360 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5361 New.
5362 (remote_fileio_ctrl_c_signal_handler): Use
5363 gdb_call_async_signal_handler.
5364 (initialize_remote_fileio): Initialize sigint_fileio_token.
5365 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5366 not initialize tokens here.
5367 (handle_remote_sigint_twice): Likewise. Reinstall
5368 handle_remote_sigint.
5369 (async_remote_interrupt_twice): Just call interrupt_query.
5370 (cleanup_sigint_signal_handler): Do not delete tokens.
5371 (remote_interrupt, remote_interrupt_twice): Use
5372 gdb_call_async_signal_handler.
5373 (interrupt_query): Reinstall the default signal handler.
5374 (_initialize_remote): Initialize tokens here.
5375
5376 2008-03-04 Joel Brobecker <brobecker@adacore.com>
5377
5378 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5379 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5380 Change the type of the lr register to code_ptr.
5381 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5382 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5383 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5384 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5385 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5386 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5387 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5388
5389 2008-03-03 James E. Wilson <wilson@tuliptree.org>
5390
5391 * MAINTAINERS: Update my email address.
5392
5393 2008-03-03 Keith Seitz <keiths@redhat.com>
5394
5395 From Dave Murphy <davem@devkitpro.org>:
5396 * configure.ac: Set tcl configdir to win under mingw.
5397 * configure: Regenerate.
5398
5399 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5400
5401 * breakpoint.c (fetch_watchpoint_value): New function.
5402 (update_watchpoint): Set and clear val_valid. Use
5403 fetch_watchpoint_value. Handle unreadable values on the
5404 value chain. Correct check for user-requested array watchpoints.
5405 (breakpoint_init_inferior): Clear val_valid.
5406 (watchpoint_value_print): New function.
5407 (print_it_typical): Use it. Do not free or clear old_val. Print
5408 watchpoints even if old_val == NULL.
5409 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5410 becoming readable or unreadable.
5411 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5412 (do_enable_watchpoint): Likewise.
5413 * breakpoint.h (struct breakpoint): Update comment for val. Add
5414 val_valid.
5415 * NEWS: Mention watchpoints on inaccessible memory.
5416
5417 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5418
5419 * Makefile.in (i386-nat.o): Update.
5420 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5421 i386_use_watchpoints.
5422 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5423 i386_use_watchpoints.
5424 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5425 (i386_stopped_by_watchpoint): Update call.
5426 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5427 * config/i386/nm-i386.h: Conditionalize definitions on
5428 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5429 (i386_use_watchpoints): Declare.
5430 (i386_stopped_data_address): Update.
5431 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5432 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5433
5434 2008-02-29 Joel Brobecker <brobecker@adacore.com>
5435
5436 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5437 * version.in: Bump version to 6.8.50.20080229-cvs.
5438
5439 2008-02-28 Markus Deuling <deuling@de.ibm.com>
5440
5441 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5442 properly.
5443
5444 2008-02-28 Tom Tromey <tromey@redhat.com>
5445
5446 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5447
5448 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5449
5450 * infcmd.c (kill_if_already_running): Make static. Use
5451 target_require_runnable.
5452 * target.c (target_require_runnable): New.
5453 * target.h (target_require_runnable): Declare.
5454
5455 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5456
5457 * frame.c (reinit_frame_cache): Only annotate if frames were
5458 previously valid.
5459
5460 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5461
5462 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5463 * regformats/reg-ppc64.dat: Likewise.
5464
5465 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5466
5467 * features/Makefile (%.dat): Emit xmltarget statement.
5468
5469 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5470 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5471
5472 * regformats/arm-with-iwmmxt.dat: Regenerate.
5473 * regformats/mips64-linux.dat: Regenerate.
5474 * regformats/mips-linux.dat: Regenerate.
5475 * regformats/rs6000/powerpc-32.dat: Regenerate.
5476 * regformats/rs6000/powerpc-64.dat: Regenerate.
5477 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5478
5479 * regformats/reg-arm.dat: Add xmlarch statement.
5480 * regformats/reg-i386.dat: Likewise.
5481 * regformats/reg-i386-linux.dat: Likewise.
5482 * regformats/reg-x86-64-linux.dat: Likewise.
5483 * regformats/reg-spu.dat: Likewise.
5484
5485 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5486
5487 * remote.c (remote_wait, remote_async_wait): Stop if we receive
5488 an error.
5489
5490 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5491
5492 * utils.c (debug_timestamp): New.
5493 (vfprintf_unfiltered): Print timestamps if requested.
5494 (show_debug_timestamp): New.
5495 (initialize_utils): Register "set debug timestamp".
5496 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
5497
5498 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5499
5500 * breakpoint.c (skip_prologue_sal): New function.
5501 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
5502 computed from a line number.
5503
5504 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5505
5506 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
5507 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5508 Set PC register type to "code_ptr".
5509 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5510 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5511 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5512 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5513 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5514 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5515 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
5516 Regenerate.
5517
5518 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5519
5520 * regformats/regdat.sh: Rename init_registers function in
5521 generated file to init_registers_${name}.
5522
5523 * regformats/reg-crisv32.dat: Set "name" to crisv32.
5524 * regformats/reg-ppc64.dat: Set "name" to ppc64.
5525 * regformats/reg-s390x.dat: Set "name" to s390x.
5526
5527 2008-02-26 Greg Law <glaw@undo-software.com>
5528
5529 * regcache.c (registers_changed): Call reinit_frame_cache.
5530
5531 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5532
5533 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
5534 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
5535 and svr4_fetch_objfile_link_map.
5536 * Makefile.in (sh-linux-tdep.o): Update.
5537
5538 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5539
5540 * amd64-tdep.c (amd64_classify): Add support for decimal float
5541 types.
5542 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
5543 use the struct return convention.
5544
5545 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
5546
5547 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
5548 to old format. Discard breakpoint address if shared library is
5549 unloaded.
5550 (breakpoint_1): Adjust formatting of table header accordingly.
5551
5552 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
5553
5554 * remote.c (remote_get_threadlist): If the response
5555 is empty, don't try to parse it.
5556
5557 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
5558
5559 Unbreak 'target async'.
5560 * serial.c (serial_async): Set the
5561 handler function before enabling async
5562 mode.
5563
5564 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
5565
5566 * solib-svr4.c (enable_break): Convert r_brk to a code address.
5567
5568 2008-02-21 Pedro Alves <pedro@codesourcery.com>
5569
5570 * remote.c (extended_remote_attach_1): Set attach_flag.
5571 (extended_remote_create_inferior_1): Clear attach_flag.
5572
5573 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5574
5575 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
5576 r_brk_offset.
5577 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5578 * solib-svr4.c (solib_svr4_r_brk): New.
5579 (open_symbol_file_object, svr4_current_sos): Always check the
5580 debug base.
5581 (svr4_fetch_objfile_link_map): Do not set debug_base.
5582 (enable_break): Use r_brk if it is set.
5583 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
5584 (svr4_lp64_fetch_link_map_offsets): Likewise.
5585 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
5586
5587 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5588 Mark Kettenis <kettenis@gnu.org>
5589
5590 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
5591 trad_frame_saved_reg.
5592 (trad-frame.h): New include.
5593
5594 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
5595 instead of frame_obstack_zalloc.
5596 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
5597
5598 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
5599
5600 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5601
5602 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
5603 from disassemble_info instead of gdbarch_byte_order.
5604
5605 * mips-tdep.c (gdb_print_insn_mips): Likewise.
5606 * arm-tdep.c (gdb_print_insn_arm): Likewise.
5607
5608 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5609
5610 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
5611 gdbarch as parameter.
5612
5613 * gdbarch.{c,h}: Regenerate.
5614
5615 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5616 parameter.
5617 * mem-break.c (default_memory_insert_breakpoint)
5618 (default_memory_remove_breakpoint): Likewise.
5619 * target.h (default_memory_remove_breakpoint)
5620 (default_memory_insert_breakpoint): Likewise.
5621
5622 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5623 parameter. Replace current_gdbarch by gdbarch.
5624 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5625 (m32r_memory_remove_breakpoint): Likewise.
5626
5627 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
5628
5629 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
5630
5631 2008-02-19 Joel Brobecker <brobecker@adacore.com>
5632
5633 * NEWS: Add entry describing Add support improvements.
5634
5635 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5636
5637 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
5638 M68K_FP0_REGNUM.
5639
5640 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5641
5642 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
5643 register_offset_hack anymore.
5644
5645 * regcache.{c,h} (register_offset_hack): Remove.
5646
5647 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5648
5649 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
5650
5651 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
5652 current_gdbarch by gdbarch.
5653 (hppa64_hpux_find_global_pointer): Likewise.
5654 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
5655 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
5656 find_global_pointer.
5657
5658 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
5659 parameter.
5660 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5661
5662 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
5663 of gdbarch_num_regs.
5664
5665 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
5666 replace current_gdbarch by gdbarch.
5667 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
5668
5669 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5670
5671 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
5672 and replace current_gdbarch by gdbarch.
5673
5674 (store_register): Update call for exec_one_dummy_insn.
5675 (fetch_register, store_register): Update call of regmap.
5676
5677 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
5678 parameter and replace current_gdbarch by gdbarch.
5679
5680 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
5681 the current architecture. Update call for getregs_supplies and
5682 getfpregs_supplies.
5683 (ppcnbsd_fetch_inferior_registers): Likewise.
5684
5685 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
5686 replace current_gdbarch by gdbarch.
5687 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
5688 get_regcache_arch to get at the current architecture. Update call for
5689 getfpregs_supplies.
5690
5691 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5692
5693 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
5694 variables.
5695
5696 2008-02-15 Markus Deuling <deuling@de.ibm.com>
5697
5698 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
5699
5700 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
5701
5702 * NEWS: Mention pending breakpints in MI.
5703
5704 2008-02-14 Markus Deuling <deuling@de.ibm.com>
5705
5706 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
5707
5708 2008-02-13 Markus Deuling <deuling@de.ibm.com>
5709
5710 Add script to build and test GDB using enable-targets=all.
5711
5712 * gdb_buildall.sh: New file.
5713
5714 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
5715
5716 * NEWS (New native configurations): Xtensa GNU/Linux.
5717 (New targets): Xtensa GNU/Linux.
5718 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
5719 xtensa-linux-tdep.o
5720 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
5721 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
5722 * configure.tgt (xtensa*-*-linux*): New entry.
5723 * xtensa-config.c (xtensa_tdep): New variable.
5724 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
5725 (rmap): Change format based on new macro XTREG.
5726 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
5727 * xtensa-linux-nat.c: New.
5728 * xtensa-linux-tdep.c: New.
5729 * xtensa-xtregs.c: New.
5730 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
5731 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
5732 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
5733 (xtensa_register_t): New field coprocessor.
5734 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
5735 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
5736 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
5737 Update to handle privileged registers.
5738 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
5739 (xtensa_push_dummy_call): Set windowstart register correctly.
5740 (call0_analyze_prologue): Initialize xtensa_default_isa.
5741 (xtensa_derive_tdep): New.
5742 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
5743 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
5744 Call xtensa_derive_tdep().
5745 * config/xtensa/linux.mh: New.
5746 * regformats/reg-xtensa.dat: New.
5747
5748 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
5749
5750 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
5751 (filenames.h): New include.
5752 * Makefile.in (corelow.o): Add dependency for filenames.h.
5753
5754 2008-02-08 Doug Evans <dje@google.com>
5755
5756 * source.c (find_and_open_source): Always rewrite absolute filenames.
5757
5758 2008-02-07 Doug Evans <dje@google.com>
5759
5760 * breakpoint.c: #include "hashtab.h".
5761 (ambiguous_names_p): New fn.
5762 (update_breakpoint_locations): When restoring bp enable status, don't
5763 compare function names if any functions have same name.
5764 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
5765
5766 2008-02-07 Joel Brobecker <brobecker@adacore.com>
5767
5768 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5769 instead of just a VEC*. Update use of SV.
5770 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5771
5772 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5773
5774 * NEWS: Put all new commands since gdb-6.7 together.
5775
5776 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5777
5778 * ada-lang.c: #include "vec.h".
5779 (struct string_vector, new_string_vector, string_vector_append):
5780 Delete.
5781 (char_ptr): New typedef.
5782 (DEF_VEC_P (char_ptr)): New VEC type.
5783 (symbol_completion_add): Update profile to take the new VEC type
5784 instead of the old string_vector structure. Update code accordingly.
5785 (ada_make_symbol_completion_list): Use the new VEC type instead of
5786 the old string_vector structure, and update the code accordingly.
5787 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5788
5789 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5790
5791 * p-exp.y: Set current_type in missing places.
5792 (leftdiv_is_integer): New static variable.
5793 Typecast right operand of BINOP_DIV to long_double if both operands
5794 are integers.
5795
5796 2008-02-06 Maciej W. Rozycki <macro@mips.com>
5797
5798 * remote-mips.c (set_breakpoint): Rename to...
5799 (mips_set_breakpoint): ... this.
5800 (clear_breakpoint): Rename to...
5801 (mips_clear_breakpoint): ... this.
5802 (common_breakpoint): Rename to...
5803 (mips_common_breakpoint): ... this.
5804 (check_lsi_error): Rename to...
5805 (mips_check_lsi_error): ... this.
5806
5807 2007-02-05 Joel Brobecker <brobecker@adacore.com>
5808
5809 * language.h (struct language_defn): Add new field
5810 la_make_symbol_completion_list.
5811 * symtab.c (default_make_symbol_completion_list): Renames
5812 make_symbol_completion_list.
5813 (make_symbol_completion_list): New function.
5814 * symtab.h (default_make_symbol_completion_list): Add declaration.
5815 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5816 (auto_language, local_language): Likewise.
5817 * objc-lang.c (objc_language_defn): Likewise.
5818 * scm-lang.c (scm_language_defn): Likewise.
5819 * m2-lang.c (m2_language_defn): Likewise.
5820 * f-lang.c (f_language_defn): Likewise.
5821 * jv-lang.c (java_language_defn): Likewise.
5822 * p-lang.c (pascal_language_defn): Likewise.
5823 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5824 (minimal_language_defn): Likewise.
5825 * ada-lang.c (struct string_vector): New structure.
5826 (new_string_vector, string_vector_append, ada_unqualified_name)
5827 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5828 (ada_make_symbol_completion_list): New functions.
5829 (ada_language_defn): Set la_make_symbol_completion_list.
5830 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5831 this function is static.
5832
5833 2008-02-05 Kevin Buettner <kevinb@redhat.com>
5834
5835 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5836 to account for call site optimizations.
5837
5838 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5839
5840 * tracepoint.c (read_actions): Handle end-of-text indicator
5841 in action list properly. (Committed by Jim Blandy)
5842
5843 2008-02-05 Jim Blandy <jimb@red-bean.com>
5844
5845 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5846 pseudoregister, not an internal error.
5847 Reported by: Andrzej Zaborowski
5848
5849 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5850
5851 * varobj.c (c_value_of_variable): Use xstrdup.
5852
5853 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5854
5855 Update stored rendition of varobj value when format changes.
5856 * varobj.c (varobj_set_display_format): Recomputed
5857 print_value.
5858 (c_value_of_variable): Return print_value.
5859
5860 2008-02-03 Doug Evans <dje@google.com>
5861
5862 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5863 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5864 * valops.c (value_one): New function.
5865 * value.h (value_one): Declare.
5866
5867 Fix argument promotion for binary arithmetic ops for C.
5868 * valarith.c (unop_result_type): New fn.
5869 (binop_result_type): New fn.
5870 (value_binop): Move result type computation to binop_result_type.
5871 (value_pos, value_neg, value_complement): Move result type
5872 computation to unop_result_type.
5873
5874 PR 2384
5875 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5876 Return basetype, fieldno if found. All callers updated.
5877 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5878 objfile.
5879 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5880 * symfile.h (fill_in_vptr_fieldno): Delete.
5881
5882 2008-02-02 Doug Evans <dje@google.com>
5883
5884 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5885
5886 * typeprint.c (*): Whitespace cleanup.
5887
5888 2008-02-02 Mark Kettenis <kettenis@gnu.org>
5889 Luis Machado <luisgpm@br.ibm.com>
5890 Thiago Jung Bauermann <bauerman@br.ibm.com>
5891
5892 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5893 don't fit into registerson the stack the way GCC does.
5894
5895 2008-02-01 Joel Brobecker <brobecker@adacore.com>
5896
5897 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5898 hash table for Ada symbols. Just store the linkage name as is,
5899 and leave the demangled_name as NULL.
5900
5901 2007-02-01 Joel Brobecker <brobecker@adacore.com>
5902
5903 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5904 in the global scope.
5905 (new_symbol): Likewise.
5906
5907 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5908
5909 * breakpoint.c (break_command_1): Return void.
5910 (break_command_really): Return void. Rethrow
5911 exceptions instead of returning.
5912 (gdb_breakpoint): Remove the error_message parameter.
5913 Return void. Rename to set_breakpoint.
5914 * gdb.h (gdb_breakpoint): Rename and move to...
5915 * breakpoint.h (set_breakpoint): ...here.
5916 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5917 event hooks even if exception is thrown. Adjust to
5918 gdb_breakpoint interface changes.
5919
5920
5921 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5922
5923 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5924 float in both first and second word in the doubleword, to support
5925 old and new ABIs.
5926
5927 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5928
5929 Properly rethrow exception. This fixes errors
5930 about non-existent functions for -break-insert.
5931 * breakpoint.c (break_command_really): Use throw_exception
5932 for rethrowing. If rethrowing, don't print the exception.
5933
5934 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5935
5936 * NEWS: Mention Decimal Floating Point support.
5937
5938 2008-01-31 Joel Brobecker <brobecker@adacore.com>
5939
5940 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
5941 value type to builtin_type_void_func_ptr.
5942
5943 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
5944
5945 * s390-tdep.c (is_float_singleton, is_float_like,
5946 alignment_of, s390_return_value): Make checks for
5947 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
5948
5949 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
5950 Thiago Jung Bauermann <bauerman@br.ibm.com>
5951
5952 * infcmd.c (default_print_registers_info): Also print hex
5953 raw contents for TYPE_CODE_DECFLOAT registers.
5954 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
5955 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
5956 (rs6000_register_name): Add support for DFP pseudo-registers.
5957 (rs6000_pseudo_register_type): Likewise.
5958 rs6000_pseudo_register_reggroup_p): Likewise.
5959 (ppc_pseudo_register_read): New function.
5960 (ppc_pseudo_register_write): Likewise.
5961 (rs6000_pseudo_register_read): Likewise.
5962 (rs6000_pseudo_register_write): Likewise.
5963 (e500_pseudo_register_read): Move checks to
5964 rs6000_pseudo_register_read.
5965 (e500_pseudo_register_write): Move checks to
5966 rs6000_pseudo_register_write.
5967 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
5968 rs6000_pseudo_register_read and rs6000_pseudo_register_write
5969 in gdbarch if SPE or DFP is available. Adjust gdbarch's
5970 num_pseudo_regs to account for DFP pseudo regs.
5971
5972 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5973
5974 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
5975 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
5976 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
5977 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
5978 e500_pseudo_register_read, e500_pseudo_register_write): Use
5979 IS_SPE_PSEUDOREG macro.
5980 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
5981 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
5982 Remove initialization of tdep->ppc_ev31_regnum.
5983
5984 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5985
5986 * printcmd.c (print_formatted): Handle references as for unformatted
5987 prints.
5988
5989 2008-01-30 Joel Brobecker <brobecker@adacore.com>
5990
5991 * eval.c (evaluate_subexp_standard): Add handling of user
5992 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
5993
5994 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
5995
5996 * eval.c (evaluate_subexp_standard): Support
5997 BINOP_INTDIV opcode.
5998
5999 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
6000
6001 * valarith.c (value_binop): Add floating-point BINOP_MIN and
6002 BINOP_MAX cases.
6003 For BINOP_EXP, use length and signedness of left operand only for
6004 result, as for shifts.
6005 For integral operands to BINOP_EXP, use new integer_pow and
6006 uinteger_pow functions so as to get full range of results.
6007 (integer_pow): New function.
6008 (uinteger_pow): New function.
6009
6010 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
6011
6012 Use vector for varobj_list_children interface.
6013 * gdb/varobj.c (varobj_list_children): Return vector
6014 of varobjs.
6015 * gdb/varobj.h (varobj_list_children): Adjust
6016 prototype.
6017 (varobj_p): Declare. Declare vector thereof.
6018 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
6019 for varobj_list_children change.
6020 * Makefile.in (varobj_h): Update dependencies.
6021
6022 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6023
6024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
6025 TYPE_CODE_DECFLOAT arguments.
6026 (ppc64_sysv_abi_push_dummy_call) Likewise.
6027 (get_decimal_float_return_value): New function.
6028 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
6029 values by calling get_decimal_float_return_value.
6030 (ppc64_sysv_abi_return_value): Likewise.
6031
6032 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
6033
6034 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
6035 for preprocessor macro information. Formatting changes.
6036
6037 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6038
6039 * remote.c (struct remote_state): Add cached_wait_status.
6040 (remote_exec_file): New variable.
6041 (PACKET_vAttach, PACKET_vRun): New constants.
6042 (extended_remote_restart): Do not query for status.
6043 (struct start_remote_args): New.
6044 (remote_start_remote): Take it as a second argument. Check
6045 whether the target is running. Issue an error for non-running
6046 non-extended targets. Cache the wait status. Set inferior_ptid
6047 here.
6048 (remote_open_1): Prompt to disconnect non-running targets. Make
6049 sure the target is marked running. Do not set inferior_ptid here.
6050 Update call to remote_start_remote. Do not call remote_check_symbols
6051 if the target is not running.
6052 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
6053 argument. Handle a non-running target.
6054 (remote_detach): Use it.
6055 (extended_remote_detach): New.
6056 (remote_disconnect): Fix typo. Use remoute_mourn_1.
6057 (extended_remote_attach_1, extended_remote_attach)
6058 (extended_async_remote_attach): New.
6059 (remote_vcont_resume): Remove unused variable.
6060 (remote_wait, remote_async_wait): Use any cached wait status.
6061 (putpkt_binary, getpkt): Clear any cached wait status.
6062 (extended_remoute_mourn_1): New.
6063 (extended_remote_mourn): Use it.
6064 (extended_async_remote_mourn, extended_remote_run): New.
6065 (extended_remote_create_inferior_1): New.
6066 (extended_remote_create_inferior): Use it.
6067 (extended_remote_async_create_inferior): Likewise.
6068 (remote_xfer_partial): Skip for non-executing targets.
6069 (init_extended_remote_ops): Set to_detach and to_attach.
6070 (init_extended_async_remote_ops): Likewise. Use
6071 extended_async_remote_mourn.
6072 (_initialize_remote): Register vAttach, vRun, and
6073 set remote exec-file.
6074 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
6075
6076 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6077
6078 * Makefile.in (symfile.o): Update.
6079 * NEWS: Mention exec tracing support.
6080 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
6081 exec events.
6082 * infcmd.c (kill_if_already_running, detach_command)
6083 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
6084 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
6085 (follow_exec): Do not check may_follow_exec. Do not mourn and push
6086 targets. Apply the sysroot path to the loaded executable. Use
6087 no_shared_libraries.
6088 * linux-nat.c (linux_child_follow_fork): Print fork following
6089 messages if verbose.
6090 (kill_wait_callback): Kill again before waiting a second time.
6091 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6092 no_shared_libraries.
6093
6094 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6095
6096 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6097
6098 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6099
6100 * nto-tdep.h: Remove #include "defs.h".
6101 * nto-tdep.c: Add #include "defs.h".
6102 * Makefile.in (nto_tdep_h): Update dependencies.
6103 (nto-tdep.o): Likewise.
6104
6105 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6106
6107 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6108 and use it.
6109 (proceed, start_remote): Update call to wait_for_inferior.
6110 * inferior.h (wait_for_inferior): Update declaration.
6111 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6112 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6113 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6114 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6115
6116 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
6117
6118 * varobj (adjust_value_for_child_access): Added checking for
6119 returned value from gdb_value_ind.
6120 (c_describe_child): Likewise.
6121 (cplus_describe_child): Fixed a typo.
6122
6123 2008-01-29 Jim Blandy <jimb@red-bean.com>
6124
6125 * MAINTAINERS: Update my info.
6126
6127 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6128
6129 Use multiple locations for hardware watchpoints.
6130 This eliminates the need to traverse value chain, doing
6131 various checks, in three different places.
6132
6133 * breakpoint.h (struct bp_location): New fields
6134 lengths and watchpoint_type.
6135 (struct breakpoint): Remove the val_chain field.
6136 * breakpoint.c (is_hardware_watchpoint): New.
6137 (free_valchain): Remove.
6138 (update_watchpoint): New.
6139 (insert_bp_location): For hardware watchpoint, just
6140 directly insert it.
6141 (insert_breakpoints): Call update_watchpoint_locations
6142 on all watchpoints. If we have failed to insert
6143 any location of a hardware watchpoint, remove all inserted
6144 locations.
6145 (remove_breakpoint): For hardware watchpoints, directly
6146 remove location.
6147 (watchpoints_triggered): Iterate over locations.
6148 (bpstat_stop_status): Use only first location of
6149 a resource watchpoint.
6150 (delete_breakpoint): Don't call free_valchain.
6151 (print_one_breakpoint): Don't print all
6152 locations for watchpoints.
6153 (breakpoint_re_set_one): Use update_watchpoint for
6154 watchpoints.
6155
6156 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6157
6158 Don't reset watchpoint block on solib load.
6159
6160 * breakpoint.c (insert_bp_location): For watchpoints,
6161 recompute condition.
6162 (breakpoint_re_set_one): Instead of recomputing value
6163 and condition for watchpoints, just reset value and
6164 let insert_breakpoints/insert_bp_location recompute it.
6165 Don't do anything about disabled watchpoint.
6166
6167 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6168
6169 * valarith.c (value_binop): Handle unsigned integer
6170 division by zero.
6171
6172 2008-01-28 Kevin Buettner <kevinb@redhat.com>
6173
6174 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6175 instruction pattern that appears frequently in position
6176 independent code. Fix bug in code which looks for "fmov" and
6177 backtracks if no "fmov" is found.
6178
6179 2008-01-28 Doug Evans <dje@google.com>
6180
6181 * dbxread.c (read_dbx_symtab): Fix indentation.
6182 Reformat comments to 80 columns.
6183 Move local var def closer to only use.
6184
6185 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6186
6187 * fork-child.c (SHELL_FILE): Remove #ifndef.
6188 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6189
6190 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6191
6192 * i386-tdep.c (i386_skip_noop): New function.
6193 (i386_analyze_prologue): Call i386_skip_noop function.
6194
6195 2008-01-24 Michael Snyder <msnyder@specifix.com>
6196
6197 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6198 * win32-nat.c (win32_xfer_partial): Ditto.
6199 * target.c (default_xfer_partial): Minor whitespace adjustment.
6200
6201 2008-01-24 Pedro Alves <pedro@codesourcery.com>
6202
6203 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6204 strip bit 1 even if pc doesn't point to thumb code.
6205
6206 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6207
6208 * remote.c (remote_wait): Handle SIGINT between packets.
6209 (remote_async_wait): Likewise.
6210
6211 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6212 Chris Demetriou <cgd@google.com>
6213
6214 * thread.c (add_thread_silent): Renamed
6215 from add_thread.
6216 (print_thread_events): New variable definition.
6217 (show_print_thread_events): New function.
6218 (_initialize_thread): Add "set print thread-events" and
6219 "show print thread-events" commands.
6220 (add_thread): Announce new thread.
6221 * gdbthread.h (add_thread_silent): Declare.
6222 (print_thread_events): New variable declaration.
6223 * inf-ttrace.c (inf_ttrace_wait): Don't
6224 inform about new thread, as add_thread is always
6225 called too, and will take care of that.
6226 * infrun.c (handle_inferior_event): Likewise.
6227 * procfs.c (procfs_wait): Likewise.
6228 * remote.c (remote_currthread): Likewise.
6229 * sol-thread.c (sol_thread_wait): Likewise.
6230 * win32-nat.c (get_win32_debug_event): Likewise.
6231 * linux-thread-db.c (attach_thread): Likewise.
6232 Remove the verbose parameter.
6233 (check_event): Make detach_thread be verbose
6234 only if print_thread_events is set.
6235 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6236 about new thread. This is called only from
6237 linux-thread-db.c:attach_thread, which will take care.
6238 Remove the verbose parameter.
6239 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
6240
6241 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
6242
6243 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6244
6245 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6246
6247 * breakpoint.c (break_command_really): New parameter
6248 ignore_count.
6249 (break_command_1): Pass 0 as
6250 ignore_count to break_command_really.
6251 (gdb_breakpoint): Pass ignore_count to
6252 break_command_really.
6253
6254 2008-01-21 Kevin Buettner <kevinb@redhat.com>
6255
6256 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6257 sigcontext struct via pointer.
6258 (struct sigframe comment): Update to show new field `psc'.
6259
6260 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6261
6262 * infrun.c (handle_inferior_event): If
6263 we failed to remove breakpoints, error,
6264 don't try to increment PC by hand.
6265
6266 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6267
6268 Add NetBSD/hppa target and host support.
6269
6270 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6271 (hppabsd_gregset): Move to ...
6272 (hppabsd_regset_from_core_section): Rename
6273 hppaobsd_regset_from_core_section and move to ...
6274 (hppabsd_find_global_pointer): Update comment.
6275 (hppabsd_init_abi): Make global. Do not register
6276 hppabsd_regset_from_core_section.
6277 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6278 move to ...
6279 (_initialize_hppabsd_tdep): Move to ...
6280 * hppaobsd-tdep.c: ... here. New file.
6281 * hppnbsd-tdep.c: New file.
6282 * hppnbsd-nat.c: New file.
6283 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
6284 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6285 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6286 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
6287 * configure.host (hppa*-*-netbsd*): New entry.
6288 * configure.tgt (hppa*-*-netbsd*): New entry.
6289 (hppa*-*-openbsd*): Update.
6290 * NEWS (New native configuration): Mention NetBSD/hppa.
6291 (New targets): Mention NetBSD/hppa.
6292
6293 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6294
6295 * gdbarch.sh (function_list): Add new property bits_big_endian to
6296 gdbarch structure.
6297 * gdbarch.{c,h}: Regenerate.
6298
6299 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6300 gdbarch_bits_big_endian (comment).
6301 (unpack_field_as_long, modify_field): Likewise.
6302 * value.h: Likewise (comment).
6303 * valops.c (value_slice): Likewise.
6304 * valarith.c (value_subscript, value_bit_index): Likewise.
6305 * gdbtypes.h (field): Likewise (comment).
6306 * eval.c (evaluate_subexp_standard): Likewise.
6307 * dwarf2read.c (dwarf2_add_field): Likewise.
6308 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6309 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
6310
6311 * defs.h (BITS_BIG_ENDIAN): Remove.
6312
6313 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6314
6315 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6316 function calls.
6317 * m2-exp.y (yylex): Likewise.
6318 * objc-exp.y (yylex): Likewise.
6319
6320 * defs.h (DEPRECATED_STREQN): Remove.
6321
6322 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
6323
6324 * MAINTAINERS: Update my email address.
6325
6326 2008-01-17 Jim Blandy <jimb@codesourcery.com>
6327
6328 * README: Mention gdbserver/README.
6329
6330 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6331
6332 * valarith.c (value_binop): Handle BINOP_INTDIV
6333 for unsigned and signed integers.
6334
6335 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6336
6337 * s390-tdep.c (s390_gdbarch_init): Set default long double
6338 type to 128-bit IEEE quad.
6339
6340 2008-01-17 Joel Brobecker <brobecker@adacore.com>
6341
6342 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6343
6344 2008-01-16 Mark Kettenis <kettenis@gnu.org>
6345
6346 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6347
6348 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6349 * value.c: All callers changed.
6350
6351 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6352
6353 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6354 DEPRECATED_STREQ by its expression.
6355 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6356 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6357 (scan_xcoff_symtab): Likewise.
6358 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6359 * f-lang.c (find_common_for_function): Likewise.
6360 * objc-exp.y (parse_number): Likewise.
6361
6362 * defs.h (DEPRECATED_STREQ): Remove.
6363
6364 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6365
6366 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6367 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6368 get_frame_arch to get at the current_architecture. Update AM33_MODE
6369 call.
6370 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6371 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6372 architecture.
6373 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6374
6375 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6376
6377 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
6378 parameter.
6379 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6380
6381 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6382 current_gdbarch by gdbarch. Update caller.
6383
6384 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6385 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6386 the current architecture. Update calls of
6387 amd64_native_gregset_supplies_p.
6388 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6389 (amd64bsd_store_inferior_registers): Likewise.
6390
6391 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6392
6393 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6394 Replace current_gdbarch by gdbarch. Update caller.
6395
6396 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6397
6398 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6399 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6400 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6401 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6402 (stabsect_build_psymtabs): Fix indentation.
6403
6404 2008-01-15 Michael Snyder <msnyder@specifix.com>
6405
6406 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6407
6408 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6409
6410 * win32-nat.c (win32_create_inferior): Restore code calling
6411 CloseHandle on ProcessInformation structure.
6412
6413 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6414
6415 * configure.ac: Check for void * as 3 argument of ptrace.
6416 * configure: regenerate.
6417
6418 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6419
6420 * alpha-tdep.c (alpha_heuristic_proc_start)
6421 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6422 current_gdbarch by gdbarch.
6423
6424 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
6425 current architecture by frame_info. Update alpha_heuristic_proc_start
6426 call.
6427
6428 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6429 get_frame_arch to get at the current architecture by frame_info. Update
6430 alpha_sigtramp_register_address call.
6431
6432 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6433 current_gdbarch by gdbarch. Update caller.
6434 (convert_to_extended, convert_from_extended): Add endianess parameter
6435 for comparison. Update caller.
6436 (arm_extract_return_value, arm_store_return_value): Use
6437 get_regcache_arch to get at the current architecture.
6438
6439 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6440 current_gdbarch by gdbarch. Update caller.
6441 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6442 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6443
6444 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
6445 gdbarch as parameter. Update caller.
6446 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6447 current_gdbarch by gdbarch. Update caller.
6448
6449 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
6450 update caller. Replace current_gdbarch by gdbarch.
6451
6452 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6453 the current architecture. Replace current_gdbarch by gdbarch.
6454 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6455 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6456 expression. Add gdbarch as parameter and replace current_gdbarch with
6457 it. Update caller.
6458 (M6811_TDEP): Remove.
6459 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6460 architecture.
6461 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
6462 current_gdbarch by gdbarch. Update caller.
6463
6464 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6465 update caller.
6466 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6467 by gdbarch.
6468
6469 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6470 caller. Relace current_gdbarch by gdbarch.
6471 (altivec_register_p, spe_register_p): Likewise.
6472 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6473 parameter.
6474 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6475 altivec_register_p and spe_register_p.
6476
6477 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
6478 caller. Replace current_gdbarch by gdbarch.
6479 (score_analyze_prologue): use get_frame_arch to get at the current
6480 architecture.
6481
6482 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
6483 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
6484 current_gdbarch by gdbarch. Update caller.
6485 (sparc_frame_cache): Use get_frame_arch to get at the current
6486 architecture.
6487 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
6488 sparc_analyze_prologue.
6489
6490 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
6491 parameter.
6492
6493 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6494
6495 * exec.c: #include "arch-utils.h"
6496 (print_section_info): Use gdbarch_from_bfd to get at the
6497 current architecture. Replace current_gdbarch. Fix indention. Replace
6498 deprecated_print_address_numeric by paddress.
6499 * Makefile.in (exec.o) Add dependency to arch-utils.h.
6500
6501 * valprint.c (val_print_string): Replace
6502 deprecated_print_address_numeric.
6503 * tracepoint.c (trace_mention, scope_info): Likewise.
6504 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
6505 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
6506 (maintenance_check_symtabs): Likewise.
6507 * symfile.c (list_overlays_command): Likewise.
6508 * stack.c (frame_info, print_block_frame_labels): Likewise.
6509 * printcmd.c (print_address, print_address_demangle)
6510 (address_info): Likewise.
6511 * corefile.c (memory_error): Likewise.
6512 * infcmd.c (jump_command): Likewise.
6513 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
6514 (mention, delete_breakpoint): Likewise.
6515 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
6516 * dwarf2read.c (dump_die): Likewise.
6517 * ada-valprint.c (ada_val_print_1): Likewise.
6518 * f-valprint.c (f_val_print): Likewise.
6519 * linux-fork.c (info_forks_command): Likewise.
6520 * m32r-com.c (m32r_load_section, m32r_load)
6521 (m32r_upload_command): Likewise.
6522
6523 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
6524
6525 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6526
6527 * gdbarch.sh (skip_prologue): Add gdbarch
6528 as parameter.
6529 * gdbarch.{c,h}: Regenerate.
6530
6531 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
6532 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6533 * avr-tdep.c (avr_skip_prologue): Likewise.
6534 * cris-tdep.c (cris_skip_prologue): Likewise.
6535 * frv-tdep.c (frv_skip_prologue): Likewise.
6536 * h8300-tdep.c (h8300_skip_prologue): Likewise.
6537 * hppa-tdep.c (hppa_skip_prologue): Likewise.
6538 * i386-tdep.c (i386_skip_prologue): Likewise.
6539 * ia64-tdep.c (ia64_skip_prologue): Likewise.
6540 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
6541 * m32r-tdep.c (m32r_skip_prologue): Likewise.
6542 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
6543 * m68k-tdep.c (m68k_skip_prologue): Likewise.
6544 * m88k-tdep.c (m88k_skip_prologue): Likewise.
6545 * mep-tdep.c (mep_skip_prologue): Likewise.
6546 * mips-tdep.c (mips_skip_prologue): Likewise.
6547 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
6548 * mt-tdep.c (mt_skip_prologue): Likewise.
6549 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6550 * score-tdep.c (score_skip_prologue): Likewise.
6551 * sh64-tdep.c (sh64_skip_prologue): Likewise.
6552 * sh-tdep.c (sh_skip_prologue): Likewise.
6553 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
6554 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
6555 * spu-tdep.c (spu_skip_prologue): Likewise.
6556 * v850-tdep.c (v850_skip_prologue): Likewise.
6557 * vax-tdep.c (vax_skip_prologue): Likewise.
6558 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6559 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
6560
6561 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
6562 current_gdbarch by gdbarch.
6563 * m32c-tdep.c (m32c_skip_prologue): Likewise.
6564 * s390-tdep.c (s390_skip_prologue): Likewise.
6565
6566 2008-01-10 Doug Evans <dje@google.com>
6567
6568 * defs.h (struct continuation_arg): Fix typo in comment.
6569 * target.c (target_translate_tls_address): Fix comment spelling error.
6570
6571 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
6572
6573 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
6574 (DOUBLEST_SCAN_FORMAT): Likewise.
6575 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6576 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
6577 * c-exp.y (parse_number): Likewise.
6578 * jv-exp.y (parse_number): Likewise.
6579 * objc-exp.y (parse_number): Likewise.
6580 * p-exp.y (parse_number): Likewise.
6581
6582 2008-01-09 Joel Brobecker <brobecker@adacore.com>
6583
6584 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
6585 (check_typedef): Likewise.
6586
6587 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
6588
6589 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
6590 seen_double_big_d, treat the new H, D, and DD modifiers as length
6591 modifiers.
6592
6593 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6594
6595 * dwarf2read.c (read_enumeration_type): Add comment.
6596
6597 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6598
6599 * config.in: Regenerate.
6600
6601 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6602
6603 * ada-lang.c (ada_convert_actual): Renames convert_actual.
6604 Make non-static.
6605 (ada_convert_actuals): Delete.
6606 * ada-lang.h (ada_convert_actual): Add declaration.
6607 (ada_convert_actuals): Remove declaration.
6608 * infcall.c: #include "ada-lang.h".
6609 (value_arg_coerce): Add new parameter sp. Update function
6610 documetnation. Add handling of Ada function call parameters.
6611 * Makefile.in (infcall.o): Update dependencies.
6612
6613 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6614
6615 * ada-lang.c (ensure_lval): Fix value lval kind.
6616 (convert_actual): Add handling for arguments passed by reference.
6617
6618 2008-01-08 Doug Evans <dje@google.com>
6619
6620 * dbxread.c (read_dbx_symtab): Fix indentation.
6621
6622 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6623
6624 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
6625 (valarith.o): Depend on dfp.h.
6626 (valops.o): Likewise.
6627 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
6628 (set_decnumber_context): New function.
6629 (decimal_check_errors): Likewise.
6630 (decimal_from_number): Likewise.
6631 (decimal_to_number): Likewise.
6632 (decimal_from_string): Use set_decnumber_context and
6633 decimal_check_errors.
6634 (decimal_from_integral): New function.
6635 (decimal_from_floating): Likewise.
6636 (decimal_to_double): Likewise.
6637 (promote_decimal): Likewise.
6638 (decimal_binop): Likewise.
6639 (decimal_is_zero): Likewise.
6640 (decimal_compare): Likewise.
6641 (decimal_convert): Likewise.
6642 * dfp.h (decimal_from_integral): New prototype.
6643 (decimal_from_floating): Likewise.
6644 (decimal_to_double): Likewise.
6645 (decimal_binop): Likewise.
6646 (decimal_is_zero): Likewise.
6647 (decimal_compare): Likewise.
6648 (decimal_convert): Likewise.
6649 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
6650 call to value_from_decfloat.
6651 * valarith.c: Include dfp.h.
6652 (value_args_as_decimal): New function.
6653 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
6654 (value_logical_not): Likewise.
6655 (value_equal): Likewise.
6656 (value_less): Likewise.
6657 (value_pos): Likewise.
6658 (value_neg): Formatting fix.
6659 * valops.c: Include dfp.h.
6660 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
6661 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
6662 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
6663 (value_from_decfloat): Remove expect_type argument.
6664 * value.h (value_from_decfloat): Update prototype.
6665
6666 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
6667
6668 Ignore change in name of dynamic linker during
6669 execution on Solaris. This also unbreaks pending breakpoints.
6670
6671 * solist.h (struct target_so_ops): New field same.
6672 * solib-svr4.c (svr4_same): New.
6673 (_initialize_svr4_solib): Register svr4_same.
6674 * solib.c (update_solib_list): Use ops->same, if available.
6675
6676 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
6677
6678 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
6679 when using MS-DOS paths.
6680
6681 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6682
6683 * NEWS: Mention --pid and --core command line behaviour changes.
6684
6685 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6686
6687 * main.c (captured_main): Remove 'count' varible and the
6688 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
6689 --pid options were issued simultaneously. If an explicit pid
6690 option was passed, don't fallback to core file. Detect extra
6691 arguments better in the presence of explicit pid or core
6692 arguments.
6693
6694 2008-01-05 Joel Brobecker <brobecker@adacore.com>
6695
6696 * ada-lang.c (ada_which_variant_applies): Correctly compute
6697 the value of the discriminant when the variant record is packed.
6698
6699 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6700
6701 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
6702 that are used to differentiate homonyms.
6703
6704 2008-01-04 Jerome Guitton <guitton@adacore.com>
6705
6706 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
6707 when the type is an anonymous pointer type.
6708 (ada_check_typedef): Avoid a seg fault when the type is null.
6709 * ada-typeprint.c (print_array_type): Add support for pointer
6710 to packed arrays.
6711
6712 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
6713
6714 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
6715
6716 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6717
6718 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
6719 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
6720
6721 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6722
6723 * ada-exp.y (chop_separator): New function.
6724 (write_selectors): Rewrite to re-use chop_separator.
6725 (ada_nget_field_index, get_symbol_field_type): New functions.
6726 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
6727 expressions.
6728
6729 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6730
6731 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
6732 of SYMBOL_VALUE when working with function symbols.
6733
6734 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6735
6736 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
6737 expressions. These expressions do not need to be rewriten.
6738
6739 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6740
6741 * dwarf2read.c (read_enumeration_type): Flag type as stub if
6742 the given die is a declaration.
6743
6744 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6745
6746 * ada-lang.c (ada_array_bound_from_type): Make non-static.
6747 Handle properly the case when the index type is an enumerated type.
6748 Do not return the subtype of the bounds type, just return the
6749 bounds type directly - this is not needed and is more consistent
6750 with what we do for arrays when no XA parallel type exists.
6751
6752 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6753
6754 * ada-lang.c (static_unwrap_type): Add forward declaration.
6755 (template_to_static_fixed_type): Fields of dynamic types sometimes
6756 also need to be unwrapped. Take this into account.
6757 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
6758 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
6759 * ada-typeprint.c (ada_print_type): Get the typename from
6760 the original type, not the base type.
6761
6762 2008-01-03 Jerome Guitton <guitton@adacore.com>
6763
6764 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
6765 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
6766 Update calls to ada_to_fixed_type.
6767 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6768 for the tag.
6769 (ada_to_fixed_type): Add check_tag parameter; do not look for
6770 tag if null. When looking for a tag, use a fixed record type.
6771 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6772 * ada-valprint.c (printable_val_type, ada_value_print): Update
6773 calls to ada_to_fixed_type.
6774
6775 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
6776
6777 * doublest.c (convert_floatformat_to_doublest): Call
6778 floatformat_to_doublest instead of floatformat_to_double and use
6779 DOUBLEST variables.
6780 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6781 instead of floatformat_from_double and use DOUBLEST variables.
6782
6783 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6784
6785 * MAINTAINERS (Write After Approval): Add self.
6786
6787 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6788
6789 * symfile.c (set_initial_language): Make non-static.
6790 * symfile.h (set_initial_language): Add declaration.
6791 * language.c: #include "symfile.h".
6792 (set_language): Call set_initial_language if the frame language
6793 could not be determined.
6794
6795 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6796
6797 * eval.c (evaluate_subexp_for_address): Provide frame address to
6798 locate_var_value only if it will be needed.
6799
6800 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6803
6804 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6805
6806 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6807 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6808 This is needed to make sure that any other treatment applied
6809 to the resulting value does not fail for spurious reason,
6810 such as trying to take the address of this value.
6811
6812 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6813
6814 * ada-lang.c (ada_value_equal): Dereference reference types when
6815 comparing arrays.
6816
6817 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6818
6819 Updated copyright notices for most files.
6820
6821 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6822
6823 * win32-nat.c (psapi_module_handle): Remove static.
6824 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6825 return first module found if base_address is zero. Don't initialize
6826 psapi function pointers here. Convert to cygwin paths when
6827 appropriate.
6828 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6829 executable name. Use get_module_name when that fails or when
6830 !__CYGWIN__.
6831 (_initialize_psapi): New function. Initialize psapi stuff before it is
6832 needed or issue a warning if it is not found. Move psapi_module_handle
6833 here.
6834
6835 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6836
6837 * ada-lang.c (ada_remove_trailing_digits): New function.
6838 (ada_remove_po_subprogram_suffix): New function.
6839 (ada_decode): Improve. Move the description of the algorithm
6840 directly inside the code, instead of in the function global
6841 description.
6842
6843 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6844
6845 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6846 and always print the dereferenced value.
6847
6848 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6849
6850 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6851 of the case where the first argument is a reference.
6852 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6853
6854 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6855
6856 Implement support for Ada interface types.
6857
6858 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6859 (ada_is_ignored_field): Ignore fields that are a dispatch table
6860 of a tagged type.
6861
6862 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6863
6864 * top.c (print_gdb_version): Update copyright year.
6865
6866 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6867
6868 * ChangeLog-2007: New ChangeLog rotation.
6869 * ChangeLog: Reset for 2008.
6870 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6871 ChangeLog-2007.
6872
6873 For older changes see ChangeLog-2007.
6874 \f
6875 Local Variables:
6876 mode: change-log
6877 left-margin: 8
6878 fill-column: 74
6879 version-control: never
6880 coding: utf-8
6881 End: