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