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