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