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