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