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