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