* target-descriptions.h (struct type): Do not declare.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ad068eab
UW
12009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * target-descriptions.h (struct type): Do not declare.
4 (struct tdesc_type): Declare.
5 (tdesc_named_type): Change return type to struct tdesc_type *.
6 (tdesc_record_type): Remove.
7 (tdesc_create_vector): Add prototype.
8 (tdesc_create_union): Likewise.
9 (tdesc_add_field): Likewise.
10
11 * target-descriptions.c (struct tdesc_reg): Replace gdb_type
12 member by tdesc_type member.
13 (struct tdesc_type_field, tdesc_type_field): Add type and vector def.
14 (struct tdesc_type, tdesc_type_p): Likewise.
15 (struct tdesc_arch_reg, tdesc_arch_reg): Likewise.
16 (struct tdesc_feature): Change type of "types" to VEC(tdesc_type_p).
17 (struct tdesc_arch_data): Replace registers member by arch_regs.
18
19 (tdesc_predefined_types): Change to array of pre-defined
20 struct tdesc_type structures. Add "code_ptr" and "data_ptr".
21 (tdesc_named_type): Return struct tdesc_type * instead of GDB type.
22 (tdesc_gdb_type): New function.
23
24 (target_find_description): Update for data structure changes.
25 (tdesc_data_cleanup): Likewise.
26 (tdesc_numbered_register): Likewise.
27 (tdesc_use_registers): Likewise.
28 (tdesc_create_reg): Likewise.
29
30 (tdesc_find_arch_register): New function.
31 (tdesc_find_register): Use it.
32 (tdesc_register_type): Use tdesc_gdb_type to generate GDB type from
33 tdesc_type on demand; cache generated types in tdesc_arch_reg.
34
35 (tdesc_free_type): New function.
36 (tdesc_free_feature): Call it.
37
38 (tdesc_create_vector): New function.
39 (tdesc_create_union): Likewise.
40 (tdesc_add_field): Likewise.
41 (tdesc_record_type): Remove.
42
43 (tdesc_type_id): Remove.
44 (maint_print_c_tdesc_cmd): Update for data structure changes. Update
45 generated code to create tdesc_type structures instead of GDB types.
46
47 * xml-tdesc.c: Do not include "gdbtypes.h".
48 (struct tdesc_parsing_data): Change type of current_union to
49 struct tdesc_type *.
50 (tdesc_start_reg): Do not special-case "code_ptr" or "data_ptr".
51 (tdesc_start_union): Call tdesc_create_union.
52 (tdesc_start_field): Call tdesc_add_field.
53 (tdesc_start_vector): Call tdesc_create_vector.
54 (tdesc_end_union): Remove.
55 (feature_children): Remove reference to tdesc_end_union.
56
57 * features/arm-with-iwmmxt.c: Regenerate.
58 * features/mips-linux.c: Regenerate.
59 * features/mips64-linux.c: Regenerate.
60 * features/rs6000/powerpc-32.c: Regenerate.
61 * features/rs6000/powerpc-32l.c: Regenerate.
62 * features/rs6000/powerpc-403.c: Regenerate.
63 * features/rs6000/powerpc-403gc.c: Regenerate.
64 * features/rs6000/powerpc-505.c: Regenerate.
65 * features/rs6000/powerpc-601.c: Regenerate.
66 * features/rs6000/powerpc-602.c: Regenerate.
67 * features/rs6000/powerpc-603.c: Regenerate.
68 * features/rs6000/powerpc-604.c: Regenerate.
69 * features/rs6000/powerpc-64.c: Regenerate.
70 * features/rs6000/powerpc-64l.c: Regenerate.
71 * features/rs6000/powerpc-7400.c: Regenerate.
72 * features/rs6000/powerpc-750.c: Regenerate.
73 * features/rs6000/powerpc-860.c: Regenerate.
74 * features/rs6000/powerpc-altivec32.c: Regenerate.
75 * features/rs6000/powerpc-altivec32l.c: Regenerate.
76 * features/rs6000/powerpc-altivec64.c: Regenerate.
77 * features/rs6000/powerpc-altivec64l.c: Regenerate.
78 * features/rs6000/powerpc-e500.c: Regenerate.
79 * features/rs6000/powerpc-e500l.c: Regenerate.
80 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
81 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
82 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
83 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
84 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
85 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
86 * features/rs6000/powerpc-vsx32.c: Regenerate.
87 * features/rs6000/powerpc-vsx32l.c: Regenerate.
88 * features/rs6000/powerpc-vsx64.c: Regenerate.
89 * features/rs6000/powerpc-vsx64l.c: Regenerate.
90 * features/rs6000/rs6000.c: Regenerate.
91
284614f0
JB
922009-06-23 Joel Brobecker <brobecker@adacore.com>
93
94 * ada-lang.c (decode_packed_array): If the value is a pointer to
95 an array, then use value_ind to dereference it, not ada_value_ind.
96 (ada_template_to_fixed_record_type_1): Handle the case where a
97 dynamic field is an aligner type.
98 (to_fixed_array_type): Add handling for packed array types.
99 (ada_get_base_type): Do not follow the XVS type if the type is
100 an aligner type.
101 (ada_evaluate_subexp): Split a few statements up for clarity
102 and debuggability.
103 <OP_FUNCALL>: Add handling of the case of a packed array that
104 has already been fixed.
105
4b27a620
JB
1062009-06-23 Joel Brobecker <brobecker@adacore.com>
107
108 * ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
109 (evaluate_subexp_type): Reimplement using evaluate_subexp.
110 * value.h (evaluate_subexp): Add declaration.
111 * eval.c (evaluate_subexp): Make non-static.
112 * objc-lang.c (print_object_command): Use evaluate_subexp.
113
69de3c6a
PP
1142009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
115
116 Revert 2009-05-14 breakpoint commit (no longer needed).
117 * breakpoint.h (breakpoint_re_set_objfile): Remove
118 * breakpoint.c (breakpoint_re_set_objfile): Likewise
119 (create_overlay_event_breakpoint): Remove objfile parameter,
120 iterate over all objfiles.
121 * objfiles.c (objfile_relocate): Update.
122 * symfile.c (new_symfile_objfile): Likewise.
123
85e306ed
TT
1242009-06-23 Tom Tromey <tromey@redhat.com>
125
126 PR gdb/10309:
127 * c-lang.c (classify_type): Iterate over typedefs.
128 * c-valprint.c (textual_element_type): Iterate over typedefs.
129
07e7f39f
JK
1302009-06-22 Jan Kratochvil <jan.kratochvil@redhat.com>
131
132 PR gdb/9988:
133 * buildsym.c (block_compar): New function.
134 (end_symtab): Replace the bubble sort by a qsort based code.
135
1362009-06-22 Sami Wagiaalla <swagiaal@redhat.com>
f667014e
SW
137
138 * MAINTAINERS (Write After Approval): Add self.
139
6e3f70d7
UW
1402009-06-22 Ulrich Weigand <uweigand@de.ibm.com>
141
142 * spu-tdep.c (spu_get_longjmp_target): New function.
143 (spu_gdbarch_init): Install it.
144
df4b58fe
L
1452009-06-22 H.J. Lu <hongjiu.lu@intel.com>
146
147 PR server/10306
148 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
149
a49f981f
MS
1502009-06-21 Michael Snyder <msnyder@vmware.com>
151
152 * inferior.h: Update ancient comment.
153
0763ab81
PA
1542009-06-20 Aleksandar Ristovski <aristovski@qnx.com>
155 Pedro Alves <pedro@codesourcery.com>
156
157 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Avoid dereferencing
158 NULL pointer.
159 (scan_dyntag): Skip if input bfd isn't elf flavoured.
160 (locate_base): Call elf_locate_base even without an exec_bfd.
161
5d2c29b8
TT
1622009-06-19 Samuel Bronson <naesten@gmail.com>
163
121e16b5 164 PR cli/9903:
5d2c29b8
TT
165 * cli/cli-decode.c (apropos_cmd): Skip traversing abbreviations
166 for prefix commands to avoid duplicates in the output.
167
4a98be19
TT
1682009-06-19 Samuel Bronson <naesten@gmail.com>
169
121e16b5 170 PR cli/9903:
4a98be19
TT
171 * cli/cli-decode.c (apropos_cmd): Fix avoidance of double
172 printing.
173
3daf8fe5
JG
1742009-06-19 Jerome Guitton <guitton@adacore.com>
175
176 * breakpoint.c (expand_line_sal_maybe): When explicit_line,
177 skip prologue on each sals.
178 (skip_prologue_sal): Return explicit_line and explicit_pc
179 unmodified.
180
bb00b29d
TG
1812009-06-19 Tristan Gingold <gingold@adacore.com>
182
8e54f210
TG
183 * darwin-nat.c (_initialize_darwin_inferior): Remove commented-out
184 line.
185
1862009-06-19 Tristan Gingold <gingold@adacore.com>
bb00b29d
TG
187 * machoread.c (macho_symtab_read): Adjust for bfd changes.
188 * darwin-nat.h (struct darwin_exception_msg): New type to describe
189 a mach exception.
190 (struct private_thread_info): New type to describe the state of the
191 thread.
192 (DEF_VEC_I thread_t): Removed, replaced by ...
193 (DEF_VEC_O darwin_thread_t): ... this new type.
194 (struct darwin_inferior): Renamed to ...
195 (struct private_inferior): ... this type. Fields added.
196 (darwin_not_port): Moved into the private inferior structure.
197 * darwin-nat.c: Add includes, improve comments.
198 Rewrite to handle multiple threads and processes.
199 (darwin_resume_to): New function and protype.
200 (darwin_resume, darwin_wait_to, darwin_wait): Ditto.
201 (darwin_kill_inferior): Add ops argument.
202 (darwin_pid_to_str): New function.
203 (darwin_thread_alive): Ditto.
204 (darwin_inf, darwin_not_port): Removed.
205 (darwin_inf_fake_stop): New variable.
206 (msgin, msgout, msg_state, exc_msg): Removed.
207 (mach_check_error): Use warning instead of error.
208 (darwin_ptrace): Adjust debug level.
209 (cmp_thread_t): Fix names (typo).
210 (darwin_check_new_threads): Argument is now an inferior,
211 adjust for new structures, add no change check, ignore dead ports,
212 handle first thread case.
213 (find_inferior_task_it): New function.
214 (find_inferior_notify_it): Ditto.
215 (darwin_find_inferior_by_task): Ditto.
216 (darwin_find_inferior_by_notify): Ditto.
217 (darwin_find_thread): Ditto.
218 (darwin_suspend_inferior): Ditto.
219 (darwin_resume_inferior): Ditto.
220 (catch_exception_raise_state): Removed.
221 (catch_exception_raise_state_identity): Removed.
222 (darwin_suspend_inferior_it): New function.
223 (darwin_resume_inferior_it): Ditto.
224 (darwin_dump_message): New function, extracted from darwin_wait.
225 (darwin_decode_exception_message): New function.
226 (darwin_encode_reply): New function.
227 (catch_exception_raise): Removed.
228 (darwin_send_reply): New function, extracted from darwin_resume.
229 (darwin_resume_thread): New function, extracted from darwin_resume.
230 (struct resume_inferior_threads_param): New type.
231 (darwin_resume_inferior_threads_it): New function.
232 (darwin_resume_inferior_threads): New function.
233 (darwin_suspend_inferior_threads): New function.
234 (darwin_resume): Mostly rewritten to handle multiple threads and
235 some corner cases.
236 (darwin_decode_message): New function extracted from darwin_wait.
237 (cancel_breakpoint): New function.
238 (darwin_wait): Mostly rewritten. Handle multiple threads.
239 (darwin_mourn_inferior): Adjust for per process structures.
240 (darwin_reply_to_all_pending_messages): New function.
241 (darwin_stop_inferior): Adjust for per inferior structures.
242 (darwin_attach_pid): Ditto.
243 (darwin_init_thread_list): Ditto.
244 (darwin_attach): Ditto.
245 (darwin_detach): Ditto.
246 (darwin_files_info): Now empty.
247 (darwin_pid_to_str): Adjust returns string to match one expected by
248 the testsuite.
249 (darwin_read_write_inferior): Rename err variable to match other uses.
250 Adjust debug message. Handle submaps.
251 (darwin_xfer_memory): Adjust for per inferior structures.
252 (set_enable_mach_exceptions): Ditto.
253 (darwin_pid_to_exec_file): New function.
254 (darwin_get_ada_task_ptid): Ditto.
255 (darwin_supports_multi_process): Ditto.
256 (_initialize_darwin_inferior): Remove useless assertion, adjust for
257 per inferior structures. Add new target operations.
258
31410e84
MS
2592009-06-18 Hui Zhu <teawater@gmail.com>
260 Michael Snyder <msnyder@vmware.com>
261
262 * infrun.c (handle_inferior_event): Improve reverse stepping
263 through function epilogue.
264
6373d119
MS
265 * infrun.c (handle_inferior_event): Reverse-next through
266 trampoline.
267
c098b58b
PP
2682009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
269
270 * dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
271 dwarf_frame_size.
272
affddf13
TT
2732009-06-17 Tom Tromey <tromey@redhat.com>
274
275 * dwarf2read.c (zlib_decompress_section): Use a cleanup.
276
9898f801
UW
2772009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
278
279 * gdbarch.sh (pointer_to_address): Change to type 'm'.
280 (address_to_pointer): Likewise.
281 * gdbarch.c, gdbarch.h: Regenerate.
282
283 * inferior.h (unsigned_pointer_to_address): Add GDBARCH argument.
284 (signed_pointer_to_address): Likewise.
285 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
286 * findvar.c (unsigned_pointer_to_address): Likewise.
287 (signed_pointer_to_address): Likewise.
288 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
289
290 * avr-tdep.c (avr_address_to_pointer): Likewise.
291 (avr_pointer_to_address): Likewise.
292 * iq2000-tdep.c (iq2000_pointer_to_address): Likewise.
293 (iq2000_address_to_pointer): Likewise.
294 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
295 (m32c_m16c_pointer_to_address): Likewise.
296 * spu-tdep.c (spu_pointer_to_address): Likewise.
297 * xstormy16-tdep.c (xstormy16_pointer_to_address): Likewise.
298 (xstormy16_address_to_pointer): Likewise.
299
1fac167a
UW
3002009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
301
302 * printcmd.c (print_scalar_formatted): Always truncate
303 unsigned data types.
304
305 * cli-dump.c (struct callback_data): Change type of load_offset
306 to CORE_ADDR.
307 (restore_binary_file): Update type casts.
308 (restore_command): Parse load_offset as address, not long.
309
310 * utils.c (string_to_core_addr): Do not sign-extend value.
311 * varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
312 before comparing against requested frame address.
313
a78c2d62
UW
3142009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
315
316 * gdbarch.sh (gcore_bfd_target): New gdbarch callback.
317 * gdbarch.h, gdbarch.c: Regenerate.
318
319 * gcore.c (default_gcore_target): Make return value const.
320 Call gdbarch_gcore_bfd_target if present.
321 (default_gcore_arch, default_gcore_mach): Use target_gdbarch.
322
323 * corelow.c (core_read_description): Call gdbarch_core_read_description
324 on core_gdbarch instead of current_gdbarch.
325
326 * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
327
3b7538c0
UW
3282009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
329
330 * gdbtypes.c (create_string_type): Receive character type as argument.
331 * gdbtypes.h (create_string_type): Add character type argument.
332 * dwarf2read.c (read_tag_string_type): Pass character type to
333 create_string_type.
334
335 * value.h (value_string): Add character type argument.
336 * valops.c (value_string): Add character type argument. Pass it to
337 create_string_type. Do not allocate space in inferior.
338 * valarith.c (value_concat): Pass character type to value_string.
339
340 * value.h (value_typed_string): Rename to ...
341 (value_cstring): ... this.
342 * valops.c (value_typed_string): Rename to ...
343 (value_cstring): ... this.
344 * c-lang.c (evaluate_subexp_c): Update.
345
346 * python/python-value.c (builtin_type_pychar): New define.
347 (convert_value_from_python): Call value_cstring instead
348 of value_from_string.
349 * value.c (value_from_string): Remove.
350 * value.h (value_from_string): Remove.
351
352 * eval.c (evaluate_subexp_standard): Pass character type to
353 value_string. Pass expression architecture to value_nsstring
354 and lookup_child_selector.
355 * objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
356 (lookup_child_selector): Likewise.
357 (value_nsstring): Likewise.
358 * objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
359 Pass character type to value_string..
360 (lookup_child_selector): Likewise.
361 (value_nsstring): Add GDBARCH parameter, use it instead of
362 objfile architecture. Pass architecture to lookup_objc_class
363 and lookup_child_selector. Pass character type to value_string.
364 (end_msglist): Pass architecture to lookup_objc_class.
365 * objc-exp.y: Pass architecture to lookup_objc_class.
366
e6c014f2
UW
3672009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
368
369 * gdbtypes.h (struct language_defn): Add forward declaration.
370 (lookup_typename): Add LANGUAGE and GDBARCH parameters.
371 (lookup_unsigned_typename): Likewise.
372 (lookup_signed_typename): Likewise.
373 * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
374 Use them instead of current_language and current_gdbarch.
375 (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
376 Pass them to lookup_typename.
377 (lookup_signed_typename): Likewise.
378
379 * c-exp.y: Pass parse_language and parse_gdbarch to
380 lookup_unsigned_typename and lookup_signed_typename.
381 * objc-exp.y: Likewise.
382 * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
383
384 * c-lang.c (evaluate_subexp_c): Pass expression language and
385 gdbarch to lookup_typename.
386 * printcmd.c (printf_command): Pass current language and
387 gdbarch to lookup_typename.
388 * python/python-type.c (typy_lookup_typename): Likewise.
389 Include "language.h".
390
ec22ec34
UW
3912009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
392
393 * sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
394 Use it instead of current_gdbarch. Pass architecture to
395 sparc32_gregset_supplies_p.
396 (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead
397 of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p.
398 * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p,
399 sparc64nbsd_fpregset_supplies_p): Likewise.
400 * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p):
401 Add GDBARCH parameter.
402 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
403 (sparc_fetch_inferior_registers): Pass regcache architecture to
404 sparc_gregset_supplies_p and sparc_fpregset_supplies_p.
405 (sparc_store_inferior_registers): Likewise.
406 * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p:
407 Add GDBARCH parameter.
408 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
409
a97b0ac8
UW
4102009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
411
412 * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
413 of current_gdbarch.
414 * aix-thread.c (pd_enable): Likewise.
415 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
416 * bsd-uthread.c (bsd_uthread_activate): Likewise.
417 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
418 * linux-thread-db.c (enable_thread_event): Likewise.
419 * monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
420 * nto-procfs.c (procfs_open): Likewise.
421 * procfs.c (invalidate_cache, procfs_insert_watchpoint,
422 info_proc_mappings, info_mappings_callback): Likewise.
423 * record.c (record_open): Likewise.
424 * rs6000-nat.c (ARCH64): Likewise.
425 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
426 (darwin_bfd_open): Likewise.
427 * memattr.c (mem_info_command): Likewise.
428
429 * windows-nat.c (win32_resume): Use current regcache architecture
430 instead of current_gdbarch.
431
432 * dbug-rom.c (dbug_regname): Remove check against number of
433 registers in current_gdbarch.
434 * solib-pa64.c (read_dynamic_info): Remove unused variable.
435
d80b854b
UW
4362009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
437
438 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,
439 use it instead of current_gdbarch.
440 * frame.h (deprecated_pc_in_call_dummy): Add GDBARCH parameter.
441 * arm-tdep.c (arm_skip_prologue): Pass architecture to
442 deprecated_pc_in_call_dummy.
443
444 * symtab.c (skip_prologue_using_sal): Add GDBARCH parameter.
445 Use it instead of current_gdbarch.
446 * symtab.h (skip_prologue_using_sal): Add GDBARCH parameter.
447 * breakpoint.c (expand_line_sal_maybe): Pass architecture to
448 skip_prologue_using_sal.
449 * arm-tdep.c (skip_prologue_using_sal): Likewise.
450 * lm32-tdep.c (lm32_skip_prologue): Likewise.
451 * m32-tdep.c (m32c_skip_prologue): Likewise.
452 * mips-tdep.c (mips_skip_prologue): Likewise.
453 * moxie-tdep.c (moxie_skip_prologue): Likewise.
454 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
455 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
456 * frv-tdep.c (frv_analyze_prologue): Add GDBARCH parameter, pass
457 it to skip_prologue_using_sal. Update call sites ...
458 (frv_skip_prologue, frv_frame_unwind_cache): ... here.
459
460 * mn10300-tdep.c (struct mn10300_prologue): Add GDBARCH member.
461 (check_for_saved): Use it instead of current_gdbarch.
462 (mn10300_analyze_prologue): Set it.
463
464 * value.c (using_struct_return): Add GDBARCH parameter. Use it
465 instead of current_gdbarch.
466 * value.h (using_struct_return): Add GDBARCH parameter.
467 * eval.c (evaluate_subexp_standard): Pass architecture to
468 using_struct_return.
469 * infcall.c (call_function_by_hand): Likewise.
470 * stack.c (return_command): Likewise.
471 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
472
473 * symtab.c (in_prologue): Add GDBARCH parameter. Use it instead of
474 current_gdbarch.
475 * symtab.h (in_prologue): Add GDBARCH parameter.
476 * infrun.c (handle_inferior_event): Pass architecture to in_prologue.
477
478 * eval.c (evaluate_subexp_standard): Use expression architecture
479 instead of current_gdbarch.
480
481 * c-lang.c (evaluate_subexp_c): Use expression architecture and
482 language instead of current_gdbarch and current_language.
483
484 * printcmd.c (do_one_display): Use expression architecture instead
485 of current_gdbarch.
486
487 * infcmd.c (print_return_value): Use architecture of stop_regcache
488 instead of current_gdbarch.
489 (print_vector_info, print_float_info): Remove GDBARCH argument,
490 use frame architecture instead.
491 (vector_info, float_info): Update calls.
492
493 * objc-lang.c (objc_skip_trampoline): Use frame architecture
494 instead of current_gdbarch.
495
496 * parse.c (write_dollar_variable): Use parse architecture instead
497 of current_gdbarch.
498
499 * source.c (line_info): Use objfile architecture instead of
500 current_gdbarch.
501
502 * symtab.c (find_function_start_sal): Use gdbarch instead of
503 current_gdbarch.
504 (print_msymbol_info): Use objfile architecture instead of
505 current_gdbarch.
506
507 * valops.c (value_assign): Use frame architecture instead of
508 current_gdbarch.
509
fbf65064
UW
5102009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
511
512 * buildsym.c (record_line): Remove call to gdbarch_addr_bits_remove.
513
514 * coffread.c (coff_symtab_read): Call gdbarch_addr_bits_remove before
515 calling record_line.
516 (enter_linenos): Likewise.
517 * dbxread.c (process_one_symbol): Likewise.
518 * dwarf2read.c (dwarf_decode_lines): Likewise.
519 * mdebugread.c (psymtab_to_symtab_1): Likewise.
520 * xcoffread.c (enter_line_range): Likewise.
521
505e835d
UW
5222009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
523
524 * ax-gdb.c (gen_bitfield_ref): Add EXP argument, use expression
525 architecture instead of current_gdbarch.
526 (gen_struct_ref): Add EXP argument, pass to get_bitfield_ref.
527 (gen_expr): Pass expression to get_struct_ref.
528
529 * symtab.h (struct symbol_ops): Add GDBARCH parameter to
530 tracepoint_var_ref callback.
531 * ax-gdb.c (gen_var_ref): Pass architecture to tracepoint_var_ref
532 symbol operation callback.
533 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Add GDBARCH parameter.
534 Use it instead of current_gdbarch.
535 (locexpr_tracepoint_var_ref): Add GDBARCH parameter. Pass it to
536 dwarf2_tracepoint_var_ref.
537 (loclist_tracepoint_var_ref): Likewise.
538
55f960e1
UW
5392009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
540
541 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
542 Use it instead of address bits of current_gdbarch.
543 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
544 * arm-tdep.c (thumb_analyze_prologue): Pass address bits to
545 make_pv_area.
546 (arm_scan_prologue): Likewise.
547 * m32c-tdep.c (m32c_analyze_prologue): Likewise.
548 * mep-tdep.c (mep_analyze_prologue): Likewise.
549 * mn10300-tdep.c (mn10300_analyze_prologue): Likewise.
550 * s390-tdep.c (s390_analyze_prologue): Likewise.
551
7ccb0be9
UW
5522009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
553
554 * mi/mi-main.c (mi_cmd_data_list_register_names): Use selected
555 frame architecture instead of current_gdbarch.
556 (mi_cmd_data_list_changed_registers): Likewise.
557 (mi_cmd_data_list_register_values): Likewise. Pass selected
558 frame to get_register.
559 (get_register): Add FRAME argument, use it as frame to retrieve
560 registers from (instead of selected frame). Use frame architecture
561 instead of current_gdbarch.
562 (mi_cmd_data_write_register_values): Use current regcache
563 architecture instead of current_gdbarch.
564
5eccfcc2
UW
5652009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
566
567 * tui/tui-regs.c (tui_show_register_group): Remove GDBARCH parameter;
568 use frame architecture instead. Replace current_gdbarch uses.
569 (tui_show_registers): Update call.
570 (tui_get_register): Remove GDBARCH parameter; use frame architecture
571 instead.
572 (tui_show_register_group): Update call.
573 (tui_check_register_values): Likewise.
574 (tui_register_format): Remove GDBARCH parameter; use frame
575 architecture instead. Replace current_gdbarch uses.
576 (tui_get_register): Update call.
577
bd57a748
UW
5782009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
579
580 * gdbarch.sh (construct_inferior_arguments): Remove.
581 * gdbarch.c, gdbarch.h: Regenerate.
582 * infcmd.c (get_inferior_args): Call construct_inferior_arguments
583 directly instead of gdbarch_construct_inferior_arguments.
584 (construct_inferior_arguments): Remove GDBARCH argument.
585 * inferior.h (construct_inferior_arguments): Likewise.
586
9216df95
UW
5872009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
588
589 * symfile.c (section_is_mapped): Use objfile architecture instead
590 of current_gdbarch.
591 (TARGET_LONG_BYTES): Remove.
592 (read_target_long_array): Add SIZE argument. Use it instead of
593 TARGET_LONG_BYTES.
594 (simple_read_overlay_table): Retrieve long size from objfile
595 architecture; pass it to read_target_long_array.
596 (simple_read_overlay_region_table): Likewise.
597 (simple_overlay_update_1): Likewise.
598
9f5a595d
UW
5992009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
600
601 * infrun.c (cleanup_displaced_step_closure): Remove.
602 (displaced_step_clear_cleanup): Move to before displaced_step_prepare.
603 (displaced_step_prepare): Use displaced_step_clear_cleanup instead
604 of cleanup_displaced_step_closure.
605 (handle_inferior_event, keep_going): Use thread architecture instead
606 of current_gdbarch.
607
568d6575
UW
6082009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
609
610 * infrun.c (handle_inferior_event): Use current frame architecture
611 or thread architecture instead of current_gdbarch. Pass to
612 handle_step_into_function and handle_step_into_function_backward.
613 (handle_step_into_function): Add GDBARCH parameter. Use it instead
614 of current_gdbarch.
615 (handle_step_into_function_backward): Likewise.
616 (insert_step_resume_breakpoint_at_frame): Use frame architecture
617 instead of current_gdbarch.
618 (insert_step_resume_breakpoint_at_caller): Likewise.
619
ea5d7a99
PM
6202009-06-17 Pierre Muller <muller@ics.u-strasbg.fr>
621 Pedro Alves <pedro@codesourcery.com>
622
623 * infcmd.c (post_create_inferior): Call breakpoint_re_set after target
624 is pushed for watchpoint promotion to hardware watchpoint.
625
dce234bc
PP
6262009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
627
628 * dwarf2read.c (dwarf_info_section, dwarf_abbrev_section)
629 (dwarf_line_section, dwarf_pubnames_section, dwarf_aranges_section)
630 (dwarf_loc_section, dwarf_macinfo_section, dwarf_str_section)
631 (dwarf_ranges_section, dwarf_frame_section)
632 (dwarf_eh_frame_section): Removed.
633 (dwarf2_resize_section): Likewise.
634 (dwarf2_read_section): Now static, use bfd_mmap() if possible.
635 (dwarf2_get_section_info): New function.
636 (munmap_section_buffer): Likewise.
637 (dwarf2_per_objfile_cleanup): Likewise.
638 (section_is_p): Signature change.
639 * dwarf2-frame.c (dwarf2_build_frame_info): Use
640 dwarf2_get_section_info instead of dwarf2_read_section.
641
7eedccfa
PP
6422009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
643
644 * solib.c (symbol_add_stub): New FLAGS parameter.
645 (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub
646 directly.
647 (solib_add): Defer breakpoint_re_set until after all solibs.
648 * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust.
649 * rs6000-nat.c (objfile_symbol_add): Adjust.
650 * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS.
651 (new_symfile_objfile): Likewise.
652 (symbol_file_add_with_addrs_or_offsets): Likewise.
653 (symbol_file_add_from_bfd): Likewise.
654 (symbol_file_add): Likewise.
655 * symfile.h (enum symfile_add_flags): New. Adjust prototypes.
656 * symfile-mem.c (symbol_file_add_from_memory): Adjust.
657 * windows-nat.c (safe_symbol_file_add_stub): Adjust.
658 * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
659
19ef5c71
KS
6602009-06-16 Keith Seitz <keiths@redhat.com>
661
662 * linespec.c (collect_methods): Delete.
663 (add_matching_methods): Reove destructor special case.
664 (find_method): Call find_methods directly instead of
665 collect_methods.
666 * valops.c (value_struct_elt): Remove destructor
667 special cases.
668 (check_field): Likewise.
669 (value_struct_elt_for_reference): Likewise.
670 (destructor_name_p): Remove misleading comment about dtors
671 being "special cases".
672 * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed.
673 * gdbtypes.c (get_destructor_fn_field): Likewise.
674
a4261689
PA
6752009-06-16 Pedro Alves <pedro@codesourcery.com>
676
677 * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
678 TARGET_OJECT_MEMORY reads to the topmost target, not to the
679 flattened current_target.
680
4e99ad69
TG
6812009-06-16 Tristan Gingold <gingold@adacore.com>
682
683 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
684 call_length field.
685 (avr_register_name): Add const to register_names.
686 (avr_scan_arg_moves): Move inside avr_scan_prologue.
687 (avr_scan_prologue): Add pc_end argument.
688 Only read prologue bytes that can be read.
689 Limit the scan to the known prologue length.
690 Makes pattern variables static and const.
691 Fix indentation.
692 (avr_skip_prologue): Pass func_end argument to avr_scan_prologue.
693 Fix indentation.
694 (avr_breakpoint_from_pc): Constify avr_break_insn.
695 (avr_extract_return_value): Fix function comment.
696 (avr_frame_unwind_cache): Fix GNU style violations.
697 Pass current_pc argument to avr_scan_prologue to stop prologue
698 analysis to the current pc. This fixes the bug with the 'next'
699 command.
700 Correctly set the SP register of the previous frame (use call_length).
701 (avr_frame_prev_register): Fix indentation.
702 Correctly read PC from the stack on avr6 architectures.
703 (avr_push_dummy_call): Fix indentation.
704 (avr_gdbarch_init): Set call_length according to the architecture.
705
7cd1089b
PM
7062009-06-15 Phil Muldoon <pmuldoon@redhat.com>
707
708 * infcall.c (show_unwind_on_terminating_exception_p): New
709 function.
710 (call_function_by_hand): Create breakpoint and clean-up call for
711 std::terminate.breakpoint. Add unwind_on_terminating_exception_p
712 gate. Pop frame on breakpoint hit.
713 (_initialize_infcall): Add add_setshow_boolean_cmd for
714 unwind-on-terminating-exception.
715
b2ab525c
KB
7162009-06-12 Kevin Buettner <kevinb@redhat.com>
717
718 * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
719 `has_section_at_zero' flag from stripped objfile to separate,
720 debug info only, objfile.
721
4b477ade
PA
7222009-06-12 Pedro Alves <pedro@codesourcery.com>
723
724 * exec.h (section_table_xfer_memory_partial): Improve description,
725 mention SECTION_NAME.
726 * exec.c (section_table_xfer_memory_partial): Remove stale
727 description.
728
c59fcb4c
AR
7292009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
730
731 * nto-tdep.h (nto_generic_supply_gpregset)
732 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
733 * nto-tdep.c (nto_generic_supply_gpregset)
734 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
735
19a934d8
AR
7362009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
737
738 * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
739 (i386nto_sigcontext_addr): Change the way context address is calculated.
740 (i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
741 sc_sp_offset and set sc_reg_offset and sc_num_regs.
742
80b1849c
AR
7432009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
744
745 * i386-nto-tdep.c (i386_nto_target): Remove definition.
746 (init_i386nto_ops): Use macros to set fields to global
747 current_nto_target directly.
748 (i386nto_init_abi): Remove unused nto_set_target call.
749 * nto-tdep.h (nto_set_target): Remove unused declaration.
750 * nto-tdep.c (nto_set_target): Remove unused function.
751
80c99de1
PA
7522009-06-11 Pedro Alves <pedro@codesourcery.com>
753
754 * breakpoint.c (break_command_really): Rename local variable
755 breakpoint_chain to bkpt_chain.
756
dbfb31a4
AR
7572009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
758
759 Add support for XMM registers.
760 * i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
761 (i386nto_register_area): Correctly calculate offsets and sizes for
762 all supported registers.
763
17dd65ce
TT
7642009-06-11 Tom Tromey <tromey@redhat.com>
765
766 * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
767 'static' from local variable definitions.
768
828cd292
PA
7692009-06-11 Pedro Alves <pedro@codesourcery.com>
770
771 * symtab.c (append_expanded_sal): Remove unused local variables.
772
d4db2f36
PA
7732009-06-11 Pedro Alves <pedro@codesourcery.com>
774
775 * infrun.c (sched_multi): New global.
776 (resume): If sched_multi is set, resume only threads of the
777 current inferior.
778 (prepare_to_proceed): Don't switch over to wait_ptid if we're
779 resuming a different inferior, and sched_multi is off.
780 (show_schedule_multiple): New.
781 (_initialize_infrun): Register new "set schedule-multiple" command.
782 * inferior.h (sched_multi): Declare.
783 * NEWS: Mention new "schedule-multiple" setting.
784
e21458b2
PA
7852009-06-11 Pedro Alves <pedro@codesourcery.com>
786
787 * varobj.c (varobj_create): Properly restore the selected frame.
788
8bb318c6
TT
7892009-06-05 Tom Tromey <tromey@redhat.com>
790
791 * inferior.c (print_inferior): Make a table, not a list. Emit
792 table headers.
793
bbb29520
PA
7942009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
795
796 * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
797 darwin_wait (blocking wait).
798 (darwin_kill_inferior): Likewise.
799
66852e9c
PA
8002009-06-10 Pedro Alves <pedro@codesourcery.com>
801
802 * infrun.c (handle_inferior_event): Update comment around trying
803 to revert back to a stepping thread that has exited.
804
d0c6ba3d
CC
8052009-06-10 Cary Coutant <ccoutant@google.com>
806
807 * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
808 DW_LNE_set_discriminator.
809
059fb39f
PM
8102009-06-10 Pierre Muller <muller@ics.u-strasbg.fr>
811
812 * breakpoint.c: ARI fixes.
813 (create_overlay_event_breakpoint): Avoid assignment inside if statement.
814 (print_one_breakpoint_location): Likewise.
815 (create_longjmp_breakpoint): Likewise.
816 (tracepoint_save_command): Likewise
817 (bpstat_find_step_resume_breakpoint): No operator at end of line.
818 (bpstat_stop_status): Likewise.
819 (describe_other_breakpoints): Likewise.
820 (hw_watchpoint_used_count): Likewise.
821 (expand_line_sal_maybe): Likewise.
822 (break_command_really): Likewise.
823 (delete_command): Likewise.
824 (do_enable_breakpoint): Likewise.
825 (delete_trace_command): Likewise.
826 (catch_exception_command_1): Likewise and remove extra parentheses.
827
7681d515
PM
8282009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
829
830 * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
831 "ubreak" command that does not exist.
832
300d0284
PM
8332009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
834
835 * cli/cli-decode.c (add_alias_cmd): Correct assertion.
836
72753510
PA
8372009-06-07 Pedro Alves <pedro@codesourcery.com>
838
839 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
840
d1a7880c
PA
8412009-06-07 Pedro Alves <pedro@codesourcery.com>
842
843 * procfs.h: New.
844 * proc-utils.h (procfs_first_available): Don't declare here.
845 * sol-thread.c: Include procfs.h instead of sys/procfs.h and
846 proc-utils.h.
847 * procfs.c: Include procfs.h.
848 (procfs_target): Make it public. Don't register
849 procfs_can_use_hw_breakpoint here.
850 (proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
851 defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
852 (procfs_can_use_hw_breakpoint): Remove check of
853 TARGET_HAS_HARDWARE_WATCHPOINTS.
854 (procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
855 here.
856 (_initialize_procfs): Don't add the procfs target here.
857
858 * i386-sol2-nat.c: Include target.h and procfs.h.
859 (_initialize_amd64_sol2_nat): Install the procfs target here,
860 customized with watchpoints support.
861 * irix5-nat.c: Include target.h.
862 (_initialize_core_irix5): Rename to ...
863 (_initialize_irix5_nat): ... this. Install the procfs target
864 here, customized with watchpoints support.
865 * alpha-nat.c: Include procfs.h.
866 (_initialize_core_alpha): Rename to...
867 (_initialize_alpha_nat): ... this. Install the procfs target
868 here, customized with watchpoints support.
869 * sparc-sol2-nat.c: Include target.h and procfs.h.
870 (_initialize_sparc_sol2_nat): New.
871
872 * config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
873 * config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
874 * config/mips/irix5.mh (NAT_FILE): Delete.
875 * config/mips/irix6.mh (NAT_FILE): Delete.
876 * config/mips/nm-irix5.h: Delete.
877
81b92222
PA
87820009-06-07 Pedro Alves <pedro@codesourcery.com>
879
880 * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
881 to enum target_object. Cleanup comments.
882 * auxv.h: Include "target.h". Cleanup comments to not mention
883 NATIVE_XFER_AUXV anymore.
884
cc35222d
PA
8852009-06-07 Pedro Alves <pedro@codesourcery.com>
886
887 * inferior.h (procfs_first_available): Move declaration to...
888 * proc-utils.h: ... here.
889 * sol-thread.c: Include procfs.h and proc-utils.h.
890
09d3bde9
PA
8912009-06-07 Pedro Alves <pedro@codesourcery.com>
892
893 * inferior.h (proc_iterate_over_mappings): Delete declaration.
894 * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
895 * procfs.c (proc_iterate_over_mappings): Delete.
896
c35b1492
PA
8972009-06-07 Pedro Alves <pedro@codesourcery.com>
898
899 * target.h (struct target_ops): Make to_has_all_memory,
900 to_has_memory, to_has_stack, to_has_registers and to_has_execution
901 methods instead of variables.
902 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
903 (target_has_registers_1, target_has_execution_1): Declare
904 functions.
905 (target_has_all_memory): Rewrite to call target_has_all_memory_1.
906 (target_has_memory): Rewrite to call target_has_memory_1.
907 (target_has_stack): Rewrite to call target_has_all_stack_1.
908 (target_has_registers): Rewrite to call target_has_registers_1.
909 (target_has_execution): Rewrite to call target_has_execution_1.
910 (default_child_has_all_memory, default_child_has_memory)
911 (default_child_has_stack, default_child_has_registers)
912 (default_child_has_execution): Declare.
913 (target_mark_running, target_mark_exited): Delete declarations.
914 * target.c (default_child_has_all_memory,
915 default_child_has_memory, default_child_has_stack,
916 default_child_has_registers, default_child_has_execution): New.
917 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
918 target_has_registers_1, target_has_execution_1): New.
919 (add_target): Default the to_has_all_memory, to_has_all_memory,
920 to_has_memory, to_has_stack, to_has_registers and to_has_execution
921 callbacks to return 0.
922 (update_current_target): Do not inherit to_has_all_memory,
923 to_has_memory, to_has_stack, to_has_registers or to_has_execution.
924 (target_mark_running, target_mark_exited): Delete.
925 (memory_xfer_partial): Adjust.
926 (target_read_memory, target_write_memory, target_search_memory):
927 Dispatch to the the top-most target, not the flattened
928 current_target.
929 (target_info): Adjust.
930 (init_dummy_target): Install return_zero as callback for
931 to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
932 to_has_execution.
933 (set_maintenance_target_async_permitted): Use have_live_inferiors
934 instead of target_has_execution.
935 * target-memory.c (target_write_memory_blocks): Dispatch memory
936 writes to the the top-most target, not the flattened
937 current_target.
938
939 * breakpoint.c (insert_breakpoints): Don't check for
940 target_has_execution here.
941 (update_global_location_list): Check if there are live inferiors
942 to debug instead of target_has_execution.
943 * infcmd.c (kill_command, detach_command): Check if there are
944 inferiors instead of target_has_execution.
945 * inferior.h (have_live_inferiors): Declare.
946 * inferior.c (have_live_inferiors): New.
947 * infrun.c (normal_stop): Don't check for target_has_execution to
948 finish the thread states.
949 * thread.c (is_thread_state, is_stopped, is_exited, is_running)
950 (any_running, is_executing): Remove checks for
951 target_has_execution.
952 * top.c (kill_or_detach): Don't try to kill core inferiors.
953 (quit_target): Don't check for target_has_execution.
954
955 * corelow.c (core_has_memory, core_has_stack, core_has_registers):
956 New.
957 (init_core_ops): Install core_has_memory, core_has_stack and
958 core_has_registers.
959 * exec.c (exec_has_memory): New.
960 (init_exec_ops): Install exec_has_memory.
961 * remote.c (remote_add_inferior): Don't call target_mark_running.
962 (remote_start_remote): Don't call target_mark_exited or call
963 target_mark_running.
964 (remote_open_1): Use have_inferiors instead of
965 target_has_execution. Don't use target_mark_exited.
966 (init_remote_ops): Install deafult_child_has_all_memory,
967 default_child_has_memory, default_child_has_stack,
968 default_child_has_registers, default_child_has_execution.
969 * bsd-kvm.c (bsd_kvm_return_one): New.
970 (bsd_kvm_add_target): Register bsd_kvm_return_one as
971 to_has_memory, to_has_stack and to_has_registers callbacks.
972 * remote-m32r-sdi.c (m32r_return_one): New.
973 (init_m32r_ops): Register it.
974 * inf-child.c (inf_child_target): Adjust to register
975 default_child_has_all_memory, default_child_has_memory,
976 default_child_has_stack, default_child_has_registers,
977 default_child_has_execution callbacks.
978 * gnu-nat.c (init_gnu_ops): Likewise.
979 * go32-nat.c (init_go32_ops): Likewise.
980 * hpux-thread.c (init_hpux_thread_ops): Likewise.
981 * monitor.c (init_base_monitor_ops): Likewise.
982 * nto-procfs.c (init_procfs_ops): Likewise.
983 * remote-mips.c (_initialize_remote_mips): Likewise.
984 * windows-nat.c (init_windows_ops): Likewise.
985 * remote-sim.c (gdbsim_create_inferior): Don't use
986 target_mark_running or target_mark_exited.
987 (gdbsim_mourn_inferior): Don't call target_mark_exited.
988 (init_gdbsim_ops): Adjust to register
989 default_child_has_all_memory, default_child_has_memory,
990 default_child_has_stack, default_child_has_registers,
991 default_child_has_execution callbacks.
992
993 * linux-nat.c (linux_nat_xfer_partial): If reading memory, and
994 there's no inferior selected, defer to a lower stratum.
995
da1f2771
TT
9962009-06-05 Tom Tromey <tromey@redhat.com>
997
998 * varobj.c (update_dynamic_varobj_children): Wrap error text in
999 _().
1000 (install_visualizer): Likewise.
1001 (varobj_set_visualizer): Likewise.
1002
68c9c314 10032009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
4b459977
VP
1004
1005 * mi/mi-main.c (mi_cmd_exec_continue)
1006 (mi_cmd_exec_interrupt): Adjust parsing of thread group
1007 ids to current reality, where they don't have any 'p' prefix.
1008
b3ed98d2
AR
10092009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1010
1011 * corelow.c (core_open): Check for core_gdbarch before calling
1012 gdbarch_target_signal_from_host.
1013
68c1b02d
TT
10142009-06-05 Tom Tromey <tromey@redhat.com>
1015
1016 * c-exp.y (parse_number): Don't use K&R definition.
1017 (yylex): Likewise.
1018 (yyerror): Likewise.
1019
0b4bc29a
JK
10202009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 * varobj.c (varobj_update): Fix out of scope varobjs to not to change.
1023
768a979c
UW
10242009-06-04 Ulrich Weigand <uweigand@de.ibm.com>
1025
1026 * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
1027 * ax-gdb.c (gen_var_ref): Likewise.
1028 * findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
1029 * printcmd.c (address_info): Likewise.
1030 * dwarf2loc.c (dwarf_expr_frame_base): Likewise.
1031 * dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
1032 * symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
1033 * dwarf2loc.h: Likewise.
1034 * dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.
1035
1036 * symtab.h: (struct symbol_register_ops): New struct definition.
1037 (struct symbol): Make "ops" member a union of symbol_computed_ops and
1038 symbol_register_ops callback pointers.
1039 (SYMBOL_REGISTER_OPS): New macro.
1040 * tracepoint.c: Include "objfiles.h".
1041 (scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
1042 callback to retrieve register numbers.
1043 * ax-gdb.c (gen_var_ref): Likewise.
1044 * findvar.c (read_var_value): Likewise.
1045 * printcmd.c (address_info): Likewise.
1046
1047 * coffread.c (coff_reg_to_regnum): New function.
1048 (coff_register_funcs): New static variable.
1049 (process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
1050 Install SYMBOL_REGISTER_OPS callbacks.
1051 * mdebugread.c (mdebug_reg_to_regnum): New function.
1052 (mdebug_register_funcs): New static variable.
1053 (parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
1054 Install SYMBOL_REGISTER_OPS callbacks.
1055 * stabsread.c (stab_reg_to_regnum): New function.
1056 (stab_register_funcs): New static variable.
1057 (define_symbol): Do not call gdbarch_stab_reg_to_regnum.
1058 Install SYMBOL_REGISTER_OPS callbacks.
1059
930123b7
DE
10602009-06-03 Doug Evans <dje@google.com>
1061
1062 * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
1063 after discarding its contents.
1064
07b82ea5
PA
10652009-06-03 Pedro Alves <pedro@codesourcery.com>
1066
1067 * target.c: Include "exec.h".
1068 (update_current_target): Don't inherit to_sections or
1069 to_sections_end.
1070 (target_get_section_table): New.
1071 (target_section_by_addr): Fetch the section table from the passed
1072 in target.
1073 (memory_xfer_partial): Handle unmapped overlay sections before
1074 anything else. Get the overlay mapped address here. Adjust to
1075 use section_table_xfer_memory_partial.
1076 (get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
1077 instead of TARGET_OBJECT_MEMORY.
1078 (target_resize_to_sections): Delete.
1079 (remove_target_sections): Adjust to remove target sections from
1080 `current_target_sections', and use resize_section_table.
1081 * target.h (struct target_ops) <to_sections, to_sections_end>:
1082 Remove fields.
1083 <to_get_section_table>: New method.
1084 (xfer_memory, print_section_info): Delete declarations.
1085 (struct target_section_table): New type.
1086 (target_get_section_table): Declare.
1087 (target_resize_to_sections): Delete declaration.
1088 (remove_target_sections): Delete declaration.
1089 * bfd-target.c (target_bfd_xfer_partial): Get the section table
1090 from to_data.
1091 (target_bfd_get_section_table): New.
1092 (target_bfd_xclose): Adjust.
1093 (target_bfd_reopen): Store the section table in the to_data field.
1094 * corelow.c (core_data): New.
1095 (core_close): Adjust to release core_data and its sections.
1096 (core_open): Allocate core_data, and build its target sections
1097 table.
1098 (deprecated_core_resize_section_table): New.
1099 (core_files_info): Pass core_data to print_section_info.
1100 (core_xfer_partial): Adjust to use
1101 section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
1102 (init_core_ops): Do not install a deprecated_xfer_memory callback
1103 anymore.
1104 * solib.c (update_solib_list): Add the shared library sections
1105 to the current target sections table.
1106 * exec.c (current_target_sections_1): New global.
1107 (current_target_sections): New global.
1108 (exec_close_1): New function, refactored from exec_close. Remove
1109 the exec_bfd's sections from the current target sections table.
1110 Adjust to not use to_sections.
1111 (exec_close): Remove all target sections. Call exec_close_1.
1112 (exec_file_clear): Use exec_close_1 instead of unpushing the
1113 target.
1114 (exec_file_attach): Likewise. Adjust to not use to_sections. Add
1115 exec_bfd's sections to the current target sections table. Don't
1116 push the exec_ops target here.
1117 (resize_section_table): New.
1118 (add_target_sections): New.
1119 (remove_target_sections): Moved here.
1120 (section_table_xfer_memory): Adjust to implement the xfer_partial
1121 interface, and rename to...
1122 (section_table_xfer_memory_partial): ... this, replacing the
1123 current function of that same name.
1124 (exec_get_section_table): New.
1125 (exec_xfer_partial): New.
1126 (xfer_memory): Delete.
1127 (print_section_info): Replace the target_ops parameter by a
1128 target_section_table parameter.
1129 (exec_files_info, set_section_command, exec_set_section_address):
1130 Adjust to use the current sections table.
1131 (init_exec_ops): Do not register a deprecated_xfer_memory
1132 callback. Register to_xfer_partial and to_get_section_table
1133 callbacks.
1134 * infrun.c (handle_inferior_event): Update comments around
1135 solib_add.
1136 * rs6000-nat.c (xcoff_relocate_core): Adjust to use
1137 deprecated_core_resize_section_table.
1138 * exec.h (resize_section_table): Declare.
1139 (section_table_xfer_memory_partial): Add const char * argument.
1140 (remove_target_sections): Declare here.
1141 (add_target_sections): Declare.
1142 (print_section_info): Declare here.
1143 * gdbcore.h (deprecated_core_resize_section_table): Declare.
1144
4fa62494
UW
11452009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1146
1147 * value.h (struct internalvar): Remove.
1148 (get_internalvar_integer): Add prototype.
1149 (set_internalvar_integer): Add prototype.
1150 (clear_internalvar): Add prototype.
1151
1152 * value.c (struct internalvar): Move here. Add type member. Remove
1153 endian member. Add union_internalvar member instead of value member.
1154 (init_if_undefined_command): Use intvar->type.
1155 (create_internalvar): Do not initialize value/endian, but type.
1156 (create_internalvar_type_lazy): Call create_internalvar.
1157 (value_of_internalvar): Handle host-side internalvar contents.
1158 (set_internalvar_component): Likewise.
1159 (set_internalvar): Likewise.
1160 (get_internalvar_integer): New function.
1161 (clear_internalvar): Likewise.
1162 (set_internalvar_integer): Likewise.
1163 (preserve_values): Handle host-side internalvar contents.
1164
1165 * breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
1166 set_internalvar_integer instead of set_internalvar.
1167 * findcmd.c (find_command): Likewise.
1168 * infrun.c (handle_inferior_event): Likewise.
1169 * source.c (forward_search_command, reverse_search_command): Likewise.
1170 * tracepoint.c (set_traceframe_num, set_tracepoint_num,
1171 set_traceframe_context): Likewise.
1172
1173 * printcmd.c (x_command): Call clear_internalvar instead of
1174 set_internalvar.
1175 * tracepoint.c (set_traceframe_context): Likewise.
1176
1177 * breakpoint.c (get_number_trailer): Call get_internalvar_integer
1178 instead of value_of_internalvar.
1179 * linespec.c (decode_dollar): Likewise.
1180
1181 * expprint.c (dump_subexp_body_standard): Use internalvar_name
1182 instead of accessing internalvar private elements.
1183 * valops.c (value_assign): Copy from original source instead of
1184 accessing internalvar private elements.
1185
6ceaaae5
UW
11862009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1187
1188 * scm-lang.c (builtin_type_scm): Remove.
1189 (scm_lookup_name): Add GDBARCH parameter. Use it instead of
1190 objfile architecture. Use per-architecture builtin_scm_type instead
1191 of builtin_type_scm.
1192 (evaluate_exp): Pass expression architecture to scm_lookup_name.
1193
1194 (scm_get_field): Add SIZE parameter. Use it instead of
1195 TYPE_LENGTH (builtin_type_scm).
1196
1197 (build_scm_types): New function.
1198 (scm_type_data): New variable.
1199 (builtin_scm_type): New function.
1200 (_initialize_scheme_language): Do not initialize builtin_type_scm.
1201 Register build_scm_types as post-init function for scm_type_data.
1202
1203 * scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
1204 instead of builtin_type_scm.
1205
1206 * scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
1207 (scm_get_field): Add SIZE paramter.
1208 (scm_scmval_print): Remove prototype.
1209 (builtin_type_scm): Remove.
1210 (struct builtin_scm_type): Add structure definition.
1211 (builtin_scm_type): Add prototype.
1212
1213 * scm-valprint.c (scm_inferior_print): Add TYPE parameter. Use it
1214 instead of builtin_core_addr type; do not use objfile architecture.
1215 (scm_scmlist_print): Add TYPE parameter. Use it to define SCM_SIZE.
1216 Pass type to scm_scmval_print.
1217 (scm_ipruk): Add TYPE parameter. Use it to define SCM_SIZE.
1218 (scm_scmval_print): Make static. Add TYPE parameter. Use it to
1219 define SCM_SIZE. Pass type to scm_ipruk and scm_scmlist_print.
1220 (scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.
1221
0a9d309a
UW
12222009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1223
1224 * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
1225 mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
1226 mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
1227 mdebug_type_unsigned_char, mdebug_type_unsigned_short,
1228 mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
1229 mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
1230 mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
1231 mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
1232 mdebug_type_complex, mdebug_type_double_complex,
1233 mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
1234 Remove.
1235
1236 (basic_type_data): New global variable.
1237 (basic_type): New function.
1238 (parse_type): Remove static basic type map map_bt. Call basic_type
1239 to get basic types instead of using mdebug_type_ variables.
1240
1241 (parse_symbol): Use builtin types instead of mdebug_type_ variables.
1242 (upgrade_type): Likewise.
1243 (parse_procedure): Likewise.
1244 (psymtab_to_symtab_1): Likewise.
1245
1246 (_initialize_mdebugread): Do not initialize mdebug_type_ variables.
1247 Initialize basic_type_data.
1248
289bd67a
UW
12492009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1250
1251 * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
1252 * dfp.c (promote_decimal): Remove.
1253 (decimal_binop): Convert LEN_RESULT to input parameter.
1254 Remove call to decimal_binop.
1255 (decimal_compare): Remove call to decimal_binop.
1256
1257 * valarith.c (value_binop): Pass desired result type length
1258 to decimal_binop.
1259
64c9be2e
TG
12602009-06-01 Tristan Gingold <gingold@adacore.com>
1261
1262 * configure.tgt (avr): Set gdb_sim to use the simulator.
1263
5a437975
DE
12642009-05-29 Doug Evans <dje@google.com>
1265
1266 * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
1267 If scheduler-locking is enabled, we're not going to be singlestepping
1268 any other previously stopped thread.
1269
ab730e72
PA
12702009-05-29 Pedro Alves <pedro@codesourcery.com>
1271
1272 * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
1273
3d22076f
EZ
12742009-05-29 Eli Zaretskii <eliz@gnu.org>
1275
1276 * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
1277 for stabs and COFF debug info.
1278
b3444185
PA
12792009-05-28 Pedro Alves <pedro@codesourcery.com>
1280
1281 * infrun.c (handle_inferior_event): When thread hoping, switch
1282 inferior_ptid to the event thread before removing breakpoints from
1283 the target. If not stopping, also try to revert back to a thread
1284 that was doing a "next". Check if that thread still exists before
1285 resuming.
1286 (currently_stepping_thread): Delete and merge with ...
1287 (currently_stepping): ... this.
1288 (currently_stepping_callback): Rename to ...
1289 (currently_stepping_or_nexting_callback): ... this, and also
1290 return true if the thread was stepping over a call (has a
1291 step-resume breakpoint).
1292
8f500870
TT
12932009-05-28 Tom Tromey <tromey@redhat.com>
1294
1295 * python/python.c (gdbpy_parameter): Rename. Fix error message.
1296 (GdbMethods): Change "get_parameter" to "parameter".
1297
6bf0ce2b
PP
12982009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
1299 Paul Pluzhnikov <ppluzhnikov@google.com>
1300
1301 * configure.ac (!have_libpython): Add python-prettyprint source
1302 and object files.
1303 * configure: Regenerate.
1304 * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
1305 python headers.
1306
b6313243
TT
13072009-05-27 Vladimir Prus <vladimir@codesourcery.com>
1308 Tom Tromey <tromey@redhat.com>
1309 Thiago Jung Bauermann <bauerman@br.ibm.com>
1310
1311 * mi/mi-main.c (mi_cmd_list_features): List "python" feature.
1312 * varobj.h (varobj_set_visualizer): Declare.
1313 (varobj_get_display_hint): Likewise.
1314 (varobj_update_result_t) <children_changed, value_installed>: New
1315 fields.
1316 * mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
1317 * mi/mi-cmds.h (mi_cmd_var_set_visualizer,
1318 mi_cmd_var_set_child_range): Declare.
1319 * mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
1320 (mi_cmd_var_list_children): Emit display hint.
1321 (varobj_update_one): Emit display hint. Handle dynamic children.
1322 * python/python.c (GdbMethods): Add "default_visualizer".
1323 * python/python-internal.h (apply_varobj_pretty_printer,
1324 gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
1325 Declare.
1326 (gdbpy_default_visualizer): Likewise.
1327 * varobj.c: Include python.h, python-internal.h.
1328 (PyObject): New typedef.
1329 (struct varobj) <children_requested, pretty_printer>: New fields.
1330 (varobj_create): Call install_default_visualizer.
1331 (instantiate_pretty_printer): New function.
1332 (varobj_set_display_format): Update.
1333 (varobj_get_display_hint): New function.
1334 (update_dynamic_varobj_children): New function.
1335 (varobj_get_num_children): Handle dynamic children.
1336 (varobj_list_children): Likewise.
1337 (install_new_value): Likewise.
1338 (varobj_add_child): New function.
1339 (install_visualizer): Likewise.
1340 (install_default_visualizer): Likewise.
1341 (varobj_set_visualizer): Likewise.
1342 (varobj_update): Handle dynamic children.
1343 (create_child): Use create_child_with_value.
1344 (create_child_with_value): New function.
1345 (value_get_print_value): Call pretty printer. Add value_formatter
1346 argument.
1347 (c_value_of_variable): Update.
1348 (varobj_invalidate): Always free all_rootvarobj.
1349 * python/python-prettyprint.c (apply_varobj_pretty_printer): New
1350 function.
1351 (gdbpy_get_varobj_pretty_printer): Likewise.
1352 (gdbpy_default_visualizer): Likewise.
1353
a6bac58e
TT
13542009-05-27 Tom Tromey <tromey@redhat.com>
1355 Thiago Jung Bauermann <bauerman@br.ibm.com>
1356 Phil Muldoon <pmuldoon@redhat.com>
1357 Paul Pluzhnikov <ppluzhnikov@google.com>
1358 Vladimir Prus <vladimir@codesourcery.com>
1359
1360 * python/python-value.c (value_object_to_value): New function.
1361 * python/python-internal.h: Include frameobject.h.
1362 (gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
1363 Declare.
1364 (value_object_to_value): Declare.
1365 * printcmd.c (struct format_data) <raw>: New field.
1366 (last_format): Default to 0.
1367 (decode_format): Initialize val.raw. Handle /r flag.
1368 (print_command_1): Initialize fmt.raw and opts.raw.
1369 (output_command): Likewise.
1370 (x_command): Fix initialization of fmt.format. Initialize
1371 fmt.raw.
1372 (display_command): Initialize fmt.raw.
1373 (do_one_display): Set opts.raw.
1374 * python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
1375 gdbpy_display_hint_cst): New globals.
1376 (_initialize_python): Initialize them. Set gdb.pretty_printers.
1377 * cp-valprint.c: Include python.h.
1378 (cp_print_value): Call apply_val_pretty_printer.
1379 * python/python.h (apply_val_pretty_printer): Declare.
1380 * stack.c (print_this_frame_argument_p): Remove.
1381 (print_frame_args): Compute summary flag. Don't use
1382 print_this_frame_argument_p.
1383 * valprint.c: Include python.h.
1384 (user_print_options): Initialize new fields.
1385 (scalar_type_p): New function.
1386 (val_print): Handle 'raw' and 'summary' modes. Call
1387 apply_val_pretty_printer.
1388 (value_print): Handle 'raw' mode.
1389 * valprint.h (struct value_print_options) <raw, summary>: New
1390 fields.
1391 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
1392 (SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
1393 (python-prettyprint.o): New target.
1394 * python/python-prettyprint.c: New file.
1395
42ae5230
TT
13962009-05-27 Tom Tromey <tromey@redhat.com>
1397 Paul Pluzhnikov <ppluzhnikov@google.com>
1398
1399 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
1400 value_address.
1401 * cli/cli-dump.c (dump_value_to_file): Use value_address.
1402 * valprint.c (common_val_print): Likewise.
1403 * v850-tdep.c (v850_push_dummy_call): Use value_address.
1404 * tracepoint.c (encode_actions): Use value_address.
1405 * printcmd.c (print_formatted): Use value_address.
1406 (x_command): Likewise.
1407 * p-valprint.c (pascal_object_print_static_field): Use
1408 value_address.
1409 * mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
1410 * mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
1411 * m32r-tdep.c (m32r_push_dummy_call): Use value_address.
1412 * jv-valprint.c (java_value_print): Use value_address.
1413 * infcall.c (find_function_addr): Use value_address.
1414 * gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
1415 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
1416 * frv-tdep.c (frv_push_dummy_call): Use value_address.
1417 * frame.c (frame_register_unwind): Use value_address.
1418 (frame_unwind_register_value): Likewise.
1419 * darwin-nat-info.c (info_mach_region_command): Use
1420 value_address.
1421 * cp-valprint.c (cp_print_static_field): Use value_address.
1422 * c-valprint.c (c_value_print): Use value_address.
1423 * breakpoint.c (update_watchpoint): Use value_address.
1424 (can_use_hardware_watchpoint): Likewise.
1425 * ada-valprint.c (ada_val_print_1): Use value_address.
1426 (ada_value_print): Likewise.
1427 * ada-tasks.c (read_fat_string_value): Use value_address.
1428 * jv-lang.c (java_link_class_type): Use set_value_address.
1429 (java_link_class_type): Likewise.
1430 (get_java_utf8_name): Use value_address.
1431 (type_from_class): Likewise.
1432 (java_link_class_type): Likewise.
1433 * findvar.c (value_of_register): Use set_value_address.
1434 (read_var_value): Likewise.
1435 (read_var_value): Likewise.
1436 * eval.c (evaluate_subexp_standard): Use set_value_address.
1437 (evaluate_subexp_standard): Use value_address.
1438 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
1439 * ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
1440 (ada_value_primitive_packed_val): Likewise.
1441 (ensure_lval): Likewise.
1442 (thin_data_pntr): Use value_address.
1443 (desc_bounds): Likewise.
1444 (ada_value_primitive_packed_val): Likewise.
1445 (value_assign_to_component): Likewise.
1446 (ensure_lval): Likewise.
1447 (make_array_descriptor): Likewise.
1448 (ada_to_fixed_value): Likewise.
1449 (unwrap_value): Likewise.
1450 * value.c (deprecated_value_address_hack): Remove.
1451 (value_address): New function.
1452 (value_raw_address): Likewise.
1453 (set_value_address): Likewise.
1454 (value_fn_field): Use set_value_address.
1455 (value_from_contents_and_address): Likewise.
1456 (value_fn_field): Likewise.
1457 (allocate_value_lazy): Don't use VALUE_ADDRESS.
1458 (value_as_address): Use value_address.
1459 (value_static_field): Likewise.
1460 * valops.c (search_struct_field): Use set_value_address.
1461 (value_at): Likewise.
1462 (value_at_lazy): Likewise.
1463 (value_repeat): Likewise.
1464 (value_cast_structs): Use value_address.
1465 (value_cast): Likewise.
1466 (value_fetch_lazy): Likewise.
1467 (value_assign): Likewise.
1468 (value_repeat): Likewise.
1469 (address_of_variable): Likewise.
1470 (value_coerce_array): Likewise.
1471 (value_coerce_function): Likewise.
1472 (value_addr): Likewise.
1473 (search_struct_field): Likewise.
1474 (search_struct_method): Likewise.
1475 (find_method_list): Likewise.
1476 (value_struct_elt_for_reference): Likewise.
1477 (value_full_object): Likewise.
1478 * jv-valprint.c (java_value_print): Use set_value_address.
1479 * value.h (deprecated_value_address_hack): Remove.
1480 (VALUE_ADDRESS): Remove.
1481 (value_address): Declare.
1482 (value_raw_address): Declare.
1483 (set_value_address): Declare.
1484
2c74e833
TT
14852009-05-27 Tom Tromey <tromey@redhat.com>
1486 Thiago Jung Bauermann <bauerman@br.ibm.com>
1487 Phil Muldoon <pmuldoon@redhat.com>
1488 Paul Pluzhnikov <ppluzhnikov@google.com>
1489
1490 * python/python.c (_initialize_python): Call
1491 gdbpy_initialize_types.
1492 (GdbMethods): Add "lookup_type".
1493 * python/python-value.c (value_object) <type>: New field.
1494 (valpy_dealloc): Decref type.
1495 (valpy_new): Initialize type.
1496 (valpy_get_type): New function.
1497 (value_to_value_object): Initialize type.
1498 (valpy_cast): New function.
1499 (value_object_getset): Add "type".
1500 (value_object_methods): Add "cast".
1501 * python/python-internal.h (type_to_type_object): Declare.
1502 (type_object_to_type): Likewise.
1503 (gdbpy_initialize_types): Likewise.
1504 (gdbpy_lookup_type): Declare.
1505 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
1506 (SUBDIR_PYTHON_SRCS): Add python-type.c.
1507 (python-type.o): New target.
1508 * python/python-type.c: New file.
1509
89c73ade
TT
15102009-05-27 Tom Tromey <tromey@redhat.com>
1511 Thiago Jung Bauermann <bauerman@br.ibm.com>
1512 Phil Muldoon <pmuldoon@redhat.com>
1513
1514 * python/python.c: Include objfiles.h, observer.h.
1515 (gdbpy_auto_load): New global.
1516 (gdbpy_current_objfile): Likewise.
1517 (GDBPY_AUTO_FILENAME): New define.
1518 (gdbpy_new_objfile): New function.
1519 (gdbpy_get_current_objfile): Likewise.
1520 (gdbpy_objfiles): Likewise.
1521 (_initialize_python): Add "maint set auto-load". Call
1522 gdbpy_initialize_objfile. Attach objfile observer.
1523 (GdbMethods): New methods current_objfile, objfiles.
1524 * python/python-objfile.c: New file.
1525 * python/python-internal.h (objfile_to_objfile_object): Declare.
1526 (objfpy_get_printers): Likewise.
1527 (gdbpy_initialize_objfile): Likewise.
1528 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
1529 (SUBDIR_PYTHON_SRCS): Add python-objfile.c.
1530 (python-objfile.o): New target.
1531
a75724bc
PA
15322009-05-27 Pedro Alves <pedro@codesourcery.com>
1533
1534 * infrun.c (follow_exec): Clear the stop_requested flag.
1535 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1536 Add debug output.
1537
97c44116
AR
15382009-05-27 Aleksandar Ristovski <aristovski@qnx.com>
1539
1540 * nto-procfs.c (get_regset): Pass correct pointer.
1541
f504f079
DE
15422009-05-26 Doug Evans <dje@google.com>
1543
1544 * dwarf2read.c (follow_die_ref): Add comment.
1545 (dwarf2_mark_helper): Tweak comment.
1546 (dwarf2_mark): Move description to its proper place.
1547
4fcbb494
PM
15482009-05-25 Pierre Muller <muller@ics.u-strasbg.fr>
1549
1550 * procfs.c (procfs_wait): Add options parameter.
1551
4e3990f4
DE
15522009-05-24 Doug Evans <dje@google.com>
1553
e09875d4
DE
1554 Global renaming of find_thread_pid to find_thread_ptid.
1555 * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
1556 * thread.c (find_thread_ptid): Renamed from find_thread_pid.
1557 All callers updated.
1558
4e3990f4
DE
1559 * infrun.c (follow_fork): Initialize new step_* locals
1560 to avoid "may be used uninitialized" warnings.
1561
98b54c18
PA
15622009-05-24 Pedro Alves <pedro@codesourcery.com>
1563
1564 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
1565
e58b0e63
PA
15662009-05-24 Pedro Alves <pedro@codesourcery.com>
1567
1568 * gdbthread.h (struct thread_info): New `pending_follow' field.
1569 * thread.c (new_thread): New function.
1570 (add_thread_silent): Use it.
1571 * breakpoint.c (internal_breakpoint_number): New global, moved
1572 from inside...
1573 (create_internal_breakpoint): ... this.
1574 (clone_momentary_breakpoint): New.
1575 * breakpoint.h (clone_momentary_breakpoint): Declare.
1576 * infrun.c (nullify_last_target_wait_ptid): Move declaration
1577 higher.
1578 (pending_follow): Delete.
1579 (follow_fork): Handle pending follow fork event here. Moved the
1580 preserving of thread stepping state here.
1581 (resume): Don't handle pending follow fork events here. Only
1582 install the inferior's terminal modes if we're about to resume it.
1583 (proceed): Handle possible pending follow fork events here.
1584 (init_wait_for_inferior): No need to clear pending_follow anymore,
1585 it's gone.
1586 (handle_inferior_event): Adjust to per-thread `pending_follow'.
1587 Call `follow_fork' to handle following the fork. If the
1588 follow-fork is cancelled, stop stepping.
1589 * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
1590 `pending_follow' events. Remove code that handled preserving the
1591 thread stepping state.
1592 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
1593 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1594
ea26755d 15952009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
70992597
PM
1596
1597 * symfile.c (add_shared_symbol_files_command): Remove
1598 prototype and function.
1599 (_initialize _symfile): Move "add-shared-symbol-files"
1600 command and "assf" alias.
1601 * windows-nat.c (_initialize_windows_nat): to here.
1602 Change "add-shared-symbol-files" to alias.
1603
1604 * config/i386/cygwin.mh: Remove NAT_FILE.
1605 * config/i386/mingw.mh: Remove NAT_FILE.
1606 * config/i386/mingw64.mh: Remove NAT_FILE.
1607 * config/i386/nm-cygwin.h: Remove file.
1608 * config/i386/nm-cygwin64.h: Remove file.
1609
5e31abdf
HZ
16102009-05-24 Hui Zhu <teawater@gmail.com>
1611
1612 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
1613 I386_LINUX_RECORD_IOCTL_*,
1614 I386_LINUX_RECORD_FCNTL_*) Removed.
1615 (i386_linux_init_abi): Change size of record from macros to
1616 numbers.
1617
16182009-05-24 Hui Zhu <teawater@gmail.com>
1619
1620 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
1621 * linux-record.c (record_linux_system_call): Ditto.
1622 * linux-record.h (linux_record_tdep): Ditto.
1623
1b36a34b
JK
16242009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1625
1626 Replace the savestring calls by xstrdup calls where possible.
1627 * breakpoint.c (condition_command, set_raw_breakpoint)
1628 (create_catchpoint, update_breakpoint_locations): Replace the
1629 savestring calls by xstrdup calls where possible.
1630 * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
1631 (record_producer): Likewise.
1632 * coffread.c (coff_start_symtab, complete_symtab): Likewise.
1633 * corefile.c (set_gnutarget): Likewise.
1634 * dbxread.c (add_new_header_file): Likewise.
1635 * demangle.c (set_demangling_command, set_demangling_style): Likewise.
1636 * event-top.c (push_prompt, pop_prompt, command_line_handler)
1637 (set_async_prompt): Likewise.
1638 * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
1639 Likewise.
1640 * language.c (set_language_command, _initialize_language): Likewise.
1641 * linespec.c (decode_line_2): Likewise.
1642 * rs6000-nat.c (add_vmap): Likewise.
1643 * top.c (set_prompt, init_history, init_main): Likewise.
1644 * tracepoint.c (stringify_collection_list): Likewise.
1645 * varobj.c (varobj_create): Remove variable expr_len. Replace the
1646 savestring calls by xstrdup calls where possible.
1647 (value_of_root, c_name_of_variable, c_describe_child): Replace the
1648 savestring calls by xstrdup calls where possible.
1649 * xcoffread.c (complete_symtab): Likewise.
1650 * cli/cli-script.c (build_command_line, define_command): Likewise.
1651 * cli/cli-setshow.c (do_setshow_command): Likewise.
1652
61d8f275
JK
16532009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1654
1655 Remove already unreachable code.
1656 * varobj.c (varobj_get_handle): Fix comment when error is called.
1657 All callers updated.
1658
969107c5
EZ
16592009-05-23 Eli Zaretskii <eliz@gnu.org>
1660
70926f63
EZ
1661 * README (`configure' options): Document GDB-specific options to
1662 `configure'.
1663
8c7a1ee8
EZ
1664 * symtab.c (skip_prologue_using_lineinfo): New function.
1665 (find_function_start_sal): Use it to get to the first line of
1666 function's body that has an entry in the lineinfo table.
1667
969107c5
EZ
1668 * symmisc.c (dump_symtab): Switch the current language to
1669 the language of the symtab we are dumping only if the symtab's
1670 language is neither language_auto nor language_unknown.
1671
1672 * coffread.c (coff_symtab_read): Set language_minimal as the
1673 language for the "_globals_" pseudo-file.
754dd031
EZ
1674 (process_coff_symbol): Set the symbol's language to the language
1675 of current_subfile.
969107c5 1676
0542c86d
PA
16772009-05-22 Pedro Alves <pedro@codesourcery.com>
1678
1679 * target.h (struct section_table): Rename to ...
1680 (struct target_section): ... this.
1681 * exec.c: Adjust all references.
1682 * exec.h: Adjust all references.
1683 * nto-tdep.c: Adjust all references.
1684 * nto-tdep.h: Adjust all references.
1685 * ppc-linux-tdep.c: Adjust all references.
1686 * rs6000-nat.c: Adjust all references.
1687 * s390-tdep.c: Adjust all references.
1688 * solib-darwin.c: Adjust all references.
1689 * solib-frv.c: Adjust all references.
1690 * solib-irix.c: Adjust all references.
1691 * solib-null.c: Adjust all references.
1692 * solib-osf.c: Adjust all references.
1693 * solib-pa64.c: Adjust all references.
1694 * solib-som.c: Adjust all references.
1695 * solib-sunos.c: Adjust all references.
1696 * solib-svr4.c: Adjust all references.
1697 * solib-target.c: Adjust all references.
1698 * solib.c: Adjust all references.
1699 * solist.h: Adjust all references.
1700 * symfile.c: Adjust all references.
1701 * symfile.h: Adjust all references.
1702 * target.c: Adjust all references.
1703
b34fab9a
HZ
17042009-05-22 Hui Zhu <teawater@gmail.com>
1705
1706 Add sys_fcntl argument interfaces to linux_record_tdep.
1707
1708 * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
1709 fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
1710 interfaces.
1711 * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
1712 I386_LINUX_RECORD_FCNTL_F_GETLK64,
1713 I386_LINUX_RECORD_FCNTL_F_SETLK64,
1714 I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
1715 of I386 Linux sys_fcntl arguments.
1716 (i386_linux_init_abi): Set macros values to linux_record_tdep.
1717 * linux-record.c (record_linux_system_call): Change to use
1718 the interface in linux_record_tdep in sys_fcntl and
1719 sys_fcntl64.
1720
1721 * linux-record.c (record_linux_system_call): Fix the process
1722 record build error about type in CYGWIN.
1723
88c0ab9d
PA
17242009-05-22 Pedro Alves <pedro@codesourcery.com>
1725
1726 * inflow.c (kill_command): Delete left over static declaration.
1727
348f8c02
PA
17282009-05-22 Pedro Alves <pedro@codesourcery.com>
1729
1730 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
1731 Include exec.h.
1732 (struct section_closure): Delete.
1733 (add_to_section_table): Delete.
1734 (build_target_sections_from_bfd): Delete.
1735 (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
1736 (target_bfd_reopen): Use build_section_table.
1737 * exec.c (xfer_memory): Move most code except for overlay
1738 debugging support from here...
1739 (section_table_xfer_memory): ... to this new function.
1740 (section_table_xfer_memory_partial): New.
1741 * exec.h (section_table_xfer_memory_partial): Declare.
1742 * bfd-target.h (build_target_sections_from_bfd): Delete
1743 declaration.
1744
41575630
PA
17452009-05-22 Pedro Alves <pedro@codesourcery.com>
1746
1747 * remote.c (compare_sections_command): Don't declare exec_bfd.
1748 * tracepoint.c: Include "gdbcore.h".
1749 (remote_set_transparent_ranges): Don't declare exec_bfd.
1750
783425fc
PA
17512009-05-21 Pedro Alves <pedro@codesourcery.com>
1752
1753 * aix-thread.c (init_aix_thread_ops): Whitespace.
1754
61439e34
PA
17552009-05-21 Pedro Alves <pedro@codesourcery.com>
1756
1757 * dec-thread.c (dec_thread_wait): Add options parameter. Use it
1758 to call the to_wait method in the target beneath.
1759 * remote-m32r-sdi.c (m32r_wait): Add options parameter.
1760
8914d83b
JB
17612009-05-21 Joel Brobecker <brobecker@adacore.com>
1762
1763 * aix-thread.c (aix_thread_wait): Add options parameter. Use it
1764 to call the to_wait method in the target_beneath.
1765
d9d2d8b6
PA
17662009-05-21 Pedro Alves <pedro@codesourcery.com>
1767
1768 * linux-nat.c (linux_nat_terminal_inferior)
1769 (linux_nat_terminal_ours): Don't check sync_execution.
1770 * remote.c (remote_terminal_inferior, remote_terminal_ours):
1771 Don't check sync_execution. Update comments.
1772 * target.c (target_terminal_inferior): New.
1773 * target.h (target_terminal_inferior): Delete macro, and declare
1774 as function.
1775 * event-top.c (async_disable_stdin): Make idempotent. Don't give
1776 the target the terminal here.
1777 * inflow.c (terminal_ours_1): Don't return early without setting
1778 `terminal_is_ours'.
1779
47608cb1
PA
17802009-05-21 Pedro Alves <pedro@codesourcery.com>
1781
1782 * target.h (TARGET_WNOHANG): New.
1783 * target.c (target_wait): Add `options' argument. Adjust.
1784 (struct target_ops) <to_wait>: Add `options' argument.
1785 (target_wait): Add `options' argument.
1786 * infrun.c (wait_for_inferior): Pass 0 as options to
1787 target_wait (blocking wait).
1788 (fetch_inferior_event): Pass TARGET_WNOHANG as options to
1789 target_wait.
1790 * fork-child.c (startup_inferior): Pass 0 as options to
1791 target_wait (blocking wait).
1792 * linux-nat.c (linux_nat_create_inferior): Remove async masking.
1793 (linux_nat_wait_1): Add `target_options' argument. Use it instead
1794 of checking on target_can_async_p.
1795 (linux_nat_wait): Add `target_options' argument. Adjust.
1796 * remote.c (remote_wait_ns): Add `options' argument. Adjust to
1797 check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
1798 (remote_wait_as): Add `options' argument. Adjust to check on
1799 TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
1800 a blocking wait, keep waiting until an interesting event comes
1801 out.
1802 (remote_wait): Add `options' argument. Don't loop here if the
1803 target is in async mode, and a blocking wait has been requested.
1804
1805 * top.c (deprecated_target_wait_hook): Add `options' argument.
1806 * linux-thread-db.c (thread_db_wait): Add `options' argument, and
1807 pass it down to the layer beneath.
1808 * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
1809 * record.c (record_beneath_to_wait): Add `options' argument.
1810 (record_wait): Add `options' argument, and pass it down to the
1811 layer beneath.
1812 * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
1813 * darwin-nat.c (darwin_wait): Likewise.
1814 * defs.h (deprecated_target_wait_hook): Likewise.
1815 * gnu-nat.c (gnu_wait): Add `options' argument.
1816 * go32-nat.c (go32_wait): Likewise.
1817 * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
1818 pass it down to the layer beneath.
1819 * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
1820 * monitor.c (monitor_wait): Likewise.
1821 * nto-procfs.c (procfs_wait): Likewise.
1822 * remote-mips.c (mips_wait): Add `options' argument.
1823 * remote-sim.c (gdbsim_wait): Likewise.
1824 * rs6000-nat.c (rs6000_wait): Add `options' argument.
1825 * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
1826 it down to the layer beneath.
1827 * spu-linux-nat.c (spu_child_wait): Add `options' argument.
1828 * windows-nat.c (windows_wait): Likewise.
1829 * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
1830
9944e9c2
PA
18312009-05-21 Pedro Alves <pedro@codesourcery.com>
1832
1833 * mi/mi-interp.c (mi_on_resume): Account for whole process
1834 resumes.
1835
c244a140
JK
18362009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
1839
76bee0cc
JK
18402009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1841
1842 * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
1843
4ac36638
JK
18442009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1845
1846 Fix parsing DW_AT_const_value using DW_FORM_string.
1847 * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
1848
77f0be4e
JB
18492009-05-20 Joel Brobecker <brobecker@adacore.com>
1850
1851 * aix-thread.c (giter_count): Do not count the main thread.
1852 (giter_accum): Do not include the main thread.
1853
fbdebf46
JK
18542009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1855
1856 Remove the PROT parameter from openp.
1857 * source.c (openp): Remove the parameter PROT. Assertion check MODE.
1858 defs.h (openp): Update the prototype.
1859 Update all the openp callers.
1860
5fd62852
PA
18612009-05-19 Pedro Alves <pedro@codesourcery.com>
1862
1863 * inflow.c (kill_command): Moved to infcmd.c.
1864 (_initialize_inflow): Don't add the "kill" command or clear
1865 inferior_ptid here.
1866 * infcmd.c (kill_command): Moved here from inflow.c.
1867 (_initialize_infcmd): Add the "kill" command here.
1868
191c4426
PA
18692009-05-19 Pedro Alves <pedro@codesourcery.com>
1870
1871 * fork-child.c: Don't include frame.h. Include terminal.h.
1872 (fork_inferior): Call new_tty_postfork after forking adn adding
1873 the child to the inferior list.
1874 * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
1875 here.
1876 * inflow.c (struct terminal_info): Remove const qualifier from
1877 `run_terminal' field.
1878 (inferior_thisrun_terminal): Tweak comment.
1879 (inflow_inferior_exit): Release the `run_terminal' field.
1880 (copy_terminal_info): New function.
1881 (new_tty_postfork): New function.
1882 * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
1883 (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
1884 * inf-ptrace.c: Include terminal.h.
1885 (inf_ptrace_follow_fork): Copy the parent's terminal info to the
1886 child.
1887 * linux-nat.c: Include terminal.h.
1888 (linux_child_follow_fork): Copy the parent's terminal info to the
1889 child.
1890 * inf-ttrace.c: Include terminal.h.
1891 (inf_ttrace_follow_fork): Copy the parent's terminal info to the
1892 child.
1893
2ea7b647
PA
18942009-05-19 Pedro Alves <pedro@codesourcery.com>
1895
1896 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
1897 (update_global_location_list): Use gdbarch_has_global_breakpoints
1898 instead of gdbarch_has_global_solist and
1899 target_supports_multi_process.
1900 * dicos-tdep.c (dicos_init_abi): Set
1901 gdbarch_has_global_breakpoints.
1902 * gdbarch.sh (has_global_solist): Update comment.
1903 (has_global_breakpoints): New.
1904 * remote.c (remote_start_remote): Use
1905 gdbarch_has_global_breakpoints instead of
1906 gdbarch_has_global_solist.
1907 * target.c (target_detach): Use gdbarch_has_global_breakpoints
1908 instead of gdbarch_has_global_solist.
1909 * infcmd.c (attach_command): Use gdbarch_has_global_solist instead
1910 of target_supports_multi_process.
1911
6342b74a
PP
19122009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1913
1914 * objc-lang.c (find_methods): Plug a small memory leak.
1915
1a816a87
PA
19162009-05-18 Pedro Alves <pedro@codesourcery.com>
1917
1918 * solib-svr4.c: Include observer.h.
1919 (debug_base, debug_loader_offset_p, debug_loader_offset)
1920 (debug_loader_name, main_lm_addr): Move these globals...
1921 (struct svr4_info): ... into this new structure.
1922 (svr4_info_p): New typedef.
1923 (svr4_info): New global.
1924 (get_svr4_info, remove_svr4_info, solib_svr4_inferior_exit): New
1925 functions.
1926 (locate_base, solib_svr4_r_map, solib_svr4_r_brk)
1927 (solib_svr4_r_ldsomap): Add svr4_info argument. Adjust to
1928 per-inferior svr4.
1929 (open_symbol_file_object): Adjust to per-inferior svr4.
1930 (svr4_default_sos, svr4_current_sos, svr4_fetch_objfile_link_map):
1931 Ditto.
1932 (enable_break): Add svr4_info argument. Adjust to per-inferior
1933 svr4.
1934 (enable_break, svr4_solib_create_inferior_hook, svr4_clear_solib):
1935 Adjust to per-inferior svr4.
1936 (_initialize_svr4_solib): Install the solib_svr4_inferior_exit
1937 observer.
1938
4d062f1a
PA
19392009-05-18 Pedro Alves <pedro@codesourcery.com>
1940
1941 * linux-nat.h (linux_proc_get_tgid): Declare.
1942 * linux-nat.c (linux_proc_get_tgid): New.
1943 * linux-thread-db.c (struct thread_db_info): New field
1944 `need_stale_parent_threads_check'.
1945 (add_thread_db_info): Set it.
1946 (find_new_threads_callback): Ignore stale fork parent threads.
1947 (thread_db_resume): New.
1948 (init_thread_db_ops): Install thread_db_resume.
1949
d90e17a7
PA
19502009-05-18 Pedro Alves <pedro@codesourcery.com>
1951
1952 * fork-child.c (fork_inferior): Only reset the thread list if this
1953 is the first inferior.
1954 (startup_inferior): If the target support multi-process, tell it
1955 to resume only the new process.
1956 * linux-nat.c (num_lwps): Delete global.
1957 (purge_lwp_list): New function.
1958 (num_lwps): New function.
1959 (add_lwp, delete_lwp): Adjust.
1960 (ptid_match): New.
1961 (iterate_over_lwps): Add filter argument. Handle it.
1962 (linux_nat_attach): Remove FIXME note.
1963 (linux_nat_detach): Adjust to iterate over threads of the inferior
1964 we're detaching from. Adjust to num_lwps being a function. Don't
1965 assume the head of the lwp list is the main thread of the process
1966 we're detaching from. Don't destroy the LWP list.
1967 (resume_callback): Add debug output.
1968 (linux_nat_resume): Handle resuming a single inferior. Allow a
1969 wildcard resume in non-stop mode.
1970 (linux_handle_extended_wait): Don't assume inferior_ptid is the
1971 correct inferior of the parent LWP.
1972 (status_callback): Also check lp->waitstatus.
1973 (select_event_lwp): Add new filter parameter. Handle it.
1974 (linux_nat_filter_event): Adjust to num_lwps being a function.
1975 (linux_nat_wait_1): When adding the first lwp of the inferior, use
1976 an is_lwp check instead of checking for the number of lwps.
1977 (linux_nat_wait_1): Handle waiting for a specific tgid. Handle
1978 pending process exit statuses.
1979 (linux_nat_mourn_inferior): Don't destroy all the LWP info.
1980 Instead delete LWPs of the inferior that we're mourning. Don't
1981 unregister from the event loop here.
1982 (linux_nat_pid_to_str): Use `num_lwps'.
1983 (linux_nat_make_corefile_notes): Adjust to walk over lwps of a
1984 single inferior.
1985 (linux_nat_is_async_p): Check if async was masked out.
1986 (linux_multi_process): New global.
1987 (linux_nat_supports_multi_process): New.
1988 (linux_nat_stop_lwp): Remove LWP filtering. It is done by the
1989 caller.
1990 (linux_nat_stop): Adjust to make iterate_over_lwps itself do the
1991 LWP filtering.
1992 (linux_nat_close): New.
1993 (linux_nat_add_target): Register linux_nat_close and
1994 linux_nat_supports_multi_process.
1995 * linux-nat.h (iterate_over_lwps): Add filter argument.
1996 * linux-thread-db.c (thread_db_handle): Delete.
1997 (proc_handle, thread_agent, td_init_p, td_ta_new_p)
1998 (td_ta_map_id2thr_p, td_ta_map_lwp2thr_p, td_ta_thr_iter_p)
1999 (td_ta_event_addr_p, td_ta_set_event_p, td_ta_event_getmsg_p)
2000 (td_thr_validate_p, td_thr_get_info_p, td_thr_event_enable_p)
2001 (td_thr_tls_get_addr_p, td_create_bp_addr, td_death_bp_addr): No
2002 longer globals, moved to...
2003 (struct thread_db_info): ... this new structure.
2004 (thread_db_list): New.
2005 (add_thread_db_info, get_thread_db_info, delete_thread_db_info):
2006 New.
2007 (have_threads_callback): Filter out threads of all inferiors but
2008 the one specified by the ARGS argument.
2009 (have_threads): Add ptid argument specifying the inferior we're
2010 interested in. Handle it.
2011 (struct thread_get_info_inout): New.
2012 (thread_get_info_callback, thread_from_lwp): Adjust to use it.
2013 (thread_db_attach_lwp): Check that inferior of the passed in
2014 thread is using thread-db. Adjust.
2015 (enable_thread_event): Remove thread_agent parameter. Instead,
2016 get it from the per-inferior thread-db info.
2017 (dladdr_to_soname): Move higher up.
2018 (enable_thread_event_reporting): Adjust to use per-inferior
2019 thread-db info.
2020 (try_thread_db_load_1): Replace `handle' parameter by a
2021 thread_db_info parameter. Adjust to use per-inferior thread-db
2022 info.
2023 (try_thread_db_load): Adjust to use per-inferior thread-db info.
2024 (thread_db_load, disable_thread_event_reporting): Ditto.
2025 (check_for_thread_db): Remove conditional reporting of which
2026 libthread_db is in use.
2027 (thread_db_new_objfile): Add comment about inferior_ptid.
2028 (attach_thread): Adjust to use per-inferior thread-db info.
2029 (thread_db_detach): Adjust to use per-inferior thread-db info.
2030 Remove thread event breakpoints of the current inferior. Only
2031 unpush the thread-db target if there are no more processes using
2032 it.
2033 (check_event): Adjust to use per-inferior thread-db info.
2034 (thread_db_wait): Adjust to use per-inferior thread-db info. Only
2035 unpush the thread-db target if there are no more processes using
2036 it.
2037 (thread_db_mourn_inferior): Adjust to use per-inferior thread-db
2038 info. Mark breakpoints of the current inferior out before
2039 deleting them. Only unpush the thread-db target if there are no
2040 more processes using it.
2041 (find_new_threads_callback): Adjust to use per-inferior thread_db
2042 info.
2043 (thread_db_find_new_threads_1): Add new ptid argument. Adjust to
2044 use per-inferior thread-db info.
2045 (thread_db_find_new_threads): Adjust to use per-inferior thread-db
2046 info.
2047 (thread_db_get_thread_local_address): Adjust.
2048 (thread_db_get_ada_task_ptid): Adjust.
2049 * inf-ptrace.c (inf_ptrace_mourn_inferior): Only unpush the target
2050 if there no more processes left to debug.
2051 * thread.c (set_running, set_executing): Handle resuming all
2052 threads of a single inferior.
2053 * mi/mi-interp.c (mi_output_running_pid): New.
2054 (mi_inferior_count): New.
2055 (mi_on_resume): For backwards compatibility, if resuming all
2056 threads of an inferior, and there is only one inferior, output
2057 "all".
2058
dddfab26
UW
20592009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2060
2061 * ada-lang.c (ada_find_any_type): Move check for primitive types ...
2062 (to_fixed_range_type): ... to here.
2063
556bdfd4
UW
20642009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2065
2066 * ada-lang.c (desc_data_type): Remove, replace by ...
2067 (desc_data_target_type): ... this.
2068 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
2069 (ada_is_array_descriptor_type): Likewise.
2070 (ada_type_of_array): Likewise.
2071 (ada_coerce_to_simple_array_type): Likewise.
2072 (ada_array_element_type): Likewise.
2073
aaa88a99
UW
20742009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2075
2076 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
2077 result of ada_vax_float_print_function inferior call.
2078
17280b9f
UW
20792009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2080
2081 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
2082 avoid creating a dummy value.
2083
830bb937
UW
20842009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2085
2086 * p-valprint.c (pascal_val_print): Use extract_typed_address
2087 to extract reference value.
2088
e035e373
UW
20892009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2090
2091 * doublest.c (NAN): Remove unused define.
2092 (extract_floating_by_length, deprecated_extract_floating): Remove.
2093 (store_floating_by_length, deprecated_store_floating): Remove.
2094 (extract_typed_floating): Do not call extract_floating_by_length.
2095 (store_typed_floating): Do not call store_floating_by_length.
2096 (convert_typed_floating): Remove redundant assertions.
2097 * doublest.h (deprecated_extract_floating): Remove.
2098 (deprecated_store_floating): Remove.
2099 * sh64-tdep.c (sh64_register_convert_to_raw): Call
2100 extract_typed_floating instead of deprecated_extract_floating.
2101
c28c63d8
JB
21022009-05-18 Jon Beniston <jon@beniston.com>
2103
2104 * MAINTAINERS: Add lm32 target.
2105 * Makefile.in: Add lm32 dependencies.
2106 * NEWS: Indicate lm32 is a new target.
2107 * configure.tgt: Add lm32 targets.
2108 * lm32-tdep.c: New file.
2109
739fc47a
PA
21102009-05-18 Pedro Alves <pedro@codesourcery.com>
2111
2112 * corelow.c (core_open): Flush the register cache before doing
2113 anything with registers.
2114
7e1789f5
PA
21152009-05-18 Pedro Alves <pedro@codesourcery.com>
2116
2117 * inflow.h (our_process_group): Remove declaration.
2118 (inferior_process_group): Delete global variable declaration.
2119 (inferior_process_group): New function declaration.
2120 * inflow.c: Include observer.h.
2121 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
2122 Delete.
2123 (struct terminal_info): New struct.
2124 (our_terminal_info): New global.
2125 (inferior_process_group): New function.
2126 (inferior_thisrun_terminal): Extend description comment.
2127 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
2128 instead of globals.
2129 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
2130 terminal settings.
2131 (terminal_inferior): Ditto.
2132 (terminal_ours_1): Ditto.
2133 (inflow_new_inferior, inflow_inferior_exit): New functions.
2134 (child_terminal_info): Adjust to per-inferior terminal settings.
2135 (osig_set): New global.
2136 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
2137 or clear `osig_set' accordingly.
2138 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
2139 SIGINT handler, instead of checking the current inferior (which
2140 may be none).
2141 (_initialize_inflow): Attach inflow_new_inferior and
2142 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
2143 notifications, respectively.
2144 * inferior.h (struct terminal_info): Forward declare.
2145 (struct inferior): Add `terminal_info' field.
2146 * inferior.c (delete_inferior_1): Notify the inferior_exit
2147 observers before removing the inferior from the lists and deleting
2148 it.
2149 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
2150 a function instead of a variable. Adjust.
2151 * procfs.c (procfs_stop): Ditto.
2152
b242c3c2
PA
21532009-05-17 Pedro Alves <pedro@codesourcery.com>
2154
2155 * infrun.c (handle_inferior_event): When handling a
2156 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
2157 immediatelly.
60a7d074 2158 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
b242c3c2
PA
2159 from the child if vforking.
2160 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
2161 breakpoints from the child here.
2162
71b43ef8
PA
21632009-05-17 Pedro Alves <pedro@codesourcery.com>
2164
2165 * infrun.c (pending_follow): Remove execd_pathname member.
2166 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
2167 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
2168 event, don't copy `execd_pathname' to pending_follow, use the
2169 event copy instead. Release `execd_pathname' once done with
2170 handling the event.
2171
235f2b04
PA
2172 * infrun.c (pending_follow): Remove mention of exec events.
2173
a6b808b4
HZ
21742009-05-17 Hui Zhu <teawater@gmail.com>
2175
2176 * i386-tdep.c (i386_process_record): Make it extern.
2177 (i386_gdbarch_init): Don't call set_gdbarch_process_record
2178 here.
d5f3b873 2179 * i386-tdep.h (i386_process_record): Declare.
a6b808b4
HZ
2180 * i386-linux-tdep.c (i386_linux_init_abi): Call
2181 set_gdbarch_process_record.
2182
ee342b23
VP
21832009-05-17 Vladimir Prus <vladimir@codesourcery.com>
2184
2185 Always report varobj as changed when in_scope attribute changes.
2186
2187 * varobj.c (install_new_value): If non-NULL-ness of value
2188 changed, return 1.
2189
17a37d48
PP
21902009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2191
2192 * NEWS: Mention set/show libthread-db-search-path.
2193 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
2194 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
2195 * linux-thread-db.c (libthread_db_search_path): New setting.
2196 (thread_db_handle): New variable (replaces using_thread_db).
2197 (try_thread_db_load_1): New function.
2198 (try_thread_db_load, thread_db_load_search): Likewise.
2199 (dladdr_to_soname): Likewise.
2200 (thread_db_load): Iterate over possibly multiple libthread_db's.
2201 (check_for_thread_db): Attempt to load new libthread_db.
2202 (thread_db_detach, thread_db_wait): Unload libthread_db.
2203 (thread_db_mourn_inferior): Likewise.
2204 (_initialize_thread_db): Add new libthread-db-search-path option.
2205 Defer loading of libthread_db to check_for_thread_db.
2206 * solib.c (libpthread_name_p): New function.
2207 (libpthread_solib_p): Call it.
2208 * solib.h (libpthread_name_p): New prototype.
2209
0643c12e
PM
22102009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
2211
2212 * MAINTAINERS: Update my email address.
2213
e62c965a
PP
22142009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2215
2216 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
2217 * breakpoint.c (create_overlay_event_breakpoint): Renamed
2218 from create_overlay_event_breakpoint_1, old
2219 create_overlay_event_breakpoint deleted.
2220 (breakpoint_re_set_objfile): Don't rescan all objfiles
2221 unnecessarily.
2222 (breakpoint_re_set): New function.
2223 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
2224 instead of breakpoint_re_set.
2225 * objfiles.c (objfile_relocate): Likewise.
2226
9e2ace22
JB
22272009-05-14 Joel Brobecker <brobecker@adacore.com>
2228
2229 * gdbarch.sh: Add comment documenting the target_gdbarch global.
2230 gdbarch.h does NOT need to be regenerated as the corresponding
2231 change has already been made in a previous commit.
2232
39a90fca 22332009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
9bb9e8ad
PM
2234
2235 Remove all i386 debug register low level macros in config nm files.
2236 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
2237 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
2238 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
2239
2240 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
2241 (struct i386_dr_low_type): New type.
2242 (i386_dr_low): New global variable.
2243 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
2244 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
2245 i386_dr_low struct variable fields.
2246 (i386_remove_aligned_watchpoint): Likewise.
2247 (i386_stopped_data_address): Likewise.
2248 (i386_stopped_by_hwbp): Likewise.
2249 (show_debug_regs_command_added): New static variable.
2250 (add_show_debug_regs_command): New static function.
2251 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
2252 (i386_set_debug_register_length): New function.
2253 (_initialize_i386_nat): Delete.
2254
2255 * amd64-linux-nat.c: Include "i386-nat.h".
2256 (amd64_linux_dr_set_control): Change to static.
2257 (amd64_linux_dr_get_status): Change to static.
2258 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
2259 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
2260
2261 * go32-nat.c: Include "i386-nat.h".
2262 (go32_set_addr): Change to static.
2263 (go32_set_dr7): Change to static. Change arg type to unisgned long.
2264 (go32_get_dr6): Change to static. Change return type to unisnged long.
2265 (init_go32_ops): Set i386_dr_low variable fields.
2266 * i386-linux-nat.c: Include "i386-nat.h".
2267 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
2268 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
2269 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
2270 * i386bsd-nat.h: Declare functions used for
2271 i386_dr_low fields in i386fbsd-nat.c.
2272 * i386fbsd-nat.c: Include "i386-nat.h".
2273 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
2274 * windows-nat.c: Include "i386-nat.h".
2275 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
2276 Change to static.
2277 (cygwin_get_dr6): Change return type to unisnged long.
2278 (cygwin_set_dr7): Change arg type to unisgned long.
2279 (init_windows_ops): Set i386_dr_low function fields.
2280
2281 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
2282 i386_set_debug_register_length.
2283 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
2284
2285 * config/i386/nm-cygwin.h: Remove all I386_* macros.
2286 * config/i386/nm-cygwin64.h: Likewise.
2287 * config/i386/nm-fbsd.h: Likewise.
2288 * config/i386/nm-linux.h: Likewise.
2289 * config/i386/nm-i386.h: Remove completely.
2290 * config/i386/nm-go32.h: Remove completely.
2291 * config/i386/nm-linux64.h: Remove completely.
2292 * config/i386/go32.mh (NAT_FILE): Remove entry.
2293 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
2294
7a893eb8
JB
22952009-05-14 Jon Beniston <jon@beniston.com>
2296
2297 * MAINTAINERS: Add Jon Beniston to write after approval list.
2298
57a9e6af
PP
22992009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
2300
2301 * objc-lang.c (objc_objfile_data): New variable.
2302 (find_methods): Skip objfiles without Obj-C methods.
2303 (_initialize_objc_lang): New function.
2304
3f7f5fe4
JB
23052009-05-13 Joel Brobecker <brobecker@adacore.com>
2306
2307 * c-lang.c (print_wchar): Remove unnecessary cast.
2308
25ad2853
JB
23092009-05-12 Jim Blandy <jimb@red-bean.com>
2310
2311 * MAINTAINERS: Remove self as m32c target maintainer.
2312
cbe54154
PA
23132009-05-12 Pedro Alves <pedro@codesourcery.com>
2314
2315 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
2316 * command.h (deprecated_add_set_cmd): Delete declaration.
2317 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
2318 'set debug gnu-nat' and 'show debug gnu-nat'.
2319 * i386-nat.c (_initialize_i386_nat): Replace 'maint
2320 show-debug-registers' with 'maint set show-debug-registers' and
2321 'maint show show-debug-registers'.
2322 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
2323 show-debug-registers' with 'maint set show-debug-registers' and
2324 'maint show show-debug-registers'.
2325
2d90c72a
JB
23262009-05-12 Joel Brobecker <brobecker@adacore.com>
2327
2328 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
2329 pushing it on the output obstack.
2330
00903456
JK
23312009-05-11 Joel Brobecker <brobecker@adacore.com>
2332
2333 Fix internal error on breaking at a multi-locations caller source line.
2334 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
2335 command with no parameters.
2336
7feb7d06
PA
23372009-05-11 Pedro Alves <pedro@codesourcery.com>
2338
2339 * linux-nat.c (enum sigchld_state): Delete.
2340 (linux_nat_async_events_state): Delete.
2341 (struct waitpid_result): Delete.
2342 (waitpid_queue): Delete.
2343 (queued_waitpid_1): Delete.
2344 (async_file_flush): New.
2345 (queued_waitpid, push_waitpid): Delete.
2346 (async_file_mark): New.
2347 (drain_queued_events): Delete.
2348 (my_waitpid): Remove locally queued events handling.
2349 (linux_test_for_tracefork): Upjust.
2350 (linux_child_follow_fork): Ditto.
2351 (sync_sigchld_action): Delete.
2352 (blocked_mask): Reinstate.
2353 (async_sigchld_action): Rename to...
2354 (sigchld_action): ... this.
2355 (block_child_signals): New.
2356 (restore_child_signals_mask): New.
2357 (lin_lwp_attach_lwp): Adjust.
2358 (linux_nat_create_inferior): Ditto.
2359 (linux_nat_attach): Also use lp->status in async mode.
2360 (get_pending_status): Don't use queued_waitpid.
2361 (linux_nat_detach): Don't drain locally queued events.
2362 (linux_nat_resume): Allow pending wait statuses stored lp->status
2363 in async mode. If returning early due to a pending event,
2364 re-register the event source.
2365 (stop_wait_callback): Allow pending wait statuses stored
2366 lp->status in async mode.
2367 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
2368 (linux_nat_wait): Rename to ...
2369 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
2370 lp->status in async mode. Always add WNOHANG to the waitpid
2371 options in async mode.
2372 (linux_nat_wait): New.
2373 (kill_callback): Don't drain locally queued events.
2374 (sigchld_handler): Rewrite.
2375 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
2376 refer to "set target-async".
2377 (linux_nat_async_mask): If in non-stop, and re-enabling async
2378 mode, re-register the target event source in the event loop.
2379 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
2380 (get_pending_events, async_sigchld_handler)
2381 (linux_nat_async_events): Delete.
2382 (handle_target_event): New.
2383 (linux_nat_async_file_handler): Delete.
2384 (linux_async_pipe): New.
2385 (linux_nat_async): Only re-register in the event loop if not
2386 registered yet. Always notify the event-loop once if enabling the
2387 event source.
2388 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
2389 lp->status, not in the locally queued event list.
2390 (linux_nat_stop): Don't mask out async event handling.
2391 (linux_nat_setup_async): Delete.
2392 (_initialize_linux_nat): Adjust.
2393 (lin_thread_get_thread_signals): blocked_mask is global again.
2394 Adjust.
2395
39a90fca 23962009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
d92524f1
PM
2397
2398 Unify target macros.
2399
2400 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
2401 (target_stoppped_by_watchpoint): New macro.
2402 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
2403 (target_have_steppable_watchpoint): New macro.
2404 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
2405 (target_have_continuable_watchpoint): New macro.
2406 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
2407 (target_can_use_hardware_watchpoint): New macro.
2408 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
2409 (target_region_ok_for_hw_watchpoint): New macro.
2410
2411 * breakpoint.c (update_watchpoint): Use new macros.
2412 (bpstat_alloc): Likewise.
2413 (create_breakpoint): Likewise.
2414 (watch_command_1): Likewise.
2415 (can_use_hardware_watchpoint): Likewise.
2416 (do_enable_breakpoint): Likewise.
2417 * infrun.c (handle_inferior_event): Adapt to new macros.
2418 * mips-tdep.c (mips_gdbarch_init): Update comments.
2419 * procfs.c (procfs_set_watchpoint): Update comment.
2420 (procfs_insert_watchpoint): Adapt to new macros.
2421 * remote-m32r-sdi.c (m32r_stop):
2422 * remote-mips.c (mips_remove_breakpoint):
2423 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
2424 (debug_to_stopped_by_watchpoint): Likewise.
2425
2426
39a90fca 24272009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
fe524716
PM
2428
2429 * src/gdb/target.h: Remove all tests for already defined
2430 macros. All macros defined here should not be set in config
2431 headers anymore.
2432
1dfe79e8
SDJ
24332009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2434
2435 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
2436 (have_ptrace_getsetfpregs): Likewise.
2437 fetch_all_gp_regs): New function.
2438 (fetch_gp_regs): New function.
2439 (fetch_all_fp_regs): Likewise.
2440 (fetch_fp_regs): New function.
2441 (fetch_ppc_registers): Using the new methods to fetch general-
2442 purpose and floating-pointer registers.
2443 (store_all_gp_regs): New function.
2444 (store_gp_regs): Likewise.
2445 (store_all_fp_regs): New function.
2446 (store_fp_regs): Likewise.
2447 (store_ppc_registers): Using the new methods to store general-
2448 purpose and floating-pointer registers.
2449
2cda8d2f
DE
24502009-05-08 Doug Evans <dje@google.com>
2451
2452 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
2453
b0afac70
SDJ
24542009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2455
2456 * MAINTAINERS (Write After Approval): Add self.
2457
6b614274
JB
24582009-05-07 Joel Brobecker <brobecker@adacore.com>
2459
2460 * gdbarch.h (target_gdbarch): Add comment documenting this global.
2461
24622009-05-06 Joel Brobecker <brobecker@adacore.com>
4edb1e84
JB
2463
2464 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
2465 system iconv.
2466 * configure: Regenerate.
2467
6b614274 24682009-05-06 Joel Brobecker <brobecker@adacore.com>
8626589c
JB
2469
2470 * utils.c: Add include of gdb_usleep.h.
2471 (defaulted_query): Detect false EOF conditions that happen
2472 on terminals opened with the O_NONBLOCK flag when there is
2473 nothing to read.
2474
a562dc8f
PA
24752009-05-06 Pedro Alves <pedro@codesourcery.com>
2476
2477 * inferior.c (add_inferior): Move observer_notify_new_inferior
2478 call to ...
2479 (add_inferior_silent): ... here.
2480
39a90fca 24812009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
25513619
PA
2482 Pedro Alves <pedro@codesourcery.com>
2483
2484 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
2485 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
2486 functions.
2487 (procfs_stopped_by_watchpoint): Made static, ptid argument
2488 removed.
2489 (_initialize_procfs): Register new watchpoint related target
2490 functions.
2491 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
2492 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
2493 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
2494 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2495 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2496 declarations.
2497 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
2498 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2499 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2500 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2501 declarations.
2502 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
2503 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
2504 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2505 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2506 declarations.
2507
51f4db83 25082009-05-06 Hui Zhu <teawater@gmail.com>
e7a8dbfb 2509
8408d274
HZ
2510 * i386-tdep.c (i386_process_record): Change bzero to memset.
2511
51f4db83 25122009-05-06 Hui Zhu <teawater@gmail.com>
8408d274
HZ
2513
2514 * NEWS: Add item for process record and replay.
e7a8dbfb 2515
f6402f18
MG
25162009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2517
2518 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
2519
fb14de7b
UW
25202009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2521
2522 * inferior.h (read_pc, write_pc): Remove.
2523 * regcache.c (read_pc, write_pc): Remove.
2524
2525 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
2526 of read_pc.
2527 (handle_inferior_event): Use regcache_read_pc instead of read_pc
2528 when determining value of stop_pc. Replace subsequent uses of
2529 read_pc by inspecting already-retrieved stop_pc value.
2530 (keep_going): Use regcache_read_pc instead of read_pc.
2531
2532 * breakpoint.c (watchpoint_check): Use current frame architecture
2533 and PC instead of current_gdbarch and read_pc ().
2534 * tracepoint.c (set_traceframe_context): Replace PC argument
2535 with FRAME argument.
2536 (trace_start_command, finish_tfind_command): Update calls.
2537 (finish_tfind_command): Compare frame IDs to identify transitions
2538 between frames.
2539 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
2540 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
2541 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
2542 of read_pc and write_pc.
2543 (store_register): Make regcache argument non-const. Update call
2544 to exec_one_dummy_insn.
2545
2546 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
2547 * infcmd.c (post_create_inferior): Likewise.
2548 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
2549 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2550 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2551 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
2552 * linux-fork.c (fork_load_infrun_state): Likewise.
2553 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2554 * record.c (record_wait): Likewise.
2555 * procfs.c (procfs_wait): Likewise.
2556 * remote-mips.c (common_open, mips_wait): Likewise.
2557 * remote-m32r-sdi.c (m32r_resume): Likewise.
2558
2559 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
2560 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
2561 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
2562 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
2563 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
2564
2565 * solib-darwin.c: Include "regcache.h".
2566 * solib-pa64.c: Include "regcache.h".
2567 * solib-svr4.c: Include "regcache.h.".
2568
2569 * symfile.c: Do not mention read_pc or write_pc in comments.
2570 * dink32-rom.c: Likewise.
2571 * m32r-rom.c: Likewise.
2572 * mips-tdep.c: Likewise.
2573
f698437e
UW
25742009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2575
2576 * fork-child.c (startup_inferior): Move setting stop_pc ...
2577 * infcmd.c (post_create_inferior): ... to here.
2578
64644d9b
MS
25792009-05-04 Michael Snyder <msnyder@vmware.com>
2580
2581 * NEWS: Add item for reverse debugging commands.
2582
67ce33d7
PA
25832009-05-04 Pedro Alves <pedro@codesourcery.com>
2584
2585 * go32-nat.c (go32_stop): Delete.
2586 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
2587 (go32_create_inferior): Don't call go32_stop or
2588 go32_kill_inferior.
2589 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
2590 here.
2591 (init_go32_ops): Don't register go32_stop.
2592
26a4ddaa
EZ
25932009-05-02 Eli Zaretskii <eliz@gnu.org>
2594
2595 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
2596 sym_name.
2597
2598 * infcall.c (find_function_addr): Avoid compiler warnings for
2599 funaddr.
2600
a11a1416
JK
26012009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
2604 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
2605
ee78f3e5
DE
26062009-05-01 Doug Evans <dje@google.com>
2607
2608 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
2609 to thread_info.
2610
699275c9
EZ
26112009-05-01 Eli Zaretskii <eliz@gnu.org>
2612
299a410e
EZ
2613 * record.c (_initialize_record): Reformat and clarify doc strings
2614 for stop-at-limit and insn-number-max.
2615
699275c9
EZ
2616 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
2617
323427d1
JK
26182009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2619
2620 Make specifiable the make_function_type type memory ownership.
2621 * gdbtypes.c (make_function_type): New parameter `objfile', use it
2622 explicitely instead of TYPE-initialized removed local variable
2623 `objfile'. Describe `objfile' it in the function comment.
2624 (lookup_function_type): Update make_function_type callers.
2625 * gdbtypes.h (make_function_type): Update the prototype.
2626 * jv-lang.c (java_link_class_type): Update make_function_type callers.
2627 * dwarf2read.c (read_subroutine_type): Likewise.
2628 * stabsread.c (read_type): Likewise.
2629
15430fc0
EZ
26302009-05-01 Eli Zaretskii <eliz@gnu.org>
2631
89c9c2ec
EZ
2632 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
2633 printing a bogus "Thread <main>".
2634 (go32_thread_alive): Don't return 1 for null_ptid.
2635
15430fc0
EZ
2636 * i386-tdep.c (i386_go32_init_abi): Override the number of
2637 registers due to non-support of SSE.
2638
c7098c41
AG
26392009-04-30 Anthony Green <green@moxielogic.com>
2640
2641 * configure.tgt: Link the moxie simulator in with gdb.
2642
25c2f6ab
PP
26432009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
2644
2645 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
2646 are present.
15430fc0 2647
77fcef51
HZ
26482009-04-30 Hui Zhu <teawater@gmail.com>
2649 Michael Snyder <msnyder@vmware.com>
2650
2651 I386 Linux process record and replay support.
2652
2653 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
2654 This struct has the argument for the function
2655 "record_linux_system_call".
2656 (i386_linux_intx80_sysenter_record): New function. Parse the
2657 system call instruction and call function
2658 "record_linux_system_call" to record execute log.
2659 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
2660 Set "i386_linux_intx80_sysenter_record" to
2661 "i386_intx80_record" and "i386_sysenter_record".
2662
7ad10968
HZ
26632009-04-30 Hui Zhu <teawater@gmail.com>
2664 Michael Snyder <msnyder@vmware.com>
2665
2666 I386 architecture process record and replay support.
2667
2668 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
2669 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
2670 instruction set.
2671 (aflag, dflag, override, modrm, mod, reg, rm, ot,
2672 i386_record_pc): New variables. Ditto.
2673 (i386_record_modrm, i386_record_lea_modrm_addr,
2674 i386_record_lea_modrm): New functions. Ditto.
2675 (i386_process_record): New function. Parse the instruction in
2676 address "addr" and record the values of registers and memory
2677 that will be changed by this instruction.
2678 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
2679 "process_record" interface.
2680 * i386-tdep.h (gdbarch_tdep): New function pointers
2681 "i386_intx80_record" and "i386_sysenter_record" that point to
2682 the function that can record "intx80" and "sysenter" execute
2683 log.
2684
96429cc8
HZ
26852009-04-30 Hui Zhu <teawater@gmail.com>
2686 Michael Snyder <msnyder@vmware.com>
2687
2688 * infrun.c (use_displaced_stepping): Return false if process
2689 record and replay target is used.
2690 (proceed): Call function "record_not_record_set" if pocess
2691 record and replay target is used.
2692
b7f6bf22
HZ
26932009-04-30 Hui Zhu <teawater@gmail.com>
2694 Michael Snyder <msnyder@vmware.com>
2695
2696 Linux process record and replay support.
2697
2698 * Makefile.in (ALLDEPFILES): Add linux-record.c.
2699 (ALL_TARGET_OBS): Add linux-record.o.
2700 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
2701 (i[34567]86-*-linux*): Add linux-record.o.
2702 * linux-record.c, linux-record.h: New file.
2703
69d05d38
HZ
27042009-04-30 Hui Zhu <teawater@gmail.com>
2705 Michael Snyder <msnyder@vmware.com>
2706
2707 Process record and replay target.
2708
2709 * Makefile.in (SFILES): Add record.c.
2710 (COMMON_OBS): Add record.o.
2711 * record.c, record.h: New file.
2712
81e64f55
HZ
27132009-04-30 Hui Zhu <teawater@gmail.com>
2714 Michael Snyder <msnyder@vmware.com>
2715
2716 * target.h (strata): New stratum "record_stratum".
2717
0407e712
HZ
27182009-04-30 Hui Zhu <teawater@gmail.com>
2719 Michael Snyder <msnyder@vmware.com>
2720
2721 GDBARCH interface for process record and replay.
2722
2723 * gdbarch.sh (process_record): This interface point to the
2724 function that records the inferior execute log.
2725
c5af0dad
DE
27262009-04-29 Doug Evans <dje@google.com>
2727
2728 * i386-nat.c (child_post_startup_inferior): Delete, unused.
2729
df2b6d2d
PA
27302009-04-29 Pedro Alves <pedro@codesourcery.com>
2731
2732 * breakpoint.c (print_exception_catchpoint): Access `b' directly
2733 instead of `b->loc->owner'.
2734 (print_mention_exception_catchpoint): Ditto.
2735
484086b7
JK
27362009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2737
2738 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
2739
379a77b5
TT
27402009-04-27 Tom Tromey <tromey@redhat.com>
2741
2742 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
2743
aad80b26
JG
27442009-04-27 Jerome Guitton <guitton@adacore.com>
2745
2746 * symtab.c (append_exact_match_to_sals): New function, extracted
2747 from expand_line_sal.
2748 (expand_line_sal): Use append_exact_match_to_sals to append exact
2749 matches. If none found, append all best items.
2750
57a46001
JG
27512009-04-27 Jerome Guitton <guitton@adacore.com>
2752
2753 * main.c (captured_main): Move gdbinit lookups after gdb_init.
2754
d389af10
JK
27552009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2756
2757 PR gdb/9675:
2758 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
2759 (read_func_scope): Call inherit_abstract_dies.
2760
90b9b517
EZ
27612009-04-25 Eli Zaretskii <eliz@gnu.org>
2762
2763 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
2764 sparc-sol2-nat.c and sparc-sol2-tdep.c.
80a0ea0f
EZ
2765
2766 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
2767
39a90fca 27682009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
5ac79d78
PM
2769
2770 ARI change: Use "/* ARI: rule */" pattern.
2771 * utils.c: Update ARI patterns.
2772 * gdb_dirent.h: Likewise.
2773
d7066cce
AG
27742009-04-23 Anthony Green <green@moxielogic.com>
2775
2776 * MAINTAINERS: Add moxie target.
2777 * configure.tgt: Add moxie-*-elf target.
2778 * moxie-tdep.c: New file.
2779 * moxie-tdep.h: New file.
2780
fc84d355 27812009-04-23 Joel Brobecker <brobecker@adacore.com>
72fcaa05
JB
2782
2783 * ada-lang.c: Remove an extra empty line. No code change.
2784
217dc9e2
JK
27852009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2786
2787 Fix double free on error inserting the breakpoint instruction.
2788 * breakpoint.c (create_breakpoints): Move the
2789 update_global_location_list call to ...
2790 (break_command_really): ... here together with the second local call
2791 both unified after all the cleanups.
2792
b14b1491
TT
27932009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2794 Tom Tromey <tromey@redhat.com>
2795
2796 * configure, config.in: Regenerate.
2797 * configure.ac: Support for relocatable GDB datadir. Use
2798 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
2799 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
2800 * top.c (init_main): Add "set data-directory".
2801 * defs.h (gdb_datadir): Declare.
2802 * main.c (gdb_datadir): New global.
2803 (captured_main): Initialize gdb_datadir. Use relocate_directory.
2804 (relocate_path): New function.
2805 (relocate_directory): Likewise.
2806 (get_init_files): Use relocate_path.
2807 (README): Mention --with-gdb-datadir.
2808
5e7b5f74
JB
28092009-04-23 Joel Brobecker <brobecker@adacore.com>
2810
2811 * ada-tasks (task_command_1): Call target_find_new_threads.
2812
465f42bb
JB
28132009-04-23 Joel Brobecker <brobecker@adacore.com>
2814
2815 * stack.c (do_gdb_disassembly): Print the exception message if an
2816 error was thrown while trying to perform the disassembly.
2817
3038237c
JK
28182009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 * varobj.c (free_variable): Replace free_current_contents by xfree.
2821
17c12639
KH
28222009-04-22 Kazu Hirata <kazu@codesourcery.com>
2823
2824 * arm-linux-nat.c (fetch_register, store_register): Use
2825 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
2826 * arm-linux-tdep.c (arm_linux_supply_gregset,
2827 arm_linux_collect_gregset): Likewise.
2828 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
2829 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
2830
a362e3d3
HZ
28312009-04-22 Hui Zhu <teawater@gmail.com>
2832
2833 * stack.c (_initialize_stack): Set the default of
2834 disassemble-next-line to off.
2835
d2596e2e
TT
28362009-04-21 Tom Tromey <tromey@redhat.com>
2837
2838 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
2839 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
2840
62e4f60c
AS
28412009-04-21 Andreas Schwab <schwab@linux-m68k.org>
2842
2843 * configure.ac: Add quotes to not lose brackets in help text.
2844 * configure: Rebuild.
2845
82cd387f 28462009-04-21 Andreas Schwab <schwab@linux-m68k.org>
cfd53605
AS
2847
2848 * configure.ac: Don't postprocess Makefile in config.status.
2849 Substitute GDB_NM_FILE. Don't substitute nm_h.
2850 * Makefile.in (GDB_NM_FILE): Substitute.
2851 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
2852 * configure: Regenerate.
2853 * gnulib/Makefile.in: Regenerate.
2854
26e251b6
JM
28552009-04-21 Joseph Myers <joseph@codesourcery.com>
2856
2857 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
2858 --with-htmldir): New.
2859 * configure: Regenerate.
2860
32c1c914
TT
28612009-04-21 Tom Tromey <tromey@redhat.com>
2862
2863 * configure: Rebuild.
2864 * configure.ac: Use lower case for start of help strings. Clean
2865 up --with-sysroot help.
2866
a1220294
TT
28672009-04-21 Tom Tromey <tromey@redhat.com>
2868
2869 * configure: Rebuild.
2870 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
2871 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
2872 in help.
2873
39a90fca 28742009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
dfc3cd0e
PM
2875
2876 ARI fix: remove "%p".
2877 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
2878 (ia64_sigtramp_frame_this_id): Ditto.
2879 (ia64_libunwind_frame_this_id): Ditto.
2880 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
2881 * symmisc.c (maintenance_info_psymtabs): Ditto.
2882
29b0e8a2
JM
28832009-04-21 Joseph Myers <joseph@codesourcery.com>
2884
2885 * configure.ac (--with-relocated-sources): New.
2886 * configure, config.in: Regenerate.
2887 * source.c (add_substitute_path_rule): Remove static.
2888 * source.h (add_substitute_path_rule): Declare.
2889 * main.c: Include "source.h".
2890 (captured_main): Add substitution rule if RELOC_SRCDIR.
2891
39a90fca 28922009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
ccabeb57
PM
2893
2894 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
cfd53605 2895
b9412953
DD
28962009-04-20 David Daney <ddaney@caviumnetworks.com>
2897
2898 * NEWS: Mention MIPS/Linux hardware watchpoint support.
2899
29002009-04-20 David Daney <ddaney@caviumnetworks.com>
2901
2902 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
2903 (maint_show_dr, super_close): New variables.
2904 (super_fetch_registers, super_store_registers): Make static.
2905 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
2906 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
2907 (pt_watch_style): Define new enum.
2908 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
2909 Define new structs.
2910 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
2911 New variables.
2912 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
2913 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
2914 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
2915 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
2916 (type_to_irw, fill_mask, try_one_watch)
2917 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
2918 (mips_linux_new_thread, populate_regs_from_watches)
2919 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
2920 (mips_linux_close): New functions.
2921 (_initialize_mips_linux_nat): Register watchpoint functions with
2922 the target_ops. Add show-debug-regs maintenance command.
2923
29242009-04-20 David Daney <ddaney@caviumnetworks.com>
2925
2926 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
2927
6de3146c
PA
29282009-04-19 Pedro Alves <pedro@codesourcery.com>
2929
2930 * NEWS: Mention gdbserver support for x86 Windows CE.
2931
10085bb5
EZ
29322009-04-19 Eli Zaretskii <eliz@gnu.org>
2933
e424a02e
EZ
2934 * config/djgpp/fnchange.lst: Fix typos.
2935
10085bb5
EZ
2936 Set default host and target charsets in the DJGPP port.
2937
2938 * config/djgpp/config.sed (am_cv_langinfo_codeset)
2939 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
2940 in all configure scripts that define ac_cv_env_CPP_value.
2941
2942 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
2943 Include langinfo.h.
2944
2945 * config/djgpp/nl_types.h: New file.
2946
2947 * config/djgpp/langinfo.h: New file.
2948
2949 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
2950
2b831889
JM
29512009-04-18 Carlos O'Donell <carlos@codesourcery.com>
2952
2953 * Makefile.in (MAKEHTML): Set to makeinfo --html.
2954 (MAKEHTMLFLAGS): Set to empty.
2955
d647eed6
EZ
29562009-04-18 Eli Zaretskii <eliz@gnu.org>
2957
d7713ae0
EZ
2958 * NEWS: Mention all new set/show commands added since GDB 6.8 was
2959 released.
2960
d647eed6
EZ
2961 * go32-nat.c (go32_sysinfo): Check if the call to
2962 __dpmi_get_capabilities fills the buffer with information, and
2963 don't use the buffer if not.
2964
58720494
TT
29652009-04-17 Tom Tromey <tromey@redhat.com>
2966
2967 * charset.c (_initialize_charset): Add special case for "646".
2968
89a34d1b
JM
29692009-04-17 Carlos O'Donell <carlos@codesourcery.com>
2970
2971 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
2972 * configure: Regenerate.
2973 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
2974 configure substitutions.
2975 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
2976
39a90fca 29772009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
a74ce742
PM
2978
2979 ARI fix: Do not use %p, replace by call to host_address_to_string
2980 for host pointers.
2981 * darwin-nat.c (darwin_xfer_partial): Apply change.
2982 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
2983 * gnu-nat.h (proc_debug): Ditto.
2984 * symmisc.c (maintenance_info_symtabs): Ditto.
2985 (maintenance_info_psymtabs): Ditto.
2986 * windows-nat.c (handle_load_dll): Ditto.
2987 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
2988 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
2989
0ca8834f
JM
29902009-04-17 Joseph Myers <joseph@codesourcery.com>
2991
2992 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
2993 --enable-64-bit-bfd.
2994 (sparc-*-linux*): Likewise.
2995
541f1105
EZ
29962009-04-17 Eli Zaretskii <eliz@gnu.org>
2997
2998 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
2999 the NT family.
3000
1554e9be
PA
30012009-04-16 Pedro Alves <pedro@codesourcery.com>
3002
3003 * remote.c (remote_query_attached): Fix pasto in packet_ok result
3004 checking.
3005
bf75638e
JB
30062009-04-16 Joel Brobecker <brobecker@adacore.com>
3007
3008 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
3009 Revert the previous change. Might not be correct, actually.
3010
3705b1c5
JB
30112009-04-16 Joel Brobecker <brobecker@adacore.com>
3012
3013 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
3014 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
3015 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
3016 Remove declaration. These are non-existent functions.
3017
37da21bc
JB
30182009-04-16 Joel Brobecker <brobecker@adacore.com>
3019
3020 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
3021 Fix a compilation warning on mips-irix due to casting from
3022 a pointer of different size.
3023
6f38eac8
JB
30242009-04-16 Joel Brobecker <brobecker@adacore.com>
3025
3026 * ada-lang.c (symtab_for_sym): Delete.
3027 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
3028
f9bc20b9
JB
30292009-04-16 Joel Brobecker <brobecker@adacore.com>
3030
3031 * ada-lang.c (extract_string): Delete.
3032 (ada_main_name): Reimplement using target_read_string instead of
3033 extract_string.
3034
335d71d6
AS
30352009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3036
3037 * m68klinux-nat.c: Remove obsolete comment.
3038 (fetch_register, store_register): Don't call
3039 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
3040 which are always nops here.
3041
732f6a93
TT
30422009-04-14 Tom Tromey <tromey@redhat.com>
3043
3044 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
3045 (c_printstr): Likewise.
3046 * charset.c: Include gdb_wait.h.
3047 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
3048 (find_charset_names): Use pexecute. Handle libiconv's output.
3049 Detect errors.
3050 (_initialize_charset): Use xstrdup.
3051 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
3052 cases.
3053 (INTERMEDIATE_ENCODING): New define.
3054 * configure, config.in: Rebuild.
3055 * configure.ac: Check for btowc.
3056
334cc82d
TT
30572009-04-15 Tom Tromey <tromey@redhat.com>
3058
3059 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
3060
27e3013d
EZ
30612009-04-15 Eli Zaretskii <eliz@gnu.org>
3062
3063 * utils.c (parse_escape): Initialize target_char to pacify GCC.
3064
8ea5dfdf
JK
30652009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3066
3067 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
3068
88c15c34
PM
30692009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
3070
3071 ARI fix: sprintf rule.
3072 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
3073 * ada-lang.c (add_angle_brackets): Use xstrprintf.
3074 (ada_decode): Replace sprintf by xsnprintf.
3075 (find_old_style_renaming_symbol): Ditto.
3076 (ada_to_fixed_type_1, ada_enum_name): Ditto.
3077
3078
efbd6e75
JB
30792009-04-14 Joel Brobecker <brobecker@adacore.com>
3080
3081 * target.c (target_mourn_inferior): Call bfd_cache_close_all
3082 after having executed the target mourn_inferior routine.
3083
b46df7a1
EZ
30842009-04-14 Eli Zaretskii <eliz@gnu.org>
3085
3086 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
3087 undefined.
3088
2facfe5c
DD
30892009-04-13 David Daney <ddaney@caviumnetworks.com>
3090
3091 * infrun.c (maybe_software_singlestep): New function.
3092 (resume): Call maybe_software_singlestep.
3093 (handle_inferior_event): Same.
3094
18e8c3bc
TT
30952009-04-13 Tom Tromey <tromey@redhat.com>
3096
3097 * python/python-frame.c (frapy_richcompare): Return
3098 Py_NotImplemented, not an error. Handle Py_NE as well.
3099
e726d784
EZ
31002009-04-13 Eli Zaretskii <eliz@gnu.org>
3101
3102 * charset.c (EILSEQ): Define if not defined by system headers.
3103
685af672
EZ
31042009-04-11 Eli Zaretskii <eliz@gnu.org>
3105
238f4807 3106 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
a2effb2e 3107 to be consistent with renaming config.intl.in into config_intl.in.
238f4807 3108
c03b3c32
EZ
3109 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
3110 consistent with the change from 2008-11-09.
685af672 3111
c16abbde
JK
31122009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3113
3114 * gdbtypes.c: Remove excessive parentheses at the return keywords.
2dbd25e5 3115 * varobj.c (varobj_invalidate): Fix indentation.
f4a34a08 3116 * varobj.c (varobj_invalidate): Fix formatting text width.
c16abbde 3117
143260c9
VP
31182009-04-08 Vladimir Prus <vladimir@codesourcery.com>
3119
3120 Implement -exec-jump.
3121
3122 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
3123 * mi/mi-main.c (mi_cmd_exec_jump): New.
3124 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
3125
d10c338d
DE
31262009-04-07 Doug Evans <dje@google.com>
3127
3128 * symfile.c (symbol_file_clear): Fix indentation.
3129
e5a6ba44
MK
31302009-04-06 Mark Kettenis <kettenis@gnu.org>
3131
3132 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
3133
409c383c
UW
31342009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
3135
3136 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
3137 (ppc_linux_auxv_parse): New function.
3138 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
3139 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
3140
31412009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
9592c5d0
UW
3142
3143 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
3144 BFD to contents of SPU name note.
3145 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
3146 with "from_tty" argument 1 instead of 0.
3147
de40b933
JK
31482009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3149
3150 * dwarf2read.c
3151 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
3152 Create the symbol in local scope.
3153 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
3154
6cbbcdfe
KS
31552009-04-02 Keith Seitz <keiths@redhat.com>
3156
3157 * stabsread.c (read_member_functions): GCC may emit an extra space
3158 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
3159 whitespace when looking for these functions.
3160
476f7b68
JB
31612009-04-01 Joel Brobecker <brobecker@adacore.com>
3162
3163 Change the default value for "set print frame-arguments" to scalars.
3164
3165 * stack.c (print_frame_arguments): Set initial value to "scalars".
3166
865093a3
AR
31672009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3168
3169 * mips-tdep.c (mips_numeric_register_alieses): New definition.
cfd53605 3170 (mips_gdbarch_init): Add user registers from
865093a3
AR
3171 mips_numeric_register_aliases.
3172
5d3b6af6
JB
31732009-04-01 Joel Brobecker <brobecker@adacore.com>
3174
3175 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
3176
9db03742
JB
31772009-04-01 Joel Brobecker <brobecker@adacore.com>
3178
3179 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
3180 this is the last one.
3181
0d8f58ca
PA
31822009-04-01 Pedro Alves <pedro@codesourcery.com>
3183
3184 * remote.c (append_resumption): New.
3185 (remote_vcont_resume): Use it.
3186
1e2f1c5c
JB
31872009-04-01 Joel Brobecker <brobecker@adacore.com>
3188
3189 * windows-nat.c (+windows_get_ada_task_ptid): New function.
3190 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
3191
71c25dea
TT
31922009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
3193 Keith Seitz <keiths@redhat.com>
3194 Jan Kratochvil <jan.kratochvil@redhat.com>
3195
3196 PR gdb/6817
3197 * Makefile.in (dbxread.o): Update.
3198 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
3199 * dwarf2read.c (GDB_FORM_cached_string): New.
3200 (read_partial_die): Use dwarf2_canonicalize_name.
3201 (dwarf2_linkage_name): Use dwarf2_name.
3202 (dwarf2_canonicalize_name): New.
3203 (dwarf2_name): Use dwarf2_canonicalize_name.
3204 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
3205 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
3206 * symtab.c (lookup_symbol_in_language): Canonicalize input before
3207 searching.
3208 * cp-name-parser.y: operator() requires two parameters,
3209 according to libiberty.
3210 * minsyms.c (lookup_minimal_symbol): Canonicalize input
3211 before searching.
3212 * NEWS: Update.
3213
4a306c9a
JB
32142009-03-31 Joel Brobecker <brobecker@adacore.com>
3215
3216 Provide support for (Ada) task-specific breakpoints.
3217
3218 * ada-lang.h (ada_get_task_number): Add declaration.
3219 (breakpoint_ada_task_match): Delete declaration.
3220 * ada-tasks.c (ada_get_task_number): Make non-static.
3221 * breakpoint.h (struct breakpoint): Add field "task".
3222 * breakpoint.c (print_one_breakpoint_location): Add handling of
3223 task-specific breakpoints.
3224 (create_breakpoint, create_breakpoints, find_condition_and_thread):
3225 New parameter "task".
3226 (break_command_really): Update calls to find_condition_and_thread
3227 and create_breakpoints.
3228 (breakpoint_re_set_one): Update call to find_condition_and_thread.
3229 Set b->task.
3230
4a5a9917
JB
32312009-03-31 Joel Brobecker <brobecker@adacore.com>
3232
3233 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
3234
bad34192
PA
32352009-03-31 Pedro Alves <pedro@codesourcery.com>
3236
3237 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
3238 if the thread's ptid without a thread id field is in the list
3239 before calling thread_change_ptid.
3240 (extended_remote_attach_1): In non-stop mode, do not rely on
3241 querying the current thread, instead, query the thread list, and
3242 select the first thread of the process.
3243 * gdbthread.h (first_thread_of_process): Declare.
3244 * thread.c (first_thread_of_process): Define.
3245
1042e4c0
SS
32462009-03-30 Stan Shebs <stan@codesourcery.com>
3247
3248 Make tracepoints into a type of breakpoint.
3249 * breakpoint.h (enum bptype): Add bp_tracepoint.
3250 (struct breakpoint): Add fields step_count, pass_count, actions.
3251 (get_tracepoint, get_tracepoint_by_number): Declare.
3252 (all_tracepoints): Declare.
3253 * breakpoint.c: Include tracepoint.h, readline.h.
3254 (ALL_TRACEPOINTS): Move here from tracepoint.c.
3255 (tracepoint_count): Ditto.
3256 (should_be_inserted): GDB does not insert tracepoints itself.
3257 (print_it_typical): Add tracepoint case.
3258 (bpstat_what): Ditto.
3259 (print_one_breakpoint_location): Ditto, and add printing for
3260 pass count, step count, and action list.
3261 (user_settable_breakpoint): Add tracepoint case.
3262 (allocate_bp_location): Ditto.
3263 (set_breakpoint_location_function): Ditto.
3264 (disable_breakpoints_in_shlibs): Ditto.
3265 (mention): Ditto.
3266 (break_command_really): Add argument traceflag, use to choose
3267 basic breakpoint type.
3268 (break_command_1): Pass extra argument.
3269 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
3270 (breakpoint_re_set_one): Add tracepoint case.
3271 (disable_command, enable_command): Ditto.
3272 (set_tracepoint_count): Move here from tracepoint.c.
3273 (trace_command): Move here from tracepoint.c and use
3274 break_command_really.
3275 (tracepoints_info): Move here from tracepoint.c and call
3276 breakpoints_info.
3277 (enable_trace_command): Move here from tracepoint.c and call
3278 enable_command.
3279 (disable_trace_command): Move here from tracepoint.c and call
3280 disable_command.
3281 (delete_trace_command): Move here from tracepoint.c and call
3282 delete_breakpoint.
3283 (trace_pass_command): Move here from tracepoint.c.
3284 (get_tracepoint_by_number): Ditto.
3285 (tracepoint_save_command): Ditto.
3286 (get_tracepoint): New function.
3287 (all_tracepoints): New function.
3288 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
3289 deprecate "enable trace" and "disable trace" commands.
3290 * tracepoint.h (struct tracepoint): Remove.
3291 (tracepoint_chain): Remove decl.
3292 (deprecated_create_tracepoint_hook): Remove decl.
3293 (deprecated_delete_tracepoint_hook): Remove decl.
3294 (deprecated_modify_tracepoint_hook): Remove decl.
3295 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
3296 (free_actions): Update signature.
3297 (validate_actionline): Update signature.
3298 (end_actions_pseudocommand): Declare.
3299 (while_stepping_pseudocommand): Declare.
3300 * tracepoint.c: Include breakpoint.h.
3301 (tracepoint_chain, tracepoint_count): Remove.
3302 (free_actions, make_cleanup_free_actions): Update signature.
3303 (trace_command, set_raw_tracepoint): Remove.
3304 (trace_mention): Remove.
3305 (tracepoints_info): Remove.
3306 (tracepoint_operation, map_args_over_tracepoints): Remove.
3307 (get_tracepoint_by_number): Remove.
3308 (enable_trace_command, disable_trace_command): Remove.
3309 (delete_trace_command, trace_pass_command): Remove.
3310 (trace_actions_command, read_actions): Update signature.
3311 (validate_actionline): Update signature, use bp loc.
3312 (encode_actions): Ditto.
3313 (download_tracepoint): New function, body of trace_start_command.
3314 (trace_start_command): Call it, use all_tracepoints.
3315 (tracepoint_save_command): Remove.
3316 (tracepoint_dump_command): Use get_tracepoint.
3317 (end_actions_pseudocommand): Make globally visible.
3318 (while_stepping_pseudocommand): Ditto.
3319 (_initialize_tracepoint): Move command definitions to breakpoint.c.
3320
f8f6f20b
TJB
33212009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3322
3323 Expose frames to Python.
3324 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
3325 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
3326 (python-frame.o): New target.
3327 * python/python-frame.c: New file.
3328 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
3329 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
3330 gdbpy_initialize_frames): New prototypes.
3331 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
3332 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
3333 entries.
3334 * stack.c (find_frame_funname): New function, factored out of
3335 print_frame.
3336 (print_frame): Call find_frame_funname.
3337 * stack.h (find_frame_funname): Add prototype.
3338
77316f4c
TJB
33392009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
3340
3341 Remove unused value_object attribute `owned_by_gdb'.
3342 * python/python-value.c (value_object): Remove owned_by_gdb
3343 attribute.
3344 (valpy_dealloc): Remove reference to self->owned_by_gdb.
3345 (valpy_new): Likewise.
3346 (value_to_value_object): Likewise.
3347
c0c6f777
TJB
33482009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
3349
3350 Change gdb.Value.address from a method to an attribute.
3351 * python/python-value.c (value_object): Add `address' element.
3352 (valpy_dealloc): Decrement reference to self->address if set.
3353 (valpy_new): Initialize val_obj->address.
3354 (valpy_address): Rename to ...
3355 (valpy_get_address): ... this. Change signature from method to
3356 attribute. Update self->address if not set.
3357 (value_to_value_object): Initialize val_obj->address.
3358 (value_object_getset): Add `address' element.
3359 (value_object_methods): Remove `address' element.
3360
c2c8d75b
AS
33612009-03-29 Andreas Schwab <schwab@linux-m68k.org>
3362
3363 * observer.sh: Set LANG/LC_ALL to C, not c.
3364
1b31f75d
KB
33652009-03-28 Kevin Buettner <kevinb@redhat.com>
3366
3367 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
3368 `char' is unsigned.
3369
f91d3df5
PA
33702009-03-28 Pedro Alves <pedro@codesourcery.com>
3371
3372 * remote.c (remote_stop_ns): If multi-process extensions are off,
3373 and GDB is requesting the whole process to stop, sent "vCont;t",
3374 not "vCont;t:-1"
3375
7b0e8051
PA
33762009-03-28 Pedro Alves <pedro@codesourcery.com>
3377
3378 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
3379 null inferior_ptid.
3380
5362e076
EZ
33812009-03-27 Eli Zaretskii <eliz@gnu.org>
3382
3383 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
3384
88fc996f
DE
33852009-03-26 Doug Evans <dje@google.com>
3386
3387 * thread.c (do_restore_current_thread_cleanup): Redo test for
3388 whether to restore old->inferior_ptid.
3389
56ef84b1
TT
33902009-03-26 Tom Tromey <tromey@redhat.com>
3391
3392 * breakpoint.c (resolve_sal_pc): Preserve original line number
3393 when skipping prologue.
3394
a5321aa4
DE
33952009-03-26 Doug Evans <dje@google.com>
3396
3397 * thread.c (inferior_thread) Remove "extern" in definition.
3398
def2b000
TJB
33992009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3400
3401 Add gdb.Value.is_optimized_out attribute.
3402 * python/python-value.c (valpy_get_is_optimized_out): New
3403 function.
3404 (value_object_getset): New variable.
3405 (value_object_type): Initialize tp_getset element.
3406
442ddf59
JK
34072009-03-26 Joel Brobecker <brobecker@adacore.com>
3408
3409 Recognize missing DW_AT_location as <value optimized out>.
3410 * dwarf2read.c
3411 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
3412 Call add_symbol_to_list.
3413
78485d59
TT
34142009-03-25 Tom Tromey <tromey@redhat.com>
3415
3416 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
3417 * stack.c (print_this_frame_argument_p): Use check_typedef.
3418
94ae1714
TT
34192009-03-25 Tom Tromey <tromey@redhat.com>
3420
3421 * configure: Rebuild.
3422 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
3423 Rearrange flags setting. Add comments.
3424
2bc57ae3
PM
34252009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3426
3427 * config/i386/nm-i386.h: Remove code within
3428 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
3429 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
3430 macro.
3431 * config/i386/nm-cygwin64.h: Ditto.
3432 * config/i386/nm-fbsd.h: Ditto.
3433 * config/i386/nm-go32.h: Ditto.
3434 * config/i386/nm-linux.h: Ditto.
3435 * config/i386/nm-linux64.h: Ditto.
3436
549ba0f8
PM
34372009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3438
3439 ARI fix: "xasprintf" rule.
3440 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
3441
68c97600
PA
34422009-03-25 Pedro Alves <pedro@codesourcery.com>
3443
3444 * remote.c (remote_start_remote): In non-stop mode, call
3445 init_wait_for_inferior before adding threads and inferiors.
3446
a6f1cd96
JB
34472009-03-25 Joel Brobecker <brobecker@adacore.com>
3448
3449 * breakpoint.c (breakpoint_thread_match): Split a large condition
3450 into several smaller conditions. No behavior change.
3451
dbfb4bc7 34522009-03-25 Pedro Alves <pedro@codesourcery.com>
a07daef3
PA
3453
3454 * infrun.c (infrun_thread_thread_exit): New.
3455 (_initialize_infrun): Attach it to the thread_exit observer.
3456 * thread.c (delete_thread_1): Always call the observer, passing it
3457 the silent flag.
3458 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
3459 SILENT, return immediately.
3460
d729566a
PA
34612009-03-25 Pedro Alves <pedro@codesourcery.com>
3462
3463 * infrun.c (normal_stop): Use has_stack_frames instead of
3464 target_has_stack.
3465 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
3466 when there is no thread selected.
3467 (mi_cmd_execute): Don't special case commands that can run without
3468 a valid selected thread.
3469 * top.c (execute_command): Don't special case commands that can
3470 run without a valid selected thread. Use has_stack_frames.
3471 * infcmd.c (ensure_valid_thread): New.
3472 (continue_1, step_1, jump_command, signal_command): Use it.
3473 (detach_command): Error out if there's no selected thread/inferior.
3474 * thread.c (print_thread_info): Allow having no thread selected.
3475 (switch_to_thread): Don't read the PC if there is no current thread.
3476 (do_restore_current_thread_cleanup): Don't record the current
3477 frame if there is no current thread.
3478 (make_cleanup_restore_current_thread): Don't read frame info if
3479 there is no selected thread.
3480 (_initialize_thread): Don't mark commands as
3481 "no_selected_thread_ok".
3482 * frame.c (get_current_frame): Error out if there is no valid
3483 selected thread.
3484 (has_stack_frames): Return false if there is no valid
3485 selected thread.
3486 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
3487 "no_selected_thread_ok".
3488 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
3489 (get_cmd_no_selected_thread_ok): Delete.
3490 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
3491 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
3492 Delete declaration.
3493 * stack.c (get_selected_block): Use has_stack_frames.
3494
f04c6d38
TJB
34952009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
3496
3497 Fix size of FPSCR in Power 7 processors.
3498 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
3499 (PPC_FEATURE_HAS_DFP): New #define.
3500 (ppc_linux_read_description): Check for DFP feature instead of
3501 ISA 2.05 to decide on size of the FPSCR.
3502
6c02c64c
KB
35032009-03-25 Kevin Buettner <kevinb@redhat.com>
3504
3505 * mn10300-tdep.c (trad-frame.h): Don't include.
3506 (prologue-value.h): Include.
3507 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
3508 (struct mn10300_prologue): Define.
3509 (push_reg, translate_rreg, check_for_saved): New functions.
3510 (mn10300_analyze_prologue): Rewrite, using prologue-value
3511 machinery. Handle more instructions than before. Permit
3512 instructions to occur in any order.
3513 (mn10300_skip_prologue): Find the extents of the function
3514 in question; mn10300_analyze_prologue no longer does this.
3515 (mn10300_analyze_frame_prologue): New function.
3516 (mn10300_frame_base): New function.
3517 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
3518 implementation.
3519 (mn10300_frame_prev_register): Likewise.
3520 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
3521 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
3522 `this_frame'.
3523 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
3524
67c296a2
PM
35252009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3526
3527 Fix completer problem for filename completion on the first try.
3528
3529 * gdb/completer.h (gdb_completion_word_break_characters): New function.
3530 * gdb/completer.c: Include gdb_assert.h.
3531 (complete_line_internal_reason): New enum.
3532 (complete_line_internal): Change last argument type to
3533 complete_line_internal_reason.
3534 Modify function to handle the different complete_line_internal_reason
3535 argument values.
3536 (complete_line): Adapt to change in complete_line_internal.
3537 (command_completer): Ditto.
3538 (gdb_completion_word_break_characters): Implement new function.
3539 * top.c (init_main): Set rl_completion_word_break_hook to
3540 gdb_completion_word_break_characters.
c2c8d75b 3541
67c296a2 3542
1a6d2f2f
PM
35432009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3544
3545 ARI fix: "strlen d_name" rule.
3546 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
3547
3548
fc3b640d
TT
35492009-03-24 Tom Tromey <tromey@redhat.com>
3550 Pedro Alves <pedro@codesourcery.com>
3551
3552 * configure, config.in: Rebuild.
3553 * configure.ac: Check for libiconvlist.
3554 * charset.c: Check HAVE_LIBICONVLIST.
3555 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
3556 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
3557 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
3558 Remove.
3559 (INTERNAL_CFLAGS_BASE): Update.
3560 (INTERNAL_LDFLAGS): Update.
3561 (CLIBS): Update.
3562
76a39ba7
JK
35632009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3564
3565 * configure.ac: Initialize the variable $PREFER_CURSES.
3566 * configure: Regenerated.
3567
bd8a8e1b
JK
35682009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3569
3570 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
3571 * configure: Regenerated.
3572
a3224241
PM
35732009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
3574
3575 ARI fix: "strerror" rule.
3576 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
3577 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
3578
6cdd57f4
JB
35792009-03-23 Joel Brobecker <brobecker@adacore.com>
3580
3581 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
3582 before looking up the fields inside our struct type.
3583
17466c1a
JB
35842009-03-23 Joel Brobecker <brobecker@adacore.com>
3585
3586 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
3587 trying to resolve the type qualification.
3588
8008e265
JB
35892009-03-23 Joel Brobecker <brobecker@adacore.com>
3590
3591 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
3592 we try to apply the attribute on the real type, rather than
3593 its associated typedef.
3594
31dedfee
JB
35952009-03-23 Joel Brobecker <brobecker@adacore.com>
3596
3597 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
3598 to make sure we try to get the modulus of the actual type, not the
3599 associated typedef.
3600
5bc23cb3
JB
36012009-03-23 Joel Brobecker <brobecker@adacore.com>
3602
3603 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
3604 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
3605 to get the real type, not the associated typedef.
3606
872c8b51
JB
36072009-03-23 Joel Brobecker <brobecker@adacore.com>
3608
3609 * ada-lang.c (ada_get_field_index): Add handling of the case
3610 when TYPE is a typedef of a struct.
3611
dcb626be
JB
36122009-03-23 Joel Brobecker <brobecker@adacore.com>
3613
e0cfd8e3 3614 Add gdb_usleep as a portable version of usleep based on gdb_select.
dcb626be
JB
3615 * gdb_usleep.h, gdb_usleep.c: New files.
3616 * Makefile.in (SFILES): Add gdb_usleep.c.
3617 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
3618 (COMMON_OBS): Add gdb_usleep.o.
3619 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
3620 by call to gdb_usleep.
3621
24be086d
JB
36222009-03-23 Joel Brobecker <brobecker@adacore.com>
3623
3624 * buildsym.c (end_symtab): If we ignore the subfiles, then
3625 unlink the associated symtabs if they were already allocated.
3626
cb01cfba
JB
36272009-03-23 Jerome Guitton <guitton@adacore.com>
3628
3629 Provide a way to force building of GDB with libcurses.
3630 * configure.ac: Add --with-curses.
3631 * configure: Regenerated.
3632
9c482037
TT
36332009-03-23 Tom Tromey <tromey@redhat.com>
3634
3635 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
3636 error message.
3637
e2dd7057
PP
36382009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3639
3640 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
3641 solib_contains_address_p instead of searching.
c2c8d75b 3642
0dd7fb99
TT
36432009-03-23 Tom Tromey <tromey@redhat.com>
3644
3645 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
3646 (iconv): Make 'inbuf' argument const.
3647 (convert_between_encodings): Use ICONV_CONST.
3648 (wchar_iterate): Likewise.
3649
418c6cb3
CF
36502009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
3651
3652 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
3653 dynamically loaded function.
3654 (LookupPrivilegeValueA): Ditto.
3655 (OpenProcessToken): Ditto.
3656 (AdjustTokenPrivileges): Rename and define placeholder for address of
c2c8d75b 3657 dynamically loaded function.
418c6cb3
CF
3658 (LookupPrivilegeValueA): Ditto.
3659 (OpenProcessToken): Ditto.
3660 (set_process_privilege): Remove check for loaded functions.
3661 (bad_OpenProcessToken): Define.
3662 (_initialize_loadable): Load token functions from advapi here, setting
3663 OpenProcessToken function to a dummy static function which always return
3664 error if OS doesn't support this functionality.
3665
695de547
CF
36662009-03-22 Nicolas Roche <roche@adacore.com>
3667 Christopher Faylor <me+cygwin@cgf.cx>
3668
3669 * win32-nat.c (ctrl_c_handler): New function.
3670 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
3671 is run in a separate console.
3672
2b008701
CF
36732009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
3674
3675 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
3676 for dynamically loaded function.
3677 (DebugBreakProcess): Ditto.
3678 (DebugSetProcessKillOnExit): Ditto.
3679 (EnumProcessModules): Ditto.
3680 (GetModuleFileNameExA): Ditto.
3681 (GetModuleInformation): Ditto.
3682 (DebugActiveProcessStop): Rename and define placeholder for address of
418c6cb3 3683 dynamically loaded function.
2b008701
CF
3684 (DebugBreakProcess): Ditto.
3685 (DebugSetProcessKillOnExit): Ditto.
3686 (EnumProcessModules): Ditto.
3687 (GetModuleFileNameExA): Ditto.
3688 (GetModuleInformation): Ditto.
3689 (psapi_loaded): Delete.
3690 (get_module_name): Don't check psapi_loaded, just rely on the fact that
3691 dynamically loaded functions will return failure if they weren't
3692 previously found.
3693 (has_detach_ability): Delete.
3694 (windows_attach): Remove call to has_detach_ability (). Just rely on
3695 functions being callable.
3696 (bad_DebugActiveProcessStop): Define.
3697 (bad_DebugBreakProcess): Ditto.
3698 (bad_DebugSetProcessKillOnExit): Ditto.
3699 (bad_EnumProcessModules): Ditto.
3700 (bad_GetModuleFileNameExA): Ditto.
3701 (bad_GetModuleInformation): Ditto.
3702 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
3703 dynamic storage here, setting nonexistent functions to dummy static
3704 functions which always return error.
3705
f3b1572e
PA
37062009-03-22 Pedro Alves <pedro@codesourcery.com>
3707
3708 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
3709 to the about_to_proceed observer notification.
3710 (mi_about_to_proceed): New.
3711 (mi_on_resume): Only output ^running and the prompt here if the
3712 target was proceeded.
3713 * breakpoint.c (breakpoint_proceeded): New static.
3714 (breakpoint_about_to_proceed): New.
3715 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
3716 the about_to_proceed observer notification.
3717 * inferior.h (breakpoint_proceeded): Delete declaration.
3718 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
3719 Notify the about_to_proceed observers.
3720 (struct inferior_status): Delete breakpoint_proceeded member.
3721 (save_inferior_status): Don't save it.
3722 (restore_inferior_status): Don't restore it.
3723 * mi-main.h (mi_proceeded): Declare.
3724 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
3725 a command.
3726
c5a4d20b
PA
37272009-03-22 Pedro Alves <pedro@codesourcery.com>
3728
3729 * gdbthread.h (struct thread_info): Add in_infcall member.
3730 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
3731 Remove reverences to suppress_resume_observer. Refresh
3732 `call_thread' after returning from `proceed'.
3733 * infcmd.c (suppress_resume_observer): Delete.
3734 * inferior.h (suppress_resume_observer): Delete declaration.
3735 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
3736 inferior function.
3737 * thread.c (set_running): Remove references to
3738 suppress_resume_observer.
3739 * infrun.c (struct inferior_status): Add in_infcall member.
3740 (save_inferior_status): Save it.
3741 (restore_inferior_status): Restore it.
3742
41d2bdb4
PA
37432009-03-22 Pedro Alves <pedro@codesourcery.com>
3744
3745 * infcall.c (run_inferior_call): Remove references to
3746 suppress_stop_observer.
3747 * infcmd.c (suppress_stop_observer): Delete.
3748 (finish_command_continuation): Remove NOTE. Don't clear
3749 suppress_stop_observer anymore.
3750 (finish_command_continuation_free_arg): Likewise.
3751 (finish_forward): Remove references to suppress_stop_observer.
3752 Call normal_stop observer if we haven't already.
3753 * inferior.h (suppress_stop_observer): Delete.
3754 * infrun.c (normal_stop): When deciding to suppress the
3755 normal_stop observer, check for proceed_to_finish instead of
3756 suppress_stop_observer.
3757
065a2c74
PA
37582009-03-22 Pedro Alves <pedro@codesourcery.com>
3759
3760 * symfile.c (symfile_relocate_debug_section): Remove check for
3761 SEC_DEBUGGING.
3762
cc924cad
TJB
37632009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3764 Jim Blandy <jimb@red-bean.com>
3765 Thiago Jung Bauermann <bauerman@br.ibm.com>
3766 Tom Tromey <tromey@redhat.com>
3767
3768 Miscellaneous fixes to the Python code.
3769 * python/python-cmd.c (cmdpy_init): Accept keyword
3770 arguments.
3771 * python/python-value.c (valpy_string): Accept keyword
3772 arguments.
3773 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
3774 Do not call value_to_value_object on NULL RES_VAL.
3775 (value_object_methods): Change `string' entry to also accept
3776 keyword arguments.
3777 (convert_value_from_python): Return a copy of the value if obj is
3778 a gdb.Value object.
3779 (value_object_methods): Mark the `string' method as accepting
3780 keywords, and show method "prototype" in the doc string.
3781 * python/python.c (get_parameter): Don't return inside a
3782 TRY_CATCH.
3783
bc3b79fd
TJB
37842009-03-20 Tom Tromey <tromey@redhat.com>
3785
3786 Add support for convenience functions in Python.
3787 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
3788 (SUBDIR_PYTHON_SRCS): Add python-function.c.
3789 (python-function.o): New target.
3790 * eval.c: Include "python/python.h" and <ctype.h>.
3791 (evaluate_subexp_standard): Handle values of type
3792 TYPE_CODE_INTERNAL_FUNCTION.
3793 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
3794 * parse.c (write_exp_string): Remove duplicate word in comment.
3795 * python/python-function.c: New file.
3796 * python/python-internal.h (gdbpy_initialize_functions): Add
3797 prototype.
3798 * python/python.c (_initialize_python): Call
3799 gdbpy_initialize_functions.
3800 * valprint.c (value_check_printable): Handle values of type
3801 TYPE_CODE_INTERNAL_FUNCTION.
3802 * value.c: Include "cli/cli-decode.h".
3803 (internal_function): New struct.
3804 (functionlist, internal_fn_type): New static variables.
3805 (lookup_only_internalvar,
3806 lookup_internalvar): Add const qualifier to name argument.
3807 (create_internalvar): Likewise. Initialize new field.
3808 (set_internal_var): Fix typo in comment. Don't allow assignment
3809 to canonical variable.
3810 (value_create_internal_function, value_internal_function_name,
3811 call_internal_function, function_command, function_destroyer,
3812 add_internal_function): New functions.
3813 (_initialize_values): Create `function' placeholder command.
3814 Initialize internal_fn_type.
3815 * value.h (lookup_only_internalvar, create_internalvar,
3816 lookup_internalvar): Add const qualifier to name argument.
3817 (internal_function_fn, add_internal_function, call_internal_function,
3818 value_internal_function_name): Add prototypes.
3819 (struct internalvar) <canonical>: New field.
3820
546e879e
TT
38212009-03-20 Tom Tromey <tromey@redhat.com>
3822
3823 * c-lang.c (evaluate_subexp_c): Call check_typedef.
3824
6c7a06a3
TT
38252009-03-20 Tom Tromey <tromey@redhat.com>
3826 Julian Brown <julian@codesourcery.com>
3827
3828 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
3829 PR i18n/9401, PR exp/9613:
3830 * NEWS: Update
3831 * value.h (value_typed_string): Declare.
3832 (val_print_string): Update.
3833 * valprint.h (print_char_chars): Update.
3834 * valprint.c (print_char_chars): Add type argument. Update.
3835 (val_print_string): Likewise.
3836 * valops.c (value_typed_string): New function.
3837 * utils.c (host_char_to_target): New function.
3838 (parse_escape): Use host_char_to_target, host_hex_value. Update.
3839 Remove '^' case.
3840 (no_control_char_error): Remove.
3841 * typeprint.c (print_type_scalar): Update.
3842 * scm-valprint.c (scm_scmval_print): Update.
3843 * scm-lang.h (scm_printchar, scm_printstr): Update.
3844 * scm-lang.c (scm_printchar): Add type argument.
3845 (scm_printstr): Likewise.
3846 * printcmd.c (print_formatted): Update.
3847 (print_scalar_formatted): Update.
3848 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
3849 Handle '%lc' and '%ls'.
3850 * parser-defs.h (struct typed_stoken): New type.
3851 (struct stoken_vector): Likewise.
3852 (write_exp_string_vector): Declare.
3853 * parse.c (write_exp_string_vector): New function.
3854 * p-valprint.c (pascal_val_print): Update.
3855 * p-lang.h (is_pascal_string_type, pascal_printchar,
3856 pascal_printstr): Update.
3857 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
3858 Add 'char_type' argument.
3859 (pascal_emit_char): Add type argument.
3860 (pascal_printchar): Likewise.
3861 (pascal_printstr): Likewise.
3862 * objc-lang.c (objc_emit_char): Add type argument.
3863 (objc_printchar): Likewise.
3864 (objc_printstr): Likewise.
3865 * macroexp.c (get_character_constant): Handle unicode characters.
3866 Use c_parse_escape.
3867 (get_string_literal): Handle unicode strings. Use
3868 c_parse_escape.
3869 * m2-valprint.c (print_unpacked_pointer): Update.
3870 (m2_print_array_contents): Update.
3871 (m2_val_print): Update.
3872 * m2-lang.c (m2_emit_char): Add type argument.
3873 (m2_printchar): Likewise.
3874 (m2_printstr): Likewise.
3875 * language.h (struct language_defn) <la_printchar>: Add type
3876 argument.
3877 <la_printstr, la_emitchar>: Likewise.
3878 (LA_PRINT_CHAR): Likewise.
3879 (LA_PRINT_STRING): Likewise.
3880 (LA_EMIT_CHAR): Likewise.
3881 * language.c (unk_lang_emit_char): Add type argument.
3882 (unk_lang_printchar): Likewise.
3883 (unk_lang_printstr): Likewise.
3884 * jv-valprint.c (java_val_print): Update.
3885 * jv-lang.c (java_emit_char): Add type argument.
3886 * f-valprint.c (f_val_print): Update.
3887 * f-lang.c (f_emit_char): Add type argument.
3888 (f_printchar): Likewise.
3889 (f_printstr): Likewise.
3890 * expprint.c (print_subexp_standard): Update.
3891 * charset.h (target_wide_charset): Declare.
3892 (c_target_char_has_backslash_escape, c_parse_backslash,
3893 host_char_print_literally, host_char_to_target,
3894 target_char_to_host, target_char_to_control_char): Remove.
3895 (enum transliterations): New type.
3896 (convert_between_encodings): Declare.
3897 (HOST_ESCAPE_CHAR): New define.
3898 (host_letter_to_control_character, host_hex_value): Declare.
3899 (enum wchar_iterate_result): New enum.
3900 (struct wchar_iterator): Declare.
3901 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
3902 wchar_push_back): Declare.
3903 * charset-list.h: New file.
3904 * c-valprint.c (textual_name): New function.
3905 (textual_element_type): Handle wide character types.
3906 (c_val_print): Pass original type to textual_element_type. Handle
3907 wide character types.
3908 (c_value_print): Use textual_element_type. Pass original type of
3909 value to val_print.
3910 * c-lang.h (enum c_string_type): New type.
3911 (c_printchar, c_printstr): Update.
3912 * c-lang.c (classify_type): New function.
3913 (print_wchar): Likewise.
3914 (c_emit_char): Add type argument. Handle wide characters.
3915 (c_printchar): Likewise.
3916 (c_printstr): Add type argument. Handle wide and multibyte
3917 character sets.
3918 (convert_ucn): New function.
3919 (emit_numeric_character): Likewise.
3920 (convert_octal): Likewise.
3921 (convert_hex): Likewise.
3922 (ADVANCE): New macro.
3923 (convert_escape): New function.
3924 (parse_one_string): Likewise.
3925 (evaluate_subexp_c): Likewise.
3926 (exp_descriptor_c): New global.
3927 (c_language_defn): Use exp_descriptor_c.
3928 (cplus_language_defn): Likewise.
3929 (asm_language_defn): Likewise.
3930 (minimal_language_defn): Likewise.
3931 (charset_for_string_type): New function.
3932 * c-exp.y (%union): Add 'svec' and 'tsval'.
3933 (CHAR): New token.
3934 (exp): Add CHAR production.
3935 (string_exp): Rewrite.
3936 (exp) <string_exp>: Rewrite.
3937 (tempbuf): Now global.
3938 (tempbuf_init): New global.
3939 (parse_string_or_char): New function.
3940 (yylex) <tempbuf>: Now global.
3941 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
3942 Remove.
3943 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
3944 (c_parse_escape): New function.
3945 * auxv.c (fprint_target_auxv): Update.
3946 * ada-valprint.c (ada_emit_char): Add type argument.
3947 (ada_printchar): Likewise.
3948 (ada_print_scalar): Update.
3949 (printstr): Add type argument. Update calls to ada_emit_char.
3950 (ada_printstr): Add type argument.
3951 (ada_val_print_array): Update.
3952 (ada_val_print_1): Likewise.
3953 * ada-lang.c (emit_char): Add type argument.
3954 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
3955 type arguments.
3956 * gdb_locale.h: Include langinfo.h.
3957 * charset.c (_initialize_charset): Set default host charset from
3958 the locale. Don't register charsets. Add target-wide-charset
3959 commands. Call find_charset_names.
3960 (struct charset, struct translation): Remove.
3961 (GDB_DEFAULT_HOST_CHARSET): Remove.
3962 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
3963 (target_wide_charset_name): New global.
3964 (show_host_charset_name): Handle "auto".
3965 (show_target_wide_charset_name): New function.
3966 (host_charset_enum, target_charset_enum): Remove.
3967 (charset_enum): New global.
3968 (all_charsets, register_charset, lookup_charset, all_translations,
3969 register_translation, lookup_translation): Remove.
3970 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
3971 (iso_8859_print_literally, iso_8859_to_control,
3972 iso_8859_family_charset): Remove.
3973 (ebcdic_print_literally, ebcdic_to_control,
3974 ebcdic_family_charset): Remove.
3975 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
3976 register_iconv_charsets): Remove.
3977 (target_wide_charset_be_name, target_wide_charset_le_name): New
3978 globals.
3979 (identity_either_char_to_other): Remove.
3980 (set_be_le_names, validate): New functions.
3981 (backslashable, backslashed, represented): Remove.
3982 (default_c_target_char_has_backslash_escape): Remove.
3983 (default_c_parse_backslash, iconv_convert): Remove.
3984 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
3985 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
3986 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
3987 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
3988 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
3989 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
3990 (table_convert_char, table_translation, simple_table_translation):
3991 Remove.
3992 (current_host_charset, current_target_charset,
3993 c_target_char_has_backslash_escape_func,
3994 c_target_char_has_backslash_escape_baton): Remove.
3995 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
3996 (host_char_to_target_func, host_char_to_target_baton): Remove.
3997 (target_char_to_host_func, target_char_to_host_baton): Remove.
3998 (cached_iconv_host_to_target, cached_iconv_target_to_host):
3999 Remove.
4000 (lookup_charset_or_error, check_valid_host_charset): Remove.
4001 (set_host_and_target_charsets): Remove.
4002 (set_host_charset, set_target_charset): Remove.
4003 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
4004 (set_target_wide_charset_sfunc): New function.
4005 (show_charset): Print target wide character set.
4006 (host_charset, target_charset): Rewrite.
4007 (target_wide_charset): New function.
4008 (c_target_char_has_backslash_escape): Remove.
4009 (c_parse_backslash): Remove.
4010 (host_letter_to_control_character): New function.
4011 (host_char_print_literally): Remove.
4012 (host_hex_value): New function.
4013 (target_char_to_control_char): Remove.
4014 (cleanup_iconv): New function.
4015 (convert_between_encodings): New function.
4016 (target_char_to_host): Remove.
4017 (struct wchar_iterator): Define.
4018 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
4019 wchar_push_back): New functions.
4020 (do_cleanup_iterator): New function.
4021 (char_ptr): New typedef.
4022 (charsets): New global.
4023 (add_one, find_charset_names): New functions.
4024 (default_charset_names): New global.
4025 (auto_host_charset_name): Likewise.
4026 * aclocal.m4, config.in, configure: Rebuild.
4027 * configure.ac: Call AM_LANGINFO_CODESET.
4028 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
4029 (AM_ICONV): Invoke earlier.
4030 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
4031 LIBICONV_LIBDIR. Check for libiconv in build tree.
4032 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
4033 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
4034 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
4035 * gdb_obstack.h (obstack_grow_wstr): New define.
c2c8d75b
AS
4036 * gdb_wchar.h: New file.
4037 * defs.h: Include it.
6c7a06a3 4038
cb249c71
TT
40392009-03-20 Tom Tromey <tromey@redhat.com>
4040 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
4043 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
4044 typedef.
4045 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
4046 SYMBOL_TYPE result.
4047 * ada-typeprint.c (print_array_type): Do the NULL check
4048 unconditionally.
4049
16ad9370
TT
40502009-03-19 Tom Tromey <tromey@redhat.com>
4051
4052 * utils.c (do_obstack_free): New function.
4053 (make_cleanup_obstack_free): Likewise.
4054 * defs.h (make_cleanup_obstack_free): Declare.
4055
36dc683c
DE
40562009-03-18 Doug Evans <dje@google.com>
4057
89ecc4f5
DE
4058 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
4059 int, not a long long.
4060 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
4061
a411cd0e
DE
4062 * expprint.c (dump_raw_expression): Print note if non-NULL.
4063
36dc683c
DE
4064 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
4065 backwards.
4066
5b1ba0e5
NS
40672009-03-18 Nathan Sidwell <nathan@codesourcery.com>
4068
4069 * Makefile.in: Update license to GPLv3.
4070 * ada-exp.y: Update license to GPLv3.
4071 * ada-lex.l: Update license to GPLv3.
4072 * c-exp.y: Update license to GPLv3.
4073 * cp-name-parser.y: Update license to GPLv3.
4074 * darwin-nat-info.c: Update license to GPLv3.
4075 * f-exp.y: Update license to GPLv3.
4076 * gdb_thread_db.h: Update license to GPLv3.
4077 * hppanbsd-nat.c: Update license to GPLv3.
4078 * hppanbsd-tdep.c: Update license to GPLv3.
4079 * hppaobsd-tdep.c: Update license to GPLv3.
4080 * jv-exp.y: Update license to GPLv3.
4081 * m2-exp.y: Update license to GPLv3.
4082 * objc-exp.y: Update license to GPLv3.
4083 * p-exp.y: Update license to GPLv3.
4084 * reply_mig_hack.awk: Update license to GPLv3.
4085 * reverse.c: Update license to GPLv3.
4086 * xtensa-xtregs.c: Update license to GPLv3.
4087
8a2492ee
PA
40882009-03-18 Pedro Alves <pedro@codesourcery.com>
4089
4090 * remote.c (remote_close): Don't call generic_mourn_inferior.
4091 (remote_mourn_1): Call generic_mourn_inferior after closing the
4092 target.
4093
5338cef1
PA
40942009-03-18 Pedro Alves <pedro@codesourcery.com>
4095
4096 * remote.c (remote_start_remote): Add missing call to
4097 init_wait_for_inferior in non-stop mode.
4098
717a8278
PA
40992009-03-18 Pedro Alves <pedro@codesourcery.com>
4100
4101 * breakpoint.c (bpstat_should_step): Only consider software
4102 watchpoints that have a location.
4103
7d85a9c0
JB
41042009-03-17 Joel Brobecker <brobecker@adacore.com>
4105
4106 Add a target_ops parameter to the to_kill method in struct target_ops.
4107
4108 * target.h (struct target_ops): Add a "target_ops *" parameter to
4109 method to_kill.
4110 (target_kill): Remove macro. Add declaration.
4111 * target.c (debug_to_kill): Delete, no longer necessary.
4112 (target_kill): New function.
4113 (update_current_target): Stop inheriting the to_kill method.
4114 Do not de_fault it to no_process either.
4115 (setup_target_debug): Do not set current_target.to_kill.
4116 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
4117 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
4118 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
4119 accordingly.
4120
14064aa2
DE
41212009-03-17 Doug Evans <dje@google.com>
4122
4123 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
4124 glibc 2.3.2 and earlier.
4125
f06eadd9
JB
41262009-03-17 Joel Brobecker <brobecker@adacore.com>
4127
4128 * frame.c (get_prev_frame_1): Do not perform the inner_frame
4129 sanity check if this_frame is not NORMAL.
4130 (frame_id_inner): Update the description of this function.
4131
481df73e
HZ
41322009-03-17 Hui Zhu <teawater@gmail.com>
4133
4134 * stack.c: Change the introduce of "disassemble-next-line".
4135
6b251945
PA
41362009-03-17 Pedro Alves <pedro@codesourcery.com>
4137
4138 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
4139 declare as extern.
4140
30c33a9f
HZ
41412009-03-17 Hui Zhu <teawater@gmail.com>
4142
dafb3b41 4143 * stack.c: Include valprint.h.
30c33a9f
HZ
4144 (disassemble_next_line): New enum.
4145 (show_disassemble_next_line): New function. Show the current
4146 value of disassemble-next-line.
4147 (gdb_disassembly_stub_args): New struct for argument passing
4148 between function do_gdb_disassembly and function
4149 gdb_disassembly_stub.
4150 (gdb_disassembly_stub): New function. Helper for
4151 gdb_disassembly.
4152 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
4153 the exception from the gdb_disassembly because it will be
4154 broken by filter sometime.
4155 (print_frame_info): If disassemble-next-line is set to auto
4156 or on and doesn't have the line debug messages for $pc,
4157 output the next instruction.
4158 If disassemble-next-line is set to on and there is line debug
4159 messages, output assembly codes for next line.
4160 (_initialize_stack): Make the "set disassemble-next-line"
4161 command an auto-boolean command. Change its class to
4162 class_stack. Place it in the top level set list. Extend help
4163 to describe the auto mode.
4164
fee0be5d
PA
41652009-03-17 Pedro Alves <pedro@codesourcery.com>
4166
4167 * infrun.c (normal_stop): Don't overwrite old_chain.
4168
a624e111
JB
41692009-03-16 Joel Brobecker <brobecker@adacore.com>
4170
4171 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
4172 which is undefined, by call to regcache_invalidate, which should
4173 do what the original author wanted to do.
4174
383c0389
JB
41752009-03-16 Joel Brobecker <brobecker@adacore.com>
4176
4177 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
4178 (mips_create_inferior): Likewise.
4179
267fbcde
JB
41802009-03-16 Joel Brobecker <brobecker@adacore.com>
4181
4182 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
4183
da66f6a6
JB
41842009-03-16 Joel Brobecker <brobecker@adacore.com>
4185
4186 * darwin-nat.c (darwin_resume): Fix a compiler warning when
4187 building on x86_64-darwin.
4188
58529c02
JB
41892009-03-16 Tristan Gingold <gingold@adacore.com>
4190
4191 * configure.tgt: Add handling for x86_64-darwin.
4192
ba30a4e9
JK
41932009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4194
4195 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
4196
7fc0c7b5
JB
41972009-03-15 Joel Brobecker <brobecker@adacore.com>
4198
4199 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
4200 Use the ops parameter to get to the target beneath, rather than
4201 using the current_target global. Using the current_target global
4202 was an unintended accident.
4203
1ba0a4ee
JB
42042009-03-15 Joel Brobecker <brobecker@adacore.com>
4205
4206 Fix an error happening while loading symbols from a core file
4207 (on AIX).
4208
4209 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
4210 to detect whether we're debugging a core file or not.
4211
d30acaa7
JB
42122009-03-15 Joel Brobecker <brobecker@adacore.com>
4213
4214 Modernize the aix-thread later by getting rid of the base_target
4215 global. This brings back to life the AIX port which was otherwise
4216 crashing all the time.
4217
4218 * aix-thread.c (base_target): Delete.
4219 (pd_enable): Do not set base_target.
4220 (aix_thread_attach): Use find_target_beneath instead of base_target.
4221 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
4222 (aix_thread_fetch_registers, aix_thread_store_registers),
4223 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
4224 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
4225 (aix_thread_kill): Delete. Does not seem necessary.
4226 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
4227
61ff14c6
JK
42282009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4229
4230 * stack.c (return_command <retval_exp>): New variables retval_expr
4231 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
4232 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
4233 if RETURN_TYPE is NULL.
4234
0b16c5cf
PA
42352009-03-14 Pedro Alves <pedro@codesourcery.com>
4236
4237 * remote.c (PACKET_qAttached): New.
4238 (remote_query_attached): New.
4239 (remote_add_inferior): Add new `attached' argument. Handle it.
4240 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
4241 -1 to remote_add_inferior in new parameter.
4242 (extended_remote_attach_1): Adjust to pass 1 to
4243 remote_add_inferior in the new parameter.
4244 (extended_remote_create_inferior_1): Adjust to pass 0 to
4245 remote_add_inferior in the new parameter.
4246 (_initialize_remote): Add "set/show remote query-attached-packet"
4247 commands.
4248
9ee6bb93
TT
42492009-03-13 Tom Tromey <tromey@redhat.com>
4250
4251 * symtab.c (lookup_symbol_in_language): Use a cleanup.
4252
787274f0
DE
42532009-03-13 Doug Evans <dje@google.com>
4254
4255 * exceptions.h: Clean up some comments on catch_exceptions usage.
4256 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
4257 catch_exceptions.
4258
24f81874
JB
42592009-02-17 Joel Brobecker <brobecker@adacore.com>
4260
4261 The following patch helps getting rid of a warning inside solib-som.c.
4262
4263 * source.c (source_full_path_of): Constify parameter filename.
4264 * defs.h (source_full_path_of): Update declaration accordingly.
4265
e1578042
JB
42662009-03-12 Joel Brobecker <brobecker@adacore.com>
4267
4268 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
4269 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
4270 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
4271
9c2be529
JB
42722009-03-12 Joel Brobecker <brobecker@adacore.com>
4273
4274 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
4275 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
4276
2360f94a 42772009-03-12 Joel Brobecker <brobecker@adacore.com>
e22dccb5
JB
4278
4279 * ada-tasks.c (ada_task_is_alive): Move up and make static.
4280 * ada-lang.h (ada_task_is_alive): Remove declaration.
4281
facc390f
JB
42822009-03-12 Jerome Guitton <guitton@adacore.com>
4283
4284 * ada-lang.c (ada_delta): Change the type of numerators and
4285 denominators to DOUBLEST, as they may not fit into a long.
4286 (scaling_factor): Ditto.
4287
47e729a8
JB
42882009-03-12 Jerome Guitton <guitton@adacore.com>
4289
5c20fa2a 4290 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
47e729a8 4291
b79819ba
JB
42922009-03-12 Joel Brobecker <brobecker@adacore.com>
4293
4294 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
4295 types, if we are unable to determine the actual symbol type
4296 from its tag, then use the static approximation instead.
4297
0056e4d5
JB
42982009-03-12 Joel Brobecker <brobecker@adacore.com>
4299
4300 Fix crash printing packed record with packed array.
4301
4302 * ada-lang.c (ada_modulus_from_name): New function.
4303 (ada_modulus): In the case where the type length is bigger than
4304 the size of the type used to hold the bounds, try determining
4305 the modulus from the type name.
4306 (ada_value_primitive_packed_val): Fix bug in the computation of
4307 ntarg causing an out-of-buffer invalid access.
4308
3c513ee6
JB
43092009-03-12 Joel Brobecker <brobecker@adacore.com>
4310
4311 Fix segfault when printing short_integer'last.
4312
4313 * ada-lang.c (ada_find_any_type): Search in the primitive types
4314 if a symbol could not be found.
4315
680f3fad
JB
43162009-03-12 Joel Brobecker <brobecker@adacore.com>
4317
4318 * ada-tasks.c (task_states,long_task_states): Add new states
4319 Activating and Acceptor_Delay_Sleep. Update the description
4320 of state Acceptor_Sleep.
4321
2ab1c2d9
JB
43222009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
4323
4324 Fix a build failure on Darwin following some changes in
4325 the profile of some target_ops methods.
4326
4327 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
4328 where missing.
4329 (darwin_stop_inferior, darwin_detach): Likewise.
4330
1f31650a
VP
43312009-03-12 Vladimir Prus <vladimir@codesourcery.com>
4332
4333 Include token in ^running notification for CLI commands.
4334
c2c8d75b
AS
4335 * mi/mi-main.c (mi_execute_command): Set current_token here.
4336 (mi_cmd_execute): Do not set current_token here.
1f31650a 4337
4333ada3
VP
43382009-03-12 Vladimir Prus <vladimir@codesourcery.com>
4339
4340 Fix MI timings.
4341
c2c8d75b
AS
4342 * mi/mi-main.c (mi_print_timing_maybe): New.
4343 (captured_mi_execute_command): Simplify. Output timings to
4344 CLI commands, too.
4345 (mi_execute_async_cli_command): Do not print timings.
4346 * mi/mi-main.h (mi_print_timing_maybe): Declare.
4347 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
4333ada3 4348
c5933f6d
JB
43492009-03-12 Jerome Guitton <guitton@adacore.com>
4350
4351 * xcoffread.c (process_linenos): Check if the line in the
4352 include table refers to the main source file and, if so,
4353 add them to the main subfile.
4354
c7660128
JB
43552009-03-12 Joel Brobecker <brobecker@adacore.com>
4356
4357 Fix a build failure on AIX introduced after a change in the profile
4358 of some of the "methods" in the target_ops structure.
4359 * aix-thread.c: Add missing target_ops parameter throughout.
4360
4361 Implement Ada task switching on AIX.
4362 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
4363 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
4364
c5bc3a77
DJ
43652009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
4366
4367 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
4368 value_mark and value_free_to_mark.
4369 * objfiles.c (free_objfile): Call objfile_free_data before
4370 freeing the BFD.
4371
55518360
HZ
43722009-03-10 Hui Zhu <teawater@gmail.com>
4373
4374 * disasm.c (gdb_disassembly): Remove unused argument
4375 "line_num".
4376 * disasm.h (gdb_disassembly): Ditto.
4377 * cli/cli-cmds.c (print_disassembly): Ditto.
4378 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
4379
5fd1a349
PP
43802009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
4381
4382 * solib.c (solib_contains_address_p): New function.
4383 (solib_name_from_address): Use it.
4384 * printcmd.c (display_uses_solib_p): Use it.
c2c8d75b
AS
4385 * solib.h (solib_contains_address_p): Declare it.
4386
36746093
JK
43872009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4388
4389 * varobj.c (free_variable): Call value_free.
4390
757a13d0
JK
43912009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4392
4393 PR gdb/9873:
4394 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
4395 Move the variable `macinfo_type' out of the loop. Create a new
4396 processing pass before the current one to pre-create `current_file'.
4397 New complaint on misplaced zero/non-zero definitions/includes.
4398 Skip first DW_MACINFO_start_file with `at_commandline' set.
4399
c8fa6cdd
VP
44002008-03-09 Vladimir Prus <vladimir@codesourcery.com>
4401
4402 * solib.c (reload_shared_libraries): Give
4403 inferior a chance to reset solib breakpoint.
4404 Reinit frame cache.
4405
41b4aadc
CF
44062009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
4407
4408 * windows-nat.c (dr): Redefine to use largest possible integer which
4409 holds a pointer.
4410 (cygwin_set_dr): Avoid coercion.
4411
44122009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
4413
14b69f28 4414 * windows-nat.c (windows_create_inferior): Implement --tty handling on
41b4aadc
CF
4415 non-cygwin.
4416
f5c9a895
PP
44172009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4418
4419 Rename solib_address to solib_name_from_address.
4420 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
4421 (disable_breakpoints_in_unloaded_shlib): Update.
4422 * printcmd.c (display_uses_solib_p): Likewise.
4423 * stack.c (print_frame): Likewise.
4424 * solib.c: Rename.
4425 * solib.h: Rename.
c2c8d75b 4426
a3247a22
PP
44272009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4428
4429 * printcmd.c (do_one_display): Reparse exp_string.
4430 (display_uses_solib_p): New function.
4431 (clear_dangling_display_expressions): New function.
4432 (_initialize_printcmd): Add observer.
4433 * solib.c (no_shared_libraries): Swap order of calls to
4434 clear_solib and objfile_purge_solibs.
c2c8d75b 4435
d36df9c5
JB
44362009-03-05 Joel Brobecker <brobecker@adacore.com>
4437
4438 Implement the target-specific part of Ada tasking support
4439 on Tru64.
4440
4441 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
4442 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
4443
b254c0b2
JB
44442009-03-05 Joel Brobecker <brobecker@adacore.com>
4445
4446 Get rid of the global "base_target" and use "find_target_beneath"
4447 to find the underlying target.
4448 * dec-thread.c (base_target): Delete.
4449 (enable_dec_thread): Remove assignement to base_target.
4450 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
4451 (dec_thread_fetch_registers, dec_thread_store_registers)
4452 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
4453 Update the function profile if necessary.
4454 Use find_target_beneath to call the same method but from
4455 the underlying target, removing the need for "base_target".
4456
4457 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
4458 Fix a copy/paste error in a few debug traces...
4459
4460 * solib-osf.c (init_so): Use a simpler method for computing
4461 the size of lm_info structure. This also gets rid of warning
4462 emitted by the compiler.
4463
aae64587
PA
44642009-03-05 Pedro Alves <pedro@codesourcery.com>
4465
4466 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
4467 duplicates of permanent breakpoints.
4468
1941c569
PA
44692009-03-04 Pedro Alves <pedro@codesourcery.com>
4470
4471 * inferior.h (notice_new_inferior): Declare.
4472 * infcmd.c (notice_new_inferior): New.
4473 * remote.c (remote_add_inferior, remote_add_thread): New.
4474 (notice_new_inferiors): Rename to...
4475 (remote_notice_new_inferior): ... this. Add RUNNING argument.
4476 Use remote_add_thread instead of add_thread, passing it the
4477 RUNNING argument. Add an inferior with remote_add_inferior. If
4478 we just learned about an inferior, call notice_new_inferior.
4479 (record_currthread): Adjust.
4480 (remote_threads_info): Adjust to use remote_notice_new_inferior.
237d4315
PA
4481 (remote_start_remote, extended_remote_attach_1): Use
4482 remote_add_inferior.
1941c569
PA
4483 (process_stop_reply): Adjust. Call remote_notice_new_inferior
4484 after handling expedited registers and watchpoint state.
4485 (extended_remote_create_inferior_1): Use remote_add_inferior.
4486
9bde0732
AR
44872009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
4488
4489 * infcmd.c (registers_info): Remove register number case.
4490
6aa8e5c2
PA
44912009-03-03 Pedro Alves <pedro@codesourcery.com>
4492
4493 * top.c (quit_target): Check for target_has_execution before
4494 killing or detaching from inferiors.
4495
1d59cee5
JB
44962009-03-02 Joel Brobecker <brobecker@adacore.com>
4497
4498 Remove some unused routines.
4499
4500 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
4501 Delete.
4502 * ada-lang.c (ada_task_list_iterator_ftype)
4503 (iterate_over_live_ada_tasks): Delete.
4504 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
4505 Delete.
4506
223698f8
DE
45072009-03-01 Doug Evans <dje@google.com>
4508
9af17804
DE
4509 * symtab.c: Remove trailing whitespace throughout the file.
4510 (expand_line_sal): Fix some typos and whitespace.
4511
3c54f140
DE
4512 * Makefile.in (clean): rm -f $(DEPDIR)/*.
4513
2aecd87f
DE
4514 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
4515 (init.c): signals/ -> common/.
4516 (signals.o): Update.
4517 * target.h (target_signal_to_string,target_signal_to_string)
4518 (target_signal_from_name,target_signal_to_host_p)
4519 (target_signal_from_host,target_signal_to_host): Move to ...
4520 * common/gdb_signals.h: ... here. New file.
4521 * common/signals.c: Moved here from signals/signals.c.
4522 #include gdb_signals.h, remove #include of target.h in gdb case.
4523 (target_signal_from_command,default_target_signal_to_host)
4524 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
4525
223698f8
DE
4526 Include thread ID in target_wait debugging output.
4527 * infrun.c (print_target_wait_results): New function.
4528 (wait_for_inferior,fetch_inferior_event): Call it.
4529
93a91755
PA
45302009-02-27 Pedro Alves <pedro@codesourcery.com>
4531
4532 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
4533 with a ptid_t field.
4534 * linux-thread-db.c (thread_get_info_callback): Build the ptid
4535 using the pid stored in proc_handle.ptid.
4536 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
4537 (check_for_thread_db, thread_db_detach, check_event)
4538 (thread_db_mourn_inferior, find_new_threads_callback)
4539 (thread_db_find_new_threads_1): Adjust.
4540 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
4541 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
4542
b5096abe
PM
45432009-02-27 Phil Muldoon <pmuldoon@redhat.com>
4544
4545 * valprint.c (read_string): Rework clean-up logic. Use
4546 free_current_contents to clean-up buffer.
4547
a2f63f5e
AS
45482009-02-27 Andreas Schwab <schwab@linux-m68k.org>
4549
4550 * MAINTAINERS: Update e-mail address.
4551
83390453
PM
45522009-02-26 Phil Muldoon <pmuldoon@redhat.com>
4553
4554 * python/python-utils.c (python_string_to_unicode): Always return
4555 a new reference.
4556 (python_string_to_target_string): Decrement transient python
4557 instance.
4558 (python_string_to_host_string): Likewise.
4559
45602007-02-26 Pedro Alves <pedro@codesourcery.com>
a0740d21
PA
4561
4562 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
4563 call to super_fetch_registers.
4564 (mips64_linux_store_registers): Pass `ops' to call to
4565 super_store_registers.
4566
89c83b10
DE
45672009-02-25 Doug Evans <dje@google.com>
4568
99361f52
DE
4569 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
4570 error message.
4571
1c2af6c4
DE
4572 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
4573 disabled_shlib_breaks, unused.
4574
89c83b10
DE
4575 * printcmd.c (build_address_symbolic): Fix comment.
4576
9e2f0ad4
HZ
45772009-02-25 Hui Zhu <teawater@gmail.com>
4578
4579 * cli/cli-script.c (define_command): Add _() to query.
4580 * gnu-nat.c (inf_validate_task_sc): Ditto.
4581 * infcmd.c (kill_if_already_running): Ditto.
4582 (jump_command): Ditto.
4583 (attach_command): Ditto.
4584 * inflow.c (kill_command): Ditto.
4585 * infrun.c (handle_command): Ditto.
4586 * maint.c (maintenance_dump_me): Ditto.
4587 * memattr.c (mem_delete_command): Ditto.
4588 * monitor.c (monitor_interrupt_query): Ditto.
4589 * nto-procfs.c (interrupt_query): Ditto.
4590 * printcmd.c (undisplay_command): Ditto.
4591 * remote-mips.c (mips_kill): Ditto.
4592 * remote.c (interrupt_query): Ditto.
4593 * solib-irix.c (irix_open_symbol_file_object): Ditto.
4594 * solib-osf.c (osf_open_symbol_file_object): Ditto.
4595 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
4596 * solib-som.c (som_open_symbol_file_object): Ditto.
4597 * solib-svr4.c (open_symbol_file_object): Ditto.
4598 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4599 * target.c (kill_or_be_killed): Ditto.
4600 * tracepoint.c (delete_trace_command): Ditto.
4601 * top.c (quit_confirm): Add _() to s that will be used
4602 in query.
4603
02529b48
PM
46042009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
4605
4606 Fix windows-nat.c compilation failure.
4607
4608 * windows-nat.c (windows_thread_alive): Fix forward declaration.
4609 (get_windows_debug_event): Add ops parameter to call to windows_resume.
4610
2fb89e62
PA
46112009-02-23 Pedro Alves <pedro@codesourcery.com>
4612
4613 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
4614
6f43c46f
JB
46152009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
4616
4617 * symtab.c (find_line_symtab): Initialize exact to avoid
4618 a compiler warning.
4619
84e473c8
PA
46202009-02-23 Pedro Alves <pedro@codesourcery.com>
4621
4622 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
4623 `ops' to recursive call.
4624
28439f5e
PA
46252009-02-23 Pedro Alves <pedro@codesourcery.com>
4626
4627 * corelow.c (get_core_registers): Adjust.
4628 (core_file_thread_alive): Rename to...
4629 (core_thread_alive): ... this.
4630 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
4631 (init_core_ops): Adjust.
4632 (coreops_suppress_target): Delete.
4633 (_initialize_corelow): Unconditionally add core_ops.
4634 * procfs.c: Include "inf-child.h".
4635 (procfs_ops): Delete.
4636 (init_procfs_ops): Delete. Reimplement as...
4637 (procfs_target): ... this, inheriting from inf-child.
4638 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
4639 (procfs_prepare_to_store): Delete.
4640 (procfs_store_registers, procfs_resume): Adjust.
4641 (procfs_open): Delete.
4642 (procfs_suppress_run): Delete.
4643 (procfs_can_run): Delete.
4644 (procfs_mourn_inferior): Adjust.
4645 (procfs_init_inferior): Add target_ops parameter. Adjust.
4646 (procfs_create_inferior): Don't pass procfs_init_inferior to
4647 fork_inferior. Instead call it after fork_inferior returns.
4648 (procfs_find_new_threads): Adjust.
4649 (_initialize_procfs): Adjust to use procfs_target instead of
4650 init_procfs_ops.
4651 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
4652 (lwp_to_thread): Use target_thread_alive.
4653 (sol_thread_open): Delete.
4654 (sol_thread_attach): Delete.
4655 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
4656 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
4657 to use find_target_beneath.
4658 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
4659 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
4660 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
4661 (check_for_thread_db): New.
4662 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
4663 (sol_thread_new_objfile): Call check_for_thread_db.
4664 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
4665 (sol_thread_can_run): Delete.
4666 (sol_thread_alive): Adjust to use find_target_beneath.
4667 (sol_thread_stop): Delete.
4668 (rw_common): Use target_write_memory or target_read_memory.
4669 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
4670 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
4671 (solaris_pid_to_str): Remove check for libthread_db initialization
4672 failing.
4673 (sol_find_new_threads): Remove check for libthread_db
4674 initialization failing, or for an invalid inferior_ptid. Adjust
4675 to use find_target_beneath.
4676 (sol_core_open, sol_core_close, sol_core_detach,
4677 sol_core_files_info, sol_find_memory_regions,
4678 sol_make_note_section, ignore): Delete.
4679 (init_sol_thread_ops): Make it a thread_stratum target. Remove
4680 unneeded callback settings.
4681 (init_sol_core_ops): Delete.
4682 (_initialize_sol_thread): No longer call init_sol_core_ops, set
4683 procfs_suppress_run, or hack with core_ops.
4684
4685 * target.h (struct target_ops): Add a target_ops * parameter to
4686 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
4687 and to_find_new_threads.
4688 (target_fetch_registers, target_store_registers)
4689 (target_thread_alive, target_find_new_threads): Redeclare as
4690 function.
a2f63f5e 4691
28439f5e
PA
4692 * target.c (update_current_target): Do not inherit or de_fault
4693 to_resume, to_fetch_registers, to_store_registers,
4694 to_thread_alive, to_find_new_threads.
4695 (target_resume): Adjust.
4696 (target_thread_alive, target_find_new_threads): New.
4697 (debug_to_resume, debug_to_fetch_registers): Delete.
4698 (target_fetch_registers): New.
4699 (debug_to_store_registers): Delete.
4700 (target_store_registers): New.
4701 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
4702 (setup_target_debug): Adjust.
a2f63f5e 4703
28439f5e 4704 * gdbcore.h (core_ops): Delete declaration.
a2f63f5e 4705
28439f5e
PA
4706 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
4707 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
4708 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
4709 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
4710 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
4711 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
4712 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
4713 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
4714 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
4715 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
4716 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
4717 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
4718 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
4719 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
4720
4721 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
4722 * gdbarch.h, gdbarch.c: Regenerate.
4723
4724 * sol2-tdep.c: Include "inferior.h".
4725 (sol2_core_pid_to_str): New.
4726 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
4727
4728 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
4729 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
4730 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
4731 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
4732
907083d1
DE
47332009-02-22 Doug Evans <dje@google.com>
4734
4735 * exec.c (exec_file_attach): Fix comment.
4736
63807e1d
PA
47372009-02-22 Pedro Alves <pedro@codesourcery.com>
4738
4739 Silence a few -Wmissing-prototypes warnings.
4740
4741 PR build/9877:
a2f63f5e 4742 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
63807e1d 4743 it static.
a2f63f5e
AS
4744 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
4745 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
4746 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
63807e1d
PA
4747 (_initialize_amd64nbsd_tdep): ... this.
4748 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
4749 (_initialize_arm_linux_tdep): Declare.
4750 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
4751 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
4752 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
4753 * avr-tdep.c (avr_return_value): Make it static.
4754 (avr_frame_unwind_cache): Ditto.
4755 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
4756 (bsd_uthread_solib_loaded): Ditto.
4757 (bsd_uthread_solib_unloaded): Ditto.
4758 (bsd_uthread_target): Ditto.
4759 (_initialize_bsd_uthread): Declare.
4760 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
4761 (cris_frame_unwind_cache): Ditto.
4762 * frv-tdep.c (frv_return_value): Ditto.
4763 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
4764 (h8300h_use_struct_convention): Ditto.
4765 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
4766 Ditto.
4767 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
4768 declarations.
4769 * hppabsd-tdep.c: Include hppabsd-tdep.h.
4770 (hppabsd_find_global_pointer): Make it static.
4771 * hppabsd-tdep.h: New.
4772 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
4773 (hppabsd_init_abi): Remove declaration.
4774 (_initialize_hppabsd_tdep): Remove declaration.
4775 (_initialize_hppanbsd_tdep): Declare.
4776 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
4777 (hppabsd_init_abi): Delete declaration.
4778 (hppaobsd_init_abi): Make it static.
4779 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
4780 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
4781 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
4782 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
4783 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
4784 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
4785 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
4786 (_initialize_m32c_tdep): Declare.
4787 * m32r-rom.c (_initialize_m32r_rom): Declare.
4788 * m32r-tdep.c (m32r_skip_prologue): Make it static.
4789 (m32r_return_value): Ditto.
4790 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
4791 (m68hc11_return_value): Ditto.
4792 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
4793 * m88k-tdep.c (m88k_frame_cache): Make it static.
4794 * mep-tdep.c (mep_gdb_print_insn): Ditto.
4795 (mep_return_value): Ditto.
4796 (_initialize_mep_tdep): Declare.
4797 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
4798 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
4799 (mips_linux_syscall_next_pc): Ditto.
4800 (_initialize_mips_linux_tdep): Declare.
4801 * mips-tdep.c (mips_single_step_through_delay): Make it static.
4802 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
4803 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
4804 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
4805 * mt-tdep.c (_initialize_mt_tdep): Declare.
4806 * nbsd-tdep.c: Include nbsd-tdep.h.
4807 * nto-tdep.c (find_load_phdr): Make it static.
4808 (_initialize_nto_tdep): Declare.
4809 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
4810 static.
4811 (_initialize_ppc_linux_tdep): Declare.
4812 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
4813 (m32r_insert_watchpoint, m32r_remove_watchpoint)
4814 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
4815 static.
4816 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
4817 * rs6000-nat.c: Include xcoffread.h.
4818 (find_toc_address): Don't extern declare get_toc_offset. Adjust
4819 to call xcoff_get_to_offset.
4820 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
4821 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
4822 (rs6000_skip_trampoline_code): Make static.
4823 * s390-tdep.c (s390_regset_from_core_section): Ditto.
4824 * sh-tdep.c (sh_register_reggroup_p): Ditto.
4825 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
4826 (_initialize_shnbsd_tdep): Declare.
4827 * solib-frv.c (displacement_from_map): Make static.
4828 (_initialize_frv_solib): Declare.
4829 * solib-irix.c (fetch_lm_info): Make static.
4830 (_initialize_irix_solib): Declare.
4831 * solib-som.c: Include solib-som.h.
4832 (som_solib_select): Line break.
4833 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
4834 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
4835 (_initialize_sparcnbsd_tdep): ... this.
4836 * spu-tdep.c (spu_software_single_step): Make it static.
4837 (_initialize_spu_tdep): Declare.
4838 * vax-tdep.c (vax_frame_cache): Make it static.
4839 * xcoffread.c: Include xcoffread.h.
4840 (get_toc_offset): Rename to ...
4841 (xcoff_get_toc_offset): ... this.
4842 (_initialize_xcoffread): Declare.
4843 * xcoffread.h: New.
4844 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
4845 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
4846 static.
4847 (_initialize_xtensa_tdep): Declare.
4848
2c0b251b
PA
48492008-02-21 Pedro Alves <pedro@codesorcery.com>
4850
4851 Silence a few -Wmissing-prototypes warnings.
4852
4853 PR build/9877:
4854 * amd64-nat.c: Include "amd64-nat.h".
4855 * fork-child.c (_initialize_fork_child): Ditto.
4856 * gcore.c (_initialize_gcore): Ditto.
4857 * inf-ptrace.c: Include "inf-ptrace.h".
4858 (inf_ptrace_store_registers): Make it static.
4859 * linux-nat.c (linux_nat_terminal_ours): Make it static.
4860 (_initialize_linux_nat): Declare before definition.
4861 * linux-tdep.c: Include "linux-tdep.h".
4862 * linux-thread-db.c (_initialize_thread_db): Declare before
4863 definition.
4864 * proc-service.c (_initialize_proc_service): Ditto.
4865 * remote.c (remote_send_printf): Make it static.
4866 * solib.c: Include "solib.h".
4867 * symfile-mem.c (_initialize_symfile_mem): Declare before
4868 definition.
4869 * ada-lang.c (ada_la_decode, ada_match_name)
4870 (ada_suppress_symbol_printing, ada_is_array_type)
4871 (ada_value_ptr_subscript, ada_array_length)
4872 (ada_to_static_fixed_value): Make them static.
4873 (_initialize_ada_language): Declare before definition.
4874 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
4875 (ada_task_list_changed, ada_new_objfile_observer): Make them
4876 static.
4877 (_initialize_tasks): Declare before definition.
4878 * addrmap.c (_initialize_addrmap): Declare before definition.
4879 * auxv.c (default_auxv_parse): Make it static.
4880 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
4881 them static.
4882 * breakpoint.c (remove_sal): Add line break.
4883 (expand_line_sal_maybe): Make it static.
4884 * cp-name-parser.y: Include "cp-support.h".
4885 * cp-valprint.c (cp_find_class_member): Make it static.
4886 * eval.c (value_f90_subarray): Ditto.
4887 * exceptions.c (print_any_exception): Ditto.
4888 * findcmd.c (_initialize_mem_search): Declare before definition.
4889 * frame.c (frame_observer_target_changed): Make it static.
4890 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
4891 * inf-child.c: Include "inf-child.h".
4892 * inferior.h (valid_inferior_id): Rename to ...
4893 (valid_gdb_inferior_id): ... this.
4894 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
4895 Make them static.
4896 * jv-lang.c (java_language_arch_info): Make it static.
4897 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
4898 * osdata.c (info_osdata_command): Make it static.
4899 * regcache.c (regcache_observer_target_changed): Make it static.
4900 * reverse.c (_initialize_reverse): Declare before definition.
4901 * stabsread.c (cleanup_undefined_types_noname)
4902 (cleanup_undefined_types_1): Make them static.
4903 * symfile.c (place_section): Make it static.
4904 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
4905 * target-descriptions.c (_initialize_target_descriptions): Declare
4906 before definition.
4907 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
4908 (find_default_is_async_p, find_default_supports_non_stop): Make
4909 them static.
4910 (target_supports_non_stop): Add prototype.
4911 (dummy_pid_to_str): Make it static.
4912 * utils.c (_initialize_utils): Declare before definition.
4913 * ada-exp.y (_initialize_ada_exp): Declare before definition.
4914 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
4915 * target.h (struct target_ops): Add a prototype to the
4916 to_can_execute_reverse callback.
a2f63f5e
AS
4917 * macroscope.c (_initialize_macroscope): Declare before definition.
4918 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
2c0b251b
PA
4919 * python/python.c (_initialize_python): Declare before definition.
4920 * tui/tui-command.c: Include "tui/tui-command.h".
4921 * tui/tui-data.c (init_content_element, init_win_info): Make them
4922 static.
4923 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
4924 * tui/tui-interp.c (_initialize_tui_interp): Declare before
4925 definition.
4926 * tui/tui-layout.c: Include "tui/tui-layout.h".
4927 (_initialize_tui_layout): Declare before definition.
4928 * tui/tui-regs.c: Include "tui/tui-regs.h".
4929 (tui_display_reg_element_at_line): Make it static.
4930 (_initialize_tui_regs): Declare before definition.
4931 * tui/tui-stack.c (_initialize_tui_stack): Declare before
4932 definition.
4933 * tui/tui-win.c: Include "tui/tui-win.h".
4934 (_initialize_tui_win): Declare before definition.
4935 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
4936 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
4937 (tui_get_cmd_list): Add a prototype.
4938 * tui/tui-windata.c: Include tui-windata.h.
4939 * tui/tui-wingeneral.c (box_win): Make it static.
4940 * cli/cli-logging.c (show_logging_command): Make it static.
4941 (_initialize_cli_logging): Declare before definition.
4942 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
4943 definition.
4944
5aca5a82
PM
49452009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
4946
08c1f091 4947 Extend use of i386_use_watchpoints to all i386 native files
5aca5a82 4948 using hardware watchpoints.
08c1f091
DE
4949 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
4950 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
4951 * windows-nat.c (init_windows_ops): Ditto.
4952 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
4953 * config/i386/nm-cygwin64.h: Ditto.
4954 * config/i386/nm-fbsd.h: Ditto.
4955 * config/i386/nm-go32.h: Ditto.
5aca5a82 4956
1db300f1
JB
49572009-02-19 Joel Brobecker <brobecker@adacore.com>
4958
4959 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
4960
c86cf029
VP
49612009-02-18 Vladimir Prus <vladimir@codesourcery.com>
4962
4963 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
4964 (mi_interpreter_init): Register the above.
4965 * solib.c (clear_solib): Notify solib unload.
4966 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
4967 disable breakpoints on a.out targets.
4968
3ea85240
VP
49692009-02-17 Vladimir Prus <vladimir@codesourcery.com>
4970
4971 * observer.c (observer_test_first_notification_function)
4972 (observer_test_second_notification_function)
4973 (observer_test_third_notification_function): Adjust prototype.
4974
4c1d2973
PA
49752009-02-17 Pedro Alves <pedro@codesourcery.com>
4976
4977 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
4978 (ALL_TARGET_OBS): Add dicos-tdep.o.
4979 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
4980 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
4981 gdb_target_obs.
4982 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
4983 gdb_target_obs.
4984 * dicos-tdep.h, dicos-tdep.c: New.
4985 * amd64-dicos-tdep.c: New.
4986 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
4987 inferior.h. Include dicos-tdep.h.
4988 (i386_dicos_init_abi): Call dicos_init_abi.
4989 (i386_dicos_bfd_has_symbol_p): Delete.
4990 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
4991
4992 * NEWS: Mention x86-64 DICOS target support.
4993
1903f0e6
DE
49942009-02-16 Doug Evans <dje@google.com>
4995
4996 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
4997 All callers updated.
4998 (amd64_get_insn_details): Handle more 3-byte opcode insns.
4999 (amd64_breakpoint_p): Delete.
5000 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
5001 don't back up pc to the start of the int3.
5002 * i386-tdep.c: #include opcode/i386.h.
5003 (i386_skip_prefixes): New function.
5004 (i386_absolute_jmp_p): Constify argument.
5005 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
5006 (i386_breakpoint_p): Delete.
5007 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
5008 When fixing up after stepping an int3, don't back up pc to the start
5009 of the int3.
5010
959b8724
PA
50112009-02-16 Pedro Alves <pedro@codesourcery.com>
5012
5013 * corelow.c (core_close): Don't hardcode the core's pid.
5014 (core_open): Find core threads before calling
5015 post_create_inferior.
5016 (add_to_thread_list, get_core_register_section): Take into account
5017 systems where the regset section names encode the pid of the
5018 inferior.
5019
5020 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
5021 * gdbarch.h, gdbarch.c: Regenerate.
5022
5023 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
5024 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
5025 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
5026 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
5027
1d33d6ba
VP
50282009-02-14 Vladimir Prus <vladimir@codesourcery.com>
5029
5030 Include frame information for *stopped due to CLI commands.
5031
a2f63f5e
AS
5032 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
5033 * infcmd.c (finish_command_continuation): Pass '1' for
5034 'print_frame' parameter to the observer.
5035 * infrun.c (normal_stop): Don't print mi-specific information
5036 here. Pass 'stop_print_frame' to the 'print_frame' parameter
5037 of the observer.
5038 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
5039 If we need to print frame, and current uiout is not the MI one,
5040 print frame again.
1d33d6ba 5041
2ff5e605
PM
50422009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
5043
5044 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
5045 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
5046
5d7cb8df
JK
50472009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 PR fortran/9806
5050 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
5051 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
5052
868a0084
PM
50532009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
5054
5055 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
5d7cb8df 5056 for DW_ATE_signed_char and DW_ATE_unsigned_char
868a0084
PM
5057 for pascal language.
5058
42e2132c
JK
50592009-02-11 Jim Meyering <meyering@redhat.com>
5060 Jan Kratochvil <jan.kratochvil@redhat.com>
5061
5062 Avoid NULL dereference.
5063 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
5064 New variable func_type.
5065
315aef0a
PA
50662009-02-11 Pedro Alves <pedro@codesourcery.com>
5067
5068 * gdbarch.c: Regenerate.
5069
58159490
PM
50702009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
5071
5072 * p-lang.c (is_pascal_string_type): Fix comment.
5073 Determine exact size of char elements for GPC
5074 strings.
5075 (pascal_printstr): Handle char width of 2 or 4.
5076 * p-valprint.c (pascal_val_print): Handle char
5077 of width 2 or 4.
a2f63f5e 5078
d3f36a39
DJ
50792009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5080
5081 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
5082 inside the loop. Only call addrmap_set_empty if the compilation unit
5083 had DW_AT_high_pc and DW_AT_low_pc. Update call to
5084 scan_partial_symbols.
5085 (scan_partial_symbols): Take NEED_PC argument and pass it along with
5086 LOWPC and HIGHPC.
5087 (add_partial_namespace): Take NEED_PC argument and pass it through.
5088 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
5089 if necessary.
5090
47a3467a
PA
50912009-02-07 Pedro Alves <pedro@codesourcery.com>
5092
5093 * NEWS: Mention inspecting extra signal information, $_siginfo,
5094 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
5095
1ef18d08
PA
50962009-02-07 Pedro Alves <pedro@codesourcery.com>
5097
5098 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
5099 isn't defined.
5100
5b009018
PA
51012009-02-06 Pedro Alves <pedro@codesourcery.com>
5102
5103 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
5104 (compat_timer_t, compat_clock_t, struct compat_timeval)
5105 (compat_sigval_t, compat_siginfo_t): New types.
5106 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
5107 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
5108 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
5109 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5110 (amd64_linux_siginfo_fixup): New.
5111 * linux-nat.c (linux_nat_siginfo_fixup): New.
5112 (siginfo_fixup): New.
5113 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
5114 siginfo layout expected by ptrace and the siginfo layout of the
5115 inferior.
5116 (linux_nat_set_siginfo_fixup): New.
5117 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
5118
4aa995e1
PA
51192009-02-06 Pedro Alves <pedro@codesourcery.com>
5120
5121 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
5122 * infrun.c (siginfo_value_read, siginfo_value_write): New.
5123 (siginfo_value_funcs): New.
5124 (siginfo_make_value): New.
5125 (_initialize_infrun): Create the $_siginfo convenience variable.
5126 * gdbtypes.h (append_composite_type_field_aligned): Declare.
5127 * gdbtypes.c (append_composite_type_field): Rename to...
5128 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
5129 argument. Handle it.
5130 (append_composite_type_field): Rewrite on top of
5131 append_composite_type_field_aligned.
5132 * value.h (internalvar_make_value): New typedef.
5133 (struct internalvar) <make_value>: New field.
5134 (create_internalvar_type_lazy): Declare.
5135 * value.c (create_internalvar): Clear make_value.
5136 (create_internalvar_type_lazy): New.
5137 (value_of_internalvar): If make_value is set use it.
5138 (preserve_values): Skip internal variables that don't have a
5139 value.
5140 * gdbarch.sh (get_siginfo_type): New.
5141 * gdbarch.h, gdbarch.c: Regenerate.
5142
5143 * linux-tdep.h, linux-tdep.c: New.
5144 * amd64-linux-tdep.c: Include "linux-tdep.h".
5145 (amd64_linux_init_abi): Register linux_get_siginfo_type and
5146 linux_get_siginfo_mapper.
5147 * i386-linux-tdep.c: Include "linux-tdep.h".
5148 (i386_linux_init_abi): Register linux_get_siginfo_type and
5149 linux_get_siginfo_mapper.
5150 * arm-linux-tdep.c: Include "linux-tdep.h".
5151 (i386_linux_init_abi): Register linux_get_siginfo_type and
5152 linux_get_siginfo_mapper.
5153
5154 * linux-nat.c (linux_xfer_siginfo): New.
5155 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
5156 * remote.c (PACKET_qXfer_siginfo_read)
5157 (PACKET_qXfer_siginfo_write): New.
5158 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
5159 "qXfer:siginfo:write" features.
5160 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
5161 (_initialize_remote): Add "set/show remote read-siginfo-object"
5162 and "set/show remote write-siginfo-object" commands.
5163
5164 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
5165 (HFILES_NO_SRCDIR): Add linux-tdep.h.
5166 (ALLDEPFILES): Add linux-tdep.c.
a2f63f5e 5167
4aa995e1
PA
5168 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
5169 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
5170 gdb_target_obs.
5171
5f5233d4
PA
51722009-02-06 Jim Blandy <jimb@codesourcery.com>
5173 Daniel Jacobowitz <dan@codesourcery.com>
5174 Vladimir Prus <vladimir@codesourcery.com>
5175 Pedro Alves <pedro@codesourcery.com>
5176
5177 * defs.h (enum lval_type): New value: lval_computed.
5178 * value.h (struct lval_funcs): New type.
5179 (allocate_computed_value, value_computed_funcs)
5180 (value_computed_closure): New declarations.
5181 * value.c (struct value): Add a structure to the location union
5182 for computed lvalues, containing 'funcs' and 'closure' members.
5183 (allocate_computed_value, value_computed_funcs)
5184 (value_computed_closure): New functions.
5185 (value_free): For computed lvalues, call the closure's
5186 'free_closure' function before freeing the value itself.
5187 (value_copy): If we're copying an lval_computed value, call the
5188 closure's 'copy_closure' function.
5189 (set_value_component_location): If the original value is a
5190 computed lvalue, then call the closure's 'copy_closure' function.
5191 (value_of_internalvar): If an internal variable's value is a
5192 computed lvalue, make retrieving its value produce an equivalent
5193 computed lvalue.
5194 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
5195 their read function.
5196 (value_assign): Assign to computed lvalues by calling their write
5197 function.
5198
117de6a9
PA
51992009-02-06 Pedro Alves <pedro@codesourcery.com>
5200
5201 * linux-nat.c (linux_nat_wait): Adjust.
5202 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
5203 * linux-nat.h (thread_db_init): Delete declaration.
5204 * linux-thread-db.c (target_beneath): Delete.
5205 (thread_db_init): Delete.
5206 (thread_db_detach): Use find_target_beneath.
5207 (thread_db_wait): Adjust interface. Use find_target_beneath.
5208 (thread_db_mourn_inferior): Use find_target_beneath.
5209 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
5210 (thread_db_async_mask): Delete.
5211 (thread_db_pid_to_str): Adjust interface. Use
5212 find_target_beneath.
5213 (thread_db_get_thread_local_address): Adjust interface. Use
5214 find_target_beneath.
5215 (init_thread_db_ops): Delete references to delete functions.
5216 * target.c (update_current_target): Don't inherit or default
5217 to_wait. Don't inherit to_pid_to_str and
5218 to_get_thread_local_address.
5219 (target_translate_tls_address): Look for a pushed target that
5220 implements to_get_thread_local_address, and use it instead of
5221 checking for target_get_thread_local_address_p.
5222 (target_wait, target_pid_to_str): Reimplement as functions.
5223 (dummy_pid_to_str): New.
5224 (init_dummy_target): Register it.
5225 (debug_to_wait): Delete.
5226 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
5227 to_get_thread_local_address accept a pointer to struct target_ops.
5228 (target_wait): Delete macro, and declare as function.
5229 (target_pid_to_str): Likewise.
5230 (target_get_thread_local_address)
5231 (target_get_thread_local_address_p): Delete.
5232 (noprocess): Add NORETURN and ATTR_NORETURN tags.
5233 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5234 (inf_ptrace_pid_to_str): New.
5235 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
5236 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
5237 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
5238 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
5239 Adjust.
5240 * corelow.c (core_pid_to_str): Adjust.
5241 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
5242 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
5243 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
5244 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
5245 * hpux-thread.c (hpux_thread_wait): Adjust.
5246 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
5247 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
5248 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
5249 * procfs.c (procfs_pid_to_str): Adjust.
5250 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
5251 * remote-mips.c (mips_wait): Adjust.
5252 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
5253 * remote.c (remote_wait, remote_pid_to_str)
5254 (remote_get_thread_local_address): Adjust.
5255 * rs6000-nat.c (rs6000_wait): Adjust.
5256 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
5257 (sol_thread_wait, solaris_pid_to_str): Adjust.
5258 * spu-linux-nat.c (spu_child_wait): Adjust.
5259 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
5260
d8906c6f
TJB
52612009-02-06 Tom Tromey <tromey@redhat.com>
5262
5263 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
5264 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
5265 (python-cmd.o): New target.
5266 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
5267 completer prototype.
5268 (add_cmd): Initialize destroyer member of cmd_list_element. Use
5269 make_symbol_completion_list_fn as completer.
5270 (delete_cmd): Call destroyer if one is set.
5271 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
5272 completer member. Add destroyer member.
5273 (set_cmd_completer): Add self parameter to
5274 completer prototype.
5275 * command.h (set_cmd_completer): Add cmd parameter to
5276 completer prototype.
5277 * completer.c (noop_completer, filename_completer,
5278 location_completer, expression_completer, command_completer): Adapt
5279 to new completer prototype.
5280 (complete_line_internal): Pass new parameter to completer function.
5281 * completer.h (noop_completer, filename_completer,
5282 location_completer, expression_completer, command_completer): Adapt
5283 prototypes to new completer prototype.
5284 * interps.c (interpreter_completer): Adapt to new completer
5285 prototype.
5286 * python/python-cmd.c: New file.
5287 * python/python-internal.h (gdbpy_initialize_commands): Add
5288 prototype.
5289 (gdbpy_doc_cst): Add forward declaration.
5290 * python/python.c (gdbpy_doc_cst): Declare.
5291 (_initialize_python): Call gdbpy_initialize_commands. Initialize
5292 gdbpy_doc_cst.
5293 * symtab.c (make_symbol_completion_list_fn): New function.
5294 * symtab.h (make_symbol_completion_list_fn): Add prototype.
5295
739ef7fb
PA
52962009-02-06 Pedro Alves <pedro@codesourcery.com>
5297
5298 * target.c (target_get_osdata): Check for equal or higher than
5299 process_stratum, not dummy_stratum.
5300
6d097e65
PA
53012009-02-06 Pedro Alves <pedro@codesourcery.com>
5302
5303 * remote.c (extended_remote_can_run): Delete.
5304 (init_remote_ops): Don't register it.
5305 * target.c (target_get_osdata): Don't check for target_can_run.
5306 Instead any target that has already been pushed, otherwise
739ef7fb 5307 fallback to the default run target.
6d097e65 5308
947b8855
PA
53092009-02-06 Pedro Alves <pedro@codesourcery.com>
5310
5311 * target.c (target_create_inferior, target_detach)
5312 (target_mourn_inferior, target_attach, target_close): Do target
5313 debug output.
5314 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
5315 (debug_to_mourn_inferior, debug_to_close): Delete.
5316 (setup_target_debug): Adjust.
5317
611041af
PA
53182009-02-05 Pedro Alves <pedro@codesourcery.com>
5319
5320 * target.h (target_stopped_data_address_p): Delete declaration,
5321 and don't define as macro.
5322 * target.c (target_stopped_data_address_p): Delete.
5323
b6cb8e7d
TJB
53242009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5325 Tom Tromey <tromey@redhat.com>
5326
5327 * python/python-utils.c (target_string_to_unicode): New function.
5328 * python/python-internal.h (target_string_to_unicode): New prototype.
5329 * python/python-value.c (valpy_string): New function.
5330 (value_object_methods): Add `string' entry.
5331
54ba13f7
PA
53322009-02-05 Pedro Alves <pedro@codesourcery.com>
5333
5334 * target.h (target_tid_to_str): Delete.
5335 * thread.c (print_thread_info, thread_apply_all_command)
5336 (thread_apply_command, thread_command, do_captured_thread_select):
5337 Use target_pid_to_str instead of target_tid_to_str.
5338 * linux-fork.c (delete_fork_command): Likewise.
5339
9d49bdc2
PA
53402009-02-05 Pedro Alves <pedro@codesourcery.com>
5341
5342 * frame.c (has_stack_frames): Make public.
5343 (get_prev_frame): Don't allow a NULL this_frame anymore.
5344 * frame.h (has_stack_frames): Declare.
5345 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
5346 to get_prev_frame, instead start at get_current_frame.
5347 (varobj_create): Check has_stack_frames before getting any frame;
5348 eliminate one usage of deprecated_safe_get_selected_frame.
5349
12453b93
TJB
53502009-02-05 Tom Tromey <tromey@redhat.com>
5351 Thiago Jung Bauermann <bauerman@br.ibm.com>
5352
5353 * python/python.c (GdbMethods): Move to bottom of file.
5354 (get_parameter, execute_gdb_command, gdbpy_write,
5355 gdbpy_flush): Remove forward declarations.
5356 (eval_python_from_control_command): Fix error checking of function
5357 PyRun_SimpleString. Fix error string.
5358 (python_command): Likewise.
5359 (execute_gdb_command): Added from_tty argument.
5360
ae6a3a4c
TJB
53612009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5362
5363 * language.h (language_dfn): Add la_get_string member.
5364 (LA_GET_STRING): New macro.
5365 (default_get_string): New prototype.
5366 * language.c (default_get_string): New function.
5367 (unknown_language_defn, auto_language_defn, local_language_defn): Use
5368 default_get_string for la_get_string.
5369 * c-lang.c (c_get_string): New function.
5370 (c_language_defn, cplus_language_defn, asm_language_defn): Use
5371 c_get_string for la_get_string.
5372 (minimal_language_defn): Likewise
5373 * ada-lang.c (ada_language_defn): Likewise.
5374 * f-lang.c (f_language_defn): Use default_get_string for
5375 la_get_string.
5376 * jv-lang.c (java_language_defn): Likewise.
5377 * m2-lang.c (m2_language_defn): Likewise.
5378 * objc-lang.c (objc_language_defn): Likewise.
5379 * p-lang.c (p_language_defn): Likewise.
5380 * scm-lang.c (scm_language_defn): Likewise.
5381 * typeprint.c (type_to_string): New function.
5382 * value.h (type_to_string): New prototype.
5383 * valprint.c (val_print_string): Factor out code for reading string
5384 from the inferior into its own function. Put 2 spaces after period
5385 in comments.
5386 (read_string): New function.
5387 * valprint.h (read_string): New prototype.
5388
fa8a61dc
TT
53892009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
5390 Tom Tromey <tromey@redhat.com>
5391
5392 PR breakpoints/8079:
5393 * breakpoint.c (print_one_breakpoint): Use exp_string field
5394 to display expression of watchpoints.
5395 (mention): Likewise.
5396 (watch_command_1): Remove trailing whitespace from expression.
5397 * printcmd.c (struct display) <exp_string>: New field.
5398 (display_command): Set exp_string.
5399 (free_display): Free exp_string.
5400 (clear_displays): Use free_display.
5401 (do_one_display): Print exp_string.
5402 (display_info): Likewise.
5403
08c637de
TJB
54042009-02-04 Tom Tromey <tromey@redhat.com>
5405 Thiago Jung Bauermann <bauerman@br.ibm.com>
5406 Phil Muldoon <pmuldoon@redhat.com>
5407
5408 * python/python-internal.h (gdbpy_get_value_from_history): Rename
5409 prototype to gdbpy_history.
5410 (gdbpy_is_string): Declare.
5411 (python_string_to_host_string): Declare.
5412 * python/python-utils.c (gdbpy_is_string): New function.
5413 (unicode_to_encoded_string): New function.
5414 (unicode_to_target_string): Use it.
5415 (python_string_to_host_string): New function.
5416 * python/python-value.c (valpy_address): New function.
5417 (convert_value_from_python): Use gdbpy_is_string. Change to throw
5418 Python exception instead of a GDB exception on error. Properly check
5419 Python booleans.
5420 (valpy_getitem): Convert field name to host string. Handle array
5421 accesses. Adapt to new behaviour of convert_value_from_python.
5422 (valpy_new): Adapt to new behaviour of convert_value_from_python.
5423 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
5424 VALPY_BITXOR, VALPY_BITOR>: New constants.
5425 (valpy_binop): Update. Adapt to new behaviour of
5426 convert_value_from_python.
5427 (valpy_invert): New function.
5428 (valpy_lsh): Likewise.
5429 (valpy_rsh): Likewise.
5430 (valpy_and): Likewise.
5431 (valpy_or): Likewise.
5432 (valpy_xor): Likewise.
5433 (valpy_richcompare): Call convert_value_from_python instead of doing
5434 conversions itself.
5435 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
5436 (gdbpy_get_value_from_history): Rename
5437 function to gdbpy_history.
5438 (gdbpy_initialize_values): Don't set tp_new.
5439 (value_object_type): Add valpy_new.
5440 (value_object_methods): Add `address' entry.
5441 (value_object_as_number): Update for new methods.
5442 * python/python.c (GdbMethods): Rename entry from
5443 `get_value_from_history' to `history'.
5444
538e13a6 54452009-02-04 Jerome Guitton <guitton@adacore.com>
b5304971
JG
5446
5447 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
5448 of type to guard against a crash.
5449
33d502b4
JG
54502009-02-04 Jerome Guitton <guitton@adacore.com>
5451
5452 * value.c (value_from_contents_and_address): Always return
5453 a lval_memory value, even if address is null.
5454
9f08ae4f
TG
54552009-02-04 Tristan Gingold <gingold@adacore.com>
5456
5457 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
5458 (amd64_darwin_sigcontext_addr): Ditto.
5459 (darwin_dwarf_signal_frame_p): Ditto.
5460 (i386_darwin_init_abi): Handle signal frames, use the const for
5461 sc_num_regs.
5462 (x86_darwin_init_abi_64): Ditto.
5463
4bd207ef
TG
54642009-02-04 Tristan Gingold <gingold@adacore.com>
5465
5466 * i386-tdep.c (i386_sigtramp_p): Make it public.
5467 * i386-tdep.h (i386_sigtramp_p): Declare.
5468
4aa99a88
TG
54692009-02-04 Tristan Gingold <gingold@adacore.com>
5470
5471 * machoread.c (macho_symfile_read): Read minsymtab also from
5472 shared libraries.
5473 (macho_symfile_read): Try to read dwarf2 frame info from main
5474 object file, but not from OSO files.
5475 (macho_symfile_offsets): Update section names for latest BFD
5476 changes.
5477 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
5478 (x86_darwin_init_abi_64): Ditto.
5479 * solib-darwin.c: New file.
5480 * solib-darwin.h: New file.
5481 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
5482
7a848be1
TG
54832009-02-04 Tristan Gingold <gingold@adacore.com>
5484
5485 * solist.h (struct target_so_ops): Comment fallback behavior for
5486 operation same.
5487
b32d97f3
TT
54882009-02-03 Tom Tromey <tromey@redhat.com>
5489
5490 * completer.c (add_struct_fields): Check type_name against NULL
5491 before use.
5492
692263b8
JB
54932009-02-03 Joel Brobecker <brobecker@adacore.com>
5494
5495 * MAINTAINERS: Update Elena's email address.
5496
bfa149ac
JB
54972009-02-02 Joel Brobecker <brobecker@adacore.com>
5498
5499 * breakpoint (update_watchpoint): Minor comment adjustment.
5500
1c71341a
TT
55012009-02-02 Tom Tromey <tromey@redhat.com>
5502
52e44b43 5503 PR gdb/9594:
1c71341a
TT
5504 * completer.c (count_struct_fields): Count method names.
5505 (add_struct_fields): Add matching method names.
5506
85541719
DE
55072009-02-02 Doug Evans <dje@google.com>
5508
5509 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
5510 doing any further tcl/tk configury. Don't configure gdbtk if
5511 tcl or tk check fails.
5512 * aclocal.m4: Regenerate.
5513 * configure: Regenerate.
5514
a4295225
TT
55152009-02-02 Tom Tromey <tromey@redhat.com>
5516
5517 PR exp/9059:
5518 * valops.c (find_overload_match): Follow typedefs before taking
5519 address of object argument.
5520
f00150c9
DE
55212009-02-01 Doug Evans <dje@google.com>
5522
5523 * target.h (target_waitstatus_to_string): Declare.
5524 * target.c (target_waitstatus_to_string): New function. Copied from
5525 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
5526 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
5527 TARGET_WAITKIND_NO_HISTORY.
5528 (debug_to_wait): Call it.
5529 * infrun.c (wait_for_inferior): If debug_infrun, print result of
5530 target_wait.
5531 (fetch_inferior_event): Ditto.
5532
5abdf4bd
TT
55332009-01-30 Tom Tromey <tromey@redhat.com>
5534
5535 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
5536
592375cd
VP
55372009-01-30 Vladimir Prus <vladimir@codesourcery.com>
5538
5539 PR 8145.
5540 * thread.c (do_captured_list_thread_ids): Report the current
5541 thread id.
5542
41447f92
VP
55432009-01-30 Vladimir Prus <vladimir@codesourcery.com>
5544
5545 * breakpoint.c (create_breakpoint, create_breakpoints)
5546 (break_command_really, set_breakpoint): New parameter enabled.
5547 (create_breakpoint, break_command_really): Make breakpoint
5548 disabled if so requested.
5549 * breakpoint.h (set_breakpoint): New parameter enabled.
5550 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
5551
35669430
DE
55522009-01-28 Doug Evans <dje@google.com>
5553
5554 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
5555 (amd64_displaced_step_fixup): Declare.
5556 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
5557 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
5558 and make static global.
5559 (amd64_arch_regmap_len): New static global.
5560 (amd64_arch_reg_to_regnum): New function.
5561 (struct amd64_insn): New struct.
5562 (struct displaced_step_closure): New struct.
5563 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
5564 (rex_prefix_p,skip_prefixes)
5565 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
5566 (amd64_insn_length,amd64_get_unused_input_int_reg)
5567 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
5568 (amd64_displaced_step_copy_insn)
5569 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
5570 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
5571 (amd64_displaced_step_fixup): New functions.
5572 * amd64-linux-tdep.c: #include arch-utils.h.
5573 (amd64_linux_init_abi): Install displaced stepping support.
5574
4eb7c016
JG
55752009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5576 Jerome Guitton <guitton@adacore.com>
5577
5578 * configure, config.in: Regenerated.
5579 * configure.ac: Add --with-system-gdbinit.
5580 * main.c (get_init_files): New.
5581 (captured_main): Use get_init_files. Load system gdbinit before
5582 $HOME/.gdbinit.
5583 (print_gdb_help): Print location of init files.
5584
7df3ce47
PA
55852009-01-28 Pedro Alves <pedro@codesourcery.com>
5586
5587 * corefile.c (generic_search): Delete disabled code.
5588 * gdbcore.h (generic_search): Delete declaration.
5589
77435e4c
PA
55902009-01-26 Pedro Alves <pedro@codesourcery.com>
5591
5592 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
5593 parent to the child.
5594 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
5595 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
5596 remove_breakpoints to remove breakpoints from the parent.
5597
1e275f79
PA
55982009-01-26 Pedro Alves <pedro@codesourcery.com>
5599
7488432f 5600 PR backtrace/9458, PR backtrace/8864:
1e275f79
PA
5601 * frame.c (create_new_frame): Update the frame's cached PC before
5602 finding its unwinder. Use frame_id_build to build the new frame's
5603 id.
5604 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
5605 array values from the ``args'' array values.
5606
1deafd4e
PA
56072009-01-26 Pedro Alves <pedro@codesourcery.com>
5608
5609 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
5610 (create_array_type, create_set_type, init_flags_type)
5611 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
5612 with a call to XZALLOC or XCALLOC, and pairs of calls to
5613 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
5614
3c16cced
PA
56152009-01-26 Pedro Alves <pedro@codesourcery.com>
5616
5617 Add "maint set|show internal-error|internal-warning quit|corefile
5618 ask|yes|no" commands.
5619
5620 PR gdb/7580:
5621 * utils.c (internal_problem_ask, internal_problem_yes)
5622 (internal_problem_no, internal_problem_modes): New.
5623 (struct internal_problem): Remove FIXME. Make should_quit and
5624 should_dump_core types to char *.
5625 (internal_vproblem, internal_error_problem)
5626 (internal_warning_problem): Adjust.
5627 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
5628 functions.
5629 (add_internal_problem_command): New.
5630 (_initialize_utils): New.
5631
616d7dd2
PA
56322009-01-25 Pedro Alves <pedro@codesourcery.com>
5633
5634 * infcmd.c (program_info): Use paddress instead of casting stop_pc
5635 to unsigned long.
5636
0516318b
PA
56372009-01-24 Pedro Alves <pedro@codesourcery.com>
5638
5639 * infrun.c (normal_stop): Don't call
5640 deprecated_update_frame_pc_hack.
5641 * frame.c (deprecated_update_frame_pc_hack)
5642 (deprecated_update_frame_base_hack): Delete, and ...
5643 (create_new_frame): ... inline here.
5644 * frame.h (deprecated_update_frame_pc_hack)
5645 (deprecated_update_frame_base_hack): Delete declarations.
5646
1e8fb976
PA
56472009-01-23 Pedro Alves <pedro@codesourcery.com>
5648
5649 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
5650 * cli/cli-setshow.c (do_setshow_command): Handle it.
5651 * command.h (enum var_types): Add var_zuinteger.
5652 (add_setshow_zuinteger_cmd): Declare.
5653
5654 * valprint.c (_initialize_valprint): Change the set input-radix
5655 and set output-radix commands to zuinteger type.
5656
dd7e2d2b
PA
56572009-01-23 Pedro Alves <pedro@codesourcery.com>
5658
5659 PR gdb/9664:
5660 * infrun.c (normal_stop): Tag threads as stopped, and run the
5661 hook-stop before printing the stack frame.
5662
392452f6
PA
56632009-01-22 Pedro Alves <pedro@codesourcery.com>
5664
5665 PR c++/9631:
5666 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
5667 vbasetype.
5668
f6a96b83
KH
56692009-01-20 Kazu Hirata <kazu@codesourcery.com>
5670
5671 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
5672 unsigned long.
5673
5d277928 56742009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
a12cc160
DJ
5675
5676 PR gdb/9346
5677 * infcmd.c (signal_command): Do not specify a resume PC.
5678
b89667eb
DE
56792009-01-19 Doug Evans <dje@google.com>
5680
5681 * dummy-frame.c (dummy_frame): Replace regcache member with
5682 caller_state.
5683 (dummy_frame_push): Replace caller_regcache arg with caller_state.
5684 All callers updated.
5685 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
5686 (dummy_frame_pop): Rewrite. Verify requested frame is in the
5687 dummy frame stack. Restore program state.
5688 (cleanup_dummy_frames): Rewrite.
5689 (dummy_frame_sniffer): Update. Make static.
5690 * dummy-frame.h (regcache,frame_info): Delete forward decls.
5691 (inferior_thread_state): New forward decl.
5692 (dummy_frame_push): Update prototype.
5693 * frame.c (frame_pop): dummy_frame_pop now does all the work for
5694 DUMMY_FRAMEs.
5695 * infcall.c (breakpoint_auto_delete_contents): Delete.
5696 (get_function_name,run_inferior_call): New fns.
5697 (call_function_by_hand): Simplify by moving some code to
5698 get_function_name, run_inferior_call. Inferior function call wrapped
5699 in TRY_CATCH so there's less need for cleanups and all exits from
5700 proceed are handled similarily. Detect program exit.
5701 Detect program stopping in a different thread.
5702 Make error messages more consistent.
5703 * inferior.h (inferior_thread_state): Declare (opaque type).
5704 (save_inferior_thread_state,restore_inferior_thread_state,
5705 make_cleanup_restore_inferior_thread_state,
5706 discard_inferior_thread_state, get_inferior_thread_state_regcache):
5707 Declare.
5708 (save_inferior_status): Update prototype.
5709 * infrun.c: (normal_stop): When stopped for the completion of an
5710 inferior function call, verify the expected stack frame kind.
5711 (inferior_thread_state): New struct.
5712 (save_inferior_thread_state,restore_inferior_thread_state,
5713 do_restore_inferior_thread_state_cleanup,
5714 make_cleanup_restore_inferior_thread_state,
5715 discard_inferior_thread_state,
5716 get_inferior_thread_state_regcache): New functions.
5717 (inferior_status): Move stop_signal, stop_pc, registers to
5718 inferior_thread_state. Remove restore_stack_info.
5719 (save_inferior_status): Remove arg restore_stack_info.
5720 All callers updated. Remove saving of state now saved by
5721 save_inferior_thread_state.
5722 (restore_inferior_status): Remove restoration of state now done by
5723 restore_inferior_thread_state.
5724 (discard_inferior_status): Remove freeing of registers, now done by
5725 discard_inferior_thread_state.
5726
aefc7064
PA
57272009-01-18 Pedro Alves <pedro@codesourcery.com>
5728
5729 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
5730 at a time, times NUM_TO_SCROLL.
5731 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
5732 fetch the selected frame if there is no stack.
5733
29f49a6a
PA
57342009-01-18 Pedro Alves <pedro@codesourcery.com>
5735
5736 PR gdb/9747:
5737 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
5738 Declare.
5739 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
5740 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
5741 is thrown while handling an event, finish the thread state.
5742 (normal_stop): Use finish_thread_state cleanup.
5743 * infcmd.c (run_command_1): If an error is thrown while starting
5744 the inferior, finish the thread state.
5745
e7243d73
PA
57462009-01-18 Pedro Alves <pedro@codesourcery.com>
5747
5748 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
5749 skip breakpoints without a location (pending breakpoints).
5750
e74994b5
PA
57512009-01-18 Pedro Alves <pedro@codesourcery.com>
5752
5753 PR build/9186:
5754 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
5755
8405c36e
NR
57562009-01-18 Nick Roberts <nickrob@snap.net.nz>
5757
5758 * thread.c (thread_command): Move call to annotate_thread_changed
5759 to...
5760 (do_captured_thread_select): ... here, to avoid printing an
5761 annotation if the thread change generates an exception.
5762
b8bfd3ed
JB
57632009-01-16 Joel Brobecker <brobecker@adacore.com>
5764
5765 * NEWS: Document x86_64/MinGW as a new native configuration.
5766
2dde91e9
JB
57672009-01-16 Joel Brobecker <brobecker@adacore.com>
5768
5769 * NEWS: Move the documentation of "info os processes" to
5770 the appropriate section (documenting the new commands).
5771
54363045
DE
57722009-01-15 Doug Evans <dje@google.com>
5773
5774 * target.h (target_signal_to_string): Make return type const char *.
5775 (target_signal_to_name): Ditto.
5776 (target_signal_from_name): Make arg const char *.
54363045 5777 * infrun.c (sig_print_info): Update.
54363045
DE
5778 * signals/signals.c (signals): Make array and struct members const.
5779 (target_signal_to_string): Make return type const char *.
5780 (target_signal_to_name): Ditto.
5781 (target_signal_from_name): Make arg const char *.
5782
572d275c
UW
57832009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
5784 Tristan Gingold <gingold@adacore.com>
5785
5786 * solist.h (struct target_so_ops): New member bfd_open.
5787 (solib_find): Add prototype.
5788 (solib_bfd_fopen): Add prototype.
5789 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
5790 from solib_bfd_open.
5791 (solib_bfd_open): Use ops->bfd_open override if present. Call
5792 solib_find and solib_bfd_open otherwise.
5793
5794 * objfiles.h (OBJF_KEEPBFD): New define.
5795 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
5796 objfile flag is set.
5797 * solib.c (symbol_add_stub): Do not allocate second BFD for
5798 shared library; use OBJF_KEEPBFD flag on solib objfile.
5799
0701b271
UW
58002009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
5801
5802 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
5803
61212c0f
UW
58042009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
5805
5806 * value.h (address_of_variable): Add prototype.
5807 (locate_var_value): Remove prototype.
5808
5809 * findvar.c (read_var_value): Do not attempt to default frame
5810 to selected frame.
5811 (locate_var_value): Remove function.
5812 * valops.c (value_of_variable): Retrieve selected frame for
5813 symbols that require a frame when called with NULL block.
5814 * valops.c (address_of_variable): New function.
5815
5816 * eval.c (evaluate_subexp_for_address): Call address_of_variable
5817 instead of calling locate_var_value.
5818 (evaluate_subexp_with_coercion): Likewise.
5819
adb483fe
DJ
58202009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
5821
5822 * NEWS: Document "define" for prefixed commands.
5823 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
5824 show_user_1 for prefix commands.
5825 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
5826 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
5827 commands. Return the containing command list.
5828 (define_command, document_command): Update to handle prefix commands.
5829 (show_user_1): Add prefix and name arguments. Handle prefix
5830 commands.
5831 * cli/cli-script.h (show_user_1): Update prototype.
5832
a32d7317
KT
58332009-01-14 Kai Tietz <kai.tietz@onevision.com>
5834
92a610f3 5835 * ser-mingw.c (console_select_thread): Add return to make
a32d7317
KT
5836 compiler happy.
5837 (pipe_select_thread): Likewise.
5838 (file_select_thread): Likewise.
5839
041d0fd7
PA
58402009-01-14 Pedro Alves <pedro@codesourcery.com>
5841
5842 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
5843 previous change.
5844
dc1981d7
PA
58452009-01-14 Pedro Alves <pedro@codesourcery.com>
5846
5847 * remote.c (extended_remote_mourn_1): Invalidate our notion of
5848 current general thread.
5849
244bf9ae
PA
58502009-01-14 Pedro Alves <pedro@codesourcery.com>
5851
5852 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
5853 without a live selected thread.
5854
e4d013fc
JB
58552009-01-14 Joel Brobecker <brobecker@adacore.com>
5856
5857 Update the copyright notice of some of the files I missed
5858 in the previous copyright update.
5859
a588db63
JB
58602009-01-14 Joel Brobecker <brobecker@adacore.com>
5861
5862 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
5863 base address instead of casting it to DWORD.
5864
77a732d9
UW
58652009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
5866
5867 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
5868 for NULL frame pointers.
5869
773698b5
JB
58702009-01-13 Mark Kettenis <kettenis@gnu.org>
5871
5872 * utils.c (host_address_to_string): Reimplement in a way that
5873 avoids the cast of the address to long.
5874
9918cab9
JB
58752009-01-13 Joel Brobecker <brobecker@adacore.com>
5876
5877 * mdebugread.c (parse_symbol): Save the symbol private data
5878 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
5879 (psymtab_to_symtab_1): Likewise.
5880 (parse_procedure): Declare variable "e" only in the scope
5881 where it is used. Extract the symbol private data using
5882 SYMBOL_VALUE_BYTES.
5883
74bcbdf3
PA
58842009-01-13 Jim Blandy <jimb@codesourcery.com>
5885
5886 Abstract out common code for copying value locations.
5887
5888 * value.h (set_value_component_location): New declaration.
5889 * value.c (set_value_component_location): New function.
5890 (value_primitive_field): Use it.
5891 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
5892 * valops.c (search_struct_field, value_slice): Same.
5893 * ada-lang.c (coerce_unspec_val_to_type)
5894 (ada_value_primitive_packed_val): Same.
5895
d7dc3873
JB
58962009-01-13 Joel Brobecker <brobecker@adacore.com>
5897
5898 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
5899
dc05df57
CF
59002009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
5901
5902 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
5903 throughout.
5904 * i386-cygwin-tdep.c: Ditto.
5905 * i386-windows-nat.c: Ditto.
5906 * windows-nat.h: Ditto.
5907 * windows-tdep.c: Ditto.
5908 * windows-tdep.h: Ditto.
5909 * windows-nat.c: Ditto.
5910 (cygwin_load_start): Redefine as CORE_ADDR.
5911 (cygwin_load_end): Ditto.
b8511eeb 5912 (windows_make_so): Coerce result of address arithmetic to uintptr_t
dc05df57
CF
5913 before coercing to CORE_ADDR to avoid a compiler warning.
5914 (handle_exception): Define addr as CORE_ADDR and coerce
5915 ExceptionAddress to uintptr_t before assigining to avoid a compiler
5916 warning.
5917 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
5918 files.
5919
31b060a2
CF
59202009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 Fix linking with --enable-targets=all:
5923 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
5924 (HFILES_NO_SRCDIR): Add windows-tdep.h.
5925 (ALLDEPFILES): Add windows-tdep.c.
5926
f3b6bd60 59272009-01-11 Chris Faylor <me.gdb@cgf.cx>
31b060a2
CF
5928
5929 * win32-nat.h: Delete.
5930 * windows-nat.h: Rename from win32-nat.h.
5931 * win32-nat.c: Delete.
5932 * windows-nat.c: Rename from win32-nat.c.
5933 * win32-termcap.c: Delete.
5934 * windows-termcap.c: Rename from win32-termcap.c.
5935 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
5936 * configure.ac: Handle rename from win32-termcap.c ->
5937 windows-termcap.c.
5938 * configure: Regenerate.
5939 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
5940 -> windows-termcap.c.
5941 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
5942 windows-tdep.h.
5943 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
5944 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
5945 windows-tdep.h.
5946 (win32_make_so): Handle cygwin compiler warning due to change of
5947 load_addr from DWORD to LPVOID.
5948 (handle_load_dll): Use %p in format string to properly print address
5949 and avoid a compiler warning.
5950 (DEBUG_EXCEPTION_SIMPLE): Ditto.
5951 (handle_exception): Ditto.
5952 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
5953 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
5954 windows-nat.o.
5955 * config/i386/mingw.mh: Ditto.
5956 * config/i386/mingw64.mh: Ditto.
5957
0311118f
JK
59582009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5959
5960 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
5961 arrayprint_recurse_level to a parameter. Update all the callers. New
5962 comment at autovariables.
5963
5f61c20e
JK
59642009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5965
5966 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
5967 coding style.
5968
59692009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
5970
5971 * target.c (target_xfer_partial): Use host_address_to_string to
5972 print the address of readbuf and writebuf. Cast the address of
5973 elements inside the myaddr buffer into intptr_t.
5974 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
5975 Cast the address of elements inside the myaddr buffer into
5976 intptr_t.
5977
5f61c20e 59782009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
5979
5980 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
5981 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
5982 * configure.host, configure.tgt: Add handling for x86_64/windows.
5983 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
5984 and amd64-windows-tdep.c.
5985
5f61c20e 59862009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
5987
5988 * win32-tdep.h, win32-tdep.c: New files.
5989 * i386-cygwin-tdep.h: Delete.
5990 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
5991 i386-cygwin-tdep.h.
5992 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
5993 * win32-nat.c: Likewise.
5994 * configure.tgt: Add win32-tdep.o to the list of target object
5995 files for i386-cygwin and i386-mingw targets.
5996
5f61c20e 59972009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
5998
5999 * win32-nat.h: New file.
6000 * win32-nat.c (mappings): Initialize to NULL.
6001 (win32_set_context_register_offsets): New function.
6002 * i386-windows-nat.c: New file.
6003 (mappings): Moved here from win32-nat.c.
6004 (_initialize_i386_windows_nat): New function.
6005 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
6006 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
6007
25fc6591
AS
60082009-01-09 Andreas Schwab <schwab@suse.de>
6009
6010 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
6011
87f70781
PA
60122009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6013
6014 * gdbtypes.c (append_composite_type_field): Correct the location of
6015 appended fields.
6016
58d4abe1
PA
60172009-01-09 Pedro Alves <pedro@codesourcery.com>
6018
6019 * defs.h (deprecated_error_hook): Delete declaration.
6020 * interps.c (clear_interpreter_hooks): Adjust.
6021 * remote-sim.c (gdb_os_error): Don't try to call
6022 deprecated_error_hook. No need to call exit anymore.
6023 * top.c (deprecated_error_hook): Delete.
6024
e3cb3832
JB
60252009-01-09 Joel Brobecker <brobecker@adacore.com>
6026
6027 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
6028 to print the address of the gdbarch pointer.
6029
30737ed9
JB
60302009-01-09 Joel Brobecker <brobecker@adacore.com>
6031
6032 * gdbarch.sh: Fix all the compilation errors on amd64-windows
6033 due to casting a pointer to a long when printing a function
6034 address. Instead, use host_address_to_string to convert our
6035 address to a string.
6036 * gdbarch.c: Regenerate.
6037
ec4dfccf
JB
60382009-01-09 Joel Brobecker <brobecker@adacore.com>
6039
6040 * event-top.c (async_disconnect, async_stop_sig): use "raise"
6041 instead of "kill" to raise a signal.
6042
d3653bf6
JB
60432009-01-09 Joel Brobecker <brobecker@adacore.com>
6044
6045 * win32-nat.c (get_module_name): Change the type of parameter
6046 "base_address" to LPVOID. Remove unnecessary cast.
6047 (struct lm_info): Change type of load_addr to LPVOID.
6048 (win32_make_so): Change the type of parameter "load_addr"
6049 to LPVOID. Remove some unnecessary casts.
6050 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
6051 (win32_xfer_shared_libraries): Add missing cast.
6052
308a8808
JB
60532009-01-09 Joel Brobecker <brobecker@adacore.com>
6054
6055 * win32-nat.c (has_detach_ability, set_process_privilege):
6056 Cast the result of GetProcAddress to (void *) to avoid
6057 a compilation warning.
6058
5851ab76
JB
60592009-01-09 Joel Brobecker <brobecker@adacore.com>
6060
6061 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
6062 already defined.
6063
5732a500
JB
60642009-01-09 Joel Brobecker <brobecker@adacore.com>
6065
6066 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
6067 definition of local variable "done".
6068 (info_w32_command, handle_exception): Remove unnecessary cast.
6069
def4de3a
JB
60702009-01-09 Joel Brobecker <brobecker@adacore.com>
6071
6072 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
6073 DebugSetProcessKillOnExit. Update all uses in this file.
6074 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
6075 Update all uses in this file.
6076
60772009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
6078
6079 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
6080 and use it when pushing the target.
6081 (win32_attach, win32_create_inferior): Update call to
6082 do_initial_win32_stuff.
6083 (win32_detach, win32_mourn_inferior): Use our ops parameter
6084 instead of the global win32_ops to unpush the target.
6085
1be7fe8d
JB
60862009-01-09 Joel Brobecker <brobecker@adacore.com>
6087
6088 * ser-mingw.c (ser_windows_open): Use proper type when casting
6089 in call to _open_osfhandle.
6090
1dac1b47
KT
60912009-01-09 Kai Tietz <kai.tietz@onevision.com>
6092
6093 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
6094
ecf180db
JB
60952009-01-09 Joel Brobecker <brobecker@adacore.com>
6096
6097 * CONTRIBUTE: Minor reformatting.
6098
8234eceb
KT
60992009-01-08 Kai Tietz <kai.tietz@onevision.com>
6100
6101 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
6102 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
6103 export directory.
8234eceb 6104
72ee8797
NF
61052009-01-08 Nathan Froyd <froydnj@codesourcery.com>
6106
6107 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
6108 Call exit to make it obvious to GCC.
6109
f7545552
TT
61102009-01-08 Tom Tromey <tromey@redhat.com>
6111
6112 PR breakpoints/9350:
6113 * varobj.c (varobj_invalidate): Unconditionally free
6114 all_rootvarobj.
6115 * symfile.c (syms_from_objfile): Free local_addr when returning
6116 normally.
6117 * exec.c (exec_file_attach): Do cleanups before returning.
6118 (exec_file_command): Likewise.
6119 * corefile.c (reopen_exec_file): Do cleanups before returning.
6120 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
a2f63f5e 6121 returning.
f7545552
TT
6122 (do_vec_free): New function.
6123 (update_global_location_list): Make a cleanup for old_locations.
6124 Do cleanups before returning. Remove unused variable 'e'.
6125 (find_condition_and_thread): Free result of parsing the
6126 expression.
6127 (print_it_typical): Do cleanups before returning.
6128 (breakpoint_re_set_one): Always free sals.sals.
6129
dde02812
ES
61302009-01-08 Joel Brobecker <brobecker@adacore.com>
6131 Emi Suzuki <emi-suzuki@tjsys.co.jp>
a2f63f5e 6132
dde02812
ES
6133 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
6134 watchpoints.
6135
69bcc6bc
DE
61362009-01-07 Doug Evans <dje@google.com>
6137
6138 * top.c (gdb_prompt_string): Delete, unused.
6139
fa3a767f
PA
61402009-01-07 Pedro Alves <pedro@codesourcery.com>
6141
6142 Delete ONE_PROCESS_WRITETEXT leftovers.
6143
6144 * breakpoint.c (insert_bp_location): Delete process_warning
6145 argument. Adjust.
6146 (insert_breakpoint_locations): Adjust.
6147 (reattach_breakpoints): Adjust.
6148 * infrun.c (normal_stop): Drop "It might be running in another
6149 process" notice.
6150
7b93f36d
SS
61512009-01-07 Stan Shebs <stan@codesourcery.com>
6152
6153 * config/pa/linux.mh (XDEPFILES): Remove.
6154
0380c18b
DE
61552009-01-07 Doug Evans <dje@google.com>
6156
6157 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
6158
60023297
JK
61592009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6160
6161 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
6162 spacing, a regression from 2008-04-22.
6163
ea8992ce
JB
61642009-01-07 Joel Brobecker <brobecker@adacore.com>
6165
6166 * utils.c (gdb_print_host_address): Adjust implementation to
6167 reuse host_address_to_string. Move comment explaining the conversion
6168 from host address to string from here...
6169 (host_address_to_string): ... to there.
6170
301d2c47
ES
61712009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
6172
6173 * MAINTAINERS: Add myself for write after approval privileges.
6174
170ce852
TT
61752009-01-06 Tom Tromey <tromey@redhat.com>
6176
6177 * value.c (set_internalvar): Use value_free, not xfree.
6178
fdb7262a
JB
61792009-01-06 Jim Blandy <jimb@red-bean.com>
6180
bf1d7d9c
JB
6181 Check return values of functions declared with warn_unused_result
6182 attribute in GLIBC 2.8.
6183 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
6184 * inflow.c (check_syscall): New function.
6185 (new_tty): Use check_syscall to check return values from open and dup.
6186 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
6187 * main.c (captured_main): Call cwd after setting up gdb_stderr;
6188 check for errors from getcwd.
6189 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
6190 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
6191 (stdio_file_fputs): Same.
6192 * utils.c (internal_vproblem): abort if last-ditch error message
6193 write fails.
6194
fdb7262a
JB
6195 * top.c (gdb_init): Don't set the current directory here; that's
6196 already been done in captured_main.
6197
84603566
SL
61982009-01-06 Sandra Loosemore <sandra@codesourcery.com>
6199
6200 * ser-tcp.c: Adjust includes.
6201 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
6202 (tcp_auto_retry, tcp_retry_limit): Declare.
6203 (TIMEOUT): Remove, in favor of tcp_retry_limit.
6204 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
6205 (wait_for_connect): New function.
6206 (net_open): Use it. Add auto-retry logic.
6207 (set_tcp_cmd, show_tcp_cmd): New functions.
6208 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
6209 and "set/show tcp connect-timeout" commands.
6210 * NEWS: Document new commands.
6211
5171e6b3
TT
62122009-01-05 Tom Tromey <tromey@redhat.com>
6213
6214 * python/python-internal.h (Py_ssize_t): Define as int.
6215
a367a1f2
JB
62162009-01-05 Jim Blandy <jimb@red-bean.com>
6217
6218 * MAINTAINERS: Fix my e-mail address as steering committee member.
6219
0fb0cc75
JB
62202009-01-03 Joel Brobecker <brobecker@adacore.com>
6221
6222 Updated copyright notices for most files.
6223
c9fc347d
JB
62242009-01-03 Joel Brobecker <brobecker@adacore.com>
6225
6226 * top.c (print_gdb_version): Update copyright year.
6227
a85d99b4
JB
62282009-01-03 Joel Brobecker <brobecker@adacore.com>
6229
6230 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
6231
4d78a120
JB
62322009-01-01 Pedro Alves <pedro@codesourcery.com>
6233
6234 PR breakpoints/9681:
6235 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
6236 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
6237 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
6238 retrow all other exceptions.
6239
67de2a4c 6240For older changes see ChangeLog-2008.
c906108c
SS
6241\f
6242Local Variables:
6243mode: change-log
6244left-margin: 8
6245fill-column: 74
6246version-control: never
57da7796 6247coding: utf-8
c906108c 6248End:
This page took 1.855366 seconds and 4 git commands to generate.