* infcmd.c (jump_command): Postpone disabling stdin until after
[binutils-gdb.git] / gdb / ChangeLog
1 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2
3 * infcmd.c (jump_command): Postpone disabling stdin until after
4 the possible query.
5
6 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7
8 * inflow.c (gdb_getpgrp): New.
9 (gdb_has_a_terminal): Use get_getpgrp.
10 (terminal_ours_1): If attach_flag is set, don't refetch
11 inferior_process_group.
12
13 2008-03-14 Pedro Alves <pedro@codesourcery.com>
14
15 * features/library-list.dtd: Allow "section" elements as children
16 of "library". Add "section" element and describe its attributes.
17
18 * solib-target.c (struct lm_info): Add section_bases member.
19 (library_list_start_segment): Error out if seen a section element.
20 (library_list_start_section): New.
21 (library_list_end_library): New.
22 (solib_target_free_library_list): Free section_bases.
23 (section_attributes): New.
24 (library_children): Make "segment" optional. Add "section" child.
25 (library_list_children): Register library_list_end_library.
26 (solib_target_relocate_section_addresses): Handle section bases.
27
28 * NEWS: Mention new qXfer:libraries:read section offsets support.
29
30 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
31
32 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
33 (make_exec_error_cleanup): Remove declarations.
34 * utils.c (exec_error_cleanup_chain): Remove.
35 (do_exec_error_cleanups, discard_exec_error_cleanups)
36 (make_exec_error_cleanup): Remove.
37 * event-loop.c (start_event_loop): Adjust call to
38 async_enable_stdin.
39 * event-top.c (async_enable_stdin): Remove the paramater dummy.
40 (async_disable_stdin): Don't register async_enable_stdin via
41 cleanup.
42 * inf-loop.c (inferior_event_handler): Don't
43 call do_exec_error_cleanups. Call async_enable_stdin instead.
44 * event-loop.c (start_event_loop): Adjust call to
45 async_enable_stdin.
46 * tui/tui-interp.c (tui_command_loop): Adjust call to
47 async_enable_stdin.
48
49 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
50
51 Async mode fixes.
52 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
53 * breakpoint.c (bpstat_do_actions): In async mode,
54 don't jump to top expecting stop_bpstat to be already
55 updated.
56 * event-loop.c (start_event_loop): Call async_enable_stdin
57 on exception.
58 * event-top.c (async_enable_stdin): Do nothing if sync_execution
59 is not set.
60 (command_handler): Do not setup continuation here.
61 (command_line_handler_continuation): Move to...
62 * top.c (command_line_handler_continuation): ... here.
63 (execute_command): In async mode, register continuation.
64 Don't check frame's language in running in async mode.
65 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
66 * inf-loop.c (complete_execution): Inline into...
67 (inferior_event_handler): ... here. Clear target_executing before
68 doing any cleanups. Don't try to show prompt if the target was
69 resumed.
70 * infcmd.c (signal_command): Add support for async mode.
71 (finish_command): Only add continuation if the target was
72 successfully resumed.
73 * remote.c (init_async_opts): Register to_get_thread_local_address
74 handler.
75 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
76 with sync_execution.
77 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
78 on exception.
79
80 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
81
82 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
83 * exec.c (exec_bfd_mtime): Define.
84 (exec_close): Clear it.
85 (exec_file_attach): Set it.
86 * gdbcore.h (exec_bfd_mtime): Declare.
87 * source.c (find_source_lines): Do not use bfd_get_mtime.
88
89 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
90
91 * top.c (simplified_command_loop): Remove.
92
93 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
94
95 Remove unused remote.c hooks.
96 * remote.c (deprecated_target_resume_hook)
97 (deprecated_target_wait_loop_hook): Remove.
98 (remote_resume): Do not call deprecated_target_resume_hook.
99 (remote_wait): Do not call deprecated_target_wait_loop_hook.
100 (remote_async_wait): Likewise.
101
102 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
103
104 Implement MI notification for new threads.
105 * doc/observer.texi (new_thread): Document.
106 * observer.sh: Forward declare struct thread_info.
107 * thread.c (add_thread): Notify observer.
108
109 * interps.h (interp_init_ftype): New parameter
110 top_level.
111 (interp_set): Likewise.
112 (top_level_interpreter_data): Declare.
113 * interps.c (interp_set): New parameter top_level.
114 Pass it to interpreter's init function. Remember
115 top level interpreter.
116 (interpreter_exec_cmd): Adjust.
117 (top_level_interpreter_data): New.
118 * main.c (captured_main): Pass 1 for top_level
119 parameter of interp_set.
120 * cli/cli-interp.c (cli_interpreter_init): New
121 parameter top_level.
122 * tui/tui-interp.c (tui_init): New parameter top_level.
123
124 * mi/mi-interp.c (mi_new_thread): New.
125 (mi_interpreter_init): If top level, register
126 observer for new threads.
127
128 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
129
130 2008-03-14 Pedro Alves <pedro@codesourcery.com>
131
132 * top.c (execute_command): Disable break and stop
133 commands in async mode.
134
135 2008-03-14 Pedro Alves <pedro@codesourcery.com>
136
137 revert:
138 2008-03-14 Pedro Alves <pedro@codesourcery.com>
139 * inf-loop.c (inferior_event_handler): Don't include remote.h.
140 Call target_stop in the INF_QUIT_REQ case.
141 * Makefile.in (inf-loop.o): Update.
142
143 2008-03-14 Pedro Alves <pedro@codesourcery.com>
144
145 * inf-loop.c (inferior_event_handler): Don't include remote.h.
146 Call target_stop in the INF_QUIT_REQ case.
147 * Makefile.in (inf-loop.o): Update.
148
149 2008-03-14 Pedro Alves <pedro@codesourcery.com>
150
151 * top.c (execute_command): Enable break, info and interrupt
152 commands in async mode.
153
154 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
155 Daniel Jacobowitz <dan@codesourcery.com>
156
157 * breakpoint.h (breakpoint_restore_shadows): New
158 declaration.
159 * breakpoint.c (breakpoint_restore_shadows): New.
160 (read_memory_nobpt): Delete.
161 * gdbcore.h (read_memory_nobpt): Delete declaration.
162 * target.c (memory_xfer_partial): Call
163 breakpoint_restore_shadows.
164 (restore_show_memory_breakpoints)
165 (make_show_memory_beakpoints_cleanup): New.
166 (show_memory_breakpoints): New.
167 * target.h (make_show_memory_beakpoints_cleanup): Declare.
168 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
169 Make sure we see memory breakpoints when checking if
170 breakpoint is still there.
171 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
172 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
173 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
174 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
175
176 2008-03-12 Pedro Alves <pedro@codesourcery.com>
177
178 * thread.c (add_thread): Use printf_unfiltered to print.
179
180 2008-03-12 Joel Brobecker <brobecker@gnat.com>
181
182 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
183 that is true only on x86-solaris and x86_64-solaris.
184 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
185 with proc_get_LDT_entry.
186
187 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
188
189 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
190 * config.in, configure: Regenerate.
191 * fork-child.c (fork_inferior): Call create_tty_session.
192 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
193 (create_tty_session): New function.
194 * terminal.h: Declare create_tty_session.
195
196 2008-03-12 Alan Modra <amodra@bigpond.net.au>
197
198 PR 5900
199 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
200 * mipsread.c: Include elf/internal.h.
201 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
202 to internal range.
203
204 2008-03-11 Markus Deuling <deuling@de.ibm.com>
205
206 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
207 to get at the current architecture and at the target specific vector.
208 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
209 remove define of I387_ST0_REGNUM.
210
211 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
212
213 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
214 get at the current architecture
215 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
216 parameter.
217
218 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
219 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
220
221 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
222 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
223 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
224
225 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
226 at the target specific vector.
227
228 (i386_get_longjmp_target): Use get_frame_arch to get at the current
229 architecture. Use gdbarch_tdep to get at the target specific vector.
230
231 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
232 update caller. Use gdbarch_tdep to get at the target specific vector.
233
234 (i386_register_to_value: Use get_frame_arch to get at the current
235 architecture.
236
237 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
238 parameter.
239
240 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
241 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
242 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
243 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
244
245 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
246 undef's.
247
248 (i387_convert_register_p, i387_register_to_value,
249 i387_value_to_register): Update call for i386_fp_regnum_p.
250
251 * i387-tdep.h: Remove comment.
252 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
253 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
254 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
255 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
256 I387_MXCSR_REGNUM): Add target specific vector as parameter.
257
258 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
259
260 * Makefile.in (fork-child.o): Update.
261 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
262 argument. Gather all gdbserver features together.
263 * fork-child.c (exec_wrapper): New variable.
264 (fork_inferior): Use it.
265 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
266 (unset_exec_wrapper_command, _initialize_fork_child): New.
267
268 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
269
270 * source.c (directory_command): Modify the determination of
271 condition of terminal "from_tty".
272
273 2008-03-10 Matt Rice <ratmice@gmail.com>
274
275 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
276
277 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
278
279 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
280 of the data passing to strtoulst function.
281 (info_spu_signal_command): Likewise.
282
283 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
284
285 * mi/mi-interp.c (mi_command_loop): Remove
286 commented-out code.
287
288 2008-03-07 Joel Brobecker <brobecker@adacore.com>
289
290 * remote.c (extended_remote_attach_1): Make local variable pid an int
291 instead of a pid_t.
292
293 2008-03-07 Joel Brobecker <brobecker@adacore.com>
294
295 * solib-svr4.c (svr4_same_1): New function, originally extracted
296 from svr4_same and expanded to handle the sparc64 case.
297 (svr4_same): Move up and reimplement using svr4_same_1.
298 (enable_break): Use svr4_same_1 to do shared library name comparisons.
299
300 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
301
302 * MAINTAINERS: Move self to Paper trail.
303
304 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
305
306 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
307 * event-loop.c (call_async_signal_handler): New.
308 * event-loop.h (call_async_signal_handler)
309 (gdb_call_async_signal_handler): Declare.
310 (mark_async_signal_handler): Add comments.
311 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
312 * mingw-hdep.c (sigint_event, sigint_handler): New.
313 (gdb_select): Use them. Wait for the readline signal handler
314 to finish.
315 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
316 * posix-hdep.c (gdb_call_async_signal_handler): New function.
317 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
318 New.
319 (remote_fileio_ctrl_c_signal_handler): Use
320 gdb_call_async_signal_handler.
321 (initialize_remote_fileio): Initialize sigint_fileio_token.
322 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
323 not initialize tokens here.
324 (handle_remote_sigint_twice): Likewise. Reinstall
325 handle_remote_sigint.
326 (async_remote_interrupt_twice): Just call interrupt_query.
327 (cleanup_sigint_signal_handler): Do not delete tokens.
328 (remote_interrupt, remote_interrupt_twice): Use
329 gdb_call_async_signal_handler.
330 (interrupt_query): Reinstall the default signal handler.
331 (_initialize_remote): Initialize tokens here.
332
333 2008-03-04 Joel Brobecker <brobecker@adacore.com>
334
335 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
336 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
337 Change the type of the lr register to code_ptr.
338 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
339 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
340 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
341 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
342 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
343 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
344 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
345
346 2008-03-03 James E. Wilson <wilson@tuliptree.org>
347
348 * MAINTAINERS: Update my email address.
349
350 2008-03-03 Keith Seitz <keiths@redhat.com>
351
352 From Dave Murphy <davem@devkitpro.org>:
353 * configure.ac: Set tcl configdir to win under mingw.
354 * configure: Regenerate.
355
356 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
357
358 * breakpoint.c (fetch_watchpoint_value): New function.
359 (update_watchpoint): Set and clear val_valid. Use
360 fetch_watchpoint_value. Handle unreadable values on the
361 value chain. Correct check for user-requested array watchpoints.
362 (breakpoint_init_inferior): Clear val_valid.
363 (watchpoint_value_print): New function.
364 (print_it_typical): Use it. Do not free or clear old_val. Print
365 watchpoints even if old_val == NULL.
366 (watchpoint_check): Use fetch_watchpoint_value. Check for values
367 becoming readable or unreadable.
368 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
369 (do_enable_watchpoint): Likewise.
370 * breakpoint.h (struct breakpoint): Update comment for val. Add
371 val_valid.
372 * NEWS: Mention watchpoints on inaccessible memory.
373
374 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
375
376 * Makefile.in (i386-nat.o): Update.
377 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
378 i386_use_watchpoints.
379 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
380 i386_use_watchpoints.
381 * i386-nat.c (i386_stopped_data_address): Take two arguments.
382 (i386_stopped_by_watchpoint): Update call.
383 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
384 * config/i386/nm-i386.h: Conditionalize definitions on
385 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
386 (i386_use_watchpoints): Declare.
387 (i386_stopped_data_address): Update.
388 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
389 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
390
391 2008-02-29 Joel Brobecker <brobecker@adacore.com>
392
393 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
394 * version.in: Bump version to 6.8.50.20080229-cvs.
395
396 2008-02-28 Markus Deuling <deuling@de.ibm.com>
397
398 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
399 properly.
400
401 2008-02-28 Tom Tromey <tromey@redhat.com>
402
403 * infcmd.c (notice_args_read): Print result of get_inferior_args.
404
405 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
406
407 * infcmd.c (kill_if_already_running): Make static. Use
408 target_require_runnable.
409 * target.c (target_require_runnable): New.
410 * target.h (target_require_runnable): Declare.
411
412 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
413
414 * frame.c (reinit_frame_cache): Only annotate if frames were
415 previously valid.
416
417 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
418
419 * regformats/reg-ppc.dat: Rename "ps" to "msr".
420 * regformats/reg-ppc64.dat: Likewise.
421
422 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
423
424 * features/Makefile (%.dat): Emit xmltarget statement.
425
426 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
427 Generate code to set gdbserver_xmltarget in init_registers_${name}.
428
429 * regformats/arm-with-iwmmxt.dat: Regenerate.
430 * regformats/mips64-linux.dat: Regenerate.
431 * regformats/mips-linux.dat: Regenerate.
432 * regformats/rs6000/powerpc-32.dat: Regenerate.
433 * regformats/rs6000/powerpc-64.dat: Regenerate.
434 * regformats/rs6000/powerpc-e500.dat: Regenerate.
435
436 * regformats/reg-arm.dat: Add xmlarch statement.
437 * regformats/reg-i386.dat: Likewise.
438 * regformats/reg-i386-linux.dat: Likewise.
439 * regformats/reg-x86-64-linux.dat: Likewise.
440 * regformats/reg-spu.dat: Likewise.
441
442 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
443
444 * remote.c (remote_wait, remote_async_wait): Stop if we receive
445 an error.
446
447 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
448
449 * utils.c (debug_timestamp): New.
450 (vfprintf_unfiltered): Print timestamps if requested.
451 (show_debug_timestamp): New.
452 (initialize_utils): Register "set debug timestamp".
453 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
454
455 2008-02-27 Joel Brobecker <brobecker@adacore.com>
456
457 * breakpoint.c (skip_prologue_sal): New function.
458 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
459 computed from a line number.
460
461 2008-02-27 Joel Brobecker <brobecker@adacore.com>
462
463 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
464 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
465 Set PC register type to "code_ptr".
466 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
467 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
468 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
469 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
470 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
471 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
472 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
473 Regenerate.
474
475 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
476
477 * regformats/regdat.sh: Rename init_registers function in
478 generated file to init_registers_${name}.
479
480 * regformats/reg-crisv32.dat: Set "name" to crisv32.
481 * regformats/reg-ppc64.dat: Set "name" to ppc64.
482 * regformats/reg-s390x.dat: Set "name" to s390x.
483
484 2008-02-26 Greg Law <glaw@undo-software.com>
485
486 * regcache.c (registers_changed): Call reinit_frame_cache.
487
488 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
489
490 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
491 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
492 and svr4_fetch_objfile_link_map.
493 * Makefile.in (sh-linux-tdep.o): Update.
494
495 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
496
497 * amd64-tdep.c (amd64_classify): Add support for decimal float
498 types.
499 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
500 use the struct return convention.
501
502 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
503
504 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
505 to old format. Discard breakpoint address if shared library is
506 unloaded.
507 (breakpoint_1): Adjust formatting of table header accordingly.
508
509 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
510
511 * remote.c (remote_get_threadlist): If the response
512 is empty, don't try to parse it.
513
514 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
515
516 Unbreak 'target async'.
517 * serial.c (serial_async): Set the
518 handler function before enabling async
519 mode.
520
521 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
522
523 * solib-svr4.c (enable_break): Convert r_brk to a code address.
524
525 2008-02-21 Pedro Alves <pedro@codesourcery.com>
526
527 * remote.c (extended_remote_attach_1): Set attach_flag.
528 (extended_remote_create_inferior_1): Clear attach_flag.
529
530 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
531
532 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
533 r_brk_offset.
534 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
535 * solib-svr4.c (solib_svr4_r_brk): New.
536 (open_symbol_file_object, svr4_current_sos): Always check the
537 debug base.
538 (svr4_fetch_objfile_link_map): Do not set debug_base.
539 (enable_break): Use r_brk if it is set.
540 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
541 (svr4_lp64_fetch_link_map_offsets): Likewise.
542 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
543
544 2008-02-20 Markus Deuling <deuling@de.ibm.com>
545 Mark Kettenis <kettenis@gnu.org>
546
547 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
548 trad_frame_saved_reg.
549 (trad-frame.h): New include.
550
551 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
552 instead of frame_obstack_zalloc.
553 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
554
555 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
556
557 2008-02-20 Markus Deuling <deuling@de.ibm.com>
558
559 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
560 from disassemble_info instead of gdbarch_byte_order.
561
562 * mips-tdep.c (gdb_print_insn_mips): Likewise.
563 * arm-tdep.c (gdb_print_insn_arm): Likewise.
564
565 2008-02-20 Markus Deuling <deuling@de.ibm.com>
566
567 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
568 gdbarch as parameter.
569
570 * gdbarch.{c,h}: Regenerate.
571
572 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
573 parameter.
574 * mem-break.c (default_memory_insert_breakpoint)
575 (default_memory_remove_breakpoint): Likewise.
576 * target.h (default_memory_remove_breakpoint)
577 (default_memory_insert_breakpoint): Likewise.
578
579 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
580 parameter. Replace current_gdbarch by gdbarch.
581 * m32r-tdep.c (m32r_memory_insert_breakpoint)
582 (m32r_memory_remove_breakpoint): Likewise.
583
584 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
585
586 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
587
588 2008-02-19 Joel Brobecker <brobecker@adacore.com>
589
590 * NEWS: Add entry describing Add support improvements.
591
592 2008-02-18 Markus Deuling <deuling@de.ibm.com>
593
594 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
595 M68K_FP0_REGNUM.
596
597 2008-02-18 Markus Deuling <deuling@de.ibm.com>
598
599 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
600 register_offset_hack anymore.
601
602 * regcache.{c,h} (register_offset_hack): Remove.
603
604 2008-02-18 Markus Deuling <deuling@de.ibm.com>
605
606 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
607
608 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
609 current_gdbarch by gdbarch.
610 (hppa64_hpux_find_global_pointer): Likewise.
611 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
612 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
613 find_global_pointer.
614
615 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
616 parameter.
617 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
618
619 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
620 of gdbarch_num_regs.
621
622 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
623 replace current_gdbarch by gdbarch.
624 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
625
626 2008-02-18 Markus Deuling <deuling@de.ibm.com>
627
628 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
629 and replace current_gdbarch by gdbarch.
630
631 (store_register): Update call for exec_one_dummy_insn.
632 (fetch_register, store_register): Update call of regmap.
633
634 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
635 parameter and replace current_gdbarch by gdbarch.
636
637 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
638 the current architecture. Update call for getregs_supplies and
639 getfpregs_supplies.
640 (ppcnbsd_fetch_inferior_registers): Likewise.
641
642 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
643 replace current_gdbarch by gdbarch.
644 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
645 get_regcache_arch to get at the current architecture. Update call for
646 getfpregs_supplies.
647
648 2008-02-18 Markus Deuling <deuling@de.ibm.com>
649
650 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
651 variables.
652
653 2008-02-15 Markus Deuling <deuling@de.ibm.com>
654
655 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
656
657 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
658
659 * NEWS: Mention pending breakpints in MI.
660
661 2008-02-14 Markus Deuling <deuling@de.ibm.com>
662
663 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
664
665 2008-02-13 Markus Deuling <deuling@de.ibm.com>
666
667 Add script to build and test GDB using enable-targets=all.
668
669 * gdb_buildall.sh: New file.
670
671 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
672
673 * NEWS (New native configurations): Xtensa GNU/Linux.
674 (New targets): Xtensa GNU/Linux.
675 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
676 xtensa-linux-tdep.o
677 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
678 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
679 * configure.tgt (xtensa*-*-linux*): New entry.
680 * xtensa-config.c (xtensa_tdep): New variable.
681 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
682 (rmap): Change format based on new macro XTREG.
683 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
684 * xtensa-linux-nat.c: New.
685 * xtensa-linux-tdep.c: New.
686 * xtensa-xtregs.c: New.
687 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
688 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
689 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
690 (xtensa_register_t): New field coprocessor.
691 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
692 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
693 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
694 Update to handle privileged registers.
695 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
696 (xtensa_push_dummy_call): Set windowstart register correctly.
697 (call0_analyze_prologue): Initialize xtensa_default_isa.
698 (xtensa_derive_tdep): New.
699 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
700 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
701 Call xtensa_derive_tdep().
702 * config/xtensa/linux.mh: New.
703 * regformats/reg-xtensa.dat: New.
704
705 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
706
707 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
708 (filenames.h): New include.
709 * Makefile.in (corelow.o): Add dependency for filenames.h.
710
711 2008-02-08 Doug Evans <dje@google.com>
712
713 * source.c (find_and_open_source): Always rewrite absolute filenames.
714
715 2008-02-07 Doug Evans <dje@google.com>
716
717 * breakpoint.c: #include "hashtab.h".
718 (ambiguous_names_p): New fn.
719 (update_breakpoint_locations): When restoring bp enable status, don't
720 compare function names if any functions have same name.
721 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
722
723 2008-02-07 Joel Brobecker <brobecker@adacore.com>
724
725 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
726 instead of just a VEC*. Update use of SV.
727 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
728
729 2007-02-07 Joel Brobecker <brobecker@adacore.com>
730
731 * NEWS: Put all new commands since gdb-6.7 together.
732
733 2007-02-07 Joel Brobecker <brobecker@adacore.com>
734
735 * ada-lang.c: #include "vec.h".
736 (struct string_vector, new_string_vector, string_vector_append):
737 Delete.
738 (char_ptr): New typedef.
739 (DEF_VEC_P (char_ptr)): New VEC type.
740 (symbol_completion_add): Update profile to take the new VEC type
741 instead of the old string_vector structure. Update code accordingly.
742 (ada_make_symbol_completion_list): Use the new VEC type instead of
743 the old string_vector structure, and update the code accordingly.
744 * Makefile.in (ada-lang.o): Add dependency on vec.h.
745
746 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
747
748 * p-exp.y: Set current_type in missing places.
749 (leftdiv_is_integer): New static variable.
750 Typecast right operand of BINOP_DIV to long_double if both operands
751 are integers.
752
753 2008-02-06 Maciej W. Rozycki <macro@mips.com>
754
755 * remote-mips.c (set_breakpoint): Rename to...
756 (mips_set_breakpoint): ... this.
757 (clear_breakpoint): Rename to...
758 (mips_clear_breakpoint): ... this.
759 (common_breakpoint): Rename to...
760 (mips_common_breakpoint): ... this.
761 (check_lsi_error): Rename to...
762 (mips_check_lsi_error): ... this.
763
764 2007-02-05 Joel Brobecker <brobecker@adacore.com>
765
766 * language.h (struct language_defn): Add new field
767 la_make_symbol_completion_list.
768 * symtab.c (default_make_symbol_completion_list): Renames
769 make_symbol_completion_list.
770 (make_symbol_completion_list): New function.
771 * symtab.h (default_make_symbol_completion_list): Add declaration.
772 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
773 (auto_language, local_language): Likewise.
774 * objc-lang.c (objc_language_defn): Likewise.
775 * scm-lang.c (scm_language_defn): Likewise.
776 * m2-lang.c (m2_language_defn): Likewise.
777 * f-lang.c (f_language_defn): Likewise.
778 * jv-lang.c (java_language_defn): Likewise.
779 * p-lang.c (pascal_language_defn): Likewise.
780 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
781 (minimal_language_defn): Likewise.
782 * ada-lang.c (struct string_vector): New structure.
783 (new_string_vector, string_vector_append, ada_unqualified_name)
784 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
785 (ada_make_symbol_completion_list): New functions.
786 (ada_language_defn): Set la_make_symbol_completion_list.
787 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
788 this function is static.
789
790 2008-02-05 Kevin Buettner <kevinb@redhat.com>
791
792 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
793 to account for call site optimizations.
794
795 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
796
797 * tracepoint.c (read_actions): Handle end-of-text indicator
798 in action list properly. (Committed by Jim Blandy)
799
800 2008-02-05 Jim Blandy <jimb@red-bean.com>
801
802 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
803 pseudoregister, not an internal error.
804 Reported by: Andrzej Zaborowski
805
806 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
807
808 * varobj.c (c_value_of_variable): Use xstrdup.
809
810 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
811
812 Update stored rendition of varobj value when format changes.
813 * varobj.c (varobj_set_display_format): Recomputed
814 print_value.
815 (c_value_of_variable): Return print_value.
816
817 2008-02-03 Doug Evans <dje@google.com>
818
819 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
820 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
821 * valops.c (value_one): New function.
822 * value.h (value_one): Declare.
823
824 Fix argument promotion for binary arithmetic ops for C.
825 * valarith.c (unop_result_type): New fn.
826 (binop_result_type): New fn.
827 (value_binop): Move result type computation to binop_result_type.
828 (value_pos, value_neg, value_complement): Move result type
829 computation to unop_result_type.
830
831 PR 2384
832 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
833 Return basetype, fieldno if found. All callers updated.
834 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
835 objfile.
836 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
837 * symfile.h (fill_in_vptr_fieldno): Delete.
838
839 2008-02-02 Doug Evans <dje@google.com>
840
841 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
842
843 * typeprint.c (*): Whitespace cleanup.
844
845 2008-02-02 Mark Kettenis <kettenis@gnu.org>
846 Luis Machado <luisgpm@br.ibm.com>
847 Thiago Jung Bauermann <bauerman@br.ibm.com>
848
849 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
850 don't fit into registerson the stack the way GCC does.
851
852 2008-02-01 Joel Brobecker <brobecker@adacore.com>
853
854 * symtab.c (symbol_set_names): Do not add an entry in the demangling
855 hash table for Ada symbols. Just store the linkage name as is,
856 and leave the demangled_name as NULL.
857
858 2007-02-01 Joel Brobecker <brobecker@adacore.com>
859
860 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
861 in the global scope.
862 (new_symbol): Likewise.
863
864 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
865
866 * breakpoint.c (break_command_1): Return void.
867 (break_command_really): Return void. Rethrow
868 exceptions instead of returning.
869 (gdb_breakpoint): Remove the error_message parameter.
870 Return void. Rename to set_breakpoint.
871 * gdb.h (gdb_breakpoint): Rename and move to...
872 * breakpoint.h (set_breakpoint): ...here.
873 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
874 event hooks even if exception is thrown. Adjust to
875 gdb_breakpoint interface changes.
876
877
878 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
879
880 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
881 float in both first and second word in the doubleword, to support
882 old and new ABIs.
883
884 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
885
886 Properly rethrow exception. This fixes errors
887 about non-existent functions for -break-insert.
888 * breakpoint.c (break_command_really): Use throw_exception
889 for rethrowing. If rethrowing, don't print the exception.
890
891 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
892
893 * NEWS: Mention Decimal Floating Point support.
894
895 2008-01-31 Joel Brobecker <brobecker@adacore.com>
896
897 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
898 value type to builtin_type_void_func_ptr.
899
900 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
901
902 * s390-tdep.c (is_float_singleton, is_float_like,
903 alignment_of, s390_return_value): Make checks for
904 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
905
906 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
907 Thiago Jung Bauermann <bauerman@br.ibm.com>
908
909 * infcmd.c (default_print_registers_info): Also print hex
910 raw contents for TYPE_CODE_DECFLOAT registers.
911 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
912 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
913 (rs6000_register_name): Add support for DFP pseudo-registers.
914 (rs6000_pseudo_register_type): Likewise.
915 rs6000_pseudo_register_reggroup_p): Likewise.
916 (ppc_pseudo_register_read): New function.
917 (ppc_pseudo_register_write): Likewise.
918 (rs6000_pseudo_register_read): Likewise.
919 (rs6000_pseudo_register_write): Likewise.
920 (e500_pseudo_register_read): Move checks to
921 rs6000_pseudo_register_read.
922 (e500_pseudo_register_write): Move checks to
923 rs6000_pseudo_register_write.
924 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
925 rs6000_pseudo_register_read and rs6000_pseudo_register_write
926 in gdbarch if SPE or DFP is available. Adjust gdbarch's
927 num_pseudo_regs to account for DFP pseudo regs.
928
929 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
930
931 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
932 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
933 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
934 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
935 e500_pseudo_register_read, e500_pseudo_register_write): Use
936 IS_SPE_PSEUDOREG macro.
937 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
938 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
939 Remove initialization of tdep->ppc_ev31_regnum.
940
941 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
942
943 * printcmd.c (print_formatted): Handle references as for unformatted
944 prints.
945
946 2008-01-30 Joel Brobecker <brobecker@adacore.com>
947
948 * eval.c (evaluate_subexp_standard): Add handling of user
949 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
950
951 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
952
953 * eval.c (evaluate_subexp_standard): Support
954 BINOP_INTDIV opcode.
955
956 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
957
958 * valarith.c (value_binop): Add floating-point BINOP_MIN and
959 BINOP_MAX cases.
960 For BINOP_EXP, use length and signedness of left operand only for
961 result, as for shifts.
962 For integral operands to BINOP_EXP, use new integer_pow and
963 uinteger_pow functions so as to get full range of results.
964 (integer_pow): New function.
965 (uinteger_pow): New function.
966
967 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
968
969 Use vector for varobj_list_children interface.
970 * gdb/varobj.c (varobj_list_children): Return vector
971 of varobjs.
972 * gdb/varobj.h (varobj_list_children): Adjust
973 prototype.
974 (varobj_p): Declare. Declare vector thereof.
975 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
976 for varobj_list_children change.
977 * Makefile.in (varobj_h): Update dependencies.
978
979 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
980
981 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
982 TYPE_CODE_DECFLOAT arguments.
983 (ppc64_sysv_abi_push_dummy_call) Likewise.
984 (get_decimal_float_return_value): New function.
985 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
986 values by calling get_decimal_float_return_value.
987 (ppc64_sysv_abi_return_value): Likewise.
988
989 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
990
991 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
992 for preprocessor macro information. Formatting changes.
993
994 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
995
996 * remote.c (struct remote_state): Add cached_wait_status.
997 (remote_exec_file): New variable.
998 (PACKET_vAttach, PACKET_vRun): New constants.
999 (extended_remote_restart): Do not query for status.
1000 (struct start_remote_args): New.
1001 (remote_start_remote): Take it as a second argument. Check
1002 whether the target is running. Issue an error for non-running
1003 non-extended targets. Cache the wait status. Set inferior_ptid
1004 here.
1005 (remote_open_1): Prompt to disconnect non-running targets. Make
1006 sure the target is marked running. Do not set inferior_ptid here.
1007 Update call to remote_start_remote. Do not call remote_check_symbols
1008 if the target is not running.
1009 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1010 argument. Handle a non-running target.
1011 (remote_detach): Use it.
1012 (extended_remote_detach): New.
1013 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1014 (extended_remote_attach_1, extended_remote_attach)
1015 (extended_async_remote_attach): New.
1016 (remote_vcont_resume): Remove unused variable.
1017 (remote_wait, remote_async_wait): Use any cached wait status.
1018 (putpkt_binary, getpkt): Clear any cached wait status.
1019 (extended_remoute_mourn_1): New.
1020 (extended_remote_mourn): Use it.
1021 (extended_async_remote_mourn, extended_remote_run): New.
1022 (extended_remote_create_inferior_1): New.
1023 (extended_remote_create_inferior): Use it.
1024 (extended_remote_async_create_inferior): Likewise.
1025 (remote_xfer_partial): Skip for non-executing targets.
1026 (init_extended_remote_ops): Set to_detach and to_attach.
1027 (init_extended_async_remote_ops): Likewise. Use
1028 extended_async_remote_mourn.
1029 (_initialize_remote): Register vAttach, vRun, and
1030 set remote exec-file.
1031 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1032
1033 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1034
1035 * Makefile.in (symfile.o): Update.
1036 * NEWS: Mention exec tracing support.
1037 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1038 exec events.
1039 * infcmd.c (kill_if_already_running, detach_command)
1040 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1041 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1042 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1043 targets. Apply the sysroot path to the loaded executable. Use
1044 no_shared_libraries.
1045 * linux-nat.c (linux_child_follow_fork): Print fork following
1046 messages if verbose.
1047 (kill_wait_callback): Kill again before waiting a second time.
1048 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1049 no_shared_libraries.
1050
1051 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1052
1053 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1054
1055 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1056
1057 * nto-tdep.h: Remove #include "defs.h".
1058 * nto-tdep.c: Add #include "defs.h".
1059 * Makefile.in (nto_tdep_h): Update dependencies.
1060 (nto-tdep.o): Likewise.
1061
1062 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1063
1064 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1065 and use it.
1066 (proceed, start_remote): Update call to wait_for_inferior.
1067 * inferior.h (wait_for_inferior): Update declaration.
1068 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1069 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1070 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1071 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1072
1073 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1074
1075 * varobj (adjust_value_for_child_access): Added checking for
1076 returned value from gdb_value_ind.
1077 (c_describe_child): Likewise.
1078 (cplus_describe_child): Fixed a typo.
1079
1080 2008-01-29 Jim Blandy <jimb@red-bean.com>
1081
1082 * MAINTAINERS: Update my info.
1083
1084 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1085
1086 Use multiple locations for hardware watchpoints.
1087 This eliminates the need to traverse value chain, doing
1088 various checks, in three different places.
1089
1090 * breakpoint.h (struct bp_location): New fields
1091 lengths and watchpoint_type.
1092 (struct breakpoint): Remove the val_chain field.
1093 * breakpoint.c (is_hardware_watchpoint): New.
1094 (free_valchain): Remove.
1095 (update_watchpoint): New.
1096 (insert_bp_location): For hardware watchpoint, just
1097 directly insert it.
1098 (insert_breakpoints): Call update_watchpoint_locations
1099 on all watchpoints. If we have failed to insert
1100 any location of a hardware watchpoint, remove all inserted
1101 locations.
1102 (remove_breakpoint): For hardware watchpoints, directly
1103 remove location.
1104 (watchpoints_triggered): Iterate over locations.
1105 (bpstat_stop_status): Use only first location of
1106 a resource watchpoint.
1107 (delete_breakpoint): Don't call free_valchain.
1108 (print_one_breakpoint): Don't print all
1109 locations for watchpoints.
1110 (breakpoint_re_set_one): Use update_watchpoint for
1111 watchpoints.
1112
1113 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1114
1115 Don't reset watchpoint block on solib load.
1116
1117 * breakpoint.c (insert_bp_location): For watchpoints,
1118 recompute condition.
1119 (breakpoint_re_set_one): Instead of recomputing value
1120 and condition for watchpoints, just reset value and
1121 let insert_breakpoints/insert_bp_location recompute it.
1122 Don't do anything about disabled watchpoint.
1123
1124 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1125
1126 * valarith.c (value_binop): Handle unsigned integer
1127 division by zero.
1128
1129 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1130
1131 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1132 instruction pattern that appears frequently in position
1133 independent code. Fix bug in code which looks for "fmov" and
1134 backtracks if no "fmov" is found.
1135
1136 2008-01-28 Doug Evans <dje@google.com>
1137
1138 * dbxread.c (read_dbx_symtab): Fix indentation.
1139 Reformat comments to 80 columns.
1140 Move local var def closer to only use.
1141
1142 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1143
1144 * fork-child.c (SHELL_FILE): Remove #ifndef.
1145 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1146
1147 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1148
1149 * i386-tdep.c (i386_skip_noop): New function.
1150 (i386_analyze_prologue): Call i386_skip_noop function.
1151
1152 2008-01-24 Michael Snyder <msnyder@specifix.com>
1153
1154 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1155 * win32-nat.c (win32_xfer_partial): Ditto.
1156 * target.c (default_xfer_partial): Minor whitespace adjustment.
1157
1158 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1159
1160 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1161 strip bit 1 even if pc doesn't point to thumb code.
1162
1163 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1164
1165 * remote.c (remote_wait): Handle SIGINT between packets.
1166 (remote_async_wait): Likewise.
1167
1168 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1169 Chris Demetriou <cgd@google.com>
1170
1171 * thread.c (add_thread_silent): Renamed
1172 from add_thread.
1173 (print_thread_events): New variable definition.
1174 (show_print_thread_events): New function.
1175 (_initialize_thread): Add "set print thread-events" and
1176 "show print thread-events" commands.
1177 (add_thread): Announce new thread.
1178 * gdbthread.h (add_thread_silent): Declare.
1179 (print_thread_events): New variable declaration.
1180 * inf-ttrace.c (inf_ttrace_wait): Don't
1181 inform about new thread, as add_thread is always
1182 called too, and will take care of that.
1183 * infrun.c (handle_inferior_event): Likewise.
1184 * procfs.c (procfs_wait): Likewise.
1185 * remote.c (remote_currthread): Likewise.
1186 * sol-thread.c (sol_thread_wait): Likewise.
1187 * win32-nat.c (get_win32_debug_event): Likewise.
1188 * linux-thread-db.c (attach_thread): Likewise.
1189 Remove the verbose parameter.
1190 (check_event): Make detach_thread be verbose
1191 only if print_thread_events is set.
1192 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1193 about new thread. This is called only from
1194 linux-thread-db.c:attach_thread, which will take care.
1195 Remove the verbose parameter.
1196 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1197
1198 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1199
1200 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1201
1202 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1203
1204 * breakpoint.c (break_command_really): New parameter
1205 ignore_count.
1206 (break_command_1): Pass 0 as
1207 ignore_count to break_command_really.
1208 (gdb_breakpoint): Pass ignore_count to
1209 break_command_really.
1210
1211 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1212
1213 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1214 sigcontext struct via pointer.
1215 (struct sigframe comment): Update to show new field `psc'.
1216
1217 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1218
1219 * infrun.c (handle_inferior_event): If
1220 we failed to remove breakpoints, error,
1221 don't try to increment PC by hand.
1222
1223 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1224
1225 Add NetBSD/hppa target and host support.
1226
1227 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1228 (hppabsd_gregset): Move to ...
1229 (hppabsd_regset_from_core_section): Rename
1230 hppaobsd_regset_from_core_section and move to ...
1231 (hppabsd_find_global_pointer): Update comment.
1232 (hppabsd_init_abi): Make global. Do not register
1233 hppabsd_regset_from_core_section.
1234 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1235 move to ...
1236 (_initialize_hppabsd_tdep): Move to ...
1237 * hppaobsd-tdep.c: ... here. New file.
1238 * hppnbsd-tdep.c: New file.
1239 * hppnbsd-nat.c: New file.
1240 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1241 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1242 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1243 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1244 * configure.host (hppa*-*-netbsd*): New entry.
1245 * configure.tgt (hppa*-*-netbsd*): New entry.
1246 (hppa*-*-openbsd*): Update.
1247 * NEWS (New native configuration): Mention NetBSD/hppa.
1248 (New targets): Mention NetBSD/hppa.
1249
1250 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1251
1252 * gdbarch.sh (function_list): Add new property bits_big_endian to
1253 gdbarch structure.
1254 * gdbarch.{c,h}: Regenerate.
1255
1256 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1257 gdbarch_bits_big_endian (comment).
1258 (unpack_field_as_long, modify_field): Likewise.
1259 * value.h: Likewise (comment).
1260 * valops.c (value_slice): Likewise.
1261 * valarith.c (value_subscript, value_bit_index): Likewise.
1262 * gdbtypes.h (field): Likewise (comment).
1263 * eval.c (evaluate_subexp_standard): Likewise.
1264 * dwarf2read.c (dwarf2_add_field): Likewise.
1265 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1266 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1267
1268 * defs.h (BITS_BIG_ENDIAN): Remove.
1269
1270 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1271
1272 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1273 function calls.
1274 * m2-exp.y (yylex): Likewise.
1275 * objc-exp.y (yylex): Likewise.
1276
1277 * defs.h (DEPRECATED_STREQN): Remove.
1278
1279 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1280
1281 * MAINTAINERS: Update my email address.
1282
1283 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1284
1285 * README: Mention gdbserver/README.
1286
1287 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1288
1289 * valarith.c (value_binop): Handle BINOP_INTDIV
1290 for unsigned and signed integers.
1291
1292 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1293
1294 * s390-tdep.c (s390_gdbarch_init): Set default long double
1295 type to 128-bit IEEE quad.
1296
1297 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1298
1299 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1300
1301 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1302
1303 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1304
1305 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1306 * value.c: All callers changed.
1307
1308 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1309
1310 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1311 DEPRECATED_STREQ by its expression.
1312 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1313 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1314 (scan_xcoff_symtab): Likewise.
1315 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1316 * f-lang.c (find_common_for_function): Likewise.
1317 * objc-exp.y (parse_number): Likewise.
1318
1319 * defs.h (DEPRECATED_STREQ): Remove.
1320
1321 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1322
1323 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1324 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1325 get_frame_arch to get at the current_architecture. Update AM33_MODE
1326 call.
1327 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1328 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1329 architecture.
1330 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1331
1332 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1333
1334 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1335 parameter.
1336 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1337
1338 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1339 current_gdbarch by gdbarch. Update caller.
1340
1341 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1342 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1343 the current architecture. Update calls of
1344 amd64_native_gregset_supplies_p.
1345 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1346 (amd64bsd_store_inferior_registers): Likewise.
1347
1348 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1349
1350 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1351 Replace current_gdbarch by gdbarch. Update caller.
1352
1353 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1354
1355 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1356 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1357 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1358 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1359 (stabsect_build_psymtabs): Fix indentation.
1360
1361 2008-01-15 Michael Snyder <msnyder@specifix.com>
1362
1363 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1364
1365 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1366
1367 * win32-nat.c (win32_create_inferior): Restore code calling
1368 CloseHandle on ProcessInformation structure.
1369
1370 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1371
1372 * configure.ac: Check for void * as 3 argument of ptrace.
1373 * configure: regenerate.
1374
1375 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1376
1377 * alpha-tdep.c (alpha_heuristic_proc_start)
1378 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1379 current_gdbarch by gdbarch.
1380
1381 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1382 current architecture by frame_info. Update alpha_heuristic_proc_start
1383 call.
1384
1385 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1386 get_frame_arch to get at the current architecture by frame_info. Update
1387 alpha_sigtramp_register_address call.
1388
1389 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1390 current_gdbarch by gdbarch. Update caller.
1391 (convert_to_extended, convert_from_extended): Add endianess parameter
1392 for comparison. Update caller.
1393 (arm_extract_return_value, arm_store_return_value): Use
1394 get_regcache_arch to get at the current architecture.
1395
1396 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1397 current_gdbarch by gdbarch. Update caller.
1398 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1399 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1400
1401 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1402 gdbarch as parameter. Update caller.
1403 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1404 current_gdbarch by gdbarch. Update caller.
1405
1406 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1407 update caller. Replace current_gdbarch by gdbarch.
1408
1409 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1410 the current architecture. Replace current_gdbarch by gdbarch.
1411 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1412 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1413 expression. Add gdbarch as parameter and replace current_gdbarch with
1414 it. Update caller.
1415 (M6811_TDEP): Remove.
1416 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1417 architecture.
1418 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1419 current_gdbarch by gdbarch. Update caller.
1420
1421 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1422 update caller.
1423 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1424 by gdbarch.
1425
1426 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1427 caller. Relace current_gdbarch by gdbarch.
1428 (altivec_register_p, spe_register_p): Likewise.
1429 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1430 parameter.
1431 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1432 altivec_register_p and spe_register_p.
1433
1434 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1435 caller. Replace current_gdbarch by gdbarch.
1436 (score_analyze_prologue): use get_frame_arch to get at the current
1437 architecture.
1438
1439 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1440 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1441 current_gdbarch by gdbarch. Update caller.
1442 (sparc_frame_cache): Use get_frame_arch to get at the current
1443 architecture.
1444 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1445 sparc_analyze_prologue.
1446
1447 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1448 parameter.
1449
1450 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1451
1452 * exec.c: #include "arch-utils.h"
1453 (print_section_info): Use gdbarch_from_bfd to get at the
1454 current architecture. Replace current_gdbarch. Fix indention. Replace
1455 deprecated_print_address_numeric by paddress.
1456 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1457
1458 * valprint.c (val_print_string): Replace
1459 deprecated_print_address_numeric.
1460 * tracepoint.c (trace_mention, scope_info): Likewise.
1461 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1462 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1463 (maintenance_check_symtabs): Likewise.
1464 * symfile.c (list_overlays_command): Likewise.
1465 * stack.c (frame_info, print_block_frame_labels): Likewise.
1466 * printcmd.c (print_address, print_address_demangle)
1467 (address_info): Likewise.
1468 * corefile.c (memory_error): Likewise.
1469 * infcmd.c (jump_command): Likewise.
1470 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1471 (mention, delete_breakpoint): Likewise.
1472 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1473 * dwarf2read.c (dump_die): Likewise.
1474 * ada-valprint.c (ada_val_print_1): Likewise.
1475 * f-valprint.c (f_val_print): Likewise.
1476 * linux-fork.c (info_forks_command): Likewise.
1477 * m32r-com.c (m32r_load_section, m32r_load)
1478 (m32r_upload_command): Likewise.
1479
1480 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1481
1482 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1483
1484 * gdbarch.sh (skip_prologue): Add gdbarch
1485 as parameter.
1486 * gdbarch.{c,h}: Regenerate.
1487
1488 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1489 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1490 * avr-tdep.c (avr_skip_prologue): Likewise.
1491 * cris-tdep.c (cris_skip_prologue): Likewise.
1492 * frv-tdep.c (frv_skip_prologue): Likewise.
1493 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1494 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1495 * i386-tdep.c (i386_skip_prologue): Likewise.
1496 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1497 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1498 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1499 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1500 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1501 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1502 * mep-tdep.c (mep_skip_prologue): Likewise.
1503 * mips-tdep.c (mips_skip_prologue): Likewise.
1504 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1505 * mt-tdep.c (mt_skip_prologue): Likewise.
1506 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1507 * score-tdep.c (score_skip_prologue): Likewise.
1508 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1509 * sh-tdep.c (sh_skip_prologue): Likewise.
1510 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1511 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1512 * spu-tdep.c (spu_skip_prologue): Likewise.
1513 * v850-tdep.c (v850_skip_prologue): Likewise.
1514 * vax-tdep.c (vax_skip_prologue): Likewise.
1515 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1516 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1517
1518 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1519 current_gdbarch by gdbarch.
1520 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1521 * s390-tdep.c (s390_skip_prologue): Likewise.
1522
1523 2008-01-10 Doug Evans <dje@google.com>
1524
1525 * defs.h (struct continuation_arg): Fix typo in comment.
1526 * target.c (target_translate_tls_address): Fix comment spelling error.
1527
1528 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1529
1530 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1531 (DOUBLEST_SCAN_FORMAT): Likewise.
1532 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1533 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1534 * c-exp.y (parse_number): Likewise.
1535 * jv-exp.y (parse_number): Likewise.
1536 * objc-exp.y (parse_number): Likewise.
1537 * p-exp.y (parse_number): Likewise.
1538
1539 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1540
1541 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1542 (check_typedef): Likewise.
1543
1544 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1545
1546 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1547 seen_double_big_d, treat the new H, D, and DD modifiers as length
1548 modifiers.
1549
1550 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1551
1552 * dwarf2read.c (read_enumeration_type): Add comment.
1553
1554 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1555
1556 * config.in: Regenerate.
1557
1558 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1559
1560 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1561 Make non-static.
1562 (ada_convert_actuals): Delete.
1563 * ada-lang.h (ada_convert_actual): Add declaration.
1564 (ada_convert_actuals): Remove declaration.
1565 * infcall.c: #include "ada-lang.h".
1566 (value_arg_coerce): Add new parameter sp. Update function
1567 documetnation. Add handling of Ada function call parameters.
1568 * Makefile.in (infcall.o): Update dependencies.
1569
1570 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1571
1572 * ada-lang.c (ensure_lval): Fix value lval kind.
1573 (convert_actual): Add handling for arguments passed by reference.
1574
1575 2008-01-08 Doug Evans <dje@google.com>
1576
1577 * dbxread.c (read_dbx_symtab): Fix indentation.
1578
1579 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1580
1581 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1582 (valarith.o): Depend on dfp.h.
1583 (valops.o): Likewise.
1584 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1585 (set_decnumber_context): New function.
1586 (decimal_check_errors): Likewise.
1587 (decimal_from_number): Likewise.
1588 (decimal_to_number): Likewise.
1589 (decimal_from_string): Use set_decnumber_context and
1590 decimal_check_errors.
1591 (decimal_from_integral): New function.
1592 (decimal_from_floating): Likewise.
1593 (decimal_to_double): Likewise.
1594 (promote_decimal): Likewise.
1595 (decimal_binop): Likewise.
1596 (decimal_is_zero): Likewise.
1597 (decimal_compare): Likewise.
1598 (decimal_convert): Likewise.
1599 * dfp.h (decimal_from_integral): New prototype.
1600 (decimal_from_floating): Likewise.
1601 (decimal_to_double): Likewise.
1602 (decimal_binop): Likewise.
1603 (decimal_is_zero): Likewise.
1604 (decimal_compare): Likewise.
1605 (decimal_convert): Likewise.
1606 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1607 call to value_from_decfloat.
1608 * valarith.c: Include dfp.h.
1609 (value_args_as_decimal): New function.
1610 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1611 (value_logical_not): Likewise.
1612 (value_equal): Likewise.
1613 (value_less): Likewise.
1614 (value_pos): Likewise.
1615 (value_neg): Formatting fix.
1616 * valops.c: Include dfp.h.
1617 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1618 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1619 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1620 (value_from_decfloat): Remove expect_type argument.
1621 * value.h (value_from_decfloat): Update prototype.
1622
1623 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1624
1625 Ignore change in name of dynamic linker during
1626 execution on Solaris. This also unbreaks pending breakpoints.
1627
1628 * solist.h (struct target_so_ops): New field same.
1629 * solib-svr4.c (svr4_same): New.
1630 (_initialize_svr4_solib): Register svr4_same.
1631 * solib.c (update_solib_list): Use ops->same, if available.
1632
1633 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1634
1635 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1636 when using MS-DOS paths.
1637
1638 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1639
1640 * NEWS: Mention --pid and --core command line behaviour changes.
1641
1642 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1643
1644 * main.c (captured_main): Remove 'count' varible and the
1645 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1646 --pid options were issued simultaneously. If an explicit pid
1647 option was passed, don't fallback to core file. Detect extra
1648 arguments better in the presence of explicit pid or core
1649 arguments.
1650
1651 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1652
1653 * ada-lang.c (ada_which_variant_applies): Correctly compute
1654 the value of the discriminant when the variant record is packed.
1655
1656 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1657
1658 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1659 that are used to differentiate homonyms.
1660
1661 2008-01-04 Jerome Guitton <guitton@adacore.com>
1662
1663 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1664 when the type is an anonymous pointer type.
1665 (ada_check_typedef): Avoid a seg fault when the type is null.
1666 * ada-typeprint.c (print_array_type): Add support for pointer
1667 to packed arrays.
1668
1669 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1670
1671 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1672
1673 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1674
1675 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1676 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1677
1678 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-exp.y (chop_separator): New function.
1681 (write_selectors): Rewrite to re-use chop_separator.
1682 (ada_nget_field_index, get_symbol_field_type): New functions.
1683 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1684 expressions.
1685
1686 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1687
1688 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1689 of SYMBOL_VALUE when working with function symbols.
1690
1691 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1692
1693 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1694 expressions. These expressions do not need to be rewriten.
1695
1696 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1697
1698 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1699 the given die is a declaration.
1700
1701 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1702
1703 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1704 Handle properly the case when the index type is an enumerated type.
1705 Do not return the subtype of the bounds type, just return the
1706 bounds type directly - this is not needed and is more consistent
1707 with what we do for arrays when no XA parallel type exists.
1708
1709 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1710
1711 * ada-lang.c (static_unwrap_type): Add forward declaration.
1712 (template_to_static_fixed_type): Fields of dynamic types sometimes
1713 also need to be unwrapped. Take this into account.
1714 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1715 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1716 * ada-typeprint.c (ada_print_type): Get the typename from
1717 the original type, not the base type.
1718
1719 2008-01-03 Jerome Guitton <guitton@adacore.com>
1720
1721 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1722 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1723 Update calls to ada_to_fixed_type.
1724 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1725 for the tag.
1726 (ada_to_fixed_type): Add check_tag parameter; do not look for
1727 tag if null. When looking for a tag, use a fixed record type.
1728 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1729 * ada-valprint.c (printable_val_type, ada_value_print): Update
1730 calls to ada_to_fixed_type.
1731
1732 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1733
1734 * doublest.c (convert_floatformat_to_doublest): Call
1735 floatformat_to_doublest instead of floatformat_to_double and use
1736 DOUBLEST variables.
1737 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1738 instead of floatformat_from_double and use DOUBLEST variables.
1739
1740 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1741
1742 * MAINTAINERS (Write After Approval): Add self.
1743
1744 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1745
1746 * symfile.c (set_initial_language): Make non-static.
1747 * symfile.h (set_initial_language): Add declaration.
1748 * language.c: #include "symfile.h".
1749 (set_language): Call set_initial_language if the frame language
1750 could not be determined.
1751
1752 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1753
1754 * eval.c (evaluate_subexp_for_address): Provide frame address to
1755 locate_var_value only if it will be needed.
1756
1757 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1760
1761 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1762
1763 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1764 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1765 This is needed to make sure that any other treatment applied
1766 to the resulting value does not fail for spurious reason,
1767 such as trying to take the address of this value.
1768
1769 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1770
1771 * ada-lang.c (ada_value_equal): Dereference reference types when
1772 comparing arrays.
1773
1774 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1775
1776 Updated copyright notices for most files.
1777
1778 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1779
1780 * win32-nat.c (psapi_module_handle): Remove static.
1781 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1782 return first module found if base_address is zero. Don't initialize
1783 psapi function pointers here. Convert to cygwin paths when
1784 appropriate.
1785 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1786 executable name. Use get_module_name when that fails or when
1787 !__CYGWIN__.
1788 (_initialize_psapi): New function. Initialize psapi stuff before it is
1789 needed or issue a warning if it is not found. Move psapi_module_handle
1790 here.
1791
1792 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1793
1794 * ada-lang.c (ada_remove_trailing_digits): New function.
1795 (ada_remove_po_subprogram_suffix): New function.
1796 (ada_decode): Improve. Move the description of the algorithm
1797 directly inside the code, instead of in the function global
1798 description.
1799
1800 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1801
1802 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1803 and always print the dereferenced value.
1804
1805 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1806
1807 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1808 of the case where the first argument is a reference.
1809 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1810
1811 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1812
1813 Implement support for Ada interface types.
1814
1815 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1816 (ada_is_ignored_field): Ignore fields that are a dispatch table
1817 of a tagged type.
1818
1819 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1820
1821 * top.c (print_gdb_version): Update copyright year.
1822
1823 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1824
1825 * ChangeLog-2007: New ChangeLog rotation.
1826 * ChangeLog: Reset for 2008.
1827 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1828 ChangeLog-2007.
1829
1830 For older changes see ChangeLog-2007.
1831 \f
1832 Local Variables:
1833 mode: change-log
1834 left-margin: 8
1835 fill-column: 74
1836 version-control: never
1837 coding: utf-8
1838 End: