2009-12-28 Stan Shebs <stan@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f61e138d
SS
12009-12-28 Stan Shebs <stan@codesourcery.com>
2
3 Add trace state variables.
4 * ax.h (enum agent_op): Add getv, setv, and tracev.
5 (ax_tsv): Declare.
6 * ax-gdb.c: Include tracepoint.h.
7 (gen_expr): Handle BINOP_ASSIGN, BINOP_ASSIGN_MODIFY, and
8 OP_INTERNALVAR.
9 (gen_expr_binop_rest): New function, split from gen_expr.
10 * ax-general.c (ax_tsv): New function.
11 (aop_map): Add new bytecodes.
12 * tracepoint.h (struct trace_state_variable): New struct.
13 (tsv_s): New typedef.
14 (find_trace_state_variable): Declare.
15 * tracepoint.c (tvariables): New global.
16 (next_tsv_number): New global.
17 (create_trace_state_variable): New function.
18 (find_trace_state_variable): New function.
19 (delete_trace_state_variable): New function.
20 (trace_variable_command): New function.
21 (delete_trace_variable_command): New function.
22 (tvariables_info): New function.
23 (trace_start_command): Download tsvs with initial values.
24 (_initialize_tracepoint): Add new commands.
25 * NEWS: Mention the addition of trace state variables.
26
0fe7935b
DJ
272009-12-28 Daniel Jacobowitz <dan@codesourcery.com>
28
29 * NEWS: Document "info variables" change.
30 * dwarf2read.c (new_symbol): Add file-scope external unresolved
31 symbols to global_symbols.
32 * symtab.c (search_symbols): Skip LOC_UNRESOLVED symbols.
33
22e722e1
DJ
342009-12-28 Daniel Jacobowitz <dan@codesourcery.com>
35
36 * defs.h (print_address_symbolic, build_address_symbolic): Update
37 prototypes.
38 * printcmd.c (print_address_symbolic): Take a gdbarch argument.
39 Pass it to build_address_symbolic. All callers updated.
40 (build_address_symbolic): Take a gdbarch argument. Use
41 gdbarch_addr_bits_remove for functions. All callers updated.
42
6a0fc12f
PA
432009-12-28 Pedro Alves <pedro@codesourcery.com>
44
45 * ax-gdb.c (gen_expr) <OP_THIS>: Lookup `this' in the context of
46 the tracepoint, not of the selected frame and language.
47
0936ad1d
SS
482009-12-23 Stan Shebs <stan@codesourcery.com>
49
6c228b9c
SS
50 * ax-gdb.c (gen_expr): Handle OP_THIS.
51
0936ad1d
SS
52 * ax-gdb.h (gen_trace_for_var): Declare.
53 * ax-gdb.c (gen_trace_for_var): New function.
54 * dwarf2loc.c (dwarf_expr_frame_base_1): New function, split from...
55 (dwarf_expr_frame_base): ...here.
56 (dwarf2_tracepoint_var_ref): Add computed location case.
57 * tracepoint.c (collect_symbol): Add scope arg and LOC_COMPUTED
58 case.
59 (add_local_symbols): Update call to collect_symbol.
60 (encode_actions): Ditto.
61
98c5b216
TT
622009-12-23 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
63
64 PR gdb/11110
65 * tracepoint.h (deprecated_trace_find_hook)
66 (deprecated_trace_start_stop_hook): Declare extern.
67 * tracepoint.c (deprecated_trace_find_hook)
68 (deprecated_trace_start_stop_hook): Define.
69
429374b8
JK
702009-12-23 Jan Kratochvil <jan.kratochvil@redhat.com>
71
72 * breakpoint.c (bpstat_stop_status): Iterate using ALL_BREAKPOINTS and
73 the B->LOC list. Remove gdb_assert on B. Change bp_hardware_watchpoint
74 continue to break. Remove variable update_locations. Remove HIT_COUNT
75 increment protection by an ENABLE_STATE check. Inline the delayed
76 update_global_location_list call.
77
859825b8
JK
782009-12-23 Jan Kratochvil <jan.kratochvil@redhat.com>
79
80 * breakpoint.c (bpstat_stop_status): Check BL->SHLIB_DISABLED.
81 (print_breakpoint_location): New comment. Check LOC->SHLIB_DISABLED.
82 Check LOC validity before printing it. Use LOC instead of B->LOC.
83 Swap the if conditionals order.
84
f747b78d
TT
852009-12-23 Tom Tromey <tromey@redhat.com>
86
87 * Makefile.in (SFILES): Add exceptions.c.
88
2356e6c6 892009-12-22 Joel Brobecker <brobecker@adacore.com>
90
91 GDB 7.0.1 released.
92
e6a386cd
HZ
932009-12-22 Hui Zhu <teawater@gmail.com>
94
95 * record.c (record_message): Change argument.
96 (record_message_wrapper): New function.
97 (do_record_message): Change it name to
98 "record_message_wrapper_safe".
99 Let it call "record_message_wrapper".
100 (record_resume_error): Deleted.
101 (record_resume): Call "record_message".
102 (record_wait): Deleted record_resume_error.
103 Call "record_message_wrapper_safe".
104 Set status when do_record_message need stop the inferior.
105
c5f62d5f
DE
1062009-12-21 Doug Evans <dje@google.com>
107
108 * linux-nat.c (kill_lwp): Minor cleanup, move definition of
109 tkill_failed into ifdef HAVE_TKILL_SYSCALL. Move setting of errno
110 there too. Delete unnecessary resetting of errno after syscall.
111 Minor comment changes to match gdbserver/linux-low.c:kill_lwp.
112
1a7bd2de
AM
1132009-12-21 Alan Modra <amodra@gmail.com>
114
115 * MAINTAINERS: Update my email address.
116
a6b29f87
VP
1172009-12-21 Vladimir Prus <vladimir@codesourcery.com>
118
119 * mi/mi-main.c (mi_cmd_gdb_exit): Flush raw_stdout.
120
9e19b45e
VP
1212009-12-21 Vladimir Prus <vladimir@codesourcery.com>
122
123 PR gdb/10884
124
125 * value.c (value_primitive_field): Call check_typedef
126 on the type.
127
dd0cd0d0
JB
1282009-12-21 Joel Brobecker <brobecker@adacore.com>
129
130 * COPYING: Update to GPL version 3.
131
6c10c06b
MS
1322009-12-20 Michael Snyder <msnyder@vmware.com>
133
134 * amd64-tdep.c (amd64_epilogue_frame_cache): Fix buf size.
135
dcf7800b
JB
1362009-12-20 Joel Brobecker <brobecker@adacore.com>
137
138 * darwin-nat-info.c, solib-spu.c, spu-multiarch.c,
139 regformats/regdat.sh, features/Makefile: Update copyright header.
140
f1973203
MR
1412009-12-19 Maciej W. Rozycki <macro@codesourcery.com>
142
143 * arm-linux-tdep.c (ARM_OABI_SYSCALL_RESTART_SYSCALL): New macro.
144 (ARM_LDR_PC_SP_12): Likewise.
145 (arm_linux_restart_syscall_init): New function.
146 (arm_linux_restart_syscall_tramp_frame): New variable.
147 (arm_linux_init_abi): Install the
148 arm_linux_restart_syscall_tramp_frame unwinder.
149
00f515da
DE
1502009-12-18 Doug Evans <dje@google.com>
151
152 * gdb_proc_service.h (psaddr_t): Fix type.
153 * linux-thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
154 signature to match glibc.
155 (thread_db_get_thread_local_address): Use psaddr_t for type of
156 address to match parameter of td_thr_tls_get_addr_p.
157 Cast through psaddr_t instead of (void*) to match parameter of
158 td_thr_tls_get_addr_p.
159
e8595ef6
SS
1602009-12-17 Stan Shebs <stan@codesourcery.com>
161
162 * breakpoint.c (bpstat_check_location): Check for tracepoints.
163
a38bba38
MS
1642009-12-16 Michael Snyder <msnyder@vmware.com>
165
166 * i386-tdep.c (i386_process_record): Reformat comments.
167
76c10ea2
GM
1682009-12-15 Gaius Mulley <gaius@glam.ac.uk>
169
170 * dwarf2read.c (read_subroutine_type): Add the subroutine
171 type to the die immediately to allow a parameter type to be
172 the same subroutine type.
173
6414f3fd
TG
1742009-12-15 Tristan Gingold <gingold@adacore.com>
175
176 * machoread.c (macho_symfile_read): Set section size of dsym bfd
177 from main bfd.
178
65ccb109
TG
1792009-12-15 Tristan Gingold <gingold@adacore.com>
180
181 * machoread.c (macho_check_dsym): Read uuid directly from load command
182 instead of from a fake section.
183
3188d986
TG
1842009-12-15 Tristan Gingold <gingold@adacore.com>
185
186 * machoread.c (macho_symtab_read): Add comments. Always set
187 first_offset.
188
874f5765
TG
1892009-12-14 Tristan Gingold <gingold@adacore.com>
190
191 * symfile.h (find_separate_debug_file_by_buildid): Remove prototype.
192 (bfd_open_maybe_remote): New prototype.
193 * symfile.c (bfd_open_maybe_remote): New function.
194 (separate_debug_file_exists, reread_symbols): Use it.
195 (struct build_id, build_id_bfd_get, build_id_verify)
196 (build_id_to_debug_filename)
197 (find_separate_debug_file_by_buildid): Move these ...
198 * elfread.c (struct build_id)
199 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename)
200 (find_separate_debug_file_by_buildid): ... here.
201
43bbcdc2
PH
2022009-12-13 Paul N. Hilfinger <hilfinger@adacore.com>
203
204 * dwarf2read.c (struct attribute): Increase sizes of unsnd and snd
205 fields to allow larger integer sizes.
206 (read_subrange_type): Increase size of bound values.
207 Add logic to determine signedness based on base-type size, signedness.
208 (read_attribute_value): Change format for bad byte size in message.
209 (read_8_bytes): Increase size of result type.
210 (dump_die_shallow): Change format for value.
211 (dwarf2_get_attr_constant_value): Increase size of return type.
212 Correct comment.
213 * gdbtypes.c (create_range_type): Change API to increase size of
214 bounds. struct field -> union field.
215 Always take signedness from base type.
216 (check_typedef): Use new API for TYPE_LOW_BOUND, TYPE_HIGH_BOUND.
217 (recursive_dump_type, copy_type_recursive): Adjust to new
218 representation of range types.
219 * gdbtypes.h (fields_or_bounds): New union containing struct field and
220 new struct range_bounds, used for range types.
221 (TYPE_RANGE_DATA): New macro to access range_bounds member.
222 (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Represent with new TYPE_RANGE_DATA.
223 (TYPE_LOW_BOUND_UNDEFINED, TYPE_HIGH_BOUND_UNDEFINED): New macros,
224 taking over the job of TYPE_FIELD_ARTIFICIAL for range bounds.
225 (SET_TYPE_LOW_BOUND, SET_TYPE_HIGH_BOUND, SET_TYPE_LOW_BOUND_DEFINED)
226 (SET_TYPE_HIGH_BOUND_DEFINED): New macros.
227 (TYPE_FIELDS, TYPE_BASECLASS, TYPE_BASECLASS_NAME, TYPE_FIELD)
228 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED)
229 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED, TYPE_ARRAY_UPPER_BOUND_VALUE)
230 (TYPE_ARRAY_LOWER_BOUND_VALUE): Adjust to new representation.
231 (create_range_type): Adjust API.
232 * ada-lang.c (ada_modulus): Use new extended bound values.
233 (discrete_type_low_bound): Rename to...
234 (ada_discrete_type_low_bound): ... and make external.
235 (discrete_type_high_bound): Rename to...
236 (ada_discrete_type_high_bound): ... and make external.
237 (ada_value_slice_from_ptr, ada_array_bound_from_type)
238 (ada_evaluate_subexp, to_fixed_range_type):
239 Use ada_discrete_type_low_bound, ada_discrete_type_high_bound.
240 * ada-typeprint.c (print_range): Use ada_discrete_type_low_bound,
241 ada_discrete_type_high_bound. Don't look at field count, which
242 is no longer meaningful. Print bounds whenever argument is a range
243 or enumeration.
244 * ada-lang.h (ada_discrete_type_low_bound,ada_discrete_type_high_bound):
245 Declare.
246 * varobj.c (c_describe_child): Adjust to render larger values.
247 * mdebugread.c (parse_type): Use proper abstractions for range types:
248 TYPE_RANGE_DATA, SET_TYPE_LOW_BOUND_DEFINED,
249 SET_TYPE_HIGH_BOUND_DEFINED.
250 * p-typeprint.c (pascal_type_print_varspec_prefix): Use larger format
251 for bounds.
252
39c76ca3
MS
2532009-12-11 Michael Snyder <msnyder@vmware.com>
254
255 * main.c (captured_main): Indentation.
256
01fe1b41
MS
2572009-12-10 Michael Snyder <msnyder@vmware.com>
258
259 * i386-tdep.c (i386_record_lea_modrm_addr): Indent goto label.
260 (i386_process_record): Indent goto label. Use prefix opcode
261 constants from include/opcode/i386.h in switch statement.
262
191ca0a1
CM
2632009-12-10 Chris Moller <cmoller@redhat.com>
264
265 PR gdb/9399
266 * valops.c (value_cast_structs): Added test to return NULL if no
267 casting needed.
268
0289bdd7
MS
2692009-12-10 Oza Pawandeep <paawan1982@yahoo.com>
270
271 * i386-tdep.c: Support for floating point recording.
272 Records and Replay the i386 floating point registers,
273 of i387 FPU.
274 (i386_record_floats): New function.
275 (i386_process_record): Implement FP insns.
276
2480cfa0
TG
2772009-12-03 Tristan Gingold <gingold@adacore.com>
278
279 * machoread.c (macho_symfile_read): Use symbol_file_add_separate
280 to add dsym files.
281
9cce227f
TG
2822009-12-09 Tristan Gingold <gingold@adacore.com>
283
284 * symfile.h (symbol_file_add_separate): New prototype.
285 (find_separate_debug_file_by_buildid): Ditto.
286 (find_separate_debug_file_by_debuglink): Ditto.
287 * symfile.c (reread_separate_symbols): Remove.
288 (find_separate_debug_file): Split into ...
289 (find_separate_debug_file_by_buildid): ... this and ...
290 (find_separate_debug_file_by_debuglink): ... this.
291 (symbol_file_add_with_addrs_or_offsets): Do not save orig_addrs.
292 Remove separate debug file handling.
293 (symbol_file_add_separate): New function.
294 (reread_symbols): Do not considere separate debug files, but free
295 them while handling their parent. Reindent.
296 * coffread.c (coff_symfile_read): Handle separate object file.
297 * elfread.c (elf_symfile_read): Ditto.
298
03b952fd
JB
2992009-12-09 Joel Brobecker <brobecker@adacore.com>
300
301 * acinclude.m4: Update comment.
302
f18c4681
JB
3032009-12-09 Joel Brobecker <brobecker@adacore.com>
304
305 * acinclude.m4: Link against in-tree libiconv by adding
306 libiconv.a to the LIBS instead of using -liconv.
307 * configure: Regenerate.
308
361ae042
PM
3092009-12-08 Phil Muldoon <pmuldoon@redhat.com>
310
311 PR python/10804
312
313 * python/py-type.c (typy_range): New Function.
314
40b5c9fb
DE
3152009-12-07 Doug Evans <dje@google.com>
316
317 * charset.c: Include environ.h.
318 (ignore_line_p): New function.
319 (find_charset_names): Handle older versions of iconv that print
320 human-readable output even if stdout is not a tty.
321
baa835b4
KB
3222009-12-07 Kevin Buettner <kevinb@redhat.com>
323
324 * configure.tgt: Add rx-*-elf target.
325 * rx-tdep.c: New target.
34207b9e 326 * NEWS: Announce Renesas RX support.
baa835b4 327
f4352531
TG
3282009-12-07 Tristan Gingold <gingold@adacore.com>
329
330 * symfile.h (struct sym_fns): Adjust comment on sym_read.
331 * symfile.c (syms_from_objfile): Pass all symfile flags to sym_read.
332 * dbxread.c (dbx_symfile_read): Rename mainline to symfile_flags,
333 adjust header comment.
334 * elfread.c (elf_symfile_read): Ditto.
335 * somread.c (som_symfile_read): Ditto.
336 * xcoffread.c (xcoff_initial_scan): Ditto.
337 * coffread.c (coff_symfile_read): Rename mainline to symfile_flags.
338 * machoread.c (macho_symfile_read): Ditto.
339 * mipsread.c (mipscoff_symfile_read): Ditto.
340
de1d8fb9
TG
3412009-12-07 Tristan Gingold <gingold@adacore.com>
342
343 * dbxread.c (dbx_symfile_read): No need to test mainline to call
344 init_psymbol_list.
345 * xcoffread.c (xcoff_initial_scan): Ditto;
346 * coffread.c (coff_symfile_read): Remove call to init_psymbol_list.
347 * elfread.c (elf_symfile_read): Ditto.
348 * machoread.c (macho_symfile_read): Ditto.
349
7f79b1c5
DJ
3502009-12-04 Daniel Jacobowitz <dan@codesourcery.com>
351
352 * valops.c (value_struct_elt_for_reference): Do not rely on
353 field order.
354
bfd31e71
PM
3552009-12-03 Richard Ward <richard.j.ward1@googlemail.com>
356
357 * python/py-type.c (convert_field): New attribute "is_base_class".
358
57a1d736
TT
3592009-12-03 Tom Tromey <tromey@redhat.com>
360
361 * python/python.c (gdbpy_parse_and_eval): New function.
362 (GdbMethods): Add "parse_and_eval".
363
fb169834
JK
3642009-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
365
366 * linux-thread-db.c (find_new_threads_once): Change errp and err types
367 to td_err_e.
368 (thread_db_find_new_threads_2): Change err type to td_err_e.
369
1f3b5d1b
PP
3702009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com>
371
372 PR gdb/11022
373
374 * breakpoint.c (invalidate_bp_value_on_memory_change):
375 New function.
376 (_initialize_breakpoint): Add it as memory change observer.
377
033c64b7
TG
3782009-12-03 Tristan Gingold <gingold@adacore.com>
379
380 * machoread.c (macho_sym_fns): Set sym_segment routine.
381
8cebebb9
PP
3822009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
383
384 * ada-lang.c (ada_value_assign): Use observer_notify_memory_changed.
385 * valops.c (value_assign): Likewise.
386 * defs.h (deprecated_memory_changed_hook): Remove.
387 * top.c (deprecated_memory_changed_hook): Likewise.
388 * interps.c (clear_interpreter_hooks): Adjust.
389
f29dff0a
TG
3902009-12-02 Tristan Gingold <gingold@adacore.com>
391
392 * symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in
393 prototype.
394 * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in
395 definition, simplify code assuming it is always 0.
396 * coffread.c (coff_symfile_read): Adjust call.
397 * elfread.c (elf_symfile_read): Ditto.
398 * machoread.c (macho_symfile_read): Explicitely calls
399 init_psymbol_list if mainline is set.
400
c67a9c90
TG
4012009-12-02 Tristan Gingold <gingold@adacore.com>
402
403 * dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter.
404 (dwarf2_build_psymtabs_hard): Ditto.
405 (dwarf2_build_psymtabs): Ajust calls.
406 * stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on
407 the prototype.
408 (coffstab_build_psymtabs): Ditto.
409 (stabsect_build_psymtabs): Ditto.
410 * dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on
411 the definition.
412 (elfstab_build_psymtabs): Ditto.
413 (stabsect_build_psymtabs): Ditto.
414 * coffread.c (coff_symfile_read): Adjust call.
415 * elfread.c (elf_symfile_read): Ditto.
416 * somread.c (som_symfile_read): Ditto.
417
4182009-12-02 Tristan Gingold <gingold@adacore.com>
06be6983
TG
419
420 * charset.c (_initialize_charset): Set a default value to
421 auto_host_charset_name if empty.
422
de18c1d8
JM
4232009-12-01 Joseph Myers <joseph@codesourcery.com>
424
425 * gcore.c: Include solib.h.
426 (gcore_create_callback): Call solib_keep_data_in_core when
427 considering not saving memory in core file.
428 * solib-svr4.c (svr4_keep_data_in_core): New.
429 (_initialize_svr4_solib): Initialize
430 svr4_so_ops.keep_data_in_core.
431 * solib.c (solib_keep_data_in_core): New.
432 * solib.h (solib_keep_data_in_core): Declare.
433 * solist.h (struct target_so_ops): Add keep_data_in_core.
434
3388710e
JM
4352009-11-30 Joseph Myers <joseph@codesourcery.com>
436
437 * configure: Regenerate.
438
ba7f6c64
VP
4392009-11-28 Vladimir Prus <vladimir@codesourcery.com>
440
441 * target.c (target_terminal_inferior): Use target_can_async_p, not
442 target_is_async_p.
443
b1798462
UW
4442009-11-27 Ulrich Weigand <uweigand@de.ibm.com>
445
446 * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints
447 of type bp_hardware_watchpoint.
448
1b536f04
JB
4492009-11-27 Joel Brobecker <brobecker@adacore.com>
450
451 * ada-lang.c: Apply some corrections to the previous comment addition.
452
21649b50
JB
4532009-11-26 Joel Brobecker <brobecker@adacore.com>
454
455 * ada-lang.c: Update the comment explaining how to evaluate
456 Ada expressions.
457
b6199126
DJ
4582009-11-24 Daniel Jacobowitz <dan@codesourcery.com>
459
460 PR gdb/8704
461
462 * breakpoint.c (find_condition_and_thread): Correct task error message.
463 * c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations
464 of those.
465
b040ad30
JB
4662009-11-24 Joel Brobecker <brobecker@adacore.com>
467
468 * acinclude.m4: Include ../config/zlib.m4.
469 * configure.ac: Use AM_ZLIB to check for zlib support.
470 * configure: Regenerate.
471
3dba1c98
JB
4722009-11-24 Joel Brobecker <brobecker@adacore.com>
473
474 * breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
475 past the function prologue in the case where we were given only
476 one SAL.
477
58ed7dcd
PA
4782009-11-24 Pedro Alves <pedro@codesourcery.com>
479
480 * record.c (init_record_ops, init_record_core_ops): Actually
481 install record_stopped_data_address.
482
85d9bd0e
TT
4832009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484
485 * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.
486
53d72f98
TT
4872009-11-23 Tom Tromey <tromey@redhat.com>
488
489 * dwarf2read.c (find_partial_die): Don't reassign to 'back_to'.
490
2d483d34
MS
4912009-11-23 Michael Snyder <msnyder@vmware.com>
492
493 * NEWS: Mention hw watchpoint fix for process record.
494
21a0512e
PP
4952009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
496
497 * cli/cli-cmds.c (disassemble_command): Split on comma.
498 (init_cli_cmds): Update help.
499 * NEWS: Mention incompatible change to 'disassemble'.
500
a9840291
PA
5012009-11-22 Pedro Alves <pedro@codesourcery.com>
502
503 Make hardware breakpoints work for process repord.
504
505 * record.c (record_wait): Only adjust PC on software breakpoints
506 hits.
507
9093389c
PA
5082009-11-22 Pedro Alves <pedro@codesourcery.com>
509 Michael Snyder <msnyder@vmware.com>
510
511 Make hardware watchpoints work for process record.
512
513 * breakpoint.c (hardware_watchpoint_inserted_in_range): New.
514 * breakpoint.h (hardware_watchpoint_inserted_in_range): Declare.
515 * record.c (record_beneath_to_stopped_by_watchpoint)
516 (record_beneath_to_stopped_data_address, record_hw_watchpoint):
517 New globals.
518 (record_exec_insn): Check for watchpoint hits.
519 (tmp_to_stopped_by_watchpoint, tmp_to_stopped_data_address): New
520 globals.
521 (record_open): Set tmp_to_stopped_by_watchpoint,
522 tmp_to_stopped_data_address,
523 record_beneath_to_stopped_by_watchpoint and
524 record_beneath_to_stopped_data_address.
525 (record_wait): Report watchpoint hits to the core. Update and
526 extend comments.
527 (record_stopped_by_watchpoint): New.
528 (record_stopped_data_address): New.
529 (init_record_ops): Install them.
530 (init_record_core_ops): Ditto.
531
2d134ed3
PA
5322009-11-21 Pedro Alves <pedro@codesourcery.com>
533
534 * breakpoint.c (update_watchpoint): Skip creating locations and
535 reading the selected frame if there's no execution.
536 (bpstat_stop_status): Use is_hardware_watchpoint. If not
537 stopping, update watchpoints and the global location list, instead
538 of removing and inserting all breakpoints.
539 (breakpoint_address_is_meaningful): Hardware watchpoints also have
540 a meaningful target address.
541 (watchpoint_locations_match): New.
542 (breakpoint_locations_match): New.
543 (watch_command_1): Create the watchpoint breakpoint without any
544 location initially. Use update_watchpoint to create the
545 watchpoint locations.
546 (update_global_location_list): Use breakpoint_locations_match, so
547 watchpoint locations are handled too. Also detect duplicate
548 watchpoint locations.
549
f6bc2008
PA
5502009-11-21 Pedro Alves <pedro@codesourcery.com>
551
552 * breakpoint.h (struct breakpoint) <watchpoint_thread>: New field.
553 * breakpoint.c (watchpoint_in_thread_scope): New.
554 (update_watchpoint): Skip if the local watchpoint's thread doesn't
555 match the current thread, or if the current thread is running.
556 (watchpoint_check): Ditto.
557 (watch_command_1): Set the watchpoint's watchpoint_thread field.
558
494cfb0f
JK
5592009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 * breakpoint.c (bp_location_compare): Change parameter a to ap and b to
562 bp. New variables a and b.
563 (bp_location_compare_for_qsort): Remove.
564 (update_global_location_list): Use now bp_location_compare.
565
a79d3c27
JK
5662009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
567
568 Fix repeated rwatch output.
569 * amd64-linux-nat.c (amd64_linux_dr_set, amd64_linux_dr_set_control)
570 (amd64_linux_dr_set_addr, amd64_linux_dr_reset_addr)
571 (amd64_linux_dr_get_status): New comments.
572 (amd64_linux_dr_unset_status): New function.
573 (_initialize_amd64_linux_nat): Install it.
574 * i386-linux-nat.c (i386_linux_dr_get, i386_linux_dr_set)
575 (i386_linux_dr_set_control, i386_linux_dr_set_addr)
576 (i386_linux_dr_reset_addr, i386_linux_dr_get_status): New comments.
577 (i386_linux_dr_unset_status): New function.
578 (_initialize_i386_linux_nat): Install it.
579 * i386-nat.c (I386_DR_WATCH_MASK): New macro.
580 (I386_DR_WATCH_HIT): Use I386_DR_WATCH_MASK.
581 (i386_insert_aligned_watchpoint): Call i386_dr_low.unset_status.
582 * i386-nat.h (struct i386_dr_low_type): Extend comments for
583 set_control, set_addr, reset_addr and get_status. New unset_status.
584 * breakpoint.c (update_watchpoint): Extend the comment.
585
ebec9a0f
PA
5862009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
587 Pedro Alves <pedro@codesourcery.com>
588
589 Fix reordered watchpoints triggered in other threads during all-stop.
590
591 * linux-nat.c (resume_callback, linux_nat_resume): Clear
592 stopped_by_watchpoint.
593 (save_sigtrap, linux_nat_stopped_by_watchpoint)
594 (linux_nat_stopped_data_address): New.
595 (stop_wait_callback, linux_nat_filter_event): Call save_sigtrap.
596 (linux_nat_add_target): Install linux_nat_stopped_by_watchpoint
597 and linux_nat_stopped_data_address.
598 * linux-nat.h (struct lwp_info): New fields stopped_by_watchpoint,
599 stopped_data_address_p and stopped_data_address.
600
6b04bdb7
MS
6012009-11-20 Michael Snyder <msnyder@vmware.com>
602
603 * target.h (struct target_ops): New methods to_get_bookmark
604 and to_goto_bookmark.
605 (target_get_bookmark): New macro.
606 (target_goto_bookmark): New macro.
607 * target.c (dummy_get_bookmark): New function, default implementation.
608 (dummy_goto_bookmark): New function, default implementation.
609 (update_current_target): Inherit new methods.
610 * record.c (record_get_bookmark): New function.
611 (record_goto_bookmark): New function.
612 (init_record_ops): Set to_get_bookmark and to_goto_bookmark methods.
613 * reverse.c (struct bookmark): New type.
614 (save_bookmark_command): New function (command).
615 (delete_bookmark_command): New function (command).
616 (goto_bookmark_command): New function (command).
617 (bookmarks_info): New function (command).
618 (_initialize_reverse): Add new bookmark commands.
619 * command.h (enum command_class): Add class_bookmark.
620 * NEWS: Mention bookmark commands.
621
c7d46a38
PA
6222009-11-20 Pedro Alves <pedro@codesourcery.com>
623
624 * breakpoint.c (update_global_location_list): Fix duplicate
625 locations detection.
626
db82e815
PA
6272009-11-20 Pedro Alves <pedro@codesourcery.com>
628
629 * infrun.c (handle_inferior_event): Hardware hatchpoint traps are
630 never random signals.
631 * breakpoint.c (update_global_location_list): Always delete
632 immediately delete hardware watchpoint locations and other
633 locations whose target address isn't meaningful. Update comment
634 explaining the hazard of moribund locations.
635
872f0337
JB
6362009-11-19 Joel Brobecker <brobecker@adacore.com>
637
638 * ada-lang.c (discrete_type_p): TYPE_CODE_BOOL is also a discrete type.
639
2d9c5cff
JB
6402009-11-19 Joel Brobecker <brobecker@adacore.com>
641
642 * completer.c (complete_line_internal): Make sure the command
643 completer is not NULL before calling it.
644
ad82864c
JB
6452009-11-19 Jerome Guitton <guitton@adacore.com>
646
647 * ada-lang.c (packed_array_type): Rename to...
648 (constrained_packed_array_type): ...and update comment.
649 (decode_packed_array, decode_constrained_packed_array): Ditto.
650 (decode_packed_array_type, decode_constrained_packed_array_type):
651 Ditto.
652 (ada_is_constrained_packed_array_type): New function.
653 (ada_is_unconstrained_packed_array_type): New function.
654 (decode_packed_array_bitsize): New function, extracted from
655 decode_packed_array_type.
656 (ada_type_of_array): Add support for unconstrained packed arrays.
657 (ada_coerce_to_simple_array_ptr, ada_coerce_to_simple_array)
658 (ada_array_bound_from_type, ada_array_bound, ada_array_length)
659 (ada_prefer_type, to_fixed_array_type, ada_evaluate_subexp): Resync.
660 * ada-lang.h (ada_is_packed_array_type,
661 ada_is_constrained_packed_array_type): Renaming.
662 * ada-valprint.c (ada_val_print_1): Resync.
663 * ada-typeprint.c (print_array_type, ada_print_type): Resync.
664
5b3d5b7d
JB
6652009-11-19 Joel Brobecker <brobecker@adacore.com>
666
667 Wrong function used to perform address addition/subtraction.
668 * ada-lang.c (ada_type_match): Stop making TYPE_CODE_VOID
669 a wildcard matching any type. For types that we don't already
670 handle specifically, make sure that both types have the same code.
671
a10967fa
JB
6722009-11-19 Joel Brobecker <brobecker@adacore.com>
673
674 * ada-lang.c (ada_decode): Add handling of "TB" suffixes for
675 task bodies.
676
69fadcdf
JB
6772009-11-19 Joel Brobecker <brobecker@adacore.com>
678
679 * ada-lang.c (ada_remove_Xbn_suffix): New function.
680 (find_old_style_renaming_symbol): Add handling for function suffixes
681 present in the name of various procedures.
682 Do not overwrite the function symbol's name.
683
c561c276
PA
6842009-11-19 Pedro Alves <pedro@codesourcery.com>
685
686 * breakpoint.c (breakpoint_address_bits): Visit all locations'
687 gdbarchs, not the breakpoint's gdbarch.
688
3630a92d
VP
6892009-11-18 Vladimir Prus <vladimir@codesourcery.com>
690
691 * cli/cli-script.c (process_next_line): Recognize 'end'
692 even when the line has leading space and we're not parsing
693 commands.
694
72dcaf82
TT
6952009-11-18 Tom Tromey <tromey@redhat.com>
696
697 * symtab.c (symbol_set_names): Correctly set 'name' on symbol when
698 lookup name differs.
699
ab7e10a0
TG
7002009-11-18 Tristan Gingold <gingold@adacore.com>
701
702 * machoread.c (macho_oso_symfile): Fix typo. Add comments.
703
5409dacf
JK
7042009-11-17 Jan Kratochvil <jan.kratochvil@redhat.com>
705
706 * dbxread.c (set_namestring): Remove cast to unsigned. Check N_STRX
707 overflow.
708
276a961b
MK
7092009-11-17 Nathan Sidwell <nathan@codesourcery.com>
710
711 * features/m68k-core.xml: New file.
712
9ac544ce
MK
7132009-11-17 Nathan Sidwell <nathan@codesourcery.com>
714
715 * regformats/reg-cf.dat: New file.
716
86443c3e
MK
7172009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
718
719 * m68k-tdep.c (m68k_register_name): Check fpregs_present.
720 (m68k_gdbarch_init): Remove a duplicate of set_gdbarch_fp0_regnum.
721
7f82dfc7
JK
7222009-11-17 Jan Kratochvil <jan.kratochvil@redhat.com>
723
724 Fix wrong debug output with `set debug infrun 1'.
725 * gdb/infrun.c (handle_inferior_event <debug_infrun>): New variable
726 old_chain. Temporarily switch INFERIOR_PTID.
727 * target.h (target_stopped_by_watchpoint): Extend the comment.
728 (target_stopped_data_address): New comment.
729
04a679b8
TT
7302009-11-16 Tom Tromey <tromey@redhat.com>
731
732 * xcoffread.c (scan_xcoff_symtab): Update.
733 * symfile.h (add_psymbol_to_list): Update prototype.
734 * symfile.c (add_psymbol_to_bcache): Add copy_name argument.
735 (add_psymbol_to_list): Likewise.
736 * stabsread.c (define_symbol): Update.
737 * mdebugread.c (parse_partial_symbols): Update.
738 (handle_psymbol_enumerators): Update.
739 (new_symbol): Update.
740 * dbxread.c (read_dbx_symtab): Update.
741 * coffread.c (process_coff_symbol): Update.
742 * symtab.h (prim_record_minimal_symbol_full): Declare.
743 (SYMBOL_SET_NAMES): Add copy_name argument.
744 * symtab.c (struct demangled_name_entry): New struct.
745 (hash_demangled_name_entry): New function.
746 (eq_demangled_name_entry): Likewise.
747 (create_demangled_names_hash): Use new functions.
748 (symbol_set_names): Use struct demangled_name_entry. Add
749 copy_name argument.
750 * minsyms.c (prim_record_minimal_symbol_full): New function.
751 (prim_record_minimal_symbol_and_info): Use it.
752 * elfread.c (record_minimal_symbol): Add name_len and copy_name
753 arguments. Call prim_record_minimal_symbol_full.
754 (elf_symtab_read): Add copy_names argument.
755 (elf_symfile_read): Update calls to elf_symtab_read.
756 * dwarf2read.c (add_partial_symbol): Don't copy symbol names.
757 (load_partial_dies): Likewise.
758 (new_symbol): Likewise.
759 * cp-namespace.c (check_one_possible_namespace_symbol): Don't save
760 name on the obstack. Update call to SYMBOL_SET_NAMES.
761
67822962
PA
7622009-11-15 Pedro Alves <pedro@codesourcery.com>
763
764 * infrun.c (handle_inferior_event): When handling a fork or vfork
765 event, check if the bpstat causes a stop, instead of if it
766 explains the signal.
767 * breakpoint.c (bpstat_causes_stop): New.
768 * breakpoint.h (bpstat_causes_stop): Declare.
769
56710373
PA
7702009-11-15 Pedro Alves <pedro@codesourcery.com>
771
772 * breakpoint.c (should_be_inserted): Don't insert breakpoints if
773 the pspace doesn't allow breakpoints.
774 (insert_breakpoint_locations): Remove waiting_for_vfork_done
775 special case. Expect watchpoints that shouldn't be inserted, to
776 not be inserted.
777 * progspace.h (struct program_space) <breakpoints_not_allowed>:
778 New field.
779 * infrun.c (handle_inferior_event): Clear it.
780 * linux-nat.c (linux_child_follow_fork): Set it.
781
7f79c47e
DE
7822009-11-13 Doug Evans <dje@google.com>
783
784 * dcache.c (dcache_hit, dcache_read_line): Tweak comments.
785 (dcache_peek_byte, dcache_init, dcache_xfer_memory): Ditto.
786 * target.c (memory_xfer_partial): Tweak comments.
787 (target_xfer_partial, target_write_memory): Add comment.
788 (target_read_partial): Remove note from 2003-10-21.
789 (target_read, target_write): Add comments.
790
4e485129
DJ
7912009-11-13 Daniel Jacobowitz <dan@codesourcery.com>
792
793 * inline-frame.c (find_inline_frame_state): Check for changed PC
794 here...
795 (inline_frame_sniffer): ... not here.
796
ad960ed2
DJ
7972009-11-13 Daniel Jacobowitz <dan@codesourcery.com>
798
799 * ui-file.c (stdio_file_read): Call gdb_select before read.
800
21327321
DJ
8012009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
802
803 * mips-tdep.c (mips_insn16_frame_this_id): Mark the outermost
804 frame.
805 (mips_insn32_frame_this_id): Likewise.
806
a103a963
DJ
8072009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
808
809 * elfread.c (elf_symtab_read): Only mark a minimal symbol as
810 special if it actually exists. Merge the checks for this
811 conditions.
812
3a29589a
DJ
8132009-11-13 Kazu Hirata <kazu@codesourcery.com>
814 Maxim Kuvyrkov <maxim@codesourcery.com>
815
816 * remote-fileio.c (remote_fileio_request): Send Ctrl-C if it is
817 pending.
818 * remote-fileio.h: Update the prototype for remote_fileio_request.
819 * remote.c (struct remote_state): Add ctrlc_pending_p.
820 (remote_open_1): Clear ctrlc_pending_p.
821 (remote_stop_as): Set ctrlc_pending_p to 1.
822 (remote_wait_as): Pass ctrlc_pending_p to remote_fileio_request.
823
3d8d5e79
DJ
8242009-11-13 Daniel Jacobowitz <dan@codesourcery.com>
825
826 * arm-tdep.c (arm_skip_stub): Recognize RealView veneer functions.
827
66076460
DJ
8282009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
829
830 * breakpoint.c (update_watchpoint): Only fiddle with frames for
831 local watchpoints.
832
55409f9d
DJ
8332009-11-13 Pedro Alves <pedro@codesourcery.com>
834
835 * infrun.c (handle_inferior_event): Set stop_print_frame on
836 TARGET_WAITKIND_LOADED events, if stopping on solib-events.
837
6ffb2242
DE
8382009-11-13 Doug Evans <dje@google.com>
839
840 * dcache.c (dcache_block): Replace member newer with next,prev.
841 (dcache_struct): Delete member newest.
842 (block_func): New typedef.
843 (append_block, remove_block, for_each_block): New functions.
844 (invalidate_block, free_block): New functions.
845 (dcache_invalidate): Update
846 (dcache_invalidate_line, dcache_alloc): Update to use new list
847 accessors.
848 (dcache_free): Ditto. Fix memory leak.
849
269f82e5
PP
8502009-11-13 Paul Pluzhnikov <ppluzhnikov@google.com>
851
852 * python/py-prettyprint.c (print_string_repr): Suppress
853 address printing
854
fd6d6815
TG
8552009-11-13 Tristan Gingold <gingold@adacore.com>
856
857 * avr-tdep.c (avr_push_dummy_call): Fix endianness issue and avoid
858 overlap between returned structure and return address/parameters.
859
b86ab4ff
DJ
8602009-11-12 Daniel Jacobowitz <dan@codesourcery.com>
861
862 * remote-fileio.c (remote_fileio_func_read): Limit console
863 reads to 16K.
864
d48cc9dd
DJ
8652009-11-12 Daniel Jacobowitz <dan@codesourcery.com>
866 Paul Brook <paul@codesourcery.com>
867
868 * c-typeprint.c (c_type_print_base): Skip artificial fields.
869 Use get_vptr_fieldno to skip the vtable pointer.
870 * dwarf2read.c (dwarf2_add_field): Set FIELD_ARTIFICIAL on artificial
871 fields.
872 (dwarf2_add_member_fn): Complain about virtual member functions
873 without DW_AT_vtable_elem_location and force TYPE_CPLUS_DYNAMIC.
874 * gdbtypes.c (get_vptr_fieldno): Update comment.
875 * gdbtypes.h (struct cplus_struct_type): Add is_dynamic.
876 (TYPE_CPLUS_DYNAMIC): New macro.
877 * gnu-v3-abi.c (gnuv3_dynamic_class): New.
878 (gnuv3_get_vtable): Rewrite to use gnuv3_dynamic_class. Move higher.
879 (gnuv3_rtti_type, gnuv3_get_virtual_fn, gnuv3_baseclass_offset): Use
880 gnuv3_get_vtable.
881 * varobj.c (cplus_class_num_children, cplus_describe_child): Skip
882 artificial fields. Use get_vptr_fieldno to skip the vtable pointer.
883
0d564a31
DJ
8842009-11-12 Paul Brook <paul@codesourcery.com>
885 Daniel Jacobowitz <dan@codesourcery.com>
886
887 * dwarf2read.c (dwarf2_add_member_fn): Calculate virtual function
888 offset for classes without DW_AT_containing_type.
889
7d0ccb61
DJ
8902009-11-12 Paul Brook <paul@codesourcery.com>
891 Daniel Jacobowitz <dan@codesourcery.com>
892
893 * dwarf2read.c (struct field_info): Add baseclasses.
894 (dwarf2_add_field): Add base classes to a separate list.
895 (dwarf2_attach_fields_to_type): Merge base classes and fields.
896
328c9494
DJ
8972009-11-12 Daniel Jacobowitz <dan@codesourcery.com>
898
899 * dwarf2read.c (process_psymtab_comp_unit): Initialize per_cu backlink
900 at the same time as the forward link.
901 (load_partial_comp_unit): Initialize per_cu links before calling
902 init_cu_die_reader.
903
21e1bee4
PP
9042009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
905
906 PR gdb/10838
907 * linux-thread-db.c (thread_db_info): New member.
908 (disable_thread_event_reporting): Call td_ta_clear_event.
909
1e5a1abc
KS
9102009-11-11 Keith Seitz <keiths@redhat.com>
911
912 * linespec.c (lookup_prefix_sym): Lookup the symbol
913 in both STRUCT_DOMAIN and VAR_DOMAIN.
914
1e061d1a
MS
9152009-11-11 Michael Snyder <msnyder@vmware.com>
916
f801e1e0
MS
917 * darwin-nat-info.c: Update copyright.
918 * dbxread.c: Ditto.
919 * gdbarch.sh: Ditto.
920 * gdbarch.c: Ditto.
921 * gdbarch.h: Ditto.
922 * inline-frame.c: Ditto.
923 * inline-frame.h: Ditto.
924 * s390-nat.c: Ditto.
1e061d1a
MS
925
9262009-11-11 Michael Snyder <msnyder@vmware.com>
9659616a
MS
927
928 * findvar.c (top level): Fix and add comments.
929
66c53f2b
KS
9302009-11-10 Keith Seitz <keiths@redhat.com>
931
5efc7e44 932 * c-exp.y (operator_stoken): New function.
66c53f2b
KS
933 (OPERATOR): New token.
934 (NEW): New token.
935 (DELETE): New token.
936 (operator): New rule.
937 (name): Add operator.
938 (ident_tokens): Add "new", "delete", and "operator".
939 * gdbtypes.c (rank_one_type): Don't complain about
940 void pointer conversion badness if both types are
941 void pointers.
942
32a0e547
JK
9432009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
944
945 * symfile.c (separate_debug_file_exists): Change parameter parent_name
946 to parent_objfile. New variables parent_stat and abfd_stat. Call
947 strcmp and then bfd_stat functions to verify if NAME matches.
948 (find_separate_debug_file): Update the passed parameter at caller.
949
9b14d7aa
JK
9502009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
951
952 * objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap.
953
da2f07f1
JK
9542009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 * configure.ac: Call ACX_LARGEFILE.
957 * aclocal.m4: Call m4_include for ../config/largefile.m4 and
958 ../config/plugins.m4.
959 * configure: Regenerate.
960 * config.in: Regenerate.
961
072bba3b
KS
9622009-11-10 Keith Seitz <keiths@redhat.com>
963
964 * c-exp.y: Add new rule for resolving method overloads.
965 * eval.c (make_params): New function.
966 (free_param_types): New function.
967 (evaluate_subexp_standard): Pass expect_type to value_aggregate_elt.
968 Handle case TYPE_INSTANCE.
969 (evaluate_subexp_for_address): Pass expect_type to value_aggregate_elt.
970 * expression.h (enum exp_opcode): Add TYPE_INSTANCE.
971 (compare_parameters): Add declaration.
972 * parse.c (operator_length_standard): Add TYPE_INSTANCE.
973 * valops.c (value_aggregate_elt): Add new expect_type parameter.
974 Pass expect_type to value_struct_elt_for_reference.
975 (value_struct_elt_for_reference): Add expect_type parameter and use
976 compare_parameters.
977 Check for overload matches with and without artificial parameters.
978 Skip artificial methods.
979 (compare_parameters): New function.
980 * value.h (value_aggregate_elt): Add new expect_type parameter.
981
de64a9ac
JM
9822009-11-10 Joseph Myers <joseph@codesourcery.com>
983
984 * solib-svr4.c (enable_break): Call
985 gdbarch_convert_from_func_ptr_addr on results of looking up
986 fallback symbol names.
987
75125405
DJ
9882009-11-10 Daniel Gutson <dgutson@codesourcery.com>
989
990 * procfs.c (procfs_do_thread_registers): Added a call to fetch
991 register values before saving them in the core file
992 through the gcore command.
993 (procfs_corefile_thread_callback): Removed the backup of
994 inferior_ptid before calling procfs_do_thread_registers since
995 the function already saves and restores it before returning.
996
9659616a
MS
9972009-11-10 Michael Snyder <msnyder@vmware.com>
998
999 * dcache.c (dcache_invalidate_line): Remove block from used list
1000 when adding it to freed list.
1001
e124be18
MS
10022009-11-10 Michael Snyder <msnyder@vmware.com>
1003
1004 * dcache.c: Fix typo, shorten long lines in comment.
1005
7d2552b4
TG
10062009-11-10 Tristan Gingold <gingold@adacore.com>
1007
1008 * avr-tdep.c: Add AVR_PSEUDO_PC_REGNUM and AVR_NUM_PSEUDO_REGS.
1009 (struct gdbarch_tdep): Add void_type, func_void_type and pc_type
1010 fields.
1011 (avr_register_name): Add "pc" name, renames "PC" to "PC2".
1012 (avr_register_type): Handle AVR_PSEUDO_PC_REGNUM.
1013 (avr_write_pc): Fix indentation.
1014 (avr_pseudo_register_read): New function.
1015 (avr_pseudo_register_write): New function.
1016 (avr_frame_prev_register): Handle AVR_PSEUDO_PC_REGNUM.
1017 (avr_gdbarch_init): Create types for pc. Register pseudo regs.
1018
8a1d23b2
TG
10192009-11-10 Tristan Gingold <gingold@adacore.com>
1020
1021 * avr-tdep.c (avr_integer_to_address): New function.
1022 (avr_gdbarch_init): Set integer_to_address.
1023
8c201e54
TG
10242009-11-10 Tristan Gingold <gingold@adacore.com>
1025
1026 * avr-tdep.c (avr_skip_prologue): First try to skip prologue
1027 using skip_prologue_using_sal.
1028
1bd0bb72
TG
10292009-11-10 Tristan Gingold <gingold@adacore.com>
1030
1031 * avr-tdep.c (avr_extract_return_value): Remove.
1032 (avr_return_value): Mostly rewritten. Fix handling for structures.
1033 (avr_push_dummy_call): Handle struct_return.
1034
10352009-11-10 Tristan Gingold <gingold@adacore.com>
1036
1037 * avr-tdep.c (avr_scan_prologue): Decode instructions used for
1038 small stack allocation.
1039 Adjust code for prologue that don't write SP.
1040
ee143e81
TG
10412009-11-10 Tristan Gingold <gingold@adacore.com>
1042
1043 * avr-tdep.c (avr_make_saddr): Return 0 for NULL.
1044
53f6a2c9
TG
10452009-11-10 Tristan Gingold <gingold@adacore.com>
1046
1047 * avr-tdep.c (avr_dwarf_reg_to_regnum): New function.
1048 (avr_gdbarch_init): Call set_gdbarch_dwarf2_reg_to_regnum.
1049
3ffc00b8
JB
10502009-11-09 Sebastien Granjoux <seb.sfo@free.fr>
1051
1052 PR mi/9583:
1053 * symtab.c (find_line_symtab, append_exact_match_to_sals)
1054 (expand_line_sal): Use full filename when setting breakpoints if
1055 available
1056
de4affc9
CC
10572009-11-09 Cary Coutant <ccoutant@google.com>
1058
1059 * dwarf2read.c (read_import_statement): Don't clobber original cu.
1060
86c6265d
TT
10612009-11-09 Tom Tromey <tromey@redhat.com>
1062
1063 * python/python.c (execute_gdb_command): Copy the argument text.
1064
bbaa04b8
VP
10652009-11-06 Vladimir Prus <vladimir@codesourcery.com>
1066
1067 * m68k-tdep.c (m68k_convert_register_p): Correct
1068 messup.
1069
3c1ac6e7
VP
10702009-11-06 Vladimir Prus <vladimir@codesourcery.com>
1071
1072 * m68k-tdep.c (m68k_convert_register_p): Compare with
1073 the actual type of fp registers, not one of the possible
1074 values.
1075
c271b6e2
VP
10762009-11-06 Vladimir Prus <vladimir@codesourcery.com>
1077
1078 Prevent program output from mix with "^running".
1079
1080 gdb/
1081 * mi/mi-interp.c (mi_on_resume): Output token
1082 and "^running" together, so that nothing else gets
1083 in between.
1084
d85a05f0
DJ
10852009-11-05 Daniel Jacobowitz <dan@codesourcery.com>
1086
1087 * dwarf2read.c (struct dwarf2_cu): Remove ranges_offset and
1088 has_ranges_offset.
1089 (struct partial_die_info): Remove language, has_stmt_list, dirname,
1090 and line_offset.
1091 (dwarf2_build_include_psymtabs): Take a die_info. Handle a missing
1092 line table.
1093 (dwarf2_get_pc_bounds): Take PST argument. Pass it
1094 to dwarf2_ranges_read. Update all callers.
1095 (init_cu_die_reader): Move earlier.
1096 (dwarf2_find_base_address): New function.
1097 (process_psymtab_comp_unit): Rewrite to use a full DIE for the
1098 compilation unit. Use dwarf2_get_pc_bounds and
1099 dwarf2_find_base_address.
1100 (load_comp_unit): Rewrite to use a full DIE for the compilation unit.
1101 (process_full_comp_unit): Use dwarf2_find_base_address.
1102 (read_partial_die): Remove support for attributes only used
1103 in the compilation unit DIE.
1104 * symfile.c (allocate_psymtab): Make FILENAME const.
1105 (start_psymtab_common): Likewise.
1106 * symfile.h (allocate_psymtab, start_psymtab_common): Update
1107 prototypes.
1108
10abe6bf
TT
11092009-11-05 Tom Tromey <tromey@redhat.com>
1110
1111 * symmisc.c (print_symbol_bcache_statistics): Print filename cache
1112 statistics.
1113 (print_objfile_statistics): Likewise.
1114 * symfile.c (reread_symbols): Initialize filename_cache.
1115 (allocate_symtab): Cache the file name.
1116 (allocate_psymtab): Likewise.
1117 * solib-sunos.c (allocate_rt_common_objfile): Initialize
1118 filename_cache.
1119 * objfiles.h (struct objfile) <filename_cache>: New field.
1120 * objfiles.c (allocate_objfile): Initialize filename_cache.
1121 (free_objfile): Free filename_cache.
1122
69a943f0
TT
11232009-11-05 Tom Tromey <tromey@redhat.com>
1124
1125 * symfile.c (add_psymbol_to_bcache): Make 'psymbol' static again.
1126 Zero the 'value' field.
1127
bba66b87
DE
11282009-11-05 Doug Evans <dje@google.com>
1129
1130 * amd64-tdep.c (amd64_init_frame_cache): Enhance comment describing
1131 saved_regs.
1132
52efb61a
DJ
11332009-11-05 Daniel Jacobowitz <dan@codesourcery.com>
1134
1135 * top.c (execute_command): Select a frame before checking the current
1136 language. Only output a message if verbose.
1137
1c9e8358
TT
11382009-11-05 Tom Tromey <tromey@redhat.com>
1139
1140 * symtab.h (SYMBOL_SET_LINKAGE_NAME): Update comment.
1141 * symfile.c (allocate_symtab): Don't use obsavestring on a
1142 constant string.
1143 * stabsread.c (define_symbol): Don't use obsavestring on a
1144 constant string.
1145 * mdebugread.c (parse_type): Don't use obsavestring on a constant
1146 string.
1147 (new_symtab): Likewise.
1148 * elfread.c (elf_symtab_read): Don't use obsavestring on a
1149 constant string.
1150
8c2963fb
TT
11512009-11-04 Tom Tromey <tromey@redhat.com>
1152
1153 * symfile.c (add_psymbol_to_bcache): Don't copy name. Make
1154 'psymbol' non-static.
1155
12b6a110
PP
11562009-11-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1157
1158 * linux-thread-db.c (disable_thread_event_reporting): Adjust.
1159
b06adb81
JB
11602009-11-03 Joel Brobecker <brobecker@adacore.com>
1161
1162 * MAINTAINERS (Responsible Maintainers): Add Tristan Gingold as
1163 maintainer of the avr target.
1164
ad09a548
DJ
11652009-11-02 Daniel Jacobowitz <dan@codesourcery.com>
1166
1167 * elfread.c (elf_symfile_segments): Do not warn about
1168 uninitialized sections outside of load segments.
1169
24ddea62
JK
11702009-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1171
1172 * symfile.c (build_id_to_debug_filename): New variable debugdir. Move
1173 variables size, s and data into a new inner block. Change xmalloc for
1174 alloca, use direct BUILDID->SIZE there now. Loop for the
1175 DEBUG_FILE_DIRECTORY components.
1176 (find_separate_debug_file): New variable debugdir and debugdir_end.
1177 Loop for the DEBUG_FILE_DIRECTORY components.
1178 (_initialize_symfile): For "debug-file-directory" use plural and note
1179 one can use multiple components now.
1180
25522fae
JK
11812009-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1182
1183 * symfile.c (find_separate_debug_file): Initialize dir, debugfile and
1184 canon_name to NULL. Change alloca to xmalloc, newly call xfree for it.
1185 New label cleanup_return_debugfile, jump to it from the failure paths.
1186
287ccc17
JK
11872009-11-02 Andrew Cagney <cagney@gnu.org>
1188
1189 * symfile.c (separate_debug_file_exists): When the CRCs mismatch
1190 print a warning.
1191 (find_separate_debug_file): Pass in the objfile's name.
1192
abd0a5fa
JK
11932009-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1194
1195 Remove INVALID_ENTRY_POINT.
1196 * frame.c (inside_entry_func): New variable entry_point. Return 0 if
1197 the entry point is not known.
1198 * solib-irix.c (enable_break): Likewise.
1199 * objfiles.c (init_entry_point_info): Stop using INVALID_ENTRY_POINT.
1200 Initialize EI.ENTRY_POINT_P.
1201 (entry_point_address): Rename to ...
1202 (entry_point_address_query): ... a new function. Use EI.ENTRY_POINT_P.
1203 (entry_point_address): New function.
1204 (objfile_relocate): Use EI.ENTRY_POINT_P.
1205 * objfiles.h (struct entry_info): Simplify entry_point comment. New
1206 field entry_point_p.
1207 (INVALID_ENTRY_POINT): Remove.
1208 (entry_point_address_query): New prototype.
1209 * solib-frv.c (enable_break): Check for NULL SYMFILE_OBJFILE and its
1210 EI.ENTRY_POINT_P. Return 0 if ".interp" is not found.
1211
399cd161
MS
12122009-11-01 Michael Snyder <msnyder@vmware.com>
1213
1214 * NEWS (New Commands): Mention record save/restore.
1215
3d947dff
MS
12162009-10-31 Michael Snyder <msnyder@vmware.com>
1217
1218 * breakpoint.c (bpstat_stop_status): Fix broken comment.
1219
07b7cff3
PA
12202009-10-31 Pedro Alves <pedro@codesourcery.com>
1221
1222 * record.c (record_restore, cmd_record_save): Debug output goes to
1223 gdb_stdlog.
1224
08bca259 12252009-10-31 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
bccd0dd2
SDJ
1226
1227 * breakpoint.c (catch_syscall_split_args): Remove unecessary warning
1228 displayed when the user provided a syscall name and there is no
1229 XML support.
1230 * xml-syscall.c: Renamed `_sysinfo' to `sysinfo'.
1231 (set_xml_syscall_file_name): Remove syscall_warn_user.
1232 (xml_init_syscalls_info): Remove warning.
1233 (init_sysinfo): Update warnings.
1234
5d4e2b76
VP
12352009-10-30 Vladimir Prus <vladimir@codesourcery.com>
1236
1237 Fix breakpoint commands in MI.
1238
1239 * mi/mi-main.c (mi_execute_command): Run bpstat_do_actions.
1240 * mi/mi-cmd-break.c (mi_cmd_break_commands): Pass 1 to
1241 read_command_line_1 to actually parse composite commands.
1242
8a35fb51
SL
12432009-10-29 Sandra Loosemore <sandra@codesourcery.com>
1244
1245 PR gdb/10783
1246
1247 * target.c (simple_search_memory): Correct read_addr initialization
1248 in loop for searching subsequent chunks.
1249
5fed8c43
DJ
12502009-10-28 Daniel Jacobowitz <dan@codesourcery.com>
1251
1252 Reported by Antti Hatala <ahatala@nvidia.com>.
1253
1254 * arm-tdep.c (thumb_get_next_pc): Limit check to IT instructions
1255 correctly.
1256
875cdfbb
PA
12572009-10-28 Pedro Alves <pedro@codesourcery.com>
1258
1259 * dwarf2-frame.c (dwarf2_build_frame_info): Discard --gc-section
1260 leftover FDEs.
1261
c4dbc9af
PA
12622009-10-28 Pedro Alves <pedro@codesourcery.com>
1263
1264 * infrun.c (keep_going): Wrap with resume_cleanups.
1265
7dbc3bd2
PP
12662009-10-27 Paul Pluzhnikov <ppluzhnikov@google.com>
1267
1268 * MAINTAINERS: Add self to "modify-after-approval" maintainers.
1269
02c6c942
PP
12702009-10-27 Paul Pluzhnikov <ppluzhnikov@google.com>
1271
1272 PR gdb/10757
1273 * linux-thread-db.c (attach_thread): Return success/failure
1274 indicator.
1275 (thread_db_find_new_threads_silently): Retry until no new threads.
1276 (struct callback_data): New.
1277 (find_new_threads_callback): Count new threads, stop iteration
1278 on error.
1279 (find_new_threads_once): New function.
1280 (thread_db_find_new_threads_2): Rename from
1281 thread_db_find_new_threads_1 and adjust.
1282 (thread_db_find_new_threads_1): New function.
1283
0cf5390e
ME
12842009-10-26 Michael Eager <eager@eagercon.com>
1285
1286 * MAINTAINERS: Add self to "modify-after-approval" maintainers.
1287
0ebc2096
HZ
12882009-10-26 Michael Snyder <msnyder@vmware.com>
1289 Hui Zhu <teawater@gmail.com>
1290
1291 * Makefile.in (SFILES): Add gcore.c.
1292 (COMMON_OBS): Add gcore.o.
1293 * config/alpha/alpha-linux.mh (NATDEPFILES): Delete gcore.o.
1294 * config/alpha/fbsd.mh (NATDEPFILES): Ditto.
1295 * config/arm/linux.mh (NATDEPFILES): Ditto.
1296 * config/i386/fbsd.mh (NATDEPFILES): Ditto.
1297 * config/i386/fbsd64.mh (NATDEPFILES): Ditto.
1298 * config/i386/i386sol2.mh (NATDEPFILES): Ditto.
1299 * config/i386/linux.mh (NATDEPFILES): Ditto.
1300 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1301 * config/i386/sol2-64.mh (NATDEPFILES): Ditto.
1302 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1303 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1304 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1305 * config/mips/linux.mh (NATDEPFILES): Ditto.
1306 * config/pa/linux.mh (NATDEPFILES): Ditto.
1307 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1308 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1309 * config/s390/s390.mh (NATDEPFILES): Ditto.
1310 * config/sparc/fbsd.mh (NATDEPFILES): Ditto.
1311 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1312 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1313 * config/sparc/sol2.mh (NATDEPFILES): Ditto.
1314 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1315 * target.c (dummy_find_memory_regions): Change output.
1316 (dummy_make_corefile_notes): Ditto.
1317
53f6a2c9
TG
13182009-10-26 Tristan Gingold <gingold@adacore.com>
1319
1320 * charset.c (_initialize_charset): Set a default value to
1321 auto_host_charset_name if empty.
1322
6d1915d4
TG
13232009-10-26 Tristan Gingold <gingold@adacore.com>
1324
1325 * avr-tdep.c (avr_push_dummy_call): Handle avr6 architecture.
1326 Fix the returned value. Fix style.
1327
599ec134
JB
13282009-10-26 Joel Brobecker <brobecker@adacore.com>
1329
1330 * MAINTAINERS (Responsible Maintainers): Add info about the microblaze
1331 targets. Add Michael Eager as the maintainer for this target.
1332
876fa593
JK
13332009-10-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 Performance optimize large bp_location count.
1336 * breakpoint.c (ALL_BP_LOCATIONS_SAFE): Remove.
1337 (ALL_BP_LOCATIONS): New parameter BP_TMP. Use now bp_location and
1338 bp_location_count.
1339 (bp_location_chain): Remove variable.
1340 (bp_location, bp_location_count)
1341 (bp_location_placed_address_before_address_max)
1342 (bp_location_shadow_len_after_address_max): New variables.
1343 (moribund_locations, update_watchpoint): Update the bp_location
1344 variable name.
1345 (breakpoint_restore_shadows): Extend the comment. Move the variable
1346 b to local blocks. Move the variables bp_addr, bp_size and bptoffset
1347 to a local block. New variables bc_l, bc_r and bc. New binary search
1348 for the left range boundary. New break on reaching the right range
1349 boundary. Move shadow existence conditionals to ...
1350 (bp_location_has_shadow): ... a new function.
1351 (insert_breakpoint_locations): Replace the temp variable by bp_tmp.
1352 Use now ALL_BP_LOCATIONS instead of ALL_BP_LOCATIONS_SAFE.
1353 (remove_breakpoints, remove_hw_watchpoints, reattach_breakpoints)
1354 (detach_breakpoints): New variable bp_tmp. Update the ALL_BP_LOCATIONS
1355 calling convention.
1356 (update_breakpoints_after_exec): New variable bplocp_tmp. Update the
1357 ALL_BP_LOCATIONS calling convention.
1358 (breakpoint_here_p, software_breakpoint_inserted_here_p)
1359 (breakpoint_thread_match): New variable bptp_tmp. Drop the const
1360 attribute of bpt. Update the ALL_BP_LOCATIONS calling convention.
1361 (regular_breakpoint_inserted_here_p): Likewise. Update the bp_location
1362 variable name.
1363 (mark_breakpoints_out, breakpoint_init_inferior): New variable
1364 bptp_tmp. Update the ALL_BP_LOCATIONS calling convention.
1365 (bpstat_stop_status): New variables blp_tmp and update_locations. Drop
1366 the const attribute of bl. Update the ALL_BP_LOCATIONS calling
1367 convention. Protect HIT_COUNT increment by an ENABLE_STATE check.
1368 Delay the update_global_location_list call using update_locations.
1369 (set_default_breakpoint): Drop the check_duplicates name from comment.
1370 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib):
1371 New variable locp_tmp. Update the ALL_BP_LOCATIONS calling convention.
1372 (bp_location_compare, bp_location_compare_for_qsort)
1373 (bp_location_target_extensions_update): New functions.
1374 (check_duplicates, check_duplicates_for): Remove, moving their code ...
1375 (update_global_location_list): ... into this existing function. Remove
1376 variables next, loc2, old_locations, ret and ix. New variables locp,
1377 loc_first, old_location, old_locp and old_location_count. Stop using
1378 global_next, create now the array bp_location, sort it by
1379 bp_location_compare_for_qsort and call
1380 bp_location_target_extensions_update. Change quadratic iteration by
1381 loc2 into an in-sync scanning by locp and loc2p. Rename former loc
1382 usage as old_loc.
1383 (do_vec_free): Remove.
1384 (breakpoint_program_space_exit): Update the ALL_BP_LOCATIONS calling
1385 convention.
1386 (remove_breakpoints_pid): New variable b_tmp. Update the
1387 ALL_BP_LOCATIONS calling convention.
1388 * breakpoint.h (struct bp_location <global_next>): Remove.
1389
342b5fef
JK
13902009-10-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 * mep-tdep.c: Update include for the new location cgen/bitset.h.
1393
a515ee82
TT
13942009-10-23 Tom Tromey <tromey@redhat.com>
1395
1396 * blockframe.c (_initialize_blockframe): Remove declaration.
1397
bcbfd759
DE
13982009-10-23 Doug Evans <dje@google.com>
1399
1400 * record.c (record_core_xfer_partial): Pass correct offset to
1401 record_beneath_to_xfer_partial.
1402
6aa96d03
MS
14032009-10-23 Michael Snyder <msnyder@vmware.com>
1404
1405 * record.c (top level): Don't include byteswap.h.
1406 (netorder64): Use store_unsigned_integer instead of bswap_64.
1407 (netorder32): Use store_unsigned_integer instead of bswap_32.
1408 (netorder16): Use store_unsigned_integer instead of bswap_16.
1409
3332cef8
MS
14102009-10-23 Michael Snyder <msnyder@vmware.com>
1411
1412 * record.c (netorder64): Use BFD_ENDIAN_LITTLE not LITTLE_ENDIAN.
1413 (netorder32): Ditto.
1414 (netorder16): Ditto.
1415
6a0fa043
PP
14162009-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1417
1418 * objfiles.c (allocate_objfile): Use xzalloc.
1419
1de1372d
HZ
14202009-10-23 Hui Zhu <teawater@gmail.com>
1421
1422 * record.c (record_restore): Use phex_nz.
1423
2f6e5d7e
TG
14242009-10-23 Tristan Gingold <gingold@adacore.com>
1425
7e2183cc
TG
1426 * frame.c (frame_unwind_pc): Fix typo: remove duplicate 0x.
1427
14282009-10-23 Tristan Gingold <gingold@adacore.com>
1429
2f6e5d7e
TG
1430 * objfiles.c (allocate_objfile): Remove useless test. Move
1431 declaration of last_one to the block that uses it.
1432
6a0fa043
PP
14332009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
1434
1435 * record.c (record_restore, cmd_record_save): Fix warnings.
1436
9c419145
PP
14372009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
1438
1439 * disasm.h (DISASSEMBLY_OMIT_FNAME) New define.
1440 (gdb_disassembly): Correct parameter name.
1441 * disasm.c (dump_insns): Adjust.
1442 (gdb_disassembly): Fix indentation.
1443 * cli/cli-cmds.c (disassemble_command): Adjust.
1444
97bd5475
MS
14452009-10-22 Michael Snyder <msnyder@vmware.com>
1446
1447 * infrun.c (keep_going): If insert_breakpoints fails,
1448 print the reason.
1449
65a97ab3
PP
14502009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
1451
1452 PR gdb/10819
1453 * dwarf2-frame.c (find_cie): Don't call bsearch on empty cie_table.
1454 * objfiles.c (find_pc_section): Likewise.
1455 (update_section_map): Don't allocate empty table.
1456
ca621225 14572009-10-22 Hui Zhu <teawater@gmail.com>
3332cef8 1458 Michael Snyder <msnyder@vmware.com>
0156b218
MS
1459
1460 * record.c (RECORD_FILE_MAGIC): New constant.
1461 (record_arch_list_cleanups): Renamed from record_message_cleanups.
1462 (bfdcore_read): New function.
1463 (netorder64): New function.
1464 (netorder32): New function.
1465 (netorder16): New function.
1466 (record_restore): New function. Restore a saved record log.
1467 (bfdcore_write): New function.
1468 (cmd_record_restore): New function.
1469 (cmd_record_save): New function. Save a record log to a file.
1470 (_initialize_record): Set up commands for save and restore.
1471
ca621225 14722009-10-22 Michael Snyder <msnyder@vmware.com>
0156b218
MS
1473
1474 * gcore.h: New file.
1475 * gcore.c (create_gcore_bfd): New function.
1476 (write_gcore_file): New function.
1477 (call_target_sbrk): New function. Abstracted from gcore_command.
1478 (gcore_command): Call call_target_sbrk.
1479
27699eea
MS
14802009-10-22 Hui Zhu <teawater@gmail.com>
1481 Michael Snyder <msnyder@vmware.com>
1482
1483 * record.c (record_core_ops): New ops target vector.
1484 (record_core_open_1): New function. Open core target.
1485 (record_open_1): New function. Open normal process record.
1486 (record_open): Call one of the above.
1487 (record_close): Allow for both core and normal targets.
1488 (record_core_resume): New function.
1489 (record_core_kill): New function.
1490 (record_core_fetch_registers): New function.
1491 (record_core_prepare_to_store): New function.
1492 (record_core_store_registers): New function.
1493 (record_core_xfer_partial): New function.
1494 (record_core_insert_breakpoint): New function.
1495 (record_core_remove_breakpoint): New function.
1496 (record_core_has_execution): New function.
1497 (init_record_core_ops): New function.
1498 (_initialize_record): Call init_record_core_ops, add_target.
1499
46187dff
TG
15002009-10-22 Tristan Gingold <gingold@adacore.com>
1501
1502 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1503 amd64_supply_fxsave for amd64. Fix the offset.
1504 (i386_darwin_store_inferior_registers): Use amd64_collect_fxsave
1505 for amd64.
1506
d4709618
MG
15072009-10-21 Maxim Grigoriev <maxim2405@gmail.com>
1508
1509 * xtensa-tdep.c (XTENSA_ISA_BADPC): New.
1510 (xtensa_scan_prologue): Replace read_memory with target_read_memory.
1511 (call0_analyze_prologue): Use XTENSA_ISA_BADPC instead of "0".
1512 (call0_frame_cache): Check error conditions on call0_analyze_prologue.
1513
2b28d209
PP
15142009-10-21 Paul Pluzhnikov <ppluzhnikov@google.com>
1515
1516 * defs.h (pc_prefix): New prototype.
1517 * disasm.c (dump_insns): Mark current instruction.
1518 * printcmd.c (do_examine): Likewise.
1519 (pc_prefix): New function.
1520 * stack.c (print_frame_info): Disassemble entire current line.
1521
b54295a7
MS
15222009-10-21 Michael Snyder <msnyder@vmware.com>
1523
1524 Elaborate "info record".
1525 * record.c (struct record_end_entry): New field 'insn_num'.
1526 (record_insn_count): New variable.
1527 (record_open): Initialize record_insn_count.
1528 (info_record_command): Display contents of record log as
1529 lowest, current, and highest instruction counts.
1530 (show_record_insn_number): Delete.
1531 (_initialize_record): Remove add_cmd show_record_insn_number.
1532
c9ac0a72
AS
15332009-10-21 Andrew Stubbs <ams@codesourcery.com>
1534 Joel Brobecker <brobecker@adacore.com>
1535
1536 * Makefile.in (HFILES_NO_SRCDIR): Remove shnbsd-tdep.h
1537 * configure.tgt (sh*-*-linux*): Add corelow.o to gdb_target_obs.
1538 * sh-linux-tdep.c: Include sh-tdep.h.
1539 (REGSx16): New macro.
1540 (gregs_table, fpregs_table): New variables.
1541 (sh_linux_init_abi): Set core_gregmap and fpregmap.
1542 * sh-tdep.c: Include regset.h.
1543 (sh_corefile_supply_regset): New function.
1544 (sh_corefile_collect_regset): New function.
1545 (sh_corefile_gregset, sh_corefile_fpregset): New variables.
1546 (sh_regset_from_core_section): New function.
1547 (sh_gdbarch_init): Set up tdep value.
1548 Call set_gdbarch_regset_from_core_section.
1549 * sh-tdep.h (PC_REGNUM): New enum value.
1550 (struct sh_corefile_regs): New type.
1551 (sh_corefile_gregset): Export variable.
1552 (sh_corefile_supply_regset): New prototype.
1553 (sh_corefile_collect_regset): New prototype.
1554 * shnbsd-tdep.c: Remove include of regcache.h, gdb_assert.h and
1555 shnbsd-tdep.h.
1556 (regmap): Use new definition using struct sh_corefile_regs.
1557 (shnbsd_supply_gregset, shnbsd_collect_gregset): Delete.
1558 (shnbsd_gregset): Delete.
1559 (shnbsd_regset_from_core_section): Delete.
1560 (shnbsd_supply_reg, shnbsd_fill_reg): Use new regset interface.
1561 (shnbsd_init_abi): Set core_gregmap.
1562 (shnbsd_supply_reg): Delete.
1563 (shnbsd_fill_reg): Delete.
1564 (SHNBSD_SIZEOF_GREGS): Move ...
1565 * shnbsd-nat.c (SHNBSD_SIZEOF_GREGS): ... to here.
1566 Remove include of shnbsd-tdep.h.
1567 (shnbsd_fetch_inferior_registers): Replace shnbsd_supply_reg call
1568 with sh_corefile_supply_regset.
1569 (shnbsd_store_inferior_registers): Replace shnbsd_fill_reg call with
1570 sh_corefile_collect_regset.
1571 * shnbsd-tdep.h: Delete file.
1572
47607d6f
PM
15732009-10-21 Pierre Muller <muller@ics.u-strasbg.fr>
1574
1575 * rs6000-nat.c (exec_one_dummy_insn): Add missing new ASPACE parameter
1576 to depreacted_insert_raw_breakpoint function call.
1577 * procfs.c (insert_dbx_link_bpt_in_file): Likewise.
1578
6df67667
MS
15792009-10-20 Michael Snyder <msnyder@vmware.com>
1580
1581 * record.c: Add some top-level comments for general explanation.
1582
90ca0479
MS
15832009-10-20 Hui Zhu <teawater@gmail.com>
1584 Michael Snyder <msnyder@vmware.com>
1585
1586 * record.c (record_exec_insn): New function. Emulate one
1587 instruction, forward or backward. Abstracted from record_wait.
1588 (record_wait) Call record_exec_insn.
1589
9d1807c3
MS
15902009-10-20 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1591
1592 * infrun.c (handle_inferior_event): Add pspace field to sal
1593 for reverse execution cases.
1594
20176d8f
PA
15952009-10-20 Ken Werner <ken@linux.vnet.ibm.com>
1596
1597 * go32-nat.c (go32_create_inferior): Use inferior_appeared, not
1598 inferior_appeared_silent.
1599 * remote-sim.c (gdbsim_create_inferior): Ditto.
1600
40625c9d
PA
16012009-10-20 Pedro Alves <pedro@codesourcery.com>
1602
1603 * darwin-nat.c (cancel_breakpoint): Pass the regcache's address
1604 space to breakpoint_inserted_here_p.
1605
c0694254
PA
16062009-10-20 Pedro Alves <pedro@codesourcery.com>
1607
1608 * linux-nat.c (linux_nat_thread_address_space): New.
1609 (linux_nat_add_target): Install it.
1610 * progspace.c (address_space_num): New.
1611 * progspace.h (address_space_num): Declare.
1612 * target.c (target_thread_address_space): Really query the target.
1613 * target.h (struct target_ops) <to_thread_address_space>: New
1614 field.
1615
ffeecffa
JB
16162009-10-19 Joel Brobecker <brobecker@adacore.com>
1617
1618 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Add comment.
1619
6c95b8df
PA
16202009-10-19 Pedro Alves <pedro@codesourcery.com>
1621 Stan Shebs <stan@codesourcery.com>
1622
1623 Add base multi-executable/process support to GDB.
1624
1625 * Makefile.in (SFILES): Add progspace.c.
1626 (COMMON_OBS): Add progspace.o.
1627 * progspace.h: New.
1628 * progspace.c: New.
1629
1630 * breakpoint.h (struct bp_target_info) <placed_address_space>: New
1631 field.
1632 (struct bp_location) <pspace>: New field.
1633 (struct breakpoint) <pspace>: New field.
1634 (bpstat_stop_status, breakpoint_here_p)
1635 (moribund_breakpoint_here_p, breakpoint_inserted_here_p)
1636 (regular_breakpoint_inserted_here_p)
1637 (software_breakpoint_inserted_here_p, breakpoint_thread_match)
1638 (set_default_breakpoint): Adjust prototypes.
1639 (remove_breakpoints_pid, breakpoint_program_space_exit): Declare.
1640 (insert_single_step_breakpoint, deprecated_insert_raw_breakpoint):
1641 Adjust prototypes.
1642 * breakpoint.c (executing_startup): Delete.
1643 (default_breakpoint_sspace): New.
1644 (breakpoint_restore_shadows): Skip if the address space doesn't
1645 match.
1646 (update_watchpoint): Record the frame's program space in the
1647 breakpoint location.
1648 (insert_bp_location): Record the address space in target_info.
1649 Adjust to pass the symbol space to solib_name_from_address.
1650 (breakpoint_program_space_exit): New.
1651 (insert_breakpoint_locations): Switch the symbol space and thread
1652 when inserting breakpoints. Don't insert breakpoints in a vfork
1653 parent waiting for vfork done if we're not attached to the vfork
1654 child.
1655 (remove_breakpoints_pid): New.
1656 (reattach_breakpoints): Switch to a thread of PID. Ignore
1657 breakpoints of other symbol spaces.
1658 (create_internal_breakpoint): Store the symbol space in the sal.
1659 (create_longjmp_master_breakpoint): Iterate over all symbol
1660 spaces.
1661 (update_breakpoints_after_exec): Ignore breakpoints for other
1662 symbol spaces.
1663 (remove_breakpoint): Rename to ...
1664 (remove_breakpoint_1): ... this. Pass the breakpoints symbol
1665 space to solib_name_from_address.
1666 (remove_breakpoint): New.
1667 (mark_breakpoints_out): Ignore breakpoints from other symbol
1668 spaces.
1669 (breakpoint_init_inferior): Ditto.
1670 (breakpoint_here_p): Add an address space argument and adjust to
1671 use breakpoint_address_match.
1672 (moribund_breakpoint_here_p): Ditto.
1673 (regular_breakpoint_inserted_here_p): Ditto.
1674 (breakpoint_inserted_here_p): Ditto.
1675 (software_breakpoint_inserted_here_p): Ditto.
1676 (breakpoint_thread_match): Ditto.
1677 (bpstat_check_location): Ditto.
1678 (bpstat_stop_status): Ditto.
1679 (print_breakpoint_location): If there's a location to print,
1680 switch the current symbol space.
1681 (print_one_breakpoint_location): Add `allflag' argument.
1682 (print_one_breakpoint): Ditto. Adjust.
1683 (do_captured_breakpoint_query): Adjust.
1684 (breakpoint_1): Adjust.
1685 (breakpoint_has_pc): Also match the symbol space.
1686 (describe_other_breakpoints): Add a symbol space argument and
1687 adjust.
1688 (set_default_breakpoint): Add a symbol space argument. Set
1689 default_breakpoint_sspace.
1690 (breakpoint_address_match): New.
1691 (check_duplicates_for): Add an address space argument, and adjust.
1692 (set_raw_breakpoint): Record the symbol space in the location and
1693 in the breakpoint.
1694 (set_longjmp_breakpoint): Skip longjmp master breakpoints from
1695 other symbol spaces.
1696 (remove_thread_event_breakpoints, remove_solib_event_breakpoints)
1697 (disable_breakpoints_in_shlibs): Skip breakpoints from other
1698 symbol spaces.
1699 (disable_breakpoints_in_unloaded_shlib): Match symbol spaces.
1700 (create_catchpoint): Set the symbol space in the sal.
1701 (disable_breakpoints_before_startup): Skip breakpoints from other
1702 symbol spaces. Set executing_startup in the current symbol space.
1703 (enable_breakpoints_after_startup): Clear executing_startup in the
1704 current symbol space. Skip breakpoints from other symbol spaces.
1705 (clone_momentary_breakpoint): Also copy the symbol space.
1706 (add_location_to_breakpoint): Set the location's symbol space.
1707 (bp_loc_is_permanent): Switch thread and symbol space.
1708 (create_breakpoint): Adjust.
1709 (expand_line_sal_maybe): Expand comment to mention symbol spaces.
1710 Switch thread and symbol space when reading memory.
1711 (parse_breakpoint_sals): Set the symbol space in the sal.
1712 (break_command_really): Ditto.
1713 (skip_prologue_sal): Switch and space.
1714 (resolve_sal_pc): Ditto.
1715 (watch_command_1): Record the symbol space in the sal.
1716 (create_ada_exception_breakpoint): Adjust.
1717 (clear_command): Adjust. Match symbol spaces.
1718 (update_global_location_list): Use breakpoint_address_match.
1719 (breakpoint_re_set_one): Switch thread and space.
1720 (breakpoint_re_set): Save symbol space.
1721 (breakpoint_re_set_thread): Also reset the symbol space.
1722 (deprecated_insert_raw_breakpoint): Add an address space argument.
1723 Adjust.
1724 (insert_single_step_breakpoint): Ditto.
1725 (single_step_breakpoint_inserted_here_p): Ditto.
1726 (clear_syscall_counts): New.
1727 (_initialize_breakpoint): Install it as inferior_exit observer.
1728
1729 * exec.h: Include "progspace.h".
1730 (exec_bfd, exec_bfd_mtime): New defines.
1731 (exec_close): Declare.
1732 * exec.c: Include "gdbthread.h" and "progspace.h".
1733 (exec_bfd, exec_bfd_mtime, current_target_sections_1): Delete.
1734 (using_exec_ops): New.
1735 (exec_close_1): Rename to exec_close, and make public.
1736 (exec_close): Rename to exec_close_1, and adjust all callers. Add
1737 description. Remove target sections and close executables from
1738 all program spaces.
1739 (exec_file_attach): Add comment.
1740 (add_target_sections): Check on `using_exec_ops' to check if the
1741 target should be pushed.
1742 (remove_target_sections): Only unpush the target if there are no
1743 more target sections in any symbol space.
1744 * gdbcore.h: Include "exec.h".
1745 (exec_bfd, exec_bfd_mtime): Remove declarations.
1746
1747 * frame.h (get_frame_program_space, get_frame_address_space)
1748 (frame_unwind_program_space): Declare.
1749 * frame.c (struct frame_info) <pspace, aspace>: New fields.
1750 (create_sentinel_frame): Add program space argument. Set the
1751 pspace and aspace fields of the frame object.
1752 (get_current_frame, create_new_frame): Adjust.
1753 (get_frame_program_space): New.
1754 (frame_unwind_program_space): New.
1755 (get_frame_address_space): New.
1756 * stack.c (print_frame_info): Adjust.
1757 (print_frame): Use the frame's program space.
1758
1759 * gdbthread.h (any_live_thread_of_process): Declare.
1760 * thread.c (any_live_thread_of_process): New.
1761 (switch_to_thread): Switch the program space as well.
1762 (restore_selected_frame): Don't warn if trying to restore frame
1763 level 0.
1764
1765 * inferior.h: Include "progspace.h".
1766 (detach_fork): Declare.
1767 (struct inferior) <removable, aspace, pspace>
1768 <vfork_parent, vfork_child, pending_detach>
1769 <waiting_for_vfork_done>: New fields.
1770 <terminal_info>: Remove field.
1771 <data, num_data>: New fields.
1772 (register_inferior_data, register_inferior_data_with_cleanup)
1773 (clear_inferior_data, set_inferior_data, inferior_data): Declare.
1774 (exit_inferior, exit_inferior_silent, exit_inferior_num_silent)
1775 (inferior_appeared): Declare.
1776 (find_inferior_pid): Typo.
1777 (find_inferior_id, find_inferior_for_program_space): Declare.
1778 (set_current_inferior, save_current_inferior, prune_inferiors)
1779 (number_of_inferiors): Declare.
1780 (inferior_list): Declare.
1781 * inferior.c: Include "gdbcore.h" and "symfile.h".
1782 (inferior_list): Make public.
1783 (delete_inferior_1): Always delete thread silently.
1784 (find_inferior_id): Make public.
1785 (current_inferior_): New.
1786 (current_inferior): Use it.
1787 (set_current_inferior): New.
1788 (restore_inferior): New.
1789 (save_current_inferior): New.
1790 (free_inferior): Free the per-inferior data.
1791 (add_inferior_silent): Allocate per-inferior data.
1792 Call inferior_appeared.
1793 (delete_threads_of_inferior): New.
1794 (delete_inferior_1): Adjust interface to take an inferior pointer.
1795 (delete_inferior): Adjust.
1796 (delete_inferior_silent): Adjust.
1797 (exit_inferior_1): New.
1798 (exit_inferior): New.
1799 (exit_inferior_silent): New.
1800 (exit_inferior_num_silent): New.
1801 (detach_inferior): Adjust.
1802 (inferior_appeared): New.
1803 (discard_all_inferiors): Adjust.
1804 (find_inferior_id): Make public. Assert pid is not zero.
1805 (find_inferior_for_program_space): New.
1806 (have_inferiors): Check if we have any inferior with pid not zero.
1807 (have_live_inferiors): Go over all pushed targets looking for
1808 process_stratum.
1809 (prune_inferiors): New.
1810 (number_of_inferiors): New.
1811 (print_inferior): Add executable column. Print vfork parent/child
1812 relationships.
1813 (inferior_command): Adjust to cope with not running inferiors.
1814 (remove_inferior_command): New.
1815 (add_inferior_command): New.
1816 (clone_inferior_command): New.
1817 (struct inferior_data): New.
1818 (struct inferior_data_registration): New.
1819 (struct inferior_data_registry): New.
1820 (inferior_data_registry): New.
1821 (register_inferior_data_with_cleanup): New.
1822 (register_inferior_data): New.
1823 (inferior_alloc_data): New.
1824 (inferior_free_data): New.
1825 (clear_inferior_data): New.
1826 (set_inferior_data): New.
1827 (inferior_data): New.
1828 (initialize_inferiors): New.
1829 (_initialize_inferiors): Register "add-inferior",
1830 "remove-inferior" and "clone-inferior" commands.
1831
1832 * objfiles.h: Include "progspace.h".
1833 (struct objfile) <pspace>: New field.
1834 (symfile_objfile, object_files): Don't declare.
1835 (ALL_PSPACE_OBJFILES): New.
1836 (ALL_PSPACE_OBJFILES_SAFE): New.
1837 (ALL_OBJFILES, ALL_OBJFILES_SAFE): Adjust.
1838 (ALL_PSPACE_SYMTABS): New.
1839 (ALL_PRIMARY_SYMTABS): Adjust.
1840 (ALL_PSPACE_PRIMARY_SYMTABS): New.
1841 (ALL_PSYMTABS): Adjust.
1842 (ALL_PSPACE_PSYMTABS): New.
1843 * objfiles.c (object_files, symfile_objfile): Delete.
1844 (struct objfile_sspace_info): New.
1845 (objfiles_pspace_data): New.
1846 (objfiles_pspace_data_cleanup): New.
1847 (get_objfile_pspace_data): New.
1848 (objfiles_changed_p): Delete.
1849 (allocate_objfile): Set the objfile's program space. Adjust to
1850 reference objfiles_changed_p in pspace data.
1851 (free_objfile): Adjust to reference objfiles_changed_p in pspace
1852 data.
1853 (objfile_relocate): Ditto.
1854 (update_section_map): Add pspace argument. Adjust to iterate over
1855 objfiles in the passed in pspace.
1856 (find_pc_section): Delete sections and num_sections statics.
1857 Adjust to refer to program space's objfiles_changed_p. Adjust to
1858 refer to sections and num_sections store in the objfile's pspace
1859 data.
1860 (objfiles_changed): Adjust to reference objfiles_changed_p in
1861 pspace data.
1862 (_initialize_objfiles): New.
1863 * linespec.c (decode_all_digits, decode_dollar): Set the sal's
1864 program space.
1865 * source.c (current_source_pspace): New.
1866 (get_current_source_symtab_and_line): Set the sal's program space.
1867 (set_current_source_symtab_and_line): Set current_source_pspace.
1868 (select_source_symtab): Ditto. Use ALL_OBJFILES.
1869 (forget_cached_source_info): Iterate over all program spaces.
1870 * symfile.c (clear_symtab_users): Adjust.
1871 * symmisc.c (print_symbol_bcache_statistics): Iterate over all
1872 program spaces.
1873 (print_objfile_statistics): Ditto.
1874 (maintenance_print_msymbols): Ditto.
1875 (maintenance_print_objfiles): Ditto.
1876 (maintenance_info_symtabs): Ditto.
1877 (maintenance_info_psymtabs): Ditto.
1878 * symtab.h (SYMTAB_PSPACE): New.
1879 (struct symtab_and_line) <pspace>: New field.
1880 * symtab.c (init_sal): Clear the sal's program space.
1881 (find_pc_sect_symtab): Set the sal's program space. Switch thread
1882 and space.
1883 (append_expanded_sal): Add program space argument. Iterate over
1884 all program spaces.
1885 (expand_line_sal): Iterate over all program spaces. Switch
1886 program space.
1887
1888 * target.h (enum target_waitkind) <TARGET_WAITKIND_VFORK_DONE>: New.
1889 (struct target_ops) <to_thread_address_space>: New field.
1890 (target_thread_address_space): Define.
1891 * target.c (target_detach): Only remove breakpoints from the
1892 inferior we're detaching.
1893 (target_thread_address_space): New.
1894
1895 * defs.h (initialize_progspace): Declare.
1896 * top.c (gdb_init): Call it.
1897
1898 * solist.h (struct so_list) <sspace>: New field.
1899 * solib.h (struct program_space): Forward declare.
1900 (solib_name_from_address): Adjust prototype.
1901 * solib.c (so_list_head): Replace with a macro referencing the
1902 program space.
1903 (update_solib_list): Set the so's program space.
1904 (solib_name_from_address): Add a program space argument and adjust.
1905
1906 * solib-svr4.c (struct svr4_info) <pid>: Delete field.
1907 <interp_text_sect_low, interp_text_sect_high, interp_plt_sect_low>
1908 <interp_plt_sect_high>: New fields.
1909 (svr4_info_p, svr4_info): Delete.
1910 (solib_svr4_sspace_data): New.
1911 (get_svr4_info): Rewrite.
1912 (svr4_sspace_data_cleanup): New.
1913 (open_symbol_file_object): Adjust.
1914 (svr4_default_sos): Adjust.
1915 (svr4_fetch_objfile_link_map): Adjust.
1916 (interp_text_sect_low, interp_text_sect_high, interp_plt_sect_low)
1917 (interp_plt_sect_high): Delete.
1918 (svr4_in_dynsym_resolve_code): Adjust.
1919 (enable_break): Adjust.
1920 (svr4_clear_solib): Revert bit that removed the svr4_info here,
1921 and reinstate clearing debug_base, debug_loader_offset_p,
1922 debug_loader_offset and debug_loader_name.
1923 (_initialize_svr4_solib): Register solib_svr4_pspace_data. Don't
1924 install an inferior_exit observer anymore.
1925
1926 * printcmd.c (struct display) <pspace>: New field.
1927 (display_command): Set the display's sspace.
1928 (do_one_display): Match the display's sspace.
1929 (display_uses_solib_p): Ditto.
1930
1931 * linux-fork.c (detach_fork): Moved to infrun.c.
1932 (_initialize_linux_fork): Moved "detach-on-fork" command to
1933 infrun.c.
1934 * infrun.c (detach_fork): Moved from linux-fork.c.
1935 (proceed_after_vfork_done): New.
1936 (handle_vfork_child_exec_or_exit): New.
1937 (follow_exec_mode_replace, follow_exec_mode_keep)
1938 (follow_exec_mode_names, follow_exec_mode_string)
1939 (show_follow_exec_mode_string): New.
1940 (follow_exec): New. Reinstate the mark_breakpoints_out call.
1941 Remove shared libraries before attaching new executable. If user
1942 wants to keep the inferior, keep it.
1943 (displaced_step_fixup): Adjust to pass an address space to the
1944 breakpoints module.
1945 (resume): Ditto.
1946 (clear_proceed_status): In all-stop mode, always clear the proceed
1947 status of all threads.
1948 (prepare_to_proceed): Adjust to pass an address space to the
1949 breakpoints module.
1950 (proceed): Ditto.
1951 (adjust_pc_after_break): Ditto.
1952 (handle_inferior_event): When handling a process exit, switch the
1953 program space to the inferior's that had exited. Call
1954 handle_vfork_child_exec_or_exit. Adjust to pass an address space
1955 to the breakpoints module. In non-stop mode, when following a
1956 fork and detach-fork is off, also resume the other branch. Handle
1957 TARGET_WAITKIND_VFORK_DONE. Set the program space in sals.
1958 (normal_stop): Prune inferiors.
1959 (_initialize_infrun): Install the new "follow-exec-mode" command.
1960 "detach-on-fork" moved here.
1961
1962 * regcache.h (get_regcache_aspace): Declare.
1963 * regcache.c (struct regcache) <aspace>: New field.
1964 (regcache_xmalloc): Clear the aspace.
1965 (get_regcache_aspace): New.
1966 (regcache_cpy): Copy the aspace field.
1967 (regcache_cpy_no_passthrough): Ditto.
1968 (get_thread_regcache): Fetch the thread's address space from the
1969 target, and store it in the regcache.
1970
1971 * infcall.c (call_function_by_hand): Set the sal's pspace.
1972
1973 * arch-utils.c (default_has_shared_address_space): New.
1974 * arch-utils.h (default_has_shared_address_space): Declare.
1975
1976 * gdbarch.sh (has_shared_address_space): New.
1977 * gdbarch.h, gdbarch.c: Regenerate.
1978
1979 * linux-tdep.c: Include auxv.h, target.h, elf/common.h.
1980 (linux_has_shared_address_space): New.
1981 (_initialize_linux_tdep): Declare.
1982
1983 * arm-tdep.c (arm_software_single_step): Pass the frame's address
1984 space to insert_single_step_breakpoint.
1985 * arm-linux-tdep.c (arm_linux_software_single_step): Pass the
1986 frame's pspace to breakpoint functions.
1987 * cris-tdep.c (crisv32_single_step_through_delay): Ditto.
1988 (cris_software_single_step): Ditto.
1989 * mips-tdep.c (deal_with_atomic_sequence): Add frame argument.
1990 Pass the frame's pspace to breakpoint functions.
1991 (mips_software_single_step): Adjust.
1992 (mips_single_step_through_delay): Adjust.
1993 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
1994 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
1995 * solib-irix.c (enable_break): Adjust to pass the current frame's
1996 address space to breakpoint functions.
1997 * sparc-tdep.c (sparc_software_single_step): Ditto.
1998 * spu-tdep.c (spu_software_single_step): Ditto.
1999 * alpha-tdep.c (alpha_software_single_step): Ditto.
2000 * record.c (record_wait): Adjust to pass an address space to the
2001 breakpoints module.
2002
2003 * fork-child.c (fork_inferior): Set the new inferior's program and
2004 address spaces.
2005 * inf-ptrace.c (inf_ptrace_follow_fork): Copy the parent's program
2006 and address spaces.
2007 (inf_ptrace_attach): Set the inferior's program and address spaces.
2008 * linux-nat.c: Include "solib.h".
2009 (linux_child_follow_fork): Manage parent and child's program and
2010 address spaces. Clone the parent's program space if necessary.
2011 Don't wait for the vfork to be done here. Refuse to resume if
2012 following the vfork parent while leaving the child stopped.
2013 (resume_callback): Don't resume a vfork parent.
2014 (linux_nat_resume): Also check for pending events in the
2015 lp->waitstatus field.
2016 (linux_handle_extended_wait): Report TARGET_WAITKIND_VFORK_DONE
2017 events to the core.
2018 (stop_wait_callback): Don't wait for SIGSTOP on vfork parents.
2019 (cancel_breakpoint): Adjust.
2020 * linux-thread-db.c (thread_db_wait): Don't remove thread event
2021 breakpoints here.
2022 (thread_db_mourn_inferior): Don't mark breakpoints out here.
2023 Remove thread event breakpoints after mourning.
2024 * corelow.c: Include progspace.h.
2025 (core_open): Set the inferior's program and address spaces.
2026 * remote.c (remote_add_inferior): Set the new inferior's program
2027 and address spaces.
2028 (remote_start_remote): Update address spaces.
2029 (extended_remote_create_inferior_1): Don't init the thread list if
2030 we already debugging other inferiors.
2031 * darwin-nat.c (darwin_attach): Set the new inferior's program and
2032 address spaces.
2033 * gnu-nat.c (gnu_attach): Ditto.
2034 * go32-nat.c (go32_create_inferior): Ditto.
2035 * inf-ttrace.c (inf_ttrace_follow_fork, inf_ttrace_attach): Ditto.
2036 * monitor.c (monitor_open): Ditto.
2037 * nto-procfs.c (procfs_attach, procfs_create_inferior): Ditto.
2038 * procfs.c (do_attach): Ditto.
2039 * windows-nat.c (do_initial_windows_stuff): Ditto.
2040
2041 * inflow.c (inferior_process_group)
2042 (terminal_init_inferior_with_pgrp, terminal_inferior,
2043 (terminal_ours_1, inflow_inferior_exit, copy_terminal_info)
2044 (child_terminal_info, new_tty_postfork, set_sigint_trap): Adjust
2045 to use per-inferior data instead of inferior->terminal_info.
2046 (inflow_inferior_data): New.
2047 (inflow_new_inferior): Delete.
2048 (inflow_inferior_data_cleanup): New.
2049 (get_inflow_inferior_data): New.
2050
2051 * mi/mi-interp.c (mi_new_inferior): Rename to...
2052 (mi_inferior_appeared): ... this.
2053 (mi_interpreter_init): Adjust.
2054
2055 * tui/tui-disasm.c: Include "progspace.h".
2056 (tui_set_disassem_content): Pass an address space to
2057 breakpoint_here_p.
2058
2059 * NEWS: Mention multi-program debugging support. Mention new
2060 commands "add-inferior", "clone-inferior", "remove-inferior",
2061 "maint info program-spaces", and new option "set
2062 follow-exec-mode".
2063
8dcb1aa7
DL
20642009-10-19 Don Lee <don.lee@sunplusct.com>
2065
2066 * score-tdep.c: Delete dead codes.
2067
44389f9b
MS
20682009-10-15 Michael Snyder <msnyder@vmware.com>
2069
2070 * record.c (struct record_reg_entry): Replace ptr with union
2071 of ptr and buf.
2072 (struct record_mem_entry): Ditto.
2073 (record_reg_alloc): Don't alloc ptr if reg will fit into buf.
2074 (record_mem_alloc): Ditto.
2075 (record_reg_release): Don't free ptr if reg was stored in buf.
2076 (record_mem_release): Ditto.
2077 (record_get_loc): New function. Return a pointer to where the
2078 value (mem or reg) is to be stored.
2079 (record_arch_list_add_reg): Call record_get_loc instead of using ptr.
2080 (record_arch_list_add_mem): Ditto.
2081 (record_wait): Ditto.
2082
6254b3e3
ME
20832009-10-16 Michael Eager <eager@eagercon.com>
2084
2085 * microblaze-linux-tdep.c:
2086 microblaze_linux_memory_remove_breakpoint(): Add gdbarch to param,
2087 replace frame_pc_unwind with get_frame_address_in_block.
2088 * microblaze-tdep.c: Remove MICROBLAZE_REGISTER_SIZE.
2089 * microblaze-tdep.h: Add MICROBLAZE_REGISTER_SIZE.
2090
5d583aa8 20912008-10-15 Steven G. Kargl <kargl@gcc.gnu.org> (tiny patch)
1f596238
JB
2092
2093 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
2094 support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.
2095
2d1c1221
ME
20962009-10-15 Michael Eager <eager@eagercon.com>
2097
2098 * config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
2099 elf32-microblaze.c, microblaze-rom.c, microblaze-linux-tdep.c,
2100 microblaze-tdep.h, microblaze-tdep.c, microblaze-opc.h,
2101 microblaze-opcm.h, microblaze-dis.c, microblaze-dis.h, sim/microblaze,
2102 microblaze.h, and microblaze.isa.
2103 * configure.tgt: Add targets microblaze*-linux-*, microblaze*-xilinx-*.
2104 * Makefile.in: Build microblaze-tdep.o, microblaze-linux-tdep.o.
2105 HFILES_NO_SRCDIR: Add microblaze-tdep.h.
2106 * microblaze-linux-tdep.c: New.
2107 * microblaze-tdep.c: New.
2108 * microblaze-tdep.h: New.
2109 * NEWS: Announce Xilinx MicroBlaze support.
2110
dacc9cb2
PP
21112009-10-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2112
58ad35c4 2113 PR gdb/10757
dacc9cb2
PP
2114 * linux-nat.c (linux_nat_post_attach_wait): Adjust assert.
2115 (lin_lwp_attach_lwp, linux_nat_attach): Handle disappearing LWP.
2116
191e1813
MS
21172009-10-15 Michael Snyder <msnyder@vmware.com>
2118
2119 * record.c (record_insn_max_num): Make unsigned.
2120 (_initialize_record): Use uinteger instead of zinteger for
2121 set command, so that it will report "unlimited" for zero.
2122
61f75dd8
MS
21232009-10-15 Michael Snyder <msnyder@vmware.com>
2124
2125 * record.c (record_reg_alloc): New function.
2126 (record_reg_release): New function.
2127 (record_mem_alloc): New function.
2128 (record_mem_release): New function.
2129 (record_end_alloc): New function.
2130 (record_end_release): New function.
2131 (record_entry_release): New function.
2132 (record_list_release): Simplify, call record_entry_release.
2133 (record_list_release_next): Rename to record_list_release_following.
2134 Simplify and call record_entry_release.
2135 (record_list_release_first): Simplify, comment, and use
2136 record_entry_release.
2137 (record_arch_list_add_reg): Simplify, call record_reg_alloc.
2138 (record_arch_list_add_mem): Simplify, call record_mem_alloc.
2139 (record_arch_list_add_end): Simplify, call record_end_alloc.
2140
21412009-10-14 Michael Snyder <msnyder@vmware.com>
265aad34
MS
2142
2143 * record.c (record_list_release_first): Do not decrement
2144 record_insn_num.
2145 (set_insn_num_max): Remove printf.
2146 Decrement record_insn_num in the loop.
2147
1256eeda
CC
21482009-10-14 Cary Coutant <ccoutant@google.com>
2149
2150 * dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
2151
72f2769e
KS
21522009-10-14 Keith Seitz <keiths@redhat.com>
2153
2154 * dwarf2read.c (dwarf2_const_value): Fix order of arguments to
2155 store_unsigned_integer.
2156
e23525a0
PA
21572009-10-14 Pedro Alves <pedro@codesourcery.com>
2158
e23525a0
PA
2159 * configure.ac (build_warnings): Add -Wunused-value.
2160 * configure: Regenerate.
2161
70d4c673
TG
21622009-10-14 Tristan Gingold <gingold@adacore.com>
2163
2164 * solib-darwin.c: Remove trailing whitespaces.
2165 (darwin_dyld_version_ok): Fix typo.
2166
46e8a76b
AS
21672009-10-14 Andrew Stubbs <ams@codesourcery.com>
2168
2169 * sh-tdep.c (sh_gdbarch_init): Add show_regs settings for
2170 bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu,
2171 bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu,
2172 and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu.
2173 Move bfd_mach_sh2a_or_sh4 to use the same configuration as
2174 bfd_mach_sh4.
2175
9dca5578
DJ
21762009-10-13 Daniel Jacobowitz <dan@codesourcery.com>
2177
2178 * arm-tdep.c (arm_push_dummy_call): Set the low bit of LR for
2179 a Thumb entry point.
2180 (thumb_get_next_pc): Handle Thumb-2 and ARM v6 instructions. Refuse
2181 to single step into IT blocks.
2182
88e3b899
PA
21832009-10-13 Pedro Alves <pedro@codesourcery.com>
2184
2185 * infcall.c (call_function_by_hand): Formatting.
2186
066d7383
TG
21872009-10-13 Tristan Gingold <gingold@adacore.com>
2188
2189 * solib-darwin.c: Add an empty line after comment for functions.
2190 (struct gdb_dyld_all_image_infos): Improve comment.
2191 (DYLD_VERSION): Removed and replaced by ...
2192 (DYLD_VERSION_MAX, DYLD_VERSION_MIN): ... New macros.
2193 (darwin_dyld_version_ok): New function.
2194 (darwin_load_image_infos): Call darwin_dyld_version_ok.
2195 (darwin_current_sos): Ditto.
2196 (darwin_solib_create_inferior_hook): Ditto.
2197
f192ea96
TG
21982009-10-13 Tristan Gingold <gingold@adacore.com>
2199
2200 * machoread.c: Add an empty line after comment for functions.
2201 (oso_el_compare_name): New function.
2202 (macho_add_oso_symfile): New function.
2203 (macho_oso_symfile): Use macho_add_oso_symfile. Sort the oso
2204 and optimize accesses to libraries.
2205
e361b228
TG
22062009-10-13 Tristan Gingold <gingold@adacore.com>
2207
2208 * objfiles.c (objfile_has_symbols): New function.
2209 * objfiles.h (objfile_has_symbols): Add prototype.
2210 * symfile.c (symbol_file_add_with_addrs_or_offsets): Call
2211 objfile_has_symbols.
2212 (reread_symbols): Ditto.
2213
3800e645
MS
22142009-10-12 Jiang Jilin <freephp@gmail.com>
2215
2216 * i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
2217 instructions support.
2218
8903eff6
PA
22192009-10-11 Pedro Alves <pedro@codesourcery.com>
2220
2221 * procfs.c (procfs_make_note_section): Go back to only outputing
2222 an NT_PSTATUS note when UNIXWARE is defined.
2223
9108f110
DJ
22242009-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2225
2226 * features/xinclude.dtd: Correct EMPTY typo.
2227
7afee700
MS
22282009-10-10 Michael Snyder <msnyder@vmware.com>
2229
2230 * i386-tdep.c (i386_process_record): Or-equals, not not-equals.
2231
d6fd4674
PA
22322009-10-10 Pedro Alves <pedro@codesourcery.com>
2233
2234 * mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
2235 Put "break" statements on their own line.
2236
28736962
PA
22372009-10-09 Pedro Alves <pedro@codesourcery.com>
2238
2239 * linux-nat.c (linux_nat_wait_1): Bail out, if TARGET_WNOHANG and
2240 we found no event while waiting for a specific LWP.
2241 * infrun.c (handle_inferior_event): Handle TARGET_WAITKIND_IGNORE
2242 before anything else.
2243
651c8d2d
PA
22442009-10-09 Pedro Alves <pedro@codesourcery.com>
2245
2246 * procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
2247 note when NEW_PROC_API is defined.
2248
3cdd9356
PA
22492009-10-09 Pedro Alves <pedro@codesourcery.com>
2250
2251 * corelow.c (core_has_fake_pid): New.
2252 (core_close): Clear it.
2253 (add_to_thread_list): Fake a pid if one is not found on a Solaris
2254 core. Add the inferior here. Always add the thread, don't use
2255 thread_change_ptid.
2256 (core_open): Don't add the main thread or the inferior here unless
2257 we find that the core had no .reg/NN sections.
2258 (get_core_register_section): Handle Solaris cores with fake pids.
2259
62f33d08
PA
2260 * corelow.c (add_to_thread_list): Fix typo.
2261
1800f484
PP
22622009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
2263
2264 PR gdb/10457
2265 * elfread.c (elf_symtab_read): Don't use alloca in a loop.
2266
fc5abaae
JK
22672009-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2268
2269 * i386-nat.c (i386_stopped_by_hwbp): Remove.
2270
22712009-10-07 Joel Brobecker <brobecker@adacore.com>
abc7453d
JB
2272
2273 * NEWS: Update following the GDB 7.0 release.
2274
905e0470
PM
22752009-10-07 Pierre Muller <muller@ics.u-strasbg.fr>
2276
2277 ARI fix: OP eol rule.
2278 * doublest.c (floatformat_from_length): Avoid operator at end of line.
2279 * dwarf2-frame.c (dwarf2_build_frame_info): Idem.
2280 * dwarf2read.c (read_array_order, dwarf_decode_macros): Idem.
2281 * eval.c (evaluate_subexp_standard): Idem.
2282 * event-loop.c (create_timer, handle_timer_event): Idem.
2283 * expprint.c (print_subexp_standard): Idem.
2284 * f-exp.y (variable): Idem.
2285 * f-typeprint.c (f_print_type): Idem.
2286
5aafa1cc
PM
22872009-10-06 Pierre Muller <muller@ics.u-strasbg.fr>
2288
2289 ARI fix: OP eol rule.
2290 * blockframe.c (find_pc_partial_function): Avoid operator at end of
2291 line.
2292 * buildsym.c (find_symbol_in_list): Idem.
2293 (start_subfile, patch_subfile_names): Idem.
2294 * c-exp.y (variable, yylex): Idem.
2295 * c-typeprint.c (c_print_type, c_type_print_base): Idem.
2296 * c-valprint.c (c_val_print): Idem.
2297 * coffread.c (patch_opaque_types, process_coff_symbol): Idem.
2298 * corelow.c (core_open): Idem.
2299 * cris-tdep.c (move_reg_to_mem_movem_op): Idem.
2300 * cli/cli-decode.c (help_cmd_list, find_command_name_length): Idem.
2301
f8bf5763
PM
23022009-10-06 Pierre Muller <muller@ics.u-strasbg.fr>
2303
2304 ARI fix: OP eol rule.
2305 * ada-exp.y (block_lookup): Avoid operator at end of line.
2306 * aix-thread.c (pd_enable): Idem.
2307 * alpha-tdep.c (alpha_next_pc): Idem.
2308 * arm-tdep.c (arm_skip_prologue, arm_scan_prologue): Idem.
2309 (condition_true, coff_sym_is_thumb): Idem.
2310
0969f4e9 23112009-10-06 Joel Brobecker <brobecker@adacore.com>
2312
2313 GDB 7.0 released.
2314
67e5d36c
PM
23152009-10-06 Pierre Muller <muller@ics.u-strasbg.fr>
2316
37e5cb2b
JB
2317 ARI fix: "%p" rule.
2318 * target.c (debug_to_thread_architecture): Replace %p by %s using
67e5d36c
PM
2319 host_address_to_string function.
2320
15c19d39
TG
23212009-10-06 Tristan Gingold <gingold@adacore.com>
2322
2323 * darwin-nat.c: Add __TEXT __info_plist content.
2324 (darwin_attach_pid): Update error message.
2325
3e6b0399
JB
23262009-10-06 Joel Brobecker <brobecker@adacore.com>
2327
2328 * MAINTAINERS: Add Tristan Gingold as Maintainer of the Darwin port.
2329
606139a1
JB
23302009-10-06 Joel Brobecker <brobecker@adacore.com>
2331
2332 * MAINTAINERS: Add Jan Kratochvil as Maintainer of the ia64 target.
2333
5b564bb7
PA
23342009-10-05 Pedro Alves <pedro@codesourcery.com>
2335
2336 Revert:
2337 2009-10-04 Pedro Alves <pedro@codesourcery.com>
2338 * gdbinit.in: Set data-directory to @srcdir@.
2339
11ade57a
PA
23402009-10-04 Pedro Alves <pedro@codesourcery.com>
2341
2342 * NEWS: Mention non-stop mode.
2343
d166c213
PA
23442009-10-04 Pedro Alves <pedro@codesourcery.com>
2345
2346 * gdbinit.in: Set data-directory to @srcdir@.
2347
ca2163eb
PA
23482009-10-02 Pedro Alves <pedro@codesourcery.com>
2349
2350 * linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
2351 (SYSCALL_SIGTRAP): New.
2352 (status_to_str): Adjust.
2353 (get_pending_status): Pending events in lp->waitstatus don't map
2354 to any signal. Simplify.
2355 (linux_handle_syscall_trap): New.
2356 (linux_handle_extended_wait): When handling PTRACE_EVENT_CLONE
2357 events, use linux_ops->to_resume instead of direct ptrace with
2358 PTRACE_CONT. Remove all TRAP_IS_SYSCALL handling.
2359 (wait_lwp): Handle syscall traps with linux_handle_syscall_trap,
2360 and clear the sysgood bit.
2361 (status_callback): Make it clearer and add comments.
2362 (cancel_breakpoints_callback): Ignore if LP has waitstatus set.
2363 (linux_nat_filter_event): Handle syscall traps with
2364 linux_handle_syscall_trap, and clear the sysgood bit. Move the
2365 check for storing siginfo to after handling extended statuses and
2366 syscall traps. Store status in the lwp object.
2367 (linux_wait_1): Don't swap the pending status out of the lwp
2368 object until after deciding we found an lwp with an interesting
2369 event. Requeue a new pending signal if we find one while getting
2370 rid or a pending SIGSTOP we sent ourselves. Don't clear the
2371 sysgood bit here.
2372
2373 * infrun.c (deal_with_syscall_event): Rename to ...
2374 (handle_syscall_event): ... this. Always context switch and set
2375 stop_pc, even if not catching the syscall. If not catching the
2376 syscall, always resume with keep_going.
2377 (handle_inferior_event): Adjust.
2378
a71e0887
JK
23792009-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 Fix compatibility of --with-system-readline and readline-6.0+.
2382 * configure.ac <--with-system-readline> (for readline_echoing_p): New
2383 test.
2384 * config.in: Regenerate.
2385 * configure: Regenerate.
2386
c838b516
JB
23872009-10-01 Joel Brobecker <brobecker@adacore.com>
2388
2389 * MAINTAINERS: Move Don Lee to the correct section (Write After
2390 Approval).
2391
2f2da8f6
PM
23922009-10-01 Phil Muldoon <pmuldoon@redhat.com>
2393
2394 * infcall.c (call_function_by_hand): Add a new cleanup branch for
2395 std::terminate breakpoints.
2396
e453266f
JK
23972009-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2398
2399 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): New variable buf.
2400 Check first the descriptor memory is readable.
2401
31158f0e
TT
24022009-09-29 Tom Tromey <tromey@redhat.com>
2403
2404 * python/py-value.c (valpy_string): NULL-terminate 'keywords'.
2405
beaabab2
UW
24062009-09-29 Ulrich Weigand <uweigand@de.ibm.com>
2407
2408 * s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
2409 instead of CORE_ADDR for "amode".
2410
ca8b5032
JB
24112009-09-29 Joel Brobecker <brobecker@adacore.com>
2412
2413 * ia64-tdep.c: Update the comments on how we insert/remove
2414 breakpoints for L-X instructions.
2415 (ia64_memory_insert_breakpoint, ia64_memory_remove_breakpoint):
2416 Update the comments inside these functions.
2417
99e40580
UW
24182009-09-28 Ulrich Weigand <uweigand@de.ibm.com>
2419
2420 * gdbarch.sh (displaced_step_hw_singlestep): New callback.
2421 * gdbarch.c, gdbarch.h: Regenerate.
2422 * arch-utils.c (default_displaced_step_hw_singlestep): New function.
2423 * arch-utils.h (default_displaced_step_hw_singlestep): Add prototype.
2424
2425 * ppc-linux-tdep.c (ppc_displaced_step_hw_singlestep): New function.
2426 (rs6000_gdbarch_init): Install it.
2427
2428 * infrun.c (displaced_step_fixup): Use new callback to determine
2429 whether to "step" or "continue" displaced copy.
2430 (resume): Likewise. Do not call maybe_software_singlestep
2431 for displaced stepping.
2432 (maybe_software_singlestep): Do not handle displaced stepping.
2433
69368a60
UW
24342009-09-28 Ulrich Weigand <uweigand@de.ibm.com>
2435
2436 * eval.c (evaluate_subexp_standard) [OP_OBJC_MSGCALL]: Support
2437 platforms that use function descriptors. Prefer to use function
2438 pointer types instead of function types.
2439 * linespec.c (decode_objc): Support function descriptors. Fully
2440 initialize SAL result.
2441 * objc-lang.c (find_methods): Support function descriptors.
2442 Do not require function symbol to point to text section.
2443
2444 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): When calling
2445 via a function pointer, use the descriptor it points to.
2446
73a9714c
JB
24472009-09-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2448
2449 Fix ia64 breakpoints in the L-X slot.
2450 * ia64-tdep.c (ia64_memory_insert_breakpoint): Extend the comment.
2451 New variable shadow_slotnum, use it appropriately instead of slotnum.
2452 Move shadow_len initialization before SLOTNUM adjustment, cover now the
2453 whole remaining bundle. Error now on breakpoints requested for the
2454 slot 2 of L-X bundles. Better sanity check the requested slot 1 of L-X
2455 bundles.
2456 (ia64_memory_remove_breakpoint): New variable shadow_slotnum, use it
2457 appropriately instead of slotnum. Warn now on breakpoints requested
2458 for the slot 2 of L-X bundles. Better sanity check the requested slot
2459 1 of L-X bundles. Update the assertio check of PLACED_SIZE.
2460 (ia64_breakpoint_from_pc): New variable shadow_slotnum, use it
2461 appropriately instead of slotnum. Move *lenptr initialization before
2462 SLOTNUM adjustment, cover now the whole remaining bundle. Error now
2463 on breakpoints requested for the slot 2 of L-X bundles. Better sanity
2464 check the requested slot 1 of L-X bundles. Simplify the returned
2465 expression.
2466
35ec2a3e
JB
24672009-09-28 Joel Brobecker <brobecker@adacore.com>
2468
2469 * ia64-tdep.c (ia64_memory_insert_breakpoint): Check the slotnum
2470 and the type of instruction before deciding which slot to save
2471 in the breakpoint shadown contents.
2472
206aa767
DE
24732009-09-28 Doug Evans <dje@google.com>
2474
2475 * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.
66d990c7
DE
2476 (TRAP_REMOVE_SYSCALL_FLAG): New macro.
2477 (linux_nat_wait_1): Mask off is-syscall bit in wait status for
2478 TRAP_IS_SYSCALL before passing value to caller.
206aa767 2479
2d88202a
UW
24802009-09-28 Ulrich Weigand <uweigand@de.ibm.com>
2481
2482 * valops.c (value_assign): Respect parent offset when
2483 assigning to a bitfield.
2484
926569ae
HZ
24852009-09-28 Hui Zhu <teawater@gmail.com>
2486
2487 * i386-tdep.c (i386_process_record): Remove "0x" that
2488 don't need.
2489
1db4e8a0
UW
24902009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2491
2492 * s390-tdep.c (op_bctr, op_bctgr, op_bct, op1_bctg, op2_bctg,
2493 op_bxh, op1_bxhg, op2_bxhg, op_bxle, op1_bxleg, op2_bxleg,
2494 op1_brct, op2_brct, op1_brctg, op2_brctg, op_brxh, op1_brxhg,
2495 op2_brxhg, op_brxle, op1_brxlg, op2_brxlg): New enum values.
2496 (is_rsi, is_rie): New insn format decoder routines.
2497 (s390_displaced_step_fixup): New function.
2498 (s390_gdbarch_init): Install displaced stepping routines.
2499
1ba3a4f4
UW
25002009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2501
2502 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*):
2503 Add linux-tdep.o to gdb_target_obs.
2504 (s390*-*-*): Likewise.
2505
5b6912fb
DL
25062009-09-27 Don Lee <don.lee@sunplusct.com>
2507
2508 * score-tdep.c: Comment out some simulator dependent codes.
2509 * score-tdep.h: Delete some simulator dependent macro definitions.
2510
5d40bb85
HZ
25112009-09-27 Hui Zhu <teawater@gmail.com>
2512
2513 * record.c (record_open): Change "query" to "error".
2514 (cmd_record_stop): Change "query" to "printf_unfiltered".
2515
087b74b2
PM
25162009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2517
2518 * i386-nat.c (i386_stopped_data_address): Also check that
2519 hitted watch register is not vacant.
2520
96c07c5b
TT
25212009-09-25 Tom Tromey <tromey@redhat.com>
2522
2523 PR python/10664:
2524 * language.h (struct language_defn) <la_get_string>: Add
2525 'char_type' argument.
2526 (LA_GET_STRING): Likewise.
2527 (default_get_string, c_get_string): Update.
2528 * language.c (default_get_string): Add 'char_type' argument.
2529 * c-valprint.c (c_textual_element_type): Rename from
2530 textual_element_type. No longer static. Update callers.
2531 * c-lang.h (c_textual_element_type): Declare.
2532 * c-lang.c (c_get_string): Add 'char_type' argument.
2533
b8899f2b
TT
25342009-09-25 Tom Tromey <tromey@redhat.com>
2535
2536 * charset.c (iconv_open): Use UTF-16 and UTF-32, not UCS-2 and
2537 UCS-4.
2538 (iconv): Rename 'ucs_flag'.
2539 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
2540 * c-lang.c (charset_for_string_type): Use UTF-16 and UTF-32, not
2541 UCS-2 and UCS-4.
2542 (convert_ucn): Use UTF-32.
2543
b7c31329
NR
25442009-09-25 Nick Roberts <nickrob@snap.net.nz>
2545
2546 * mi/gdb-mi.el: Remove file.
2547
604ad007
JB
25482009-09-23 Joel Brobecker <brobecker@adacore.com>
2549
2550 * record.c (record_open, record_store_registers, record_xfer_partial):
2551 Replace calls to nquery by calls to query.
2552
20bb6bc8
TT
25532009-09-23 John Wright <john.wright@hp.com>
2554
2555 PR gdb/10684:
2556 * event-top.c (command_line_handler): Terminate linebuffer before
2557 xstrdup.
2558
69e2bf17
JB
25592009-09-22 Joel Brobecker <brobecker@adacore.com>
2560
2561 * solib.c (solib_bfd_open): Relax a bit the compatibility check.
2562
c4e86dd4
DJ
25632009-09-22 Daniel Jacobowitz <dan@codesourcery.com>
2564
2565 * source.c (forget_cached_source_info): Clear last_source_visited.
2566 (init_last_source_visited): Delete.
2567 (directory_command): Do not clear last_source_visited. Call
2568 forget_cached_source_info only if required.
2569 (unset_substitute_path_command, set_substitute_path_command): Call
2570 forget_cached_source_info.
2571 * mi/mi-cmd-env.c (mi_cmd_env_dir): Do not call
2572 init_last_source_visited.
2573 * defs.h (init_last_source_visited): Delete declaration.
2574
89fa5381
TT
25752009-09-22 Tom Tromey <tromey@redhat.com>
2576
2577 PR gdb/10583:
2578 * python/py-value.c (valpy_int): Use PyLong_FromLongLong.
2579 (valpy_long): Likewise.
2580
329719ec
TT
25812009-09-22 Tom Tromey <tromey@redhat.com>
2582
2583 PR python/10680:
2584 * eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
2585 functions in EVAL_AVOID_SIDE_EFFECTS case.
2586
a13d7b90
JZ
25872009-09-22 Jie Zhang <jie.zhang@analog.com>
2588
2589 * MAINTAINERS: Add myself under Write After Approval.
2590
bb0613a5
PM
25912009-09-22 Pierre Muller <muller@ics.u-strasbg.fr>
2592
2593 * windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
2594
12907978
KS
25952009-09-18 Keith Seitz <keiths@redhat.com>
2596
2597 * cp-support.h (cp_validate_operator): Declare new function.
2598 * cp-support.c (cp_validate_operator): New function.
2599 * linespec.c (decode_compound): For C++ check for a valid operator.
2600
e8269d5f
KS
26012009-09-21 Keith Seitz <keiths@redhat.com>
2602
2603 * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
2604 that a type is not an aggregate type.
2605
ce0420dc
TT
26062009-09-21 Jason Orendorff <jason.orendorff@gmail.com>
2607
2608 PR python/10666:
2609 * python/py-function.c (fnpy_init): Use xstrdup.
2610
4f412fd0
JZ
26112009-09-21 Jie Zhang <jie.zhang@analog.com>
2612
2613 * doc/gdb.texinfo: Escape "{" and "}".
2614
7a9fe101
PM
26152009-09-21 Phil Muldoon <pmuldoon@redhat.com>
2616
2617 PR python/10633
2618
2619 * c-lang.c (c_printstr): Do not loop past options->print_max when
2620 iterating with wchar_iterate.
2621
2e4d963f
PM
26222009-09-21 Phil Muldoon <pmuldoon@redhat.com>
2623
2624 * python/py-value.c (valpy_getitem): Test value before allowing
2625 subscript operation.
2626
cdfbdf30
HZ
26272009-09-21 Hui Zhu <teawater@gmail.com>
2628 Michael Snyder <msnyder@vmware.com>
2629
2630 * amd64-linux-tdep.c (amd64_all_but_ip_registers_record): New
2631 function.
2632 (amd64_linux_syscall_record): Call
2633 amd64_all_but_ip_registers_record if syscall is
2634 sys_rt_sigreturn.
2635 (AMD64_LINUX_redzone, AMD64_LINUX_xstate,
2636 AMD64_LINUX_frame_size): New macros.
2637 (amd64_linux_record_signal): New function.
2638 (amd64_linux_init_abi): Call set_gdbarch_process_record_signal.
2639
8a2e0e28
HZ
26402009-09-21 Hui Zhu <teawater@gmail.com>
2641 Michael Snyder <msnyder@vmware.com>
2642
2643 * i386-linux-tdep.c (i386_all_but_ip_registers_record): New
2644 function.
2645 (i386_linux_intx80_sysenter_record): Call
2646 i386_all_but_ip_registers_record if syscall is sys_sigreturn
2647 or sys_rt_sigreturn.
2648 (I386_LINUX_xstate, I386_LINUX_frame_size): New macros.
2649 (i386_linux_record_signal): New function.
2650 (i386_linux_init_abi): Call set_gdbarch_process_record_signal.
2651
8b739a96
HZ
26522009-09-21 Hui Zhu <teawater@gmail.com>
2653 Michael Snyder <msnyder@vmware.com>
2654
2655 * record.c (record_end_entry): New struct.
2656 (record_type): Add end.
2657 (record_arch_list_add_end): Set rec->u.end.sigval to
2658 TARGET_SIGNAL_0.
2659 (record_message_args): New struct.
2660 (record_message): Call gdbarch_process_record_signal.
2661 (do_record_message): Add argument "signal".
2662 (record_resume): Ditto.
2663 (record_wait): Ditto. Check record_list->u.end.sigval
2664 in replay mode.
2665
3846b520
HZ
26662009-09-21 Hui Zhu <teawater@gmail.com>
2667 Michael Snyder <msnyder@vmware.com>
2668
2669 * gdbarch.sh (process_record_signal): New interface.
2670
26f9bcee
JB
26712009-09-19 Matt Rice <ratmice@gmail.com> (tiny change)
2672
2673 Checked in by Joel Brobecker <brobecker@gnat.com>
2674 * varobj.c (varobj_update): Initialize children_changed.
2675
654e7c1f
VP
26762009-09-19 Vladimir Prus <vladimir@codesourcery.com>
2677
2678 * mi/mi-cmd-stack.c (list_args_or_locals): Workaround
2679 gcc warning.
2680
daf3c977
VP
26812009-09-19 Vladimir Prus <vladimir@codesourcery.com>
2682
2683 * mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare.
2684 * mi/mi-cmds.c (mi_cmds): Register -stack-list-variables.
2685 * mi/mi-cmd-stack.c (enum what_to_list): New.
2686 (list_args_or_locals): Accept what_to_list parameter.
2687 Use 'variables' as output name of all are requested.
2688 (mi_cmd_stack_list_variables): New.
2689 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Adjust.
2690
3145548f
EZ
26912009-09-19 Eli Zaretskii <eliz@gnu.org>
2692
2693 * config/djgpp/fnchange.lst: Add missing edits.
2694
8179e739
MG
26952009-09-18 Maxim Grigoriev <maxim2405@gmail.com>
2696
2697 * xtensa-tdep.c (call0_analyze_prologue): Replace INT_MAX by UNIT_MAX.
2698
adb7f338
JK
26992009-09-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2700
2701 * objfiles.c (free_objfile): Clear SYMFILE_OBJFILE if it is OBJFILE.
2702 * rs6000-nat.c (vmap_ldinfo): Only assertion check SYMFILE_OBJFILE now.
2703 * symfile.c (syms_from_objfile, symbol_file_clear): Likewise.
2704
27052009-09-18 Ulrich Weigand <uweigand@de.ibm.com>
db9f5df8
UW
2706
2707 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add v2_double
2708 union member.
2709
01dedca2
JB
27102009-09-17 Joel Brobecker <brobecker@adacore.com>
2711
2712 Fix a build failure on pa-hpux:
2713 * gdb_ptrace.h (PT_SYSCALL): Define here if not already defined.
2714 * inf-ttrace.c (inf_ttrace_wait): Fix compilation failure
2715 introduced after field syscall_id inside struct target_waitstatus
2716 has been renamed into syscall_number.
2717
11e6390e
L
27182009-09-16 H.J. Lu <hongjiu.lu@intel.com>
2719
2720 PR gdb/10649
2721 * Makefile.in (GDB_DATADIR_PATH): Renamed to ...
2722 (GDB_DATADIR): This.
2723 (xml-syscall-install): Updated.
2724
191cfd08 27252009-09-16 Joel Brobecker <brobecker@adacore.com>
2726
2727 GDB 7.0 branch created (branch timestamp: 2009-09-16 19:00 UTC)
2728 * version.in: Bump version to 7.0.50.20090916-cvs.
2729
0cc7d26f
TT
27302009-09-15 Tom Tromey <tromey@redhat.com>
2731
2732 * varobj.h (varobj_update_result_t) <new>: New field.
2733 (varobj_get_child_range, varobj_set_child_range): Declare.
2734 (varobj_list_children): Update.
2735 (varobj_enable_pretty_printing, varobj_has_more)
2736 (varobj_pretty_printed_p): Declare.
2737 * varobj.c (pretty_printing): New global.
2738 (varobj_enable_pretty_printing): New function.
2739 (struct varobj_root) <from, to, constructor, child_iter,
2740 saved_item>: New fields.
2741 (varobj_create): Don't call install_default_visualizer.
2742 (instantiate_pretty_printer): Don't use value_copy.
2743 (varobj_has_more): New function.
2744 (restrict_range): New function.
2745 (install_dynamic_child): Likewise.
2746 (dynamic_varobj_has_child_method): Likewise.
2747 (update_dynamic_varobj_children): Remove 'new_and_unchanged'
2748 argument; add 'new', 'unchanged', 'from', and 'to' arguments.
2749 Rewrite.
2750 (varobj_get_num_children): Call update_dynamic_varobj_children.
2751 (varobj_list_children): Add 'from' and 'to' arguments. Ignore
2752 result of update_dynamic_varobj_children. Don't call
2753 install_default_visualizer. Restrict result range.
2754 (varobj_add_child): Don't call install_default_visualizer.
2755 (varobj_pretty_printed_p): New function.
2756 (install_visualizer): Rewrite. Move earlier in file.
2757 (install_default_visualizer): Likewise.
2758 (construct_visualizer): New function.
2759 (install_new_value_visualizer): Likewise.
2760 (install_new_value): Don't call release_value. Special case
2761 pretty-printed objects. Use value_incref. Rearrange "changed"
2762 logic.
2763 (varobj_get_child_range): New function.
2764 (varobj_set_child_range): Likewise.
2765 (varobj_set_visualizer): Rewrite.
2766 (varobj_update): Rewrite pretty-printing logic.
2767 (new_variable): Initialize new fields.
2768 (free_variable): Destroy new fields.
2769 (value_of_root): Copy 'from' and 'to'.
2770 (my_value_of_variable): Handle pretty-printers.
2771 (value_get_print_value): Rework pretty-printing logic.
2772 (cplus_describe_child): Don't use release_value.
2773 * mi/mi-cmds.h (mi_cmd_enable_pretty_printing)
2774 (mi_cmd_var_set_update_range): Declare.
2775 * mi/mi-cmds.c (mi_cmds): Add enable-pretty-printing and
2776 var-set-update-range.
2777 * mi/mi-cmd-var.c (print_varobj): Update. Emit "dynamic"
2778 attribute.
2779 (mi_cmd_var_create): Emit "has_more" attribute.
2780 (mi_cmd_var_set_format): Plug memory leak.
2781 (mi_print_value_p): Replace 'type' argument with 'var'. Handle
2782 pretty-printed varobjs.
2783 (mi_cmd_var_list_children): Accept 'from' and 'to' arguments.
2784 Emit "has_more" attribute.
2785 (mi_cmd_var_evaluate_expression): Plug memory leak.
2786 (mi_cmd_var_assign): Likewise.
2787 (varobj_update_one): Likewise. Emit "dynamic", "has_more", and
2788 "new_children" attributes.
2789 (mi_cmd_enable_pretty_printing): New function.
2790 (mi_cmd_var_set_update_range): Likewise.
2791
7d4f32d3
DE
27922009-09-15 Doug Evans <dje@google.com>
2793
44353522
DE
2794 * dwarf2expr.h (dwarf_value_location): Add more comments describing
2795 enum values.
2796 (struct dwarf_stack_value): New struct.
2797 (struct dwarf_expr_context): Change type of `stack' from CORE_ADDR*
2798 to struct dwarf_stack_value*.
2799 (struct dwarf_expr_piece): Move `v.value' into its own struct, v.expr,
2800 all uses updated. Add v.expr.in_stack_memory.
2801 (dwarf_expr_push): Update declaration.
2802 (dwarf_expr_fetch_in_stack_memory): Declare.
2803 * dwarf2expr.c (dwarf_expr_grow_stack): Update calculation of
2804 size of stack value.
2805 (dwarf_expr_push): New arg in_stack_memory, all callers updated.
2806 (dwarf_expr_fetch_in_stack_memory): New function.
2807 (add_piece): Set in_stack_memory for non-literal values.
2808 (execute_stack_op): Allow ops to specify whether the value is on the
2809 program's stack.
2810 (execute_stack_op, case DW_OP_fbreg): Mark value as in stack memory.
2811 (execute_stack_op, case DW_OP_call_frame_cfa): Ditto.
2812 (execute_stack_op, case DW_OP_dup): Copy in_stack_memory flag.
2813 (execute_stack_op, cases DW_OP_pick, DW_OP_over): Ditto.
2814 (execute_stack_op, cases DW_OP_swap, DW_OP_rot): Update type of
2815 dwarf stack value.
2816 * dwarf2loc.c (read_pieced_value): Call read_stack for values known
2817 to be on the program's stack.
2818 (dwarf2_evaluate_loc_desc, case DWARF_VALUE_MEMORY): Call
2819 set_value_stack only for objects known to be in stack memory.
2820 * dwarf2-frame.c (execute_stack_op): New arg initial_in_stack_memory,
2821 all callers updated.
2822
7d4f32d3
DE
2823 * target.c (memory_xfer_partial): Pass correct length to dcache_update.
2824
8285870a
JK
28252009-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 Fix gcc-4.5 HEAD warnings for enum ada_operator.
2828 * Makefile.in (HFILES_NO_SRCDIR): Add ada-operator.inc.
2829 * ada-lang.h (enum ada_operator): Move it to ...
2830 * ada-operator.inc: ... a new file.
2831 * expression.h (enum exp_opcode): Include ada-operator.inc.
2832 New element OP_UNUSED_LAST. Update comment for OP_EXTENDED0.
2833
2834 Fix gcc-4.5 HEAD warnings for GDB_FORM_cached_string.
2835 * dwarf2read.c (GDB_FORM_cached_string)
2836 (dwarf_form_name <GDB_FORM_cached_string>): Remove.
2837 (struct attribute <dwarf_form>): Reduce the bit width.
2838 (struct attribute <string_is_canonical>, DW_STRING_IS_CANONICAL): New.
2839 (read_attribute_value <DW_FORM_string>)
2840 (read_attribute_value <DW_FORM_strp>): Initialize
2841 DW_STRING_IS_CANONICAL.
2842 (dwarf2_name, dump_die_shallow <DW_FORM_string>)
2843 (dump_die_shallow <DW_FORM_strp>): Update the code using former
2844 GDB_FORM_cached_string.
2845
a96d9b2e
SDJ
28462009-09-14 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2847
2848 * amd64-linux-tdep.c: Include xml-syscall.h header, define the XML
2849 syscall name for the architecture.
2850 (amd64_linux_get_syscall_number): New function.
2851 (amd64_linux_init_abi): Register the correct functions for syscall
2852 catchpoint; set the correct syscall file name.
2853 * breakpoint.c: New include: xml-syscall.h.
2854 (set_raw_breakpoint_without_location): Setting the parameters
2855 for the catch syscall feature.
2856 (insert_catch_syscall): New.
2857 (remove_catch_syscall): New.
2858 (breakpoint_hit_catch_syscall): New.
2859 (print_it_catch_syscall): New.
2860 (print_one_catch_syscall): New.
2861 (print_mention_catch_syscall): New.
2862 (catch_syscall_breakpoint_ops): New.
2863 (syscall_catchpoint_p): New.
2864 (create_catchpoint_without_mention): New.
2865 (create_catchpoint): Modified in order to use
2866 create_catchpoint_without_mention.
2867 (create_syscall_event_catchpoint): New.
2868 (clean_up_filters): New.
2869 (catch_syscall_split_args): New.
2870 (catch_syscall_command_1): New.
2871 (delete_breakpoint): Add cleanup for catch syscall.
2872 (is_syscall_catchpoint_enabled): New.
2873 (catch_syscall_enabled): New.
2874 (catching_syscall_number): New.
2875 (catch_syscall_completer): New completer function.
2876 (add_catch_command): Add the completer function for catchpoints.
2877 * breakpoint.h (syscalls_to_be_caught): New vector.
2878 (catch_syscall_enabled): New.
2879 (catching_syscall_number): New.
2880 * gdbarch.c: Regenerated.
2881 * gdbarch.h: Regenerated.
2882 * gdbarch.sh: Add syscall catchpoint functions and structures.
2883 (get_syscall_number): New.
2884 (UNKNOWN_SYSCALL): New definition.
2885 * i386-linux-nat.c (i386_linux_resume): Select the proper request
2886 to be made for ptrace() considering if we are catching syscalls
2887 or not.
2888 * i386-linux-tdep.c: Include xml-syscall.h header, define the XML
2889 syscall name for the architecture.
2890 (i386_linux_get_syscall_number): New.
2891 (i386_linux_init_abi): Register the correct functions for syscall
2892 catchpoint; set the correct syscall file name.
2893 * inf-child.c (inf_child_set_syscall_catchpoint): New.
2894 (inf_child_target): Assign default values to target_ops.
2895 * inf-ptrace.c (inf_ptrace_resume): Select the proper request
2896 to be made for ptrace() considering if we are catching syscalls
2897 or not.
2898 * inferior.h (struct inferior): Included new variables
2899 any_syscall_count, syscalls_counts and total_syscalls_count,
2900 used to keep track of requested syscall catchpoints.
2901 * infrun.c (resume): Add syscall catchpoint.
2902 (deal_with_syscall_event): New.
2903 (handle_inferior_event): Add syscall entry/return events.
2904 (inferior_has_called_syscall): New.
2905 * linux-nat.c: Define some helpful variables to track wether we have
2906 support for the needed ptrace option.
2907 (linux_test_for_tracesysgood): New.
2908 (linux_supports_tracesysgood): New.
2909 (linux_enable_tracesysgood): New.
2910 (linux_enable_event_reporting): Save the current used ptrace
2911 options.
2912 (linux_child_post_attach): Calling linux_enable_tracesysgood.
2913 (linux_child_post_startup_inferior): Likewise.
2914 (linux_child_set_syscall_catchpoint): New function.
2915 (linux_handle_extended_wait): Handle the case which the inferior stops
2916 because it has called or returned from a syscall.
2917 (linux_target_install_ops): Install the necessary functions to handle
2918 syscall catchpoints.
2919 * linux-nat.h (struct lwp_info): Include syscall_state into the
2920 structure, which indicates if we are in a syscall entry or return.
2921 * ppc-linux-tdep.c: Include xml-syscall.h header, define the XML
2922 syscall filename for the arch.
2923 (ppc_linux_get_syscall_number): New.
2924 (ppc_linux_init_abi): Register the correct functions for syscall
2925 catchpoint; setting the correct name for the XML syscall file.
2926 * target.c (update_current_target): Update/copy functions related to
2927 syscall catchpoint.
2928 (target_waitstatus_to_string): Add syscall catchpoint entry/return
2929 events.
2930 * target.h (struct target_waitstatus): Add syscall number.
2931 (struct syscall): New struct to hold information about syscalls
2932 in the system.
2933 (struct target_ops): Add ops for syscall catchpoint.
2934 (inferior_has_called_syscall): New.
2935 (target_set_syscall_catchpoint): New.
2936 * xml-support.c (xml_fetch_content_from_file): New function,
2937 transferred from xml-tdesc.c.
2938 * xml-support.h (xml_fetch_content_from_file): New.
2939 * xml-tdesc.c (fetch_xml_from_file): Function removed;
2940 transferred to xml-support.c.
2941 (file_read_description_xml): Updated to use the new
2942 xml_fetch_content_from_file function.
2943 * syscalls/gdb-syscalls.dtd: New definition file for syscall's XML
2944 support.
2945 * syscalls/amd64-linux.xml: New file containing information about
2946 syscalls for GNU/Linux systems that use amd64 architecture.
2947 * syscalls/i386-linux.xml: New file containing information about
2948 syscalls for GNU/Linux systems that use i386 architecture.
2949 * syscalls/ppc-linux.xml: New file containing information about
2950 syscalls for GNU/Linux systems that use PPC architecture.
2951 * syscalls/ppc64-linux.xml: New file containing information about
2952 syscalls for GNU/Linux systems that use PPC64 architecture.
2953 * xml-syscall.c: New file containing functions for manipulating
2954 syscall's XML files.
2955 * xml-syscall.h: New file, exporting the functions above mentioned.
2956 * Makefile.in: Support for relocatable GDB datadir and XML
2957 syscall.
2958 * NEWS: Added information about the catch syscall feature.
2959
41dcd03f
DE
29602009-09-14 Doug Evans <dje@google.com>
2961
2962 * target.c (memory_xfer_partial): Only update dcache after we know
2963 the write succeeded.
2964
00878c6e
PP
29652009-09-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2966
2967 *minsyms.c (lookup_minimal_symbol_by_pc_section_1): Assert non-NULL
2968 section.
2969 (lookup_minimal_symbol_by_pc_section): Check for NULL section.
2970 (lookup_minimal_symbol_by_pc): Adjust.
2971
6fbf07cd
PP
29722009-09-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2973
2974 * objfiles.c (qsort_cmp): Remove asserts.
2975 (insert_section_p, filter_debuginfo_sections): New function.
2976 (filter_overlapping_sections): Likewise.
2977 (update_section_map): Adjust.
00878c6e 2978
005ca36a
JB
29792009-09-13 Daniel Jacobowitz <dan@codesourcery.com>
2980
2981 * frame.c (get_frame_id): Default to outer_frame_id if the this_id
2982 method does not supply an ID. Assert that the result is not
2983 null_frame_id.
2984 (outer_frame_id): New.
2985 (frame_id_p): Accept outer_frame_id.
2986 (frame_id_eq): Allow outer_frame_id to be equal to itself.
2987 (frame_find_by_id): Revert previous local workarounds.
2988 (get_prev_frame_1): Adjust end-of-stack check to test outer_frame_id.
2989 * frame.h (null_frame_id, frame_id_p): Update comments.
2990 (outer_frame_id): Declare.
2991 * infrun.c (handle_inferior_event): Do not treat all steps from the
2992 outermost frame as subroutine calls.
2993
2994 * libunwind-frame.c (libunwind_frame_this_id): Do not clear THIS_ID.
2995 * hppa-tdep.c (hppa_stub_frame_this_id): Likewise.
2996 * ia64-tdep.c (ia64_frame_this_id): Likewise.
2997 (ia64_libunwind_frame_this_id, ia64_libunwind_sigtramp_frame_this_id):
2998 Use outer_frame_id instead of null_frame_id.
2999 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Use outer_frame_id.
3000 * i386obsd-tdep.c (i386obsd_trapframe_cache): Likewise.
3001 * inline-frame.c (inline_frame_this_id): Refuse outer_frame_id.
3002 * thread.c (restore_selected_frame): Update comment and remove
3003 frame_id_p check.
3004
c1bd65d0
DE
30052009-09-11 Doug Evans <dje@google.com>
3006
411c71a8
DE
3007 * dwarf2expr.c (execute_stack_op, case DW_OP_piece): Delete unused
3008 local addr_or_regnum.
3009
c1bd65d0
DE
3010 * objfiles.c (struct objfile_data): Delete member cleanup and replace
3011 with save, free.
3012 (register_objfile_data_with_cleanup): Delete arg cleanup and replace
3013 with save, free. All callers updated.
3014 (clear_objfile_data): Replace cleanup loop with separate save and
3015 free loops.
3016 * objfiles.h (register_objfile_data_with_cleanup): Update.
3017 * arm-tdep.c (arm_objfile_data_free): Renamed from
3018 arm_objfile_data_cleanup, all callers updated.
3019 * dwarf2read.c (dwarf2_per_objfile_free): Renamed from
3020 dwarf2_per_objfile_cleanup, all callers updated.
3021 * python/py-objfile.c (py_free_objfile): Renamed from clean_up_objfile,
3022 all callers updated.
3023 * python/py-type.c (save_objfile_types): Renamed from
3024 clean_up_objfile_types, all callers updated.
3025
cec03d70
TT
30262009-09-11 Tom Tromey <tromey@redhat.com>
3027
3028 * dwarf2loc.c (struct piece_closure) <arch>: New field.
3029 (dwarf2_evaluate_loc_desc): Update.
3030 (dwarf2_loc_desc_needs_frame): Likewise.
3031 (allocate_piece_closure): Initialize new field.
3032 (read_pieced_value): Update.
3033 (write_pieced_value): Update.
3034 (copy_pieced_value_closure): Update.
3035 * dwarf2expr.h (enum dwarf_value_location): New.
3036 (struct dwarf_expr_context) <in_reg>: Remove.
3037 <location, len, data>: New fields.
3038 (struct dwarf_expr_piece) <in_reg, value>: Remove.
3039 <location, v>: New fields.
3040 * dwarf2expr.c (add_piece): Remove in_reg, value arguments.
3041 Update.
3042 (require_composition): New function.
3043 (execute_stack_op): Update.
3044 <DW_OP_implicit_value, DW_OP_stack_value>: New cases.
3045 <DW_OP_reg0>: Set location, not in_reg.
3046 <DW_OP_regx>: Likewise. Use require_composition.
3047 <DW_OP_fbreg>: Update.
3048 <DW_OP_piece>: Likewise.
3049 * dwarf2-frame.c (execute_stack_op): Update.
3050
ce0bf488
AG
30512009-09-10 Anthony Green <green@moxielogic.com>
3052
3053 * moxie-tdep.c (moxie_analyze_prologue): Recognize new prologue
3054 sequences.
3055
40ab02ce
MS
30562009-09-10 Michael Snyder <msnyder@vmware.com>
3057
3058 * remote.c (PACKET_bc, PACKET_bs): New enums.
3059 (remote_protocol_features): Add ReverseStep, ReverseContinue.
3060 (remote_resume): Check for reverse capability.
3061 (_initialize_remote): Add packet config for "bs" and "bc" packets.
3062 * NEWS (new options): Mention set/show for "bs" and "bc" packets.
3063
910c5da8
JB
30642009-09-10 Joel Brobecker <brobecker@adacore.com>
3065
3066 * top.c (interactive_mode): New static variable.
3067 (show_interactive_mode): New function.
3068 (input_from_terminal_p): If interactive_mode is not auto, then
3069 use that rather than checking the stdin settings.
3070 (init_main): Add "set/show interactive-mode" command.
3071 * NEWS: Add entry for new "set/show interactive-mode" command.
3072
2c9e3c69
JB
30732009-09-10 Joel Brobecker <brobecker@adacore.com>
3074
3075 * configure.ac: Fix the names of the python source and object files
3076 following the renaming done in an earlier change.
3077 * configure: Regenerate.
3078
397dbc8b
JB
30792009-09-08 Joel Brobecker <brobecker@adacore.com>
3080
3081 Fix a build failure on AIX.
3082 * rs6000-nat.c (vmap_exec): Rewrite using target_get_section_table
3083 instead of relying on the to_sections/to_section_end target_ops
3084 field, since the latter have been removed in a previous patch.
3085
5172aecb
JB
30862009-09-08 Thiago Jung Bauermann <thiago.bauermann@gmail.com>
3087
3088 * Makefile.in (py-cmd.o): Renamed from python-cmd.o. Updated
3089 references.
3090 (py-frame.o): Renamed from python-frame.o. Updated references.
3091 (py-function.o): Renamed from python-function.o. Updated references.
3092 (py-objfile.o): Renamed from python-objfile.o. Updated references.
3093 (py-prettyprint.o): Renamed from python-prettyprint.o. Updated
3094 references.
3095 (py-type.o): Renamed from python-type.o. Updated references.
3096 (py-utils.o): Renamed from python-utils.o. Updated references.
3097 (py-value.o): Renamed from python-value.o. Updated references.
3098 * py-cmd.c: Renamed from python-cmd.c.
3099 * py-frame.c: Renamed from python-frame.c.
3100 * py-function.c: Renamed from python-function.c.
3101 * py-objfile.c: Renamed from python-objfile.c.
3102 * py-prettyprint.c: Renamed from python-prettyprint.c.
3103 * py-type.c: Renamed from python-type.c.
3104 * py-utils.c: Renamed from python-utils.c.
3105 * py-value.c: Renamed from python-value.c.
3106
b83e9eb7
JB
31072009-09-08 Joel Brobecker <brobecker@adacore.com>
3108
3109 Avoid quadratic behavior when computing the value of a register.
3110 * frame.c (frame_stash): New static constant.
3111 (frame_stash_add, frame_stash_find, frame_stash_invalidate):
3112 New functions.
3113 (get_frame_id): Minor reformatting. Add the frame to the frame stash.
3114 (frame_find_by_id): Search the frame stash first before walking all
3115 frames starting from te current_frame.
3116 (reinit_frame_stash): Add call to frame_stash_invalidate ();
3117
49e794ac
JB
31182009-09-08 Joel Brobecker <brobecker@adacore.com>
3119
3120 * block.c (contained_in): Return zero for nested functions.
3121 * blockframe.c (block_innermost_frame): Delete unreferenced local
3122 variable.
3123
9cf1b572
DE
31242009-09-08 Doug Evans <dje@google.com>
3125
3126 * target.c (initialize_targets): Fix thinko in stack_cache_enabled_p.
3127
13b6d1d4
MS
31282009-09-08 Michael Snyder <msnyder@vmware.com>
3129
3130 * amd64-linux-tdep.h (enum amd64_syscall): New enum consts,
3131 to replace literal consts used in amd64-linux-tdep.c
3132 * linux-record.h (enum gdb_syscall): New enum consts, to replace
3133 literal consts used in amd64-linux-tdep.c and linux-record.c.
3134 * amd64-linux-tdep.c (amd64_canonicalize_syscall): New function,
3135 translate from native amd64 Linux syscall id to internal gdb id.
3136 (amd64_linux_syscall_record): Switch statement abstracted out
3137 and replaced with a call to amd64_canonicalize_syscall.
3138 * linux-record.c (record_linux_system_call): Replace literal
3139 consts with enum consts.
3140 * i386-linux-tdep.c (i386_canonicalize_syscall): New function,
3141 trivially translate from native i386 Linux syscalls to gdb syscalls.
3142 (i386_linux_intx80_sysenter_record):
3143
a5bbabf3
RW
31442009-09-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3145
3146 * gdb/Makefile.in (check//%): Parse 'config.status --version'
3147 output to recreate the configuration from the testsuite directory,
3148 rather than running 'config.status --recheck' from a different
3149 build directory. Let configure do the recursion rather than
3150 doing it manually.
3151
a58162c2
JK
31522009-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 * ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups
3155 before a return.
3156
fbfaaae5
JK
31572009-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 * ia64-tdep.c (ia64_memory_insert_breakpoint)
3160 (ia64_memory_remove_breakpoint): Return immediately if any of memory
3161 reads fail. Do not combine the VAL values.
3162
b554e4bd
JK
31632009-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 Fix ia64 shadowing of breakpoints in multiple slots of a single bundle.
3166 * ia64-tdep.c (ia64_memory_insert_breakpoint): New call
3167 of make_show_memory_breakpoints_cleanup with parameter 0. Move the
3168 reading of SHADOW_CONTENTS to this memory state point of code. Update
3169 comment for the memory re-read.
3170
fda458ee
MS
31712009-09-07 Michael Snyder <msnyder@vmware.com>
3172
3173 * record.c: Minor comment and white space fix-ups.
3174
1390fcc2
JK
31752009-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * m68k-tdep.c (m68k_gdbarch_init): Allocate TDEP as cleared.
3178 * sparc-tdep.c (sparc32_gdbarch_init): Allocate TDEP as cleared.
3179 Remove explicit clearing of TDEP fields.
3180
d7877f7e
HZ
31812009-09-06 Hui Zhu <teawater@gmail.com>
3182
3183 * i386-tdep.c (i386_record_check_override): Deleted.
3184 (i386_record_lea_modrm): Ditto.
3185 (i386_process_record): Ditto.
3186
348e86d9
EZ
31872009-09-05 Eli Zaretskii <eliz@gnu.org>
3188
3189 * config/djgpp/djconfig.sh: Fix for Autoconf 2.64.
3190 * config/djgpp/config.sed: Fix for Autoconf 2.64.
3191
df61f520
HZ
31922009-09-05 Hui Zhu <teawater@gmail.com>
3193
3194 * i386-tdep.c (i386_record_s): Add orig_addr.
3195 (i386_record_check_override): New function.
3196 (i386_record_lea_modrm): Call i386_record_check_override.
3197 (i386_process_record): Ditto.
3198
052b9502
NF
31992009-09-03 Nathan Froyd <froydnj@codesourcery.com>
3200
3201 * dwarf2loc.c (struct piece_closure): New.
3202 (allocate_piece_closure): New function.
3203 (read_pieced_value): New function.
3204 (write_pieced_value): New function.
3205 (copy_pieced_value_closure): New function.
3206 (free_pieced_value_closure): New function.
3207 (pieced_value_funcs): Define.
3208 (dwarf2_evaluate_loc_desc): Return a computed value for a variable
3209 described with pieces.
3210
97b9747c
JB
32112009-09-03 Pierre Muller <muller@ics.u-strasbg.fr>
3212 Richard Earnshaw <rearnsha@arm.com>
3213
3214 * arm-tdep.c (displaced_write_reg): Replace call to abort by call
3215 to internal_error.
3216
e7802207
TT
32172009-09-02 Tom Tromey <tromey@redhat.com>
3218
3219 * frame.h (frame_unwinder_is): Declare.
3220 * frame.c (frame_unwinder_is): New function.
3221 * dwarf2loc.c: Include dwarf2-frame.h.
3222 (dwarf_expr_frame_cfa): New function.
3223 (dwarf2_evaluate_loc_desc): Use it.
3224 (needs_frame_frame_cfa): New function.
3225 (dwarf2_loc_desc_needs_frame): Use it.
3226 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_cfa>: New
3227 field.
3228 * dwarf2expr.c (execute_stack_op) <DW_OP_call_frame_cfa>: New
3229 case.
3230 * dwarf2-frame.h (dwarf2_frame_cfa): Declare.
3231 * dwarf2-frame.c (no_get_frame_cfa): New function.
3232 (execute_stack_op): Use it.
3233 (dwarf2_frame_cfa): New function.
3234
c9e78e0c
HZ
32352009-09-02 Hui Zhu <teawater@gmail.com>
3236
3237 * record.c (record_resume): Change "signal" to "siggnal".
3238
14c6ee20
HZ
32392009-09-01 Hui Zhu <teawater@gmail.com>
3240
3241 * record.c (record_resume): Change "siggnal" to "signal".
3242
88fef440
HZ
32432009-09-01 Hui Zhu <teawater@gmail.com>
3244
3245 * record.c (record_resume_siggnal): Deleted.
3246 (record_resume): Ditto.
3247 (record_wait): Change record_resume_siggnal to
3248 TARGET_SIGNAL_0.
3249
4e5d721f
DE
32502009-08-31 Jacob Potter <jdpotter@google.com>
3251 Doug Evans <dje@google.com>
3252
3253 Implement TARGET_OBJECT_STACK_MEMORY.
3254 * NEWS: Add note on new "set stack-cache" option.
3255 * corefile.c (read_stack): New function.
3256 * dcache.c (dcache_struct): New member ptid.
3257 (dcache_enable_p): Mark as obsolete.
3258 (show_dcache_enabled_p): Flag option as deprecated.
3259 (dcache_invalidate): Update ptid.
3260 (dcache_invalidate_line): New function.
3261 (dcache_read_line): No longer check cacheable attribute, stack
3262 accesses get cached despite attribute.
3263 (dcache_init): Set ptid.
3264 (dcache_xfer_memory): Flush cache if from different ptid than before.
3265 Update cache after write.
3266 (dcache_update): New function.
3267 (dcache_info): Report ptid.
3268 (_initialize_dcache): Update text for `remotecache' to indicate it
3269 is obsolete.
3270 * dcache.h (dcache_update): Declare.
3271 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Mark values on stack with
3272 set_value_stack.
3273 * frame-unwind.c (frame_unwind_got_memory): Ditto.
3274 * gdbcore.h (read_stack): Declare.
3275 * memattr.c (mem_enable_command): Call target_dcache_invalidate
3276 instead of dcache_invalidate.
3277 (mem_disable_command, mem_delete_command): Ditto.
3278 * target.c (stack_cache_enabled_p_1): New static global.
3279 (stack_cache_enabled_p): New static global.
3280 (set_stack_cache_enabled_p): New function.
3281 (show_stack_cache_enabled_p): New function.
3282 (target_dcache): Make static.
3283 (target_dcache_invalidate): New function.
3284 (target_load, target_resume): Call target_dcache_invalidate
3285 instead of dcache_invalidate.
3286 (memory_xfer_partial): New arg object, all callers updated.
3287 Check for existing inferior before calling dcache routines.
3288 When writing non-TARGET_OBJECT_STACK_MEMORY, notify dcache.
3289 (target_xfer_partial): Call memory_xfer_partial for
3290 TARGET_OBJECT_STACK_MEMORY.
3291 (target_read_stack): New function.
3292 (initialize_targets): Install new option `stack-cache'.
3293 * target.h: Remove #include of dcache.h.
3294 (enum target_object): New value TARGET_OBJECT_STACK_MEMORY.
3295 (target_dcache): Delete.
3296 (target_dcache_invalidate): Declare.
3297 (target_read_stack): Declare.
3298 * top.c (prepare_execute_command): New function.
3299 (execute_command): Call prepare_execute_command
3300 instead of free_all_values.
3301 * top.h (prepare_execute_command): Declare.
3302 * valops.c (get_value_at): New function.
3303 (value_at): Guts moved to get_value_at.
3304 (value_at_lazy): Similarly.
3305 (value_fetch_lazy): Call read_stack for stack values.
3306 * value.c (struct value): New member `stack'.
3307 (value_stack, set_value_stack): New functions.
3308 * value.h (value_stack, set_value_stack): Declare.
3309 * mi/mi-main.c (mi_cmd_execute): Call prepare_execute_command
3310 instead of free_all_values.
3311
77d7dc92
HZ
33122009-08-29 Hui Zhu <teawater@gmail.com>
3313
3314 * i386-tdep.c (i386_process_record): Fix the error of string
3315 ops instructions's handler.
3316
648bf667
DE
33172009-08-28 Doug Evans <dje@google.com>
3318
3319 * top.c (execute_command): Remove redundant comment.
3320
4a76eae5
DJ
33212009-08-28 Daniel Jacobowitz <dan@codesourcery.com>
3322
3323 PR gdb/10565
3324
3325 * value.c (value_primitive_field): Do not save value_offset for
3326 bitfields.
3327 (unpack_bits_as_long): Do not read an entire ULONGEST.
3328
d4b96c9a
JK
33292009-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 Support constant DW_AT_data_member_location by GCC PR debug/40659.
3332 * dwarf2read.c
3333 (dwarf2_add_field <DW_TAG_member> <DW_AT_data_member_location>):
3334 Initialize BYTE_OFFSET to 0 by default. Explicitly check if
3335 attr_form_is_block.
3336 (dwarf2_add_field <DW_TAG_inheritance> <DW_AT_data_member_location>)
3337 (read_common_block <DW_AT_data_member_location>): New variable
3338 byte_offset. Fix crash on non-DW_BLOCK ATTR values.
3339
12b1a979
HZ
33402009-08-28 Hui Zhu <teawater@gmail.com>
3341
3342 * record.c (record_list_release_next): Change the first
3343 record_reg to record_end.
3344
55333a84
DE
33452009-08-27 Doug Evans <dje@google.com>
3346
725e88af
DE
3347 * value.c (free_all_values): Tweak comment.
3348
55333a84
DE
3349 * NEWS: Add note on "info sharedlibrary".
3350 Remove note on "set print symbol-loading".
3351 * main.c (captured_main): Pass !batch for from_tty when calling
3352 symbol_file_add_main.
3353 * objfiles.h (objfile_has_partial_symbols): Declare.
3354 (objfile_has_full_symbols): Declare.
3355 * objfiles.c (objfile_has_partial_symbols): New function.
3356 (have_partial_symbols): Use it.
3357 (objfile_has_full_symbols): New function.
3358 (have_full_symbols): Use it.
3359 * solib.c: Include interps.h.
3360 (solib_read_symbols): Back out patch of 2008-07-10.
3361 Add test for info_verbose for symbol loading messages for
3362 consistency with symfile.c.
3363 (info_sharedlibrary_command): Handle optional parameter of regex of
3364 libraries to list. Inform user of libraries without debugging info.
3365 Rewrite to use ui_out routines to format output.
3366 * symfile.c (print_symbol_loading): Delete.
3367 (symbol_file_add_with_addrs_or_offsets): Back out patch of 2008-07-10.
3368 Print "no debugging symbols found" only if from_tty || info_verbose;
3369 and only check file being loaded, not all files.
3370 (reread_symbols): Test file being loaded for whether it has symbols,
3371 not all files.
3372 (__initialize_symfile): Delete `set print symbol-loading'.
3373 * symfile.h (print_symbol_loading): Delete.
3374
4e22772d
JK
33752009-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 * varobj.c (varobj_create): Error if the specified frame was not found
3378 and it is needed.
3379
d691bec7
MS
33802009-08-26 Michael Snyder <msnyder@vmware.com>
3381
3382 * i386-tdep.c (i386_process_record): Break out of prefix loop
3383 if not amd64. Otherwise inc/dec instructions are lost.
3384
ec7f2efe
KS
33852009-08-25 Keith Seitz <keiths@redhat.com>
3386
3387 * c-exp.y (yylex): Add cxx_only check for tokentab2 and tokentab3
3388 searches.
3389 (tokentab3): Add cxx_only for DOT_STAR.
3390
3a1ff0b6
PA
33912009-08-25 Pedro Alves <pedro@codesourcery.com>
3392
3393 * inferior.c (print_inferior): Align columns left. Remove header
3394 for the the "current" column. Rename column "Id" to "Num".
3395 Rename column "PID" to "Description". Print if there's no selected
3396 inferior.
3397
924d6a4f
JK
33982009-08-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3399
3400 Fix ia64 start crash when GDB built with -lmcheck.
3401 * ia64-tdep.c (ia64_gdbarch_init): Allocate TDEP as cleared. Remove
3402 specific clearing of TDEP SIGCONTEXT_REGISTER_ADDRESS and
3403 PC_IN_SIGTRAMP.
3404
c1af96a0
KS
34052009-08-24 Keith Seitz <keiths@redhat.com>
3406
3407 * c-exp.y (tokentab3): Add new token, ARROW_STAR. Changed all users.
3408 (tokentab2): Add new token, DOT_STAR. Changed all users.
3409
95699ff0
KS
34102009-08-24 Keith Seitz <keiths@redhat.com>
3411
3412 * symtab.c (default_make_symbol_completion_list): Keep
3413 ':', too, so that we can limit searches in namespaces
3414 and classes.
3415
f02779d8
TT
34162009-08-24 Tom Tromey <tromey@redhat.com>
3417
3418 * python/python-value.c (valpy_richcompare): Don't return from
3419 inside a TRY_CATCH.
3420
c462b41b
RW
34212009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3422
af542c2e
RW
3423 * CONTRIBUTE: Bump documented Autoconf version.
3424 * configure.ac: Do not substitute datarootdir, htmldir,
3425 pdfdir, docdir. Do not process --with-datarootdir,
3426 --with-htmldir, --with-pdfdir, --with-docdir.
3427 * configure: Regenerate.
3428
81ecdfbb
RW
3429 * aclocal.m4: Regenerate.
3430 * config.in: Likewise.
3431 * configure: Likewise.
3432 * gnulib/Makefile.in: Likewise.
3433
c462b41b
RW
3434 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of
3435 AC_GNU_SOURCE, AC_AIX, AC_ISC_POSIX.
3436
f93ea91d
PP
34372009-08-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3438
3439 * objfiles.h (gdb_bfd_ref): New prototype.
3440 * objfiles.c (gdb_bfd_ref): New function.
3441 (allocate_objfile): Call it.
3442 (gdb_bfd_unref): Adjust assertion.
3443 * solib.c (solib_map_sections): Add reference.
3444 (symbol_add_stub): Don't add reference here.
3445 * symfile.c (reread_symbols): Add reference.
3446
dfdbc9b4
DE
34472009-08-21 Ken Werner <ken@linux.vnet.ibm.com>
3448 Doug Evans <dje@google.com>
3449
3450 * jit.c (jit_event_handler): Use paddress to print target addresses.
3451 Wrap printf string in _().
3452
0756c555
DE
34532009-08-21 Doug Evans <dje@google.com>
3454
3455 * jit.c (jit_read_descriptor): New arg gdbarch, all callers updated.
3456 (jit_read_code_entry, jit_register_code): Ditto.
3457 (jit_event_handler): Ditto.
3458 (jit_inferior_init): Renamed from previous jit_inferior_created_hook.
3459 (jit_inferior_created_hook, jit_breakpoint_re_set): New functions.
3460 (jit_inferior_created_observer): Renamed from
3461 jit_inferior_created_hook1, all callers updated.
3462 * jit.h (jit_breakpoint_re_set): Declare.
3463 (jit_event_handler): Update prototype.
3464 * breakpoint.c (breakpoint_re_set): Call jit_breakpoint_re_set instead
3465 of jit_inferior_created_hook.
3466
90092760
HZ
34672009-08-21 Hui Zhu <teawater@gmail.com>
3468
3469 * record.c (record_wait): Change the argument of
3470 record_beneath_to_wait to options.
3471
25f122dc
DE
34722009-08-20 Jacob Potter <jdpotter@google.com>
3473
3474 Replace dcache with splay tree.
3475 Remove partially implemented writeback support.
3476 * dcache.c: Include splay-tree.h.
3477 (LINE_SIZE_POWER): Change from 5 to 6.
3478 (DCACHE_SIZE): Change from 64 to 4096.
3479 (ENTRY_INVALID, ENTRY_VALID, ENTRY_DIRTY): Delete.
3480 (state_chars): Delete.
3481 (struct dcache_block): Clean up; remove state and anydirty fields.
3482 (struct dcache_struct): Redefine as a splay tree and linked list.
3483 (last_cache): Make static.
3484 (dcache_invalidate, dcache_hit): Rewrite for new cache structure.
3485 (dcache_read_line, dcache_alloc): Rewrite for new cache structure.
3486 (dcache_write_line): Delete.
3487 (dcache_writeback): Delete.
3488 (dcache_peek_byte): Clean up; remove "invalid" state check.
3489 (dcache_poke_byte): Rewrite for new cache structure; clarify comment.
3490 (dcache_splay_tree_compare): New function.
3491 (dcache_init, dcache_free): Rewrite for new cache structure.
3492 (dcache_xfer_memory): Rewrite for new write-through cache structure.
3493 (dcache_print_line): New function.
3494 (dcache_info): Rewrite for new cache structure.
3495 (_initialize_dcache): Update "info dcache" help text.
3496 * dcache.h (dcache_xfer_memory): Update declaration.
3497 * target.c (memory_xfer_partial): Update calls to dcache_xfer_memory.
3498
34992009-08-19 Reid Kleckner <reid@kleckner.net>
4efc6507
DE
3500
3501 Add interface for JIT code generation.
3502 * NEWS: Announce JIT interface.
3503 * Makefile.in (SFILES): Add jit.c.
3504 (HFILES_NO_SRCDIR): Add jit.h.
3505 (COMMON_OBS): Add jit.o.
3506 * jit.c: New file.
3507 * jit.h: New file.
3508 * breakpoint.h (enum bptype): Add bp_jit_event to enum.
3509 * breakpoint.c:
3510 (update_breakpoints_after_exec): Delete jit breakpoints after exec.
3511 (bpstat_what): Update event table for bp_jit_event.
3512 (print_it_typical): Added case for bp_jit_event.
3513 (print_one_breakpoint_location): Added case for bp_jit_event.
3514 (allocate_bp_location): Added case for bp_jit_event.
3515 (mention): Added case for bp_jit_event.
3516 (delete_command): Added case for bp_jit_event.
3517 (breakpoint_re_set_one): Added case for bp_jit_event.
3518 (breakpoint_re_set): Added call to jit_inferior_created_hook.
3519 (create_jit_event_breakpoint): New.
3520 * infrun.c (handle_inferior_event): Add handler for jit event.
3521 (follow_exec): Add call to jit_inferior_created_hook.
3522
cab0c772
UW
35232009-08-19 Ulrich Weigand <uweigand@de.ibm.com>
3524
3525 * value.c (enum internalvar_kind): Replace INTERNALVAR_SCALAR by
3526 INTERNALVAR_INTEGER and INTERNALVAR_POINTER.
3527 (union internalvar_data): Replace "scalar" member by "integer"
3528 and "pointer".
3529 (value_of_internalvar): Handle INTERNALVAR_INTEGER and
3530 INTERNALVAR_POINTER instead of INTERNALVAR_SCALAR.
3531 (get_internalvar_integer): Likewise.
3532 (set_internalvar): Likewise.
3533 (set_internalvar_integer): Likewise.
3534 (preserve_one_internalvar): Likewise.
3535 (value_from_pointer): Handle typedef'd pointer types.
3536
1eefb858
TT
35372009-08-18 Tom Tromey <tromey@redhat.com>
3538
3539 * utils.c (add_internal_problem_command): Free set_doc and
3540 show_doc.
3541 * remote.c (add_packet_config_cmd): Free set_doc and show_doc.
3542 * language.c (add_language): Free language_set_doc.
3543
a8d1234e
TT
35442009-08-18 Tom Tromey <tromey@redhat.com>
3545
3546 * Makefile.in (ALL_TARGET_OBS): Remove prologue-value.o, solib.o.
3547
ff3536bc
UW
35482009-08-17 Ulrich Weigand <uweigand@de.ibm.com>
3549
3550 * symfile.c (reread_symbols): Call objfiles_changed *before*
3551 calling clear_symtab_users.
3552
872761f4
MS
35532009-08-17 Michael Snyder <msnyder@vmware.com>
3554
3555 * amd64-tdep.c: Add a frame unwinder for function epilogues.
3556 (amd64_in_function_epilogue_p): New function.
3557 (amd64_epilogue_frame_sniffer): New function.
3558 (amd64_epilogue_frame_cache): New function.
3559 (amd64_epilogue_frame_this_id): New function.
3560 (amd64_epilogue_frame_unwind): New struct frame_unwind.
3561 (amd64_init_abi): Hook the new unwinder.
3562
3563 * amd64-linux-tdep.c (amd64_linux_init_abi): Set gdbarch to use
3564 SVR4 method for skip_trampoline_code.
3565
f1f2b5f4
PA
35662009-08-17 Pedro Alves <pedro@codesourcery.com>>
3567
3568 * objfiles.c (objfile_relocate): Relocate the entry point before
3569 relocating the section offsets. Flush the section map before
3570 resetting breakpoints.
3571
7e960b20
DE
35722009-08-14 Doug Evans <dje@google.com>
3573
3574 * symfile.c (find_separate_debug_file): Remove double free of
3575 canon_name.
3576
b8fa0bfa
PA
35772009-08-14 Pedro Alves <pedro@codesourcery.com>
3578
3579 * top.c (any_thread_of): Delete.
3580 (kill_or_detach): Use any_thread_of_process.
3581 * top.c (print_inferior_quit_action): New.
3582 (quit_confirm): Rewrite to print info about all inferiors.
3583 * target.c (dispose_inferior): New.
3584 (target_preopen): Use it.
3585
759ef836
PA
35862009-08-14 Pedro Alves <pedro@codesourcery.com>
3587
3588 * ui-file.h (ui_file_xstrdup): Mention that the length argument
3589 may be NULL.
3590 * ui-file.c (ui_file_xstrdup): Don't dereference LENGTH if it is
3591 NULL.
3592 * aix-thread.c (aix_thread_extra_thread_info): Pass NULL as length
3593 parameter to ui_file_xstrdup.
3594 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3595 * infrun.c (print_target_wait_results): Ditto.
3596 * language.c (add_language): Ditto.
3597 * linespec.c (cplusplus_error): Ditto.
3598 * remote.c (escape_buffer): Ditto.
3599 * typeprint.c (type_to_string): Ditto.
3600 * utils.c (error_stream): Ditto.
3601 * varobj.c (value_get_print_value): Ditto.
3602 * xtensa-tdep.c (xtensa_verify_config): Replace `dummy' local with
3603 `length' local. Pass it to ui_file_xstrdup, and avoid an strlen
3604 call.
3605 * gdbarch.sh (verify_gdbarch): Ditto.
3606 * gdbarch.c: Regenerate.
3607 * cli/cli-setshow.c (do_setshow_command): Pass NULL as length
3608 parameter to ui_file_xstrdup.
3609 * python/python-frame.c (frapy_str): Ditto.
3610 * python/python-type.c (typy_str): Use the length local instead of
3611 calling strlen.
3612 * python/python-value.c (valpy_str): Pass NULL as length parameter
3613 to ui_file_xstrdup.
3614
6e0a4fbc
DE
36152009-08-13 Doug Evans <dje@google.com>
3616
3617 * utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
3618 instead of unsigned long.
3619
4e7a5ef5
TT
36202009-08-13 Tom Tromey <tromey@redhat.com>
3621
3622 * varobj.c (update_dynamic_varobj_children): Don't use
3623 value_copy.
3624 * value.h: (preserve_one_value): Declare.
3625 (value_prepend_to_list, value_remove_from_list): Remove.
3626 * value.c (preserve_one_value): No longer static.
3627 (preserve_values): Call preserve_python_values.
3628 (value_prepend_to_list): Remove.
3629 (value_remove_from_list): Remove.
3630 * python/python.h (values_in_python): Don't declare.
3631 (preserve_python_values): Declare.
3632 * python/python-value.c (values_in_python): Change type. Move
3633 lower. Now static.
3634 (struct value_object): Add struct tag.
3635 <next, prev>: New fields.
3636 (valpy_dealloc): Update.
3637 (note_value): New function.
3638 (valpy_new): Use value_incref, note_value.
3639 (preserve_python_values): New function.
3640 (valpy_positive): Don't use value_copy.
3641 (value_to_value_object): Use value_incref, note_value.
3642 (convert_value_from_python): Update comment.
3643
ecd0ada5
PA
36442009-08-13 Pedro Alves <pedro@codesourcery.com>
3645
3646 * remote.c (remote_pid_to_str): If printing a process id and we
3647 don't know what the remote pid could be, output "Remote target";
3648 otherwise, use normal_pid_to_str.
3649
078bc676
TT
36502009-08-13 Tom Tromey <tromey@redhat.com>
3651
3652 * language.h (longest_raw_hex_string): Remove unused declaration.
3653
b84aa90a
PA
36542009-08-13 Pedro Alves <pedro@codesourcery.com>
3655
3656 PR gdb/8869:
3657
3658 * language.c (language, type, range, case_sensitive): Make const.
3659 (show_language_command): Don't call deprecated_show_value_hack.
3660 Special case "auto".
3661 (set_language_command): An unrecognized language is now an
3662 internal error instead of a user error. Don't call set_lang_str.
3663 (show_type_command): Don't call deprecated_show_value_hack.
3664 Special case "auto". Use warning.
3665 (set_type_command): An unrecognized type is now an internal error
3666 instead of a user error. Output type check mismatch with language
3667 here. Don't call set_type_str.
3668 (show_range_command): Don't call deprecated_show_value_hack.
3669 Special case "auto". Use warning.
3670 (set_range_command): An unrecognized range check is now an
3671 internal error instead of a warning. Output range check mismatch
3672 with language here. Don't call set_range_str.
3673 (show_case_command): Don't call deprecated_show_value_hack.
3674 Special case "auto". Use warning.
3675 (set_case_command): Don't call set_case_str. An unrecognized case
3676 check is now an internal error instead of a warning. Output range
3677 check mismatch with language here. Don't call set_case_str.
3678 (set_type_range_case): Don't call set_type_str, set_range_str or
3679 set_case_str here.
3680 (set_lang_str, set_type_str, set_range_str, set_case_str): Delete.
3681 (add_language): Install or reinstall the "set language" command
3682 here, and make it an enum command. Build the enumeration and the
3683 help string from the current list of known languages.
3684 (_initialize_language): Don't install "set language" here. Make
3685 "set check type", "set check range" and "set case-sensitive" enum
3686 commands. Register the "auto" "local" and "unknown" languages in
3687 that order.
3688
5efd5804
PA
36892009-08-13 Pedro Alves <pedro@codesourcery.com>
3690
3691 Revert 2009-08-07 changes for PR gdb/8869:
3692
3693 * language.c (set_language_command): Strip whitespace.
3694 (set_type_command): Likewise.
3695 (set_range_command): Likewise.
3696
3697 * language.c (language_completer): New function.
3698 (range_or_type_completer): New function.
3699 (case_completer): New function.
3700 (_initialize_language): Set completers.
3701 * cli/cli-decode.c (add_setshow_string_cmd): Return the "set"
3702 command.
3703 (add_setshow_string_noescape_cmd): Likewise.
3704 (add_setshow_integer_cmd): Likewise.
3705 (add_setshow_uinteger_cmd): Likewise.
3706 (add_setshow_zinteger_cmd): Likewise.
3707 (add_setshow_zuinteger_cmd): Likewise.
3708 * command.h (add_setshow_string_cmd,
3709 add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd,
3710 add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
3711
cea39f65
MS
37122009-08-12 Michael Snyder <msnyder@vmware.com>
3713
3714 * remote.c (remote_add_inferior): Remove unused local.
3715 (remote_add_thread): Ditto.
3716 (read_ptid): Ditto.
3717 (remote_current_thread): Ditto.
3718 (remote_stop_ns): Ditto.
3719 (remote_parse_stop_reply): Ditto.
3720 (remote_get_pending_stop_replies): Ditto.
3721 (remote_wait_ns): Ditto.
3722 (remote_wait_as): Ditto.
3723 (send_g_packet): Ditto.
3724 (remote_fetch_registers): Ditto.
3725 (store_register_using_P): Ditto.
3726 (remote_store_registers): Ditto.
3727 (remote_remove_breakpoint): Ditto.
3728 (remote_write_qxfer): Ditto.
3729 (remote_read_qxfer): Ditto.
3730
4a227398
TT
37312009-08-11 Tom Tromey <tromey@redhat.com>
3732
3733 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make a cleanup.
3734 (dwarf2_loc_desc_needs_frame): Likewise.
3735 * dwarf2expr.h (make_cleanup_free_dwarf_expr_context): Declare.
3736 * dwarf2expr.c (free_dwarf_expr_context_cleanup): New function.
3737 (make_cleanup_free_dwarf_expr_context): Likewise.
3738 * dwarf2-frame.c (execute_stack_op): Make a cleanup.
3739
4f6f9936
JK
37402009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 * objfiles.c (gdb_bfd_unref): Use the bfd_usrdata accessor.
3743 * solib.c (symbol_add_stub): Likewise.
3744 * symfile.c (symfile_bfd_open): Assert BFD_USRDATA is NULL.
3745
3aad21cf
PP
37462009-08-10 Paul Pluzhnikov <ppluzhnikov@google.com>
3747
3748 * objfiles.c (qsort_cmp): Remove assert.
3749 (preferred_obj_section): New function.
3750 (update_section_map): Filter duplicates.
3751
023e4e81
TG
37522009-08-10 Tristan Gingold <gingold@adacore.com>
3753
3754 * solib-darwin.c (find_program_interpreter): Simplify the code by
3755 looking up for the load_dylinker command instead of reading the
3756 corresponding (but deprecated) section.
3757 (darwin_solib_create_inferior_hook): Adjust: do not free the
3758 interpreter path.
3759
48f09bc0
TG
37602009-08-10 Tristan Gingold <gingold@adacore.com>
3761
3762 * i386-darwin-tdep.c (i386_m128_p): New function.
3763 (i386_darwin_arg_type_alignment): Ditto.
3764 (i386_darwin_push_dummy_call): Ditto.
3765 (i386_darwin_init_abi): Define Darwin specific push_dummy_call.
3766 Adjust long_double size. Adjust pc offset in setjump buffer.
3767
952b2d63
HZ
37682009-08-10 Hui Zhu <teawater@gmail.com>
3769
3770 Add Linux AMD64 process record support.
3771
3772 * amd64-linux-tdep.c (amd64_linux_record_tdep): New variable.
3773 This struct has the argument for the function
3774 "record_linux_system_call".
3775 (amd64_linux_syscall_record): New function. Parse the
3776 system call instruction and call function
3777 "record_linux_system_call" to record execute log.
3778 (i386_linux_init_abi): Initialize "amd64_linux_record_tdep".
3779 Set "amd64_linux_syscall_record" to "i386_syscall_record".
3780
2c543fc4
HZ
37812009-08-10 Hui Zhu <teawater@gmail.com>
3782
3783 Add process record Linux system call 64 bits support.
3784
3785 * linux-record.h (linux_record_tdep): Add size_pointer,
3786 size_size_t, size_iovec and arg6. Change the values of
3787 size_int, size_long and size_ulong to
3788 gdbarch_int_bit (gdbarch) / TARGET_CHAR_BIT,
3789 gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT,
3790 gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT.
3791 * i386-linux-tdep.c (i386_linux_init_abi): Ditto.
3792 (i386_linux_intx80_sysenter_record): Add a check for system
3793 call number.
3794 * linux-record.c (record_linux_system_call): Make this
3795 function support 64 bits.
3796
cf648174
HZ
37972009-08-10 Hui Zhu <teawater@gmail.com>
3798
3799 Add AMD64 process record instruction set support.
3800
3801 * i386-tdep.h (gdbarch_tdep): Add record_regmap for registers
3802 because the AMD64's registers order in GDB is not same with
3803 I386 instructions.
3804 Add i386_syscall_record to be the syscall function handle
3805 interface.
3806 (record_i386_regnum): Number for record_regmap.
3807 * i386-tdep.c (OT_QUAD): For 64 bits.
3808 (i386_record_s): Add rex_x, rex_b, rip_offset and
3809 popl_esp_hack for AMD64 instruction set. And regmap for
3810 record_regmap.
3811 (i386_record_lea_modrm_addr): Support AMD64 instruction set
3812 64 bits lea.
3813 (i386_record_lea_modrm): Ditto.
3814 (i386_record_push): New function. Record the execution log
3815 of push.
3816 (I386_RECORD_ARCH_LIST_ADD_REG): New macro to record the
3817 register.
3818 (i386_process_record): Support AMD64 instruction set.
3819 * amd64-tdep.c (amd64_record_regmap): For record_regmap.
3820 (amd64_init_abi): Set amd64_record_regmap to record_regmap.
3821
891e7584
PA
38222009-08-08 Pedro Alves <pedro@codesourcery.com>
3823
3824 * bfd-target.c (struct target_bfd_data): New.
3825 (target_bfd_xfer_partial): Adjust to get at the section table from
3826 the new structure.
3827 (target_bfd_get_section_table): Ditto.
3828 (target_bfd_xclose): Ditto. Get the bfd pointer from the
3829 target_bfd_data structure, from the section table.
3830 (target_bfd_reopen): Store a struct target_bfd_data in the
3831 target_ops to_data field, instead of a target_section_table.
3832
280d8011
HZ
38332009-08-08 Aleksandar Ristovski <aristovski@qnx.com>
3834 Hui Zhu <teawater@gmail.com>
3835
3836 * record.c (record_store_registers): Remove unused variable.
3837
bda180e0
TT
38382009-08-07 Tom Tromey <tromey@redhat.com>
3839
3840 * language.c (set_language_command): Strip whitespace.
3841 (set_type_command): Likewise.
3842 (set_range_command): Likewise.
3843
6cc0b256
TT
38442009-08-07 Tom Tromey <tromey@redhat.com>
3845
3846 PR gdb/8869:
3847 * language.c (language_completer): New function.
3848 (range_or_type_completer): New function.
3849 (case_completer): New function.
3850 (_initialize_language): Set completers.
3851 * cli/cli-decode.c (add_setshow_string_cmd): Return the "set"
3852 command.
3853 (add_setshow_string_noescape_cmd): Likewise.
3854 (add_setshow_integer_cmd): Likewise.
3855 (add_setshow_uinteger_cmd): Likewise.
3856 (add_setshow_zinteger_cmd): Likewise.
3857 (add_setshow_zuinteger_cmd): Likewise.
3858 * command.h (add_setshow_string_cmd,
3859 add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd,
3860 add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
3861
e5af178f
PP
38622009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3863
3864 gold/10400
3865 * dwarf2-frame.c (qsort_fde_cmp): Use stable sort.
3866
b01c8410
PP
38672009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3868
3869 * dwarf2-frame.c (struct dwarf2_cie): Remove 'next'.
3870 (struct dwarf2_cie_table): New.
3871 (struct dwarf2_fde): Remove 'next'.
3872 (struct dwarf2_fde_table): New.
3873 (struct comp_unit): Remove 'cie'.
3874 (bsearch_cie_cmp, bsearch_fde_cmp): New function.
3875 (find_cie, dwarf2_frame_find_fde): Use bsearch.
3876 (add_cie, add_fde): Use array instead of linked list.
3877 (decode_frame_entry, decode_frame_entry_1): New parameters.
3878 (qsort_fde_cmp): New function.
3879 (dwarf2_build_frame_info): Adjust.
3880
5f814c3b
DL
38812009-08-06 Don Lee <don.lee@sunplusct.com>
3882
3883 * score-tdep.c: Support a new Sunplus CT S+core variant, S+core 3.
3884 * score-tdep.h: Ditto.
3885 * NEWS: Ditto.
3886 * configure.tgt: Test do we have a simulator.
3887 * MAINTAINERS: Add myself under target score
3888
78ad01c1
NR
38892009-08-06 Nick Roberts <nickrob@snap.net.nz>
3890
3891 * utils.c (defaulted_query): Don't ask for confirmation if server
3892 prefix is used.
3893
768f0929
TT
38942009-08-05 Tom Tromey <tromey@redhat.com>
3895
3896 * spu-tdep.h (SPUADDR_SPU): Cast result to int.
3897
e3c69974
PP
38982009-08-04 Paul Pluzhnikov <ppluzhnikov@google.com>
3899
3900 * objfiles.h (OBJF_KEEPBFD): Delete.
3901 (gdb_bfd_unref): New prototype.
3902 * objfiles.c (gdb_bfd_unref): New function.
3903 (free_objfile): Call gdb_bfd_unref.
3904 * solib.c (free_so): Likewise.
3905 (symbol_add_stub): Set refcount.
78ad01c1 3906
afd0cd3f
MS
39072009-08-04 Hui Zhu <teawater@gmail.com>
3908 Michael Snyder <msnyder@vmware.com>
3909
3910 * record.c (record_mem_entry): New field 'mem_entry_not_accessible'.
3911 (record_arch_list_add_mem): Initialize 'mem_entry_not_accessible'.
3912 (record_wait): Set 'mem_entry_not_accessible' flag if target
3913 memory not readable. Don't try to change target memory if
3914 'mem_entry_not_accessible' is set.
3915
1ffa32ee
JK
39162009-08-03 Richard Guenther <rguenther@suse.de>
3917 Jan Kratochvil <jan.kratochvil@redhat.com>
3918
3919 Fix memory corruption on reread of file through a symbolic link.
3920 * symfile.c (find_separate_debug_file): Initialize CANON_NAME earlier.
3921 Allocate DEBUGFILE with length based on CANON_NAME. Free CANON_NAME on
3922 all the return paths.
3923
48cb2d85
VP
39242009-08-03 Jim Ingham <jingham@apple.com>
3925 Vladimir Prus <vladimir@codesourcery.com>
3926
3927 Implement -break-commands
3928
3929 * breakpoint.c (get_breakpoint, breakpoint_set_commands): New.
3930 (commands_command): Use breakpoint_set_commands.
3931 * breakpoint.h (get_breakpoint, breakpoint_set_commands): Declare.
3932
3933 * mi/mi-cmds.h (mi_cmd_break_commands): New.
3934 * mi/mi-cmds.c: Register -break-commands.
3935 * mi/mi-cmd-break.c (mi_cmd_break_commands, mi_read_next_line)
3936 (mi_command_line_array, mi_command_line_array_cnt)
3937 (mi_command_line_array_ptr): New.
3938
3c1179ff
VP
39392009-08-03 Jim Ingham <jingham@apple.com>
3940 Vladimir Prus <vladimir@codesourcery.com>
3941
3942 Refactor reading of commands
3943
3944 * defs.h (read_command_lines_1): Declare.
3945 * cli/cli-script.c (read_next_line): Only return string,
3946 do not process.
3947 (process_next_line): New, extracted from read_next_line.
3948 (recurse_read_control_structure): Take a function pointer to the
3949 read function.
3950 (get_command_line) Pass the read_next_line as reader function
3951 into recurse_read_control_structure.
3952 (read_command_lines_1): New, extracted from...
3953 (read_command_lines): ...here.
3954
73930d4d
KH
39552009-07-31 Kazu Hirata <kazu@codesourcery.com>
3956
3957 * procfs.c (proc_set_current_signal): Populate mysinfo before
3958 copying it to arg.
3959 (proc_clear_current_signal): Likewise.
3960 (proc_set_watchpoint): Populate pwatch before copying it to arg.
3961
1f4437a4
MS
39622009-07-31 Michael Snyder <msnyder@vmware.com>
3963
3964 * remote.c (store_register_using_P): Call putpkt and getpkt
3965 directly instead of calling remote_send.
27a9c0bf
MS
3966 (store_registers_using_G): Ditto.
3967 (fetch_register_using_p): Ditto.
3968
3969 * remote.c (store_register_using_P): Make error msg more verbose.
3970 (store_registers_using_G): Ditto.
1f4437a4
MS
3971 (fetch_register_using_p): Ditto.
3972
ff1a52c6
UW
39732009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3974
3975 * spu-tdep.c: Include "infcall.h".
3976 (spu_address_class_type_flags): New function.
3977 (spu_address_class_type_flags_to_name): Likewise.
3978 (spu_address_class_name_to_type_flags): Likewise.
3979 (spu_pointer_to_address): Handle __ea pointers.
3980 (spu_auto_flush_cache_p): New static variable.
3981 (spu_objfile_from_frame): New function.
3982 (flush_ea_cache, spu_attach_normal_stop): Likewise.
3983 (show_spu_auto_flush_cache): Likewise.
3984 (spu_gdbarch_init): Install address class handlers.
3985 (_initialize_spu_tdep): Attach to normal_stop observer.
3986 Install "set spu auto-flush-cache" / "show spu auto-flush-cache"
3987 commands.
3988
3989 * NEWS: Mention "set/show spu auto-flush-cache" commands.
3990
3285f3fe
UW
39912009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3992
3993 * spu-tdep.c: Include "block.h".
3994 (setspucmdlist, showspucmdlist): New static variables.
3995 (spu_stop_on_load_p): Likewise.
3996 (spu_catch_start): New function.
3997 (show_spu_command, set_spu_command): New functions.
3998 (show_spu_stop_on_load): Likewise.
3999 (_initialize_spu_tdep): Attach spu_catch_start to new_objfile observer.
4000 Install "set spu" / "show spu" prefix command handler.
4001 Install "set spu stop-on-load" / "show spu stop-on-load" command.
4002
4003 * NEWS: Mention "set/show spu stop-on-load" commands.
4004
cc5f0d61
UW
40052009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4006
4007 * ppc-linux-tdep.c: Include "solib.h", "solist.h", "exceptions.h",
4008 "arch-utils.h", and "spu-tdep.h".
4009 (spu_context_objfile, spe_context_lm_addr, spe_context_offset):
4010 New static variables.
4011 (spe_context_cache_ptid, spe_context_cache_address): Likewise.
4012 (ppc_linux_spe_context_lookup): New function.
4013 (ppc_linux_spe_context_inferior_created): Likewise.
4014 (ppc_linux_spe_context_solib_loaded): Likewise.
4015 (ppc_linux_spe_context_solib_unloaded): Likewise.
4016 (ppc_linux_spe_context): Likewise.
4017 (struct ppu2spu_cache, struct ppu2spu_data): New data types.
4018 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register,
4019 ppu2spu_unwind_register, ppu2spu_sniffer,
4020 ppu2spu_dealloc_cache): New functions.
4021 (ppu2spu_unwind): New static variable.
4022 (ppc_linux_init_abi): Install cross-architecture unwinder.
4023 (_initialize_ppc_linux_tdep): Attach to observers.
4024
4025 * spu-tdep.c (struct spu2ppu_cache): New data type.
4026 (spu2ppu_prev_arch, spu2ppu_this_id, spu2ppu_prev_register,
4027 spu2ppu_sniffer, spu2ppu_dealloc_cache): New functions.
4028 (spu2ppu_unwind): New static variable.
4029 (spu_gdbarch_init): Install cross-architecture unwinder.
4030
85e747d2
UW
40312009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4032
4033 * target.h (enum strata): New value arch_stratum.
4034 * target.c (target_require_runnable): Skip arch_stratum targets.
4035
4036 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
4037 solib-spu.o and spu-multiarch.o to gdb_target_obs.
4038 * Makefile.in (ALL_TARGET_OBS): Add solib-spu.o and spu-multiarch.o.
4039 (ALLDEPFILES): Add solib-spu.c and spu-multiarch.c.
4040
4041 * solib-spu.c: New file.
4042 * solib-spu.h: New file.
4043 * spu-multiarch.c: New file.
4044
4045 * spu-tdep.h (SPUADDR, SPUADDR_SPU, SPUADDR_ADDR): New macros.
4046
4047 * spu-tdep.c (struct gdbarch_tdep): New member id.
4048 (spu_gdbarch_id): New function.
4049 (spu_lslr): New function.
4050
4051 (spu_address_to_pointer): New function.
4052 (spu_pointer_to_address): Support SPU ID address encoding. Use
4053 spu_gdbarch_id and spu_lslr.
4054 (spu_integer_to_address): Likewise.
4055 (spu_frame_unwind_cache): Update for encoded addresses.
4056 (spu_unwind_pc, spu_unwind_sp): Likewise.
4057 (spu_read_pc, spu_write_pc): Likewise.
4058 (spu_push_dummy_call): Likewise.
4059 (spu_software_single_step): Likewise.
4060 (spu_get_longjmp_target): Likewise.
4061 (spu_overlay_update_osect): Likewise.
4062
4063 (spu_dis_asm_print_address): New function.
4064 (gdb_print_insn_spu): Likewise.
4065
4066 (spu_gdbarch_init): Store SPU ID in tdep structure.
4067 Install spu_address_to_pointer and gdb_print_insn_spu.
4068
4069 * ppc-linux-tdep.c: Include "observer.h", "auxv.h", "elf/common.h"
4070 and "solib-spu.h".
4071 (ppc_linux_entry_point_addr): New static variable.
4072 (ppc_linux_inferior_created): New function.
4073 (ppc_linux_displaced_step_location): Likewise.
4074 (ppc_linux_init_abi): Enable Cell/B.E. support if supported
4075 by the target.
4076 (_initialize_ppc_linux_tdep): Attach to inferior_created observer.
4077
4078 * NEWS: Mention multi-architecture and Cell/B.E. debugging
4079 capabilities.
4080
efcbbd14
UW
40812009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4082
4083 * linux-nat.c: Include <sys/vfs.h>.
4084 (SPUFS_MAGIC): Define.
4085 (spu_enumerate_spu_ids): New function.
4086 (linux_proc_xfer_spu): New function.
4087 (linux_xfer_partial): Handle TARGET_OBJECT_SPU.
4088
4089 (iterate_over_spus): New function.
4090 (struct linux_spu_corefile_data): New data type.
4091 (linux_spu_corefile_callback): New function.
4092 (linux_spu_make_corefile_notes): New function.
4093 (linux_nat_make_corefile_notes): Call it.
4094
4095 * corelow.c (struct spuid_list): New data type.
4096 (add_to_spuid_list): New function.
4097 (core_xfer_partial): Handle TARGET_OBJECT_SPU.
4098
f4d9bade
UW
40992009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4100
4101 * features/Makefile: Allow sub-platform specific expedite settings.
4102 (WHICH): Add rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4103 (rs6000/powerpc-cell32l-expedite): Define.
4104 (rs6000/powerpc-cell64l-expedite): Likewise.
4105 * features/rs6000/powerpc-cell32l.xml: New file.
4106 * features/rs6000/powerpc-cell64l.xml: New file.
4107 * features/rs6000/powerpc-cell32l.c: New generated file.
4108 * features/rs6000/powerpc-cell64l.c: New generated file.
4109
4110 * regformats/rs6000/powerpc-cell32l.dat: New generated file.
4111 * regformats/rs6000/powerpc-cell64l.dat: New generated file.
4112
4113 * config/djgpp/fnchange.lst: Add mappings for new files.
4114
4115 * ppc-linux-tdep.h (tdesc_powerpc_cell32l): Add prototype.
4116 (tdesc_powerpc_cell64l): Likewise.
4117 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-cell32l.c"
4118 and "features/rs6000/powerpc-cell64l.c".
4119 (_initialize_ppc_linux_tdep): Initialize target descriptions.
4120 (ppc_linux_spu_section): New function.
4121 (ppc_linux_core_read_description): Detect Cell/B.E. core files.
4122 * ppc-linux-nat.c (PPC_FEATURE_CELL): Define.
4123 (ppc_linux_read_description): Detect Cell/B.E. architecture.
4124
4125 * rs6000-tdep.c (rs6000_gdbarch_init): Do not trust BFD wordsize
4126 if exec file is not PowerPC architecture.
4127
e35359c5
UW
41282009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4129
4130 * features/gdb-target.dtd (target): Accept optional
4131 <compatible> elements.
4132 (compatible): Define element.
4133
4134 * target-descriptions.h (tdesc_compatible_p): New.
4135 (tdesc_add_compatible): New.
4136 * target-descriptions.c (arch_p): New VEC_P type.
4137 (struct target_desc): New member compatible.
4138 (free_target_description): Handle it.
4139 (maint_print_c_tdesc_cmd): Likewise.
4140 (tdesc_compatible_p): New function.
4141 (tdesc_add_compatible): New function.
4142
4143 * xml-tdesc.c (tdesc_end_compatible): New function.
4144 (target_children): Handle <compatible> element.
4145
4146 * arch-utils.c (choose_architecture_for_target): Accept target
4147 description instead of BFD architecture as input. Query target
4148 description for compatible architectures.
4149 (gdbarch_info_fill): Update call.
4150
4151 * NEWS: Mention <compatible> element of target descriptions.
4152
3a1bae8e
UW
41532009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4154
4155 * breakpoint.c (remove_breakpoints): If removing one breakpoint
4156 location fails, still continue to remove other locations.
4157 (remove_hw_watchpoints): Likewise.
4158 (detach_breakpoints): Likewise.
4159
8bea4e01
UW
41602009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4161
4162 * breakpoint.h (enum enable_state): Add bp_startup_disabled.
4163 (disable_breakpoints_before_startup): Add prototype.
4164 (enable_breakpoints_after_startup): Likewise.
4165
4166 * breakpoint.c (executing_startup): New static variable.
4167 (describe_other_breakpoints): Handle bp_startup_disabled.
4168 (check_duplicates_for): Likewise.
4169 (disable_breakpoints_before_startup): New function.
4170 (enable_breakpoints_after_startup): New function.
4171 (create_breakpoint): Mark new breakpoints as bp_startup_disabled
4172 if executing_startup flag is true.
4173 (break_command_really): Likewise.
4174 (breakpoint_re_set_one): Skip bp_startup_disabled breakpoints.
4175
cca44b1b
JB
41762009-07-31 Julian Brown <julian@codesourcery.com>
4177
4178 * arm-linux-tdep.c (arch-utils.h, inferior.h, gdbthread.h, symfile.h):
4179 Include files.
4180 (arm_linux_cleanup_svc, arm_linux_copy_svc): New.
4181 (cleanup_kernel_helper_return, arm_catch_kernel_helper_return): New.
4182 (arm_linux_displaced_step_copy_insn): New.
4183 (arm_linux_init_abi): Initialise displaced stepping callbacks.
4184 * arm-tdep.c (DISPLACED_STEPPING_ARCH_VERSION): New macro.
4185 (ARM_NOP): New.
4186 (displaced_read_reg, displaced_in_arm_mode, branch_write_pc)
4187 (bx_write_pc, load_write_pc, alu_write_pc, displaced_write_reg)
4188 (insn_references_pc, copy_unmodified, cleanup_preload, copy_preload)
4189 (copy_preload_reg, cleanup_copro_load_store, copy_copro_load_store)
4190 (cleanup_branch, copy_b_bl_blx, copy_bx_blx_reg, cleanup_alu_imm)
4191 (copy_alu_imm, cleanup_alu_reg, copy_alu_reg)
4192 (cleanup_alu_shifted_reg, copy_alu_shifted_reg, cleanup_load)
4193 (cleanup_store, copy_extra_ld_st, copy_ldr_str_ldrb_strb)
4194 (cleanup_block_load_all, cleanup_block_store_pc)
4195 (cleanup_block_load_pc, copy_block_xfer, cleanup_svc, copy_svc)
4196 (copy_undef, copy_unpred): New.
4197 (decode_misc_memhint_neon, decode_unconditional)
4198 (decode_miscellaneous, decode_dp_misc, decode_ld_st_word_ubyte)
4199 (decode_media, decode_b_bl_ldmstm, decode_ext_reg_ld_st)
4200 (decode_svc_copro, arm_process_displaced_insn)
4201 (arm_displaced_init_closure, arm_displaced_step_copy_insn)
4202 (arm_displaced_step_fixup): New.
4203 (arm_gdbarch_init): Initialise max insn length field.
4204 * arm-tdep.h (DISPLACED_TEMPS, DISPLACED_MODIFIED_INSNS): New
4205 macros.
4206 (displaced_step_closure, pc_write_style): New.
4207 (arm_displaced_init_closure, displaced_read_reg)
4208 (arm_process_displaced_insn, arm_displaced_init_closure)
4209 (displaced_read_reg, displaced_write_reg, arm_displaced_step_copy_insn)
4210 (arm_displaced_step_fixup): Add prototypes.
4211
929dfd4f
JB
42122009-07-31 Pedro Alves <pedro@codesourcery.com>
4213 Julian Brown <julian@codesourcery.com>
4214
4215 * infrun.c (displaced_step_fixup): If this is a software
4216 single-stepping arch, don't tell the target to single-step.
4217 (maybe_software_singlestep): Return 0 if we're using displaced
4218 stepping.
4219 (resume): If this is a software single-stepping arch, and
4220 displaced-stepping is enabled, use it for all single-step
4221 requests.
4222
1983cb9a
RW
42232009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4224
4225 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
4226 (AUTOCONF, configure_deps, AUTOHEADER): New variables.
4227 ($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
4228 (am--refresh): New rules.
4229 (stamp-h, config.status): List config.in and configure including
4230 $(srcdir)/ prefix.
4231 * aclocal.m4: Regenerate.
4232 * configure: Regenerate.
4233
fe79276f
TS
42342009-07-30 Thomas Schwinge <tschwinge@gnu.org>
4235
4236 * gnu-nat.c (add_task_commands) <stopped>: Register the correct
4237 callback function.
4238
2edfe795
L
42392009-07-30 H.J. Lu <hongjiu.lu@intel.com>
4240
4241 * ia64-tdep.c (ia64_access_reg): Correct paddress.
4242
54333c3b
JK
42432009-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4244
4245 Replace public function varobj_list by all_root_varobjs iterator.
4246 * mi/mi-cmd-var.c (struct mi_cmd_var_update, mi_cmd_var_update_iter):
4247 New.
4248 (mi_cmd_var_update): Replace the varobj_list call by all_root_varobjs.
4249 Remove the variables rootlist, cr. New variable data.
4250 * varobj.c (rootcount, varobj_list): Remove.
4251 (install_variable, uninstall_variable): Remove the rootcount updates.
4252 (all_root_varobjs): New function.
4253 (varobj_invalidate): Use the all_root_varobjs call. Move the code to...
4254 (varobj_invalidate_iter): ... a new function.
4255 * varobj.h (varobj_list): Remove the prototype.
4256 (all_root_varobjs): New prototype.
4257
60f25dfd
PP
42582009-07-29 Paul Pluzhnikov <ppluzhnikov@google.com>
4259
4260 PR gdb/6817
4261 * dbxread.c (read_dbx_symtab): Reduce stack use.
4262
e23cce45
JK
42632009-07-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4264
4265 Fix gcc-4.5 HEAD warnings.
4266 * cp-name-parser.y (%union <typed_val_int>, %token GLOBAL)
4267 (GLOBAL_CONSTRUCTORS, GLOBAL_DESTRUCTORS, demangler_special <GLOBAL>):
4268 Remove.
4269 (yylex <"global constructors keyed to ">)
4270 (yylex <"global destructors keyed to ">): Base it on DEMANGLER_SPECIAL.
4271 (cp_comp_to_string): Remove variables str, prefix and buf. Remove the
4272 GLOBAL_DESTRUCTORS and GLOBAL_CONSTRUCTORS handling.
4273 (cp_print): Remove the GLOBAL_DESTRUCTORS and GLOBAL_CONSTRUCTORS
4274 handling.
4275
58d6951d
DJ
42762009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
4277
4278 * NEWS: Mention ARM VFP support.
4279 * target-descriptions.c (tdesc_register_type): Make public.
4280 (tdesc_unnumbered_register): New function.
4281 (tdesc_register_reggroup_p): Allow missing
4282 pseudo_register_reggroup_p.
4283 * target-descriptions.h (tdesc_register_type): Declare.
4284 (tdesc_unnumbered_register): Declare.
4285 * arm-tdep.c (arm_neon_quad_read, arm_neon_quad_write): New functions.
4286 (arm_push_dummy_call): Use arm_neon_quad_write.
4287 (arm_neon_double_type, arm_neon_quad_type): New functions.
4288 (arm_register_type): Handle VFP and NEON registers. Override the
4289 types of double-precision registers for NEON. Disable FPA registers
4290 if they are not present.
4291 (arm_dwarf_reg_to_regnum): Add current VFP and NEON register numbers.
4292 (arm_return_value): Use arm_neon_quad_write and arm_neon_quad_read.
4293 (arm_register_name): Handle VFP single and NEON quad registers.
4294 (arm_pseudo_read, arm_pseudo_write): New functions.
4295 (arm_gdbarch_init): Check for VFP and NEON in the target description.
4296 Assign numbers to double-precision registers. Register VFP and NEON
4297 pseudo registers. Remove a shadowed "i" variable.
4298 * arm-tdep.h (enum gdb_regnum): Add ARM_D0_REGNUM and
4299 ARM_D31_REGNUM.
4300 (struct gdbarch_tdep): Add have_neon_pseudos, have_neon,
4301 have_vfp_registers, have_vfp_pseudos, neon_double_type,
4302 and neon_quad_type.
4303
4304 * features/Makefile: Make expedite settings only architecture
4305 specific.
4306 (WHICH): Add new ARM descriptions.
4307 * features/arm-with-neon.xml, features/arm-with-vfpv2.c,
4308 features/arm-with-vfpv3.c, features/arm-vfpv2.xml,
4309 features/arm-vfpv3.xml, features/arm-with-vfpv2.xml,
4310 features/arm-with-vfpv3.xml, features/arm-with-neon.c: New files.
4311 * regformats/arm-with-neon.dat, regformats/arm-with-vfpv2.dat,
4312 regformats/arm-with-vfpv3.dat: Generate.
4313
79626f8a
DJ
43142009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
4315
4316 * infrun.c (handle_inferior_event): Clear trap_expected after
4317 stepping past a single-step breakpoint.
4318
90445bd3
DJ
43192009-07-28 Joseph Myers <joseph@codesourcery.com>
4320
4321 * arm-tdep.c (enum arm_vfp_cprc_base_type,
4322 arm_vfp_cprc_unit_length, arm_vfp_cprc_reg_char,
4323 arm_vfp_cprc_sub_candidate, arm_vfp_call_candidate,
4324 arm_vfp_abi_for_function): New.
4325 (arm_push_dummy_call): Handle VFP ABI.
4326 (arm_extract_return_value, arm_store_return_value): Handle
4327 ARM_FLOAT_VFP case.
4328 (arm_return_value): Handle VFP ABI.
4329 (arm_gdbarch_init): Default fp_model based on Tag_ABI_VFP_args for
4330 EABI binaries.
4331
3612b192
DJ
43322009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
4333
4334 * arch-utils.c (displaced_step_at_entry_point): Do not call
4335 gdbarch_convert_from_func_ptr_addr.
4336 * cris-tdep.c: Remove outdated comment.
4337 * infcall.c (call_function_by_hand): Do not call
4338 gdbarch_convert_from_func_ptr_addr after entry_point_address.
4339 * objfiles.c (entry_point_address): Call both
4340 gdbarch_convert_from_func_ptr_addr and
4341 gdbarch_addr_bits_remove.
4342
745a434e
AR
43432009-07-28 Aleksandar Ristovski <aristovski@qnx.com>
4344
4345 * nto-tdep.c (nto_thread_state_str): New array.
4346 (nto_extra_thread_info): New function definition.
4347 * nto-tdep.h (gdbthread.h): New include.
4348 (private_thread_info): New struct.
4349 (nto_extra_thread_info): New declaration.
4350 * nto-procfs.c (procfs_thread_alive): Properly check if
4351 thread is still alive.
4352 (update_thread_private_data_name, update_thread_private_data): New
4353 function definition.
4354 (procfs_find_new_threads): Fetch thread private data.
4355 (init_procfs_ops): Register to_extra_thread_info.
4356
46106157
PA
43572009-07-25 Pedro Alves <pedro@codesourcery.com>
4358
4359 * stack.c (backtrace_command_1): Remove dead check of NULL current
4360 frame.
4361
e681b284
KS
43622009-07-23 Keith Seitz <keiths@redhat.com>
4363
4364 * source.c (forward_search_command): Don't fclose the stream,
4365 just run the cleanups.
4366 (reverse_search_command): Likewise.
4367
89295b4d
PP
43682009-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4369
4370 * symtab.c (search_symbols): Add QUIT.
4371
8caee43b
PP
43722009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
4373
4374 * symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.
4375
bb272892
PP
43762009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
4377
4378 * objfiles.h (objfiles_changed): New prototype.
4379 * objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p.
4380 (allocate_objfile, free_objfile): Must rebuild section map.
4381 (objfile_relocate): Likewise.
4382 (update_section_map, find_pc_section): Adjust.
4383 (set_objfiles_updated_on_exe_change): Remove.
4384 (set_objfiles_updated_on_solib_activity): Remove.
4385 (_initialize_objfiles): Remove.
4386 (objfiles_changed): New function.
4387 * symfile.c (reread_symbols): Call objfiles_changed.
4388
9a9dc473
HZ
43892009-07-22 Hui Zhu <teawater@gmail.com>
4390
4391 * record.c (record_xfer_partial): Call error When nquery
4392 return "n".
4393
a845f5cb
PP
43942009-07-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4395
4396 * objfiles.c (objfiles_updated_p): New variable.
4397 (qsort_cmp, bsearch_cmp, update_section_map): New function.
4398 (find_pc_section): Use bsearch.
4399 (set_objfiles_updated_on_exe_change): New function.
4400 (set_objfiles_updated_on_solib_activity): New function.
4401 (_initialize_objfiles): New function.
4402
c761c4ee 44032009-07-21 Michael Eager <eager@eagercon.com>
4d09ffea
MS
4404
4405 * features/rs6000/powerpc-405.xml: New.
4406 * rs6000-tdep.c: Add include & initialize for
4407 powerpc-405.c, add 405 to variants.
4408 * features/rs6000/powerpc-405.c: Generate.
4409
26bb68be
PP
44102009-07-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4411
25f77bfa 4412 * utils.c (internal_vproblem): Always print failure message.
26bb68be 4413
4ea48cc1
DJ
44142009-07-21 Daniel Jacobowitz <dan@codesourcery.com>
4415 Vladimir Prus <vladimir@codesourcery.com>
4416
4417 * valops.c (value_fetch_lazy): Handle bitfields explicitly.
4418 (value_assign): Remove unnecessary FIXME. Honor the container
4419 type of bitfields if possible.
4420 * value.c (struct value): Add parent field.
4421 (value_parent): New function.
4422 (value_free): Free the parent also.
4423 (value_copy): Copy the parent also.
4424 (value_primitive_field): Do not read the contents of a lazy
4425 value to create a child bitfield value. Set bitpos and offset
4426 according to the container type if possible.
4427 (unpack_bits_as_long): Rename from unpack_field_as_long. Take
4428 field_type, bitpos, and bitsize instead of type and fieldno.
4429 (unpack_field_as_long): Use unpack_bits_as_long.
4430 * value.h (value_parent, unpack_bits_as_long): New prototypes.
4431
828d3400
DJ
44322009-07-21 Daniel Jacobowitz <dan@codesourcery.com>
4433
4434 * value.c (struct value): Add reference_count field.
4435 (allocate_value_lazy): Initialize reference_count.
4436 (value_incref): New function.
4437 (value_free): Check the reference count.
4438 * value.h (value_incref): New prototype.
4439
7a01c6e0
MK
44402009-07-20 Marc Khouzam <marc.khouzam@ericsson.com>
4441
4442 * utils.c (defaulted_query): Update comment and remove dead code.
4443
348e048f
DE
44442009-07-20 Doug Evans <dje@google.com>
4445
4446 Add support for "comdat types" from DWARF4.
4447 * dwarf2read.c (dwarf2_per_objfile): New member types,
4448 signatured_types.
4449 (TYPES_SECTION): New macro.
4450 (dwarf2_per_cu_data): Change size of length field from 30 bits
4451 to 29 bits. New member from_debug_types.
4452 (signatured_type): New struct.
4453 (struct attribute): New union member signatured_type.
4454 (DW_SIGNATURED_TYPE): New macro.
4455 (dwarf2_attr_no_follow): New function.
4456 (read_type_unit_scope): New function.
4457 (follow_die_ref_or_sig, follow_die_sig): New functions.
4458 (dwarf2_locate_sectoins): Handle .debug_types.
4459 (dwarf2_build_psymtabs): Read .debug_types.
4460 (read_type_comp_unit_head): New function.
4461 (hash_type_signature, eq_type_signature): New functions.
4462 (create_debug_types_hash_table): New function.
4463 (lookup_signatured_type): New function.
4464 (process_psymtab_comp_unit): Handle type units too.
4465 (process_type_comp_unit, build_type_psymtabs): New functions.
4466 (dwarf2_build_psymtabs_hard): Call build_type_psymtabs.
4467 (load_partial_comp_unit): Assert not called for a type unit.
4468 (skip_one_die): Handle DW_FORM_sig8.
4469 (queue_comp_unit): Don't call load_full_comp_unit here, or
4470 update read_in_chain.
4471 (psymtab_to_symtab_1): Call read_signatured_type_at_offset for
4472 type units, or load_full_comp_unit for comp units after
4473 queue_comp_unit returns.
4474 (load_full_comp_unit): Assert not called for type units.
4475 (load_full_comp_unit): Update read_in_chain here.
4476 (process_die): Handle DW_TAG_type_unit.
4477 (read_structure_type): Look for signatured types.
4478 (read_enumeration_type): Ditto.
4479 (init_cu_die_reader): Handle .debug_types.
4480 (read_comp_unit): Assert hash not computed yet.
4481 (read_die_and_children): Expand debugging printf to handle .debug_types.
4482 (read_partial_die): Handle DW_TAG_type_unit:
4483 (find_patial_die): Handle .debug_types.
4484 (read_attribute_value): Handle DW_FORM_sig8.
4485 (die_type): Call follow_die_ref_or_sig instead of follow_die_ref.
4486 (die_containing_type): Ditto.
4487 (dwarf_tag_name): Handle DW_TAG_type_unit.
4488 (dwarf_attr_name): Handle DW_AT_signature.
4489 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
4490 DW_FORM_flag_present, DW_FORM_sig8.
4491 (dump_die_shallow): Handlel DW_FORM_sig8.
4492 (maybe_queue_comp_unit): Change return type to int from void.
4493 All callers updated.
4494 (follow_die_ref): Handle .debug_types.
4495 (lookup_signatured_type_at_offset): New function.
4496 (read_signatured_type_at_offset): New function.
4497 (read_signatured_type): New function.
4498
f4290e2a
UW
44992009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
4500
4501 * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
4502 if the macro is defined.
4503
08d16641
PA
45042009-07-20 Pedro Alves <pedro@codesourcery.com>
4505
4506 * features/gdb-target.dtd (target): Accept an optional 'osabi'
4507 element.
4508 (osabi): Define element.
4509 * features/mips-linux.xml (target): Add an osabi subelement set to
4510 GNU/Linux.
4511 * regformats/regdat.sh (xmlarch, xmlosabi): New variables. Don't
4512 write the architecture into $xmltarget. Store it in $xmlarch.
4513 Handle the 'osabi' type. Handle outputting the osabi element of
4514 the target description.
4515 * regformats/reg-x86-64-linux.dat (osabi): Set to GNU/Linux.
4516 * regformats/reg-i386-linux.dat (osabi): Set to GNU/Linux.
4517
4518 * target-descriptions.h (tdesc_osabi, set_tdesc_osabi): Declare.
4519 * target-descriptions.c (struct target_desc) <osabi>: New field.
4520 (tdesc_osabi): New function.
4521 (set_tdesc_osabi): New function.
4522 * xml-tdesc.c: Include osabi.h.
4523 (tdesc_end_osabi): New.
4524 (target_children): Parse "osabi" elements.
4525 * arch-utils.c (gdbarch_info_fill): Try to get the osabi from the
4526 target description if the user didn't override it or it is not
4527 extractable from the bfd. If that still fails, fallback to the
4528 configured in default.
4529 * osabi.h (osabi_from_tdesc_string): Declare.
4530 * osabi.c (osabi_from_tdesc_string): New.
4531 (gdbarch_lookup_osabi): Return GDB_OSABI_UNKNOWN instead of
4532 GDB_OSABI_DEFAULT.
4533
4534 * NEWS: Mention that target descriptions can now describe the
4535 target OS ABI.
4536
a156a290
MF
45372009-07-20 Mike Frysinger <vapier@gentoo.org>
4538
4539 * configure.ac (AC_CHECK_FUNCS): Check for pipe.
4540 * config.in, configure: Regenerate.
4541 * tui/tui-io.c (TUI_USE_PIPE_FOR_READLINE): Define if HAVE_PIPE.
4542
b4d1e8c7
PA
45432009-07-20 Pedro Alves <pedro@codesourcery.com>
4544
4545 * gnu-nat.c: Include "inf-child.h".
4546 (gnu_mourn_inferior): Use the passed in target_ops
4547 instead of the gnu_ops global.
4548 (gnu_create_inferior): Inline `attach_to_child', use the passed in
4549 target_ops instead of the gnu_ops global.
4550 (gnu_can_run): Delete.
4551 (gnu_attach): Use the passed in target_ops instead of the gnu_ops
4552 global.
4553 (gnu_detach): Ditto.
4554 (gnu_prepare_to_store, gnu_open): Delete.
4555 (gnu_store_registers, gnu_fetch_registers): Delete declarations.
4556 (gnu_ops): Delete.
4557 (init_gnu_ops): Delete.
4558 (gnu_target): New.
4559 (_initialize_gnu_nat): Don't call init_gnu_ops or add_target here.
4560 * gnu-nat.h (gnu_target): Declare.
4561 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Make
4562 static.
4563 (_initialize_i386gnu_nat): New.
4564
b5758fe4
UW
45652009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
4566
4567 * dwarf2loc.c (find_location_expression): Retrieve beginning and
4568 ending address offsets in location list entries as integers,
4569 not as addresses.
4570
ec9499be
UW
45712009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
4572
4573 * infrun.c (wait_for_inferior): Invalidate registers and overlay
4574 cache every time before calling target_wait.
4575 (handle_inferior_event): Make static. Always reset waiton_ptid.
4576 Never call registers_changed.
4577 (prepare_to_wait): Do not invaliate registers or overlay cache
4578 (moved to wait_for_inferior). Do not reset waiton_ptid (moved
4579 to handle_inferior_event).
4580 (fetch_inferior_event): Remove check for always-true condition.
4581
85a772a5
TS
45822009-07-20 Thomas Schwinge <tschwinge@gnu.org>
4583
4584 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Adjust to
4585 2009-02-23 target_ops changes.
4586
fdd654f3
MS
45872009-07-18 Michael Snyder <msnyder@vmware.com>
4588
4589 * infrun.c (handle_inferior_event): Remove an execution_direction
4590 check in the "check for subroutine calls" test, and add some
4591 additional handling for reverse-stepping through shared libraries.
4592
99f75275
AG
45932009-07-18 Anthony Green <green@moxielogic.com>
4594
4595 * moxie-tdep.c (moxie_analyze_prologue): Take gdbarch as last
4596 parameter instead of frame_info.
4597 (moxie_frame_cache): Call moxie_analyze_prologue with different
4598 args.
4599
831a0c44
UW
46002009-07-17 Ulrich Weigand <uweigand@de.ibm.com>
4601
4602 * solib.c (solib_bfd_open): Do not call ops->bfd_open.
4603 (solib_map_sections): Call ops->bfd_open instead of solib_bfd_open.
4604 * solib-frv.c (_initialize_frv_solib): Initialize bfd_open member.
4605 * solib-irix.c (_initialize_irix_solib): Likewise.
4606 * solib-null.c (_initialize_null_solib): Likewise.
4607 * solib-osf.c (_initialize_osf_solib): Likewise.
4608 * solib-pa64.c (_initialize_pa64_solib): Likewise.
4609 * solib-som.c (_initialize_som_solib): Likewise.
4610 * solib-sunos.c (_initialize_sunos_solib): Likewise.
4611 * solib-svr4.c (_initialize_svr4_solib): Likewise.
4612 * solib-target.c (_initialize_solib_target): Likewise.
4613
328d0145
UW
46142009-07-17 Ulrich Weigand <uweigand@de.ibm.com>
4615
4616 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
4617
099cb4fb
DE
46182009-07-16 Doug Evans <dje@google.com>
4619
4620 * linux-thread.db.c (try_thread_db_load_1): Tweak comment.
4621
456b0e24
PP
46222007-07-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4623
4624 * linux-thread-db.c (thread_db_find_new_threads_silently):
4625 New function.
4626 (try_thread_db_load_1): Call it.
099cb4fb 4627
93311388
DE
46282009-07-15 Doug Evans <dje@google.com>
4629
4630 Code reorg in preparation for adding comdat types support.
4631 * dwarf2read.c (struct die_reader_specs): New struct.
4632 (locate_pdi_sibling): New arg buffer. All callers updated.
4633 (load_partial_dies, read_partial_die): Ditto.
4634 (read_8_bytes): Change return type to ULONGEST.
4635 (read_comp_unit): Delete arg abfd. All callers updated.
4636 (read_die_and_children_1): Delete args abfd, cu. New arg reader.
4637 All callers updated.
4638 (read_die_and_children, read_die_and_siblings): Ditto.
4639 (read_full_die): Ditto. Move closer to callers.
4640 (skip_one_die): New arg buffer. All callers updated.
4641 (load_full_comp_unit): Change return type to void. All callers
4642 updated.
4643 (partial_read_comp_unit_head): New args buffer, buffer_size.
4644 All callers updated.
4645 (process_psymtab_comp_unit): New function, split out from
4646 dwarf2_build_psymtabs_hard.
4647 (dwarf2_build_psymtabs_hard): Call it.
4648 (load_partial_comp_unit): Renamed from load_comp_unit.
4649 All callers updated.
4650 (skip_children): New arg buffer. All callers updated.
4651 (init_cu_die_reader): New function.
4652 (is_ref_attr): New function.
4653 (dwarf2_get_ref_die_offset): Call it.
4654 (alloc_one_comp_unit): New function.
4655
bf0d7e9c
SS
46562009-07-14 Stan Shebs <stan@codesourcery.com>
4657
4658 * MAINTAINERS (Global Maintainers): Add Doug Evans.
4659
782b2b07
SS
46602009-07-14 Stan Shebs <stan@codesourcery.com>
4661
4662 Conditional tracepoints.
4663 * ax-gdb.h (gen_eval_for_expr): Declare.
4664 * ax-gdb.c (gen_expr): Generate bytecodes for BINOP_EQUAL
4665 and other comparisons.
4666 (gen_eval_for_expr): New function.
4667 (agent_eval_command): New maintenance command.
4668 (_initialize_ax_gdb): Define the command.
4669 * remote.c (struct remote_state): New field cond_tracepoints.
4670 (PACKET_ConditionalTracepoints): New packet config type.
4671 (remote_cond_tracepoint_feature): New function.
4672 (remote_protocol_features): Add ConditionalTracepoints.
4673 (remote_supports_cond_tracepoints): New function.
4674 (_initialize_remote): Add ConditionalTracepoints.
4675 * tracepoint.c (download_tracepoint): Add conditional.
4676 * NEWS: Mention conditional tracepoints.
4677
b101f7a1
UW
46782009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4679
4680 * objfiles.c (objfile_relocate): Do not relocate the same
4681 BLOCKVECTOR_MAP address map multiple times.
4682
217f1f79
UW
46832009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4684
4685 * remote.c (process_stop_reply): Access expedited target registers
4686 in target_gdbarch.
4687
8f313923
JK
46882009-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4689
4690 Fix memory access from signed 32bit inferior registers on 64bit GDB.
4691 * linux-nat.c (linux_xfer_partial <TARGET_OBJECT_MEMORY>): New variable
4692 addr_bit. Mask OFFSET by the ADDR_BIT width.
4693
451fa05e
AG
46942009-07-13 Anthony Green <green@moxielogic.com>
4695
4696 * moxie-tdep.c (moxie_gdbarch_init): Call
4697 set_gdbarch_process_record.
4698 (moxie_process_record): New.
4699 (moxie_process_readu): New.
4700
06da04c6
MS
47012009-07-12 Michael Snyder <msnyder@vmware.com>
4702
4703 * i386-tdep.c: Add a frame unwinder for function epilogues.
4704 (i386_in_function_epilogue_p): New function.
4705 (i386_epilogue_frame_sniffer): New function.
4706 (i386_epilogue_frame_cache): New function.
4707 (i386_epilogue_frame_this_id): New function.
4708 (i386_epilogue_frame_unwind): New struct frame_unwind.
4709 (i386_gdbarch_init): Hook the new unwinder.
4710
e6158f16
HZ
47112009-07-11 Hui Zhu <teawater@gmail.com>
4712
4713 * cli/cli-cmds.c (disassemble_command): Add a new modifier /r
4714 to "disassemble" command to print the raw instructions in hex as
4715 well as in symbolic form.
4716 (init_cli_cmds): Ditto.
4717 (print_disassembly): Change "mixed" to "flags" to translate
4718 the behavior of disassemble.
4719 (disassemble_current_function): Ditto.
4720 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
4721 * stack.c (gdb_disassembly_stub): Ditto.
4722 * disasm.c (do_mixed_source_and_assembly): Ditto.
4723 (do_mixed_source_and_assembly): Ditto.
4724 (do_assembly_only): Ditto.
4725 (gdb_disassembly): Ditto.
4726 (dump_insns): print the raw instructions in hex as well as in
4727 symbolic form if DISASSEMBLY_RAW_INSN and flags is true.
4728 * disasm.h (DISASSEMBLY_SOURCE): Include source code with the
4729 assembly if it and flags is true.
4730 (DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with
4731 the assembly if it and flags is true.
4732 (gdb_disassembly): Update extern.
4733 * NEWS: Document disassemble/r support.
4734
fa8f86ff
TT
47352009-07-10 Tom Tromey <tromey@redhat.com>
4736
4737 * dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
4738 * dwarf2expr.c: Likewise.
4739 * dwarf2loc.c: Likewise.
4740 * dwarf2read.c: Likewise.
4741 * sh-tdep.c: Likewise.
4742 * xtensa-tdep.c: Likewise.
4743
6e9ef2a8
JK
47442009-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 Tidy up the code.
4747 * mi/mi-cmd-var.c (mi_cmd_var_update): Remove variable nv. Move
4748 variables var, rootlist and cr to their local sub-block. Move the
4749 make_cleanup_ui_out_tuple_begin_end, make_cleanup_ui_out_list_begin_end
4750 and do_cleanups calls to the common base block. Remove the zero NV
4751 check.
4752
fbb8f299
PM
47532009-07-10 Phil Muldoon <pmuldoon@redhat.com>
4754
4755 * python/python-internal.h (apply_varobj_pretty_printer): Update
4756 definition.
4757 (python_string_to_target_python_string): Add definition.
4758 * python/python-utils.c (unicode_to_encoded_python_string)
4759 (unicode_to_target_python_string)
4760 (python_string_to_target_python_string): New Functions.
4761 * python/python-prettyprint.c (pretty_print_one_value): Likewise.
4762 (print_string_repr): Refactor to logic to account for PyObject
4763 returned strings.
4764 (apply_varobj_pretty_printer): Likewise.
4765 * python/python-value.c (valpy_string): Parse length keyword. Use
4766 length keyword in LA_GET_STRING.
4767 * varobj.c (value_get_print_value): Refactor logic to account for
4768 PyObject returned strings.
4769 * c-lang.c (c_get_string): If the length parameter is specified,
4770 use that. Return value in characters. Update comments.
4771 * language.h: Update c_get_string prototype comments.
4772
b75f0b83
DE
47732009-07-09 Doug Evans <dje@google.com>
4774
4775 * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
4776 to read_memory_unsigned_integer.
4777
c0ac0ec7
JK
47782009-07-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4779
4780 Report error on inaccessible memory.
4781 * cli/cli-dump.c: Include gdbcore.h.
4782 (dump_memory_to_file): Call read_memory instead of target_read_memory.
4783
378d2b72
HZ
47842009-07-09 Hui Zhu <teawater@gmail.com>
4785
4786 * solib.c (solib_bfd_open): Output a warning if solib's
4787 architecture is not compatible with inferior's architecture.
4788
3a8f7b07
JK
47892009-07-09 Ulrich Weigand <uweigand@de.ibm.com>
4790 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 * target.h (struct target_ops <to_thread_architecture>): Describe it.
4793 (target_thread_architecture): Refer to to_thread_architecture.
4794
a177aad3
PM
47952009-07-08 Pierre Muller <muller@ics.u-strasbg.fr>
4796
4797 * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.
4798
2d5f09f0
UW
47992009-07-07 Ulrich Weigand <uweigand@de.ibm.com>
4800
4801 * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
4802
63c252f8
PM
48032009-07-07 Pierre Muller <muller@ics.u-strasbg.fr>
4804
4805 * breakpoint.c (set_raw_breakpoint): Remove static modifier.
4806
30b66ecc
TT
48072009-07-07 Tom Tromey <tromey@redhat.com>
4808
4809 * c-lang.c (convert_octal): Only allow 3 octal digits.
4810 (print_wchar): Prefer 3-digit octal form. Fall back to hex if
4811 needed.
4812 * c-exp.y (c_parse_escape): Only allow 3 octal digits.
4813
06878dd2
PP
48142009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
4815
4816 * python/python-value.c (valpy_getitem): Remove incorrect assert.
4817
570e2b1a
PP
48182009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
4819
4820 * python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
4821
8c902bb1
SW
48222009-07-07 Sami Wagiaalla <swagiaal@redhat.com>
4823
4824 * cp-support.h (struct using_direct): Rename members inner and
4825 outer to import_src, and import_dest respectively.
4826 * cp-namespace.c (cp_add_using_directive): Update.
4827 (cp_add_using): Update.
4828 (cp_copy_usings): Update.
4829 (cp_lookup_symbol_namespace): Update.
4830 (cp_scan_for_anonymous_namespaces): Update.
4831 * cp-support.c (make_symbol_overload_list_using): Update.
4832 * cp-support.h (cp_add_using_directive, cp_add_using): Rename
4833 arguments from inner and outer to src and dest respectively.
4834 * cp-namespace.c (cp_add_using_directive): Ditto.
4835 (cp_add_using): Ditto.
4836
fd115a4b
JK
48372009-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4838
4839 * mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop.
4840 * varobj.c (varobj_invalidate): Replace a while loop by for loop.
4841
60d32970
VP
48422009-07-07 Vladimir Prus <vladimir@codesourcery.com>
4843
4844 Fix hang in floating varobjs.
4845
c0ac0ec7 4846 * varobj.c (varobj_invalidate): Advance to next
60d32970
VP
4847 element when processing floating varobj.
4848
9a139cba
VP
48492009-07-07 Vladimir Prus <vladimir@codesourcery.com>
4850
4851 * varobj.c: Remove unnecessary include.
4852
02b96ddc
TG
48532009-07-07 Tristan Gingold <gingold@adacore.com>
4854
4855 * config/i386/darwin.mh (NATDEPFILES): Remove excServer.o.
4856 Remove excServer.c target. Remove _all target.
4857 * darwin.defs: Removed.
4858
7f86f499
AR
48592009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
4860
4861 * configure.tgt (i[34567]86-*-nto*): Add build_gdbserver=yes.
4862
e2357892
JK
48632009-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4864
4865 * source.c (find_and_open_source): Remove the `objfile' parameter.
4866 Update the function comment.
4867 (open_source_file, symtab_to_fullname, psymtab_to_fullname): Update the
4868 find_and_open_source callers.
4869
5e13bd89
PA
48702009-07-05 Pedro Alves <pedro@codesourcery.com>
4871
4872 * coff-pe-read.c (read_pe_exported_syms): Recognize
4873 "pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE
4874 targets.
4875
d7117c03
PA
48762009-07-05 Pedro Alves <pedro@codesourcery.com>
4877
4878 * arm-wince-tdep.c (arm_wince_skip_main_prologue): New.
4879 (arm_wince_init_abi): Register it as gdbarch_skip_main_prologue
4880 callback.
4881
5cd226f2
TG
48822009-06-29 Tristan Gingold <gingold@adacore.com>
4883
4884 * i386-darwin-tdep.c (amd64_darwin_thread_state_reg_offset)
4885 (amd64_darwin_thread_state_num_regs)
4886 (amd64_darwin_sigcontext_addr, x86_darwin_init_abi_64): Moved to
4887 amd64-darwin-tdep.c
4888 (_initialize_i386_darwin_tdep): Remove 64 bits parts.
4889 (darwin_dwarf_signal_frame_p): Make public.
4890 * amd64-darwin-tdep.c: New file with most chunks from
4891 i386-darwin-tdep.c
4892 * i386-darwin-tdep.h: Add a prototype for darwin_dwarf_signal_frame_p.
4893 (amd64_darwin_thread_state_reg_offset)
4894 (amd64_darwin_thread_state_num_regs): Moved to amd64-darwin-tdep.h
4895 * amd64-darwin-tdep.h: New file.
4896 * i386-darwin-nat.c: Only includes amd64-nat.h and amd64-darwin-tdep.h
4897 if BFD64 is defined.
4898 (i386_darwin_fetch_inferior_registers): Add #ifdef BFD64/#endif around
4899 64 bits parts.
4900 (i386_darwin_store_inferior_registers): Ditto.
4901 (darwin_set_sstep): Ditto.
4902 (darwin_complete_target): Ditto.
4903 (amd64_darwin_sstep_at_sigreturn): Ditto.
4904 * configure.tgt: Create a separate entry for x86_64-*-darwin.
4905 Add 64 bits support for i386-*-darwin if --enable-64-bit-bfd.
4906 * Makefile.in (ALLDEPFILES): Add amd64-darwin-tdep.c, darwin-nat.c,
4907 i386-darwin-tdep.c i386-darwin-nat.c
4908 (ALL_64_TARGET_OBS): Add amd64-darwin-tdep.o
4909
3cb5bea9
PA
49102009-07-02 Pedro Alves <pedro@codesourcery.com>
4911
4912 * linux-fork.c (forks_exist_p): Drop unnecessary extern.
4913 (add_fork, linux_fork_killall, linux_fork_mourn_inferior)
4914 (linux_fork_detach): Ditto.
4915 (delete_fork_command): Rename to ...
4916 (delete_checkpoint_command): ... this.
4917 (detach_fork_command): Rename to ...
4918 (detach_checkpoint_command): ... this.
4919 (info_forks_command): Rename to ...
4920 (info_checkpoints_command): ... this.
4921 (_initialize_linux_fork): Remove stale comments. Adjust.
4922
2277426b
PA
49232009-07-02 Pedro Alves <pedro@codesourcery.com>
4924
4925 * linux-nat.c (linux_child_follow_fork): If we're staying attached
4926 to the child process, enable event reporting on it. Don't handle
4927 checkpoints here. Instead, add the child fork to the lwp thread
4928 and inferior lists without clobbering the previous inferior. Let
4929 the thread_db layer learn about a new child process, even if
4930 following the parent.
4931 (linux_nat_switch_fork): Delete lwps of the current inferior only,
4932 instead of clearing the whole list. Use thread_change_ptid to
4933 give the core the illusion the new checkpoint is still the same
4934 inferior. Clear the register cache.
4935 (linux_handle_extended_wait): Handle checkpoints here.
4936 (linux_multi_process): Turn on.
4937 * linux-fork.c (struct fork_info) <pc>: Remove field.
4938 (init_fork_list): Do not delete the checkpoint from the inferior
4939 list (it is not there).
4940 (fork_load_infrun_state): Don't switch inferior_ptid here. Pass
4941 the new checkpoint's ptid to linux_nat_switch_fork.
4942 (fork_save_infrun_state): Make static. Don't stop the pc field of
4943 fork_info, it's gone.
4944 (linux_fork_mourn_inferior): Don't delete the checkpoint from the
4945 inferior list, it's not there.
4946 (linux_fork_detach): Ditto.
4947 (delete_fork_command): Replace mention of fork/checkpoint by
4948 checkpoint only.
4949 (detach_fork_command): Likewise. Don't delete the checkpoint from
4950 the inferior list.
4951 (info_forks_command): Adjust.
4952 (restore_detach_fork): Delete.
4953 (checkpointing_pid): New.
4954 (linux_fork_checkpointing_p): New.
4955 (save_detach_fork): Delete.
4956 (checkpoint_command): Delete temp_detach_fork. Don't remove
4957 breakpoints, that's a nop. Store the pid of the process we're
4958 checkpointing, and use make_cleanup_restore_integer to restore it.
4959 Don't reinsert breakpoints here.
4960 (process_command, fork_command): Delete.
4961 (restart_command): Update comments to only mention checkpoints,
4962 not forks.
4963 (_initialize_linux_fork): Delete "fork", "process", "info forks"
4964 commands.
4965 * linux-fork.h (fork_save_infrun_state, fork_list): Delete
4966 declarations.
4967 (linux_fork_checkpointing_p): Declare.
4968 * cli/cli-cmds.c (killlist): New.
4969 * cli/cli-cmds.h (killlist): Declare.
4970 * gdbcmd.h (killlist): Declare.
4971 * inferior.c: Include "gdbthread.h".
4972 (detach_inferior_command, kill_inferior_command)
4973 (inferior_command): New.
4974 (info_inferiors_command): Allow specifying a specific inferior id.
4975 (_initialize_inferiors): Register "inferior", "kill inferior" and
4976 "detach inferior" commands.
4977 * infcmd.c (_initialize_infcmd): Make "kill" a prefix command.
4978 * gdbthread.h (any_thread_of_process): Declare.
4979 * thread.c (any_thread_of_process): New.
4980
4981 * NEWS: Mention multi-inferior debugging. Mention 'info
4982 inferiors', 'inferior', 'detach inferior' and 'kill inferior' as
4983 new commands.
4984 (Removed commands): New section, mentioning that 'info forks',
4985 'fork', 'process', 'delete fork' and 'detach fork' are now gone.
4986
59837fe0
UW
49872009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
4988
4989 * gdbarch.sh (current_gdbarch): Remove global variable.
4990 (find_arch_by_info): Remove, inline into ...
4991 (gdbarch_find_by_info): ... this. Remove current_gdbarch swapping.
4992 (deprecated_current_gdbarch_select_hack): Rename to ...
4993 (deprecated_target_gdbarch_select_hack): ... this. Do not set
4994 or access current_gdbarch.
4995 * gdbarch.c, gdbarch.h: Regenerate.
4996
4997 * arch-utils.c (gdbarch_update_p): Update call.
4998 (set_gdbarch_from_file): Likewise.
4999
e17a4113
UW
50002009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5001
5002 * defs.h (extract_signed_integer, extract_unsigned_integer,
5003 extract_long_unsigned_integer, store_signed_integer,
5004 store_unsigned_integer): Add BYTE_ORDER parameter.
5005 * findvar.c (extract_signed_integer, extract_unsigned_integer,
5006 extract_long_unsigned_integer, store_signed_integer,
5007 store_unsigned_integer): Add BYTE_ORDER parameter. Use it
5008 instead of current_gdbarch.
5009
5010 * gdbcore.h (read_memory_integer, safe_read_memory_integer,
5011 read_memory_unsigned_integer, write_memory_signed_integer,
5012 write_memory_unsigned_integer): Add BYTE_ORDER parameter.
5013 * corefile.c (struct captured_read_memory_integer_arguments): Add
5014 BYTE_ORDER member.
5015 (safe_read_memory_integer): Add BYTE_ORDER parameter. Store it into
5016 struct captured_read_memory_integer_arguments.
5017 (do_captured_read_memory_integer): Pass it to read_memory_integer.
5018 (read_memory_integer): Add BYTE_ORDER parameter. Pass it to
5019 extract_signed_integer.
5020 (read_memory_unsigned_integer): Add BYTE_ORDER parameter. Pass it to
5021 extract_unsigned_integer.
5022 (write_memory_signed_integer): Add BYTE_ORDER parameter. Pass it
5023 to store_signed_integer.
5024 (write_memory_unsigned_integer): Add BYTE_ORDER parameter. Pass it
5025 to store_unsigned_integer.
5026
5027 * target.h (get_target_memory_unsigned): Add BYTE_ORDER parameter.
5028 * target.c (get_target_memory_unsigned): Add BYTE_ORDER parameter.
5029 Pass it to extract_unsigned_integer.
5030
5031
5032 Update calls to extract_signed_integer, extract_unsigned_integer,
5033 extract_long_unsigned_integer, store_signed_integer,
5034 store_unsigned_integer, read_memory_integer,
5035 read_memory_unsigned_integer, safe_read_memory_integer,
5036 write_memory_signed_integer, write_memory_unsigned_integer, and
5037 get_target_memory_unsigned to pass byte order:
5038 * ada-lang.c (ada_value_binop): Update.
5039 * ada-valprint.c (char_at): Update.
5040 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Update.
5041 * alpha-tdep.c (alpha_lds, alpha_sts, alpha_push_dummy_call,
5042 alpha_extract_return_value, alpha_read_insn,
5043 alpha_get_longjmp_target): Update.
5044 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Update.
5045 * amd64obsd-tdep.c (amd64obsd_supply_uthread,
5046 amd64obsd_collect_uthread, amd64obsd_trapframe_cache): Update.
5047 * amd64-tdep.c (amd64_push_dummy_call, amd64_analyze_prologue,
5048 amd64_frame_cache, amd64_sigtramp_frame_cache, fixup_riprel,
5049 amd64_displaced_step_fixup): Update.
5050 * arm-linux-tdep.c (arm_linux_sigreturn_init,
5051 arm_linux_rt_sigreturn_init, arm_linux_supply_gregset): Update.
5052 * arm-tdep.c (thumb_analyze_prologue, arm_skip_prologue,
5053 arm_scan_prologue, arm_push_dummy_call, thumb_get_next_pc,
5054 arm_get_next_pc, arm_extract_return_value, arm_store_return_value,
5055 arm_return_value): Update.
5056 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5057 * auxv.c (default_auxv_parse): Update.
5058 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address,
5059 avr_scan_prologue, avr_extract_return_value,
5060 avr_frame_prev_register, avr_push_dummy_call): Update.
5061 * bsd-uthread.c (bsd_uthread_check_magic, bsd_uthread_lookup_offset,
5062 bsd_uthread_wait, bsd_uthread_thread_alive,
5063 bsd_uthread_extra_thread_info): Update.
5064 * c-lang.c (c_printstr, print_wchar): Update.
5065 * cp-valprint.c (cp_print_class_member): Update.
5066 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache,
5067 cris_push_dummy_call, cris_scan_prologue, cris_store_return_value,
5068 cris_extract_return_value, find_step_target, dip_prefix,
5069 sixteen_bit_offset_branch_op, none_reg_mode_jump_op,
5070 move_mem_to_reg_movem_op, get_data_from_address): Update.
5071 * dwarf2expr.c (dwarf2_read_address, execute_stack_op): Update.
5072 * dwarf2-frame.c (execute_cfa_program): Update.
5073 * dwarf2loc.c (find_location_expression): Update.
5074 * dwarf2read.c (dwarf2_const_value): Update.
5075 * expprint.c (print_subexp_standard): Update.
5076 * findvar.c (unsigned_pointer_to_address, signed_pointer_to_address,
5077 unsigned_address_to_pointer, address_to_signed_pointer,
5078 read_var_value): Update.
5079 * frame.c (frame_unwind_register_signed,
5080 frame_unwind_register_unsigned, get_frame_memory_signed,
5081 get_frame_memory_unsigned): Update.
5082 * frame-unwind.c (frame_unwind_got_constant): Update.
5083 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp,
5084 frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5085 Update.
5086 * frv-tdep.c (frv_analyze_prologue, frv_skip_main_prologue,
5087 frv_extract_return_value, find_func_descr,
5088 frv_convert_from_func_ptr_addr, frv_push_dummy_call): Update.
5089 * f-valprint.c (f_val_print): Update.
5090 * gnu-v3-abi.c (gnuv3_decode_method_ptr, gnuv3_make_method_ptr):
5091 Update.
5092 * h8300-tdep.c (h8300_is_argument_spill, h8300_analyze_prologue,
5093 h8300_push_dummy_call, h8300_extract_return_value,
5094 h8300h_extract_return_value, h8300_store_return_value,
5095 h8300h_store_return_value): Update.
5096 * hppabsd-tdep.c (hppabsd_find_global_pointer): Update.
5097 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register):
5098 Update.
5099 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline,
5100 hppa64_hpux_in_solib_call_trampoline,
5101 hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code,
5102 hppa_hpux_sigtramp_frame_unwind_cache,
5103 hppa_hpux_sigtramp_unwind_sniffer, hppa32_hpux_find_global_pointer,
5104 hppa64_hpux_find_global_pointer, hppa_hpux_search_pattern,
5105 hppa32_hpux_search_dummy_call_sequence,
5106 hppa64_hpux_search_dummy_call_sequence, hppa_hpux_supply_save_state,
5107 hppa_hpux_unwind_adjust_stub): Update.
5108 * hppa-linux-tdep.c (insns_match_pattern,
5109 hppa_linux_find_global_pointer): Update.
5110 * hppa-tdep.c (hppa_in_function_epilogue_p, hppa32_push_dummy_call,
5111 hppa64_convert_code_addr_to_fptr, hppa64_push_dummy_call,
5112 skip_prologue_hard_way, hppa_frame_cache, hppa_fallback_frame_cache,
5113 hppa_pseudo_register_read, hppa_frame_prev_register_helper,
5114 hppa_match_insns): Update.
5115 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5116 * i386-tdep.c (i386bsd_sigcontext_addr): Update.
5117 * i386-cygwin-tdep.c (core_process_module_section): Update.
5118 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn,
5119 amd64_darwin_sstep_at_sigreturn): Update.
5120 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr,
5121 amd64_darwin_sigcontext_addr): Likewise.
5122 * i386-linux-nat.c (i386_linux_sigcontext_addr): Update.
5123 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Update.
5124 * i386-nto-tdep.c (i386nto_sigcontext_addr): Update.
5125 * i386obsd-nat.c (i386obsd_supply_pcb): Update.
5126 * i386obsd-tdep.c (i386obsd_supply_uthread, i386obsd_collect_uthread,
5127 i386obsd_trapframe_cache): Update.
5128 * i386-tdep.c (i386_displaced_step_fixup, i386_follow_jump,
5129 i386_analyze_frame_setup, i386_analyze_prologue,
5130 i386_skip_main_prologue, i386_frame_cache, i386_sigtramp_frame_cache,
5131 i386_get_longjmp_target, i386_push_dummy_call,
5132 i386_pe_skip_trampoline_code, i386_svr4_sigcontext_addr,
5133 i386_fetch_pointer_argument): Update.
5134 * i387-tdep.c (i387_supply_fsave): Update.
5135 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Update.
5136 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write,
5137 examine_prologue, ia64_frame_cache, ia64_frame_prev_register,
5138 ia64_sigtramp_frame_cache, ia64_sigtramp_frame_prev_register,
5139 ia64_access_reg, ia64_access_rse_reg, ia64_libunwind_frame_this_id,
5140 ia64_libunwind_frame_prev_register,
5141 ia64_libunwind_sigtramp_frame_this_id,
5142 ia64_libunwind_sigtramp_frame_prev_register, ia64_find_global_pointer,
5143 find_extant_func_descr, find_func_descr,
5144 ia64_convert_from_func_ptr_addr, ia64_push_dummy_call, ia64_dummy_id,
5145 ia64_unwind_pc): Update.
5146 * iq2000-tdep.c (iq2000_pointer_to_address, iq2000_address_to_pointer,
5147 iq2000_scan_prologue, iq2000_extract_return_value,
5148 iq2000_push_dummy_call): Update.
5149 * irix5nat.c (fill_gregset): Update.
5150 * jv-lang.c (evaluate_subexp_java): Update.
5151 * jv-valprint.c (java_value_print): Update.
5152 * lm32-tdep.c (lm32_analyze_prologue, lm32_push_dummy_call,
5153 lm32_extract_return_value, lm32_store_return_value): Update.
5154 * m32c-tdep.c (m32c_push_dummy_call, m32c_return_value,
5155 m32c_skip_trampoline_code, m32c_m16c_address_to_pointer,
5156 m32c_m16c_pointer_to_address): Update.
5157 * m32r-tdep.c (m32r_store_return_value, decode_prologue,
5158 m32r_skip_prologue, m32r_push_dummy_call, m32r_extract_return_value):
5159 Update.
5160 * m68hc11-tdep.c (m68hc11_pseudo_register_read,
5161 m68hc11_pseudo_register_write, m68hc11_analyze_instruction,
5162 m68hc11_push_dummy_call): Update.
5163 * m68linux-tdep.c (m68k_linux_pc_in_sigtramp,
5164 m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
5165 Update.
5166 * m68k-tdep.c (m68k_push_dummy_call, m68k_analyze_frame_setup,
5167 m68k_analyze_register_saves, m68k_analyze_prologue, m68k_frame_cache,
5168 m68k_get_longjmp_target): Update.
5169 * m88k-tdep.c (m88k_fetch_instruction): Update.
5170 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_csr_write,
5171 mep_pseudo_cr32_write, mep_get_insn, mep_push_dummy_call): Update.
5172 * mi/mi-main.c (mi_cmd_data_write_memory): Update.
5173 * mips-linux-tdep.c (mips_linux_get_longjmp_target, supply_32bit_reg,
5174 mips64_linux_get_longjmp_target, mips64_fill_gregset,
5175 mips64_fill_fpregset, mips_linux_in_dynsym_stub): Update.
5176 * mipsnbdsd-tdep.c (mipsnbsd_get_longjmp_target): Update.
5177 * mips-tdep.c (mips_fetch_instruction, fetch_mips_16,
5178 mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call,
5179 mips_o32_push_dummy_call, mips_o64_push_dummy_call,
5180 mips_single_step_through_delay, mips_skip_pic_trampoline_code,
5181 mips_integer_to_address): Update.
5182 * mn10300-tdep.c (mn10300_analyze_prologue, mn10300_push_dummy_call):
5183 Update.
5184 * monitor.c (monitor_supply_register, monitor_write_memory,
5185 monitor_read_memory_single): Update.
5186 * moxie-tdep.c (moxie_store_return_value, moxie_extract_return_value,
5187 moxie_analyze_prologue): Update.
5188 * mt-tdep.c (mt_return_value, mt_skip_prologue, mt_select_coprocessor,
5189 mt_pseudo_register_read, mt_pseudo_register_write, mt_registers_info,
5190 mt_push_dummy_call): Update.
5191 * objc-lang.c (read_objc_method, read_objc_methlist_nmethods,
5192 read_objc_methlist_method, read_objc_object, read_objc_super,
5193 read_objc_class, find_implementation_from_class): Update.
5194 * ppc64-linux-tdep.c (ppc64_desc_entry_point,
5195 ppc64_linux_convert_from_func_ptr_addr, ppc_linux_sigtramp_cache):
5196 Update.
5197 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_sniffer,
5198 ppcobsd_sigtramp_frame_cache): Update.
5199 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5200 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5201 ppc64_sysv_abi_return_value): Update.
5202 * ppc-linux-nat.c (ppc_linux_auxv_parse): Update.
5203 * procfs.c (procfs_auxv_parse): Update.
5204 * p-valprint.c (pascal_val_print): Update.
5205 * regcache.c (regcache_raw_read_signed, regcache_raw_read_unsigned,
5206 regcache_raw_write_signed, regcache_raw_write_unsigned,
5207 regcache_cooked_read_signed, regcache_cooked_read_unsigned,
5208 regcache_cooked_write_signed, regcache_cooked_write_unsigned): Update.
5209 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5210 * remote-mips.c (mips_wait, mips_fetch_registers, mips_xfer_memory):
5211 Update.
5212 * rs6000-aix-tdep.c (rs6000_push_dummy_call, rs6000_return_value,
5213 rs6000_convert_from_func_ptr_addr, branch_dest,
5214 rs6000_software_single_step): Update.
5215 * rs6000-tdep.c (rs6000_in_function_epilogue_p,
5216 ppc_displaced_step_fixup, ppc_deal_with_atomic_sequence,
5217 bl_to_blrl_insn_p, rs6000_fetch_instruction, skip_prologue,
5218 rs6000_skip_main_prologue, rs6000_skip_trampoline_code,
5219 rs6000_frame_cache): Update.
5220 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write,
5221 s390x_pseudo_register_read, s390x_pseudo_register_write, s390_load,
5222 s390_backchain_frame_unwind_cache, s390_sigtramp_frame_unwind_cache,
5223 extend_simple_arg, s390_push_dummy_call, s390_return_value): Update.
5224 * scm-exp.c (scm_lreadr): Update.
5225 * scm-lang.c (scm_get_field, scm_unpack): Update.
5226 * scm-valprint.c (scm_val_print): Update.
5227 * score-tdep.c (score_breakpoint_from_pc, score_push_dummy_call,
5228 score_fetch_inst): Update.
5229 * sh64-tdep.c (look_for_args_moves, sh64_skip_prologue_hard_way,
5230 sh64_analyze_prologue, sh64_push_dummy_call, sh64_extract_return_value,
5231 sh64_pseudo_register_read, sh64_pseudo_register_write,
5232 sh64_frame_prev_register): Update:
5233 * sh-tdep.c (sh_analyze_prologue, sh_push_dummy_call_fpu,
5234 sh_push_dummy_call_nofpu, sh_extract_return_value_nofpu,
5235 sh_store_return_value_nofpu, sh_in_function_epilogue_p): Update.
5236 * solib-darwin.c (darwin_load_image_infos): Update.
5237 * solib-frv.c (fetch_loadmap, lm_base, frv_current_sos, enable_break2,
5238 find_canonical_descriptor_in_load_object): Update.
5239 * solib-irix.c (extract_mips_address, fetch_lm_info, irix_current_sos,
5240 irix_open_symbol_file_object): Update.
5241 * solib-som.c (som_solib_create_inferior_hook, link_map_start,
5242 som_current_sos, som_open_symbol_file_object): Update.
5243 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS, LM_ADDR, LM_NEXT, LM_NAME):
5244 Update.
5245 * solib-svr4.c (read_program_header, scan_dyntag_auxv,
5246 solib_svr4_r_ldsomap): Update.
5247 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Update.
5248 * sparc64obsd-tdep.c (sparc64obsd_supply_uthread,
5249 sparc64obsd_collect_uthread): Update.
5250 * sparc64-tdep.c (sparc64_pseudo_register_read,
5251 sparc64_pseudo_register_write, sparc64_supply_gregset,
5252 sparc64_collect_gregset): Update.
5253 * sparc-linux-tdep.c (sparc32_linux_step_trap): Update.
5254 * sparcobsd-tdep.c (sparc32obsd_supply_uthread,
5255 sparc32obsd_collect_uthread): Update.
5256 * sparc-tdep.c (sparc_fetch_wcookie, sparc32_push_dummy_code,
5257 sparc32_store_arguments, sparc32_return_value, sparc_supply_rwindow,
5258 sparc_collect_rwindow): Update.
5259 * spu-linux-nat.c (parse_spufs_run): Update.
5260 * spu-tdep.c (spu_pseudo_register_read_spu,
5261 spu_pseudo_register_write_spu, spu_pointer_to_address,
5262 spu_analyze_prologue, spu_in_function_epilogue_p,
5263 spu_frame_unwind_cache, spu_push_dummy_call, spu_software_single_step,
5264 spu_get_longjmp_target, spu_get_overlay_table, spu_overlay_update_osect,
5265 info_spu_signal_command, info_spu_mailbox_list, info_spu_dma_cmdlist,
5266 info_spu_dma_command, info_spu_proxydma_command): Update.
5267 * stack.c (print_frame_nameless_args, frame_info): Update.
5268 * symfile.c (read_target_long_array, simple_read_overlay_table,
5269 simple_read_overlay_region_table): Update.
5270 * target.c (debug_print_register): Update.
5271 * tramp-frame.c (tramp_frame_start): Update.
5272 * v850-tdep.c (v850_analyze_prologue, v850_push_dummy_call,
5273 v850_extract_return_value, v850_store_return_value,
5274 * valarith.c (value_binop, value_bit_index): Update.
5275 * valops.c (value_cast): Update.
5276 * valprint.c (val_print_type_code_int, val_print_string,
5277 read_string): Update.
5278 * value.c (unpack_long, unpack_double, unpack_field_as_long,
5279 modify_field, pack_long): Update.
5280 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call,
5281 vax_skip_prologue): Update.
5282 * xstormy16-tdep.c (xstormy16_push_dummy_call,
5283 xstormy16_analyze_prologue, xstormy16_in_function_epilogue_p,
5284 xstormy16_resolve_jmp_table_entry, xstormy16_find_jmp_table_entry,
5285 xstormy16_pointer_to_address, xstormy16_address_to_pointer): Update.
5286 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read,
5287 xtensa_pseudo_register_write, xtensa_frame_cache,
5288 xtensa_push_dummy_call, call0_track_op, call0_frame_cache): Update.
5289
5290
5291 * dfp.h (decimal_to_string, decimal_from_string, decimal_from_integral,
5292 decimal_from_floating, decimal_to_doublest, decimal_is_zero): Add
5293 BYTE_ORDER parameter.
5294 (decimal_binop): Add BYTE_ORDER_X, BYTE_ORDER_Y, and BYTE_ORDER_RESULT
5295 parameters.
5296 (decimal_compare): Add BYTE_ORDER_X and BYTE_ORDER_Y parameters.
5297 (decimal_convert): Add BYTE_ORDER_FROM and BYTE_ORDER_TO parameters.
5298 * dfp.c (match_endianness): Add BYTE_ORDER parameter. Use it
5299 instead of current_gdbarch.
5300 (decimal_to_string, decimal_from_integral, decimal_from_floating,
5301 decimal_to_doublest, decimal_is_zero): Add BYTE_ORDER parameter.
5302 Pass it to match_endianness.
5303 (decimal_binop): Add BYTE_ORDER_X, BYTE_ORDER_Y, and BYTE_ORDER_RESULT
5304 parameters. Pass them to match_endianness.
5305 (decimal_compare): Add BYTE_ORDER_X and BYTE_ORDER_Y parameters.
5306 Pass them to match_endianness.
5307 (decimal_convert): Add BYTE_ORDER_FROM and BYTE_ORDER_TO parameters.
5308 Pass them to match_endianness.
5309 * valarith.c (value_args_as_decimal): Add BYTE_ORDER_X and
5310 BYTE_ORDER_Y output parameters.
5311 (value_binop): Update call to value_args_as_decimal.
5312
5313 Update calls to decimal_to_string, decimal_from_string,
5314 decimal_from_integral, decimal_from_floating, decimal_to_doublest,
5315 decimal_is_zero, decimal_binop, decimal_compare and decimal_convert
5316 to pass/receive byte order:
5317 * c-exp.y (parse_number): Update.
5318 * printcmd.c (printf_command): Update.
5319 * valarith.c (value_args_as_decimal, value_binop, value_logical_not,
5320 value_equal, value_less): Update.
5321 * valops.c (value_cast, value_one): Update.
5322 * valprint.c (print_decimal_floating): Update.
5323 * value.c (unpack_long, unpack_double): Update.
5324 * python/python-value.c (valpy_nonzero): Update.
5325
5326
5327 * ada-valprint.c (char_at): Add BYTE_ORDER parameter.
5328 (printstr): Update calls to char_at.
5329 (ada_val_print_array): Likewise.
5330 * valprint.c (read_string): Add BYTE_ORDER parameter.
5331 (val_print_string): Update call to read_string.
5332 * c-lang.c (c_get_string): Likewise.
5333 * charset.h (target_wide_charset): Add BYTE_ORDER parameter.
5334 * charset.c (target_wide_charset): Add BYTE_ORDER parameter.
5335 Use it instead of current_gdbarch.
5336 * printcmd.c (printf_command): Update calls to target_wide_charset.
5337 * c-lang.c (charset_for_string_type): Add BYTE_ORDER parameter.
5338 Pass to target_wide_charset. Use it instead of current_gdbarch.
5339 (classify_type): Add BYTE_ORDER parameter. Pass to
5340 charset_for_string_type. Allow NULL encoding pointer.
5341 (print_wchar): Add BYTE_ORDER parameter.
5342 (c_emit_char): Update calls to classify_type and print_wchar.
5343 (c_printchar, c_printstr): Likewise.
5344
5345
5346 * gdbarch.sh (in_solib_return_trampoline): Convert to type "m".
5347 * gdbarch.c, gdbarch.h: Regenerate.
5348 * arch-utils.h (generic_in_solib_return_trampoline): Add GDBARCH
5349 parameter.
5350 * arch-utils.c (generic_in_solib_return_trampoline): Likewise.
5351 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Likewise.
5352 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise.
5353 (rs6000_skip_trampoline_code): Update call.
5354
5355 * alpha-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter to
5356 dynamic_sigtramp_offset and pc_in_sigtramp callbacks.
5357 (alpha_read_insn): Add GDBARCH parameter.
5358 * alpha-tdep.c (alpha_lds, alpha_sts): Add GDBARCH parameter.
5359 (alpha_register_to_value): Pass architecture to alpha_sts.
5360 (alpha_extract_return_value): Likewise.
5361 (alpha_value_to_register): Pass architecture to alpha_lds.
5362 (alpha_store_return_value): Likewise.
5363 (alpha_read_insn): Add GDBARCH parameter.
5364 (alpha_skip_prologue): Pass architecture to alpha_read_insn.
5365 (alpha_heuristic_proc_start): Likewise.
5366 (alpha_heuristic_frame_unwind_cache): Likewise.
5367 (alpha_next_pc): Likewise.
5368 (alpha_sigtramp_frame_this_id): Pass architecture to
5369 tdep->dynamic_sigtramp_offset callback.
5370 (alpha_sigtramp_frame_sniffer): Pass architecture to
5371 tdep->pc_in_sigtramp callback.
5372 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): Add GDBARCH parameter.
5373 (alphafbsd_sigtramp_offset): Likewise.
5374 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): Add GDBARCH
5375 parameter. Pass to alpha_read_insn.
5376 (alpha_linux_sigtramp_offset): Add GDBARCH parameter. Pass to
5377 alpha_linux_sigtramp_offset_1.
5378 (alpha_linux_pc_in_sigtramp): Add GDBARCH parameter. Pass to
5379 alpha_linux_sigtramp_offset.
5380 (alpha_linux_sigcontext_addr): Pass architecture to alpha_read_insn
5381 and alpha_linux_sigtramp_offset.
5382 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Add GDBARCH parameter.
5383 (alphanbsd_pc_in_sigtramp): Add GDBARCH parameter. Pass to
5384 alphanbsd_sigtramp_offset.
5385 * alphaobsd-tdep.c (alphaobsd_sigtramp_offset): Add GDBARCH parameter.
5386 (alphaobsd_pc_in_sigtramp): Add GDBARCH parameter. Pass to
5387 alpha_read_insn.
5388 (alphaobsd_sigcontext_addr): Pass architecture to
5389 alphaobsd_sigtramp_offset.
5390 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): Add GDBARCH
5391 parameter.
5392
5393 * amd64-tdep.c (amd64_analyze_prologue): Add GDBARCH parameter.
5394 (amd64_skip_prologue): Pass architecture to amd64_analyze_prologue.
5395 (amd64_frame_cache): Likewise.
5396
5397 * arm-tdep.c (SWAP_SHORT, SWAP_INT): Remove.
5398 (thumb_analyze_prologue, arm_skip_prologue, arm_scan_prologue,
5399 thumb_get_next_pc, arm_get_next_pc): Do not use SWAP_ macros.
5400 * arm-wince-tdep.c: Include "frame.h".
5401
5402 * avr-tdep.c (EXTRACT_INSN): Remove.
5403 (avr_scan_prologue): Add GDBARCH argument, inline EXTRACT_INSN.
5404 (avr_skip_prologue): Pass architecture to avr_scan_prologue.
5405 (avr_frame_unwind_cache): Likewise.
5406
5407 * cris-tdep.c (struct instruction_environment): Add BYTE_ORDER member.
5408 (find_step_target): Initialize it.
5409 (get_data_from_address): Add BYTE_ORDER parameter.
5410 (bdap_prefix): Pass byte order to get_data_from_address.
5411 (handle_prefix_assign_mode_for_aritm_op): Likewise.
5412 (three_operand_add_sub_cmp_and_or_op): Likewise.
5413 (handle_inc_and_index_mode_for_aritm_op): Likewise.
5414
5415 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Add GDBARCH parameter.
5416 (frv_linux_sigcontext_reg_addr): Pass architecture to
5417 frv_linux_pc_in_sigtramp.
5418 (frv_linux_sigtramp_frame_sniffer): Likewise.
5419
5420 * h8300-tdep.c (h8300_is_argument_spill): Add GDBARCH parameter.
5421 (h8300_analyze_prologue): Add GDBARCH parameter. Pass to
5422 h8300_is_argument_spill.
5423 (h8300_frame_cache, h8300_skip_prologue): Pass architecture
5424 to h8300_analyze_prologue.
5425
5426 * hppa-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter to
5427 in_solib_call_trampoline callback.
5428 (hppa_in_solib_call_trampoline): Add GDBARCH parameter.
5429 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Add GDBARCH
5430 parameter.
5431 (hppa64_push_dummy_call): Pass architecture to
5432 hppa64_convert_code_addr_to_fptr.
5433 (hppa_match_insns): Add GDBARCH parameter.
5434 (hppa_match_insns_relaxed): Add GDBARCH parameter. Pass to
5435 hppa_match_insns.
5436 (hppa_skip_trampoline_code): Pass architecture to hppa_match_insns.
5437 (hppa_in_solib_call_trampoline): Add GDBARCH parameter. Pass to
5438 hppa_match_insns_relaxed.
5439 (hppa_stub_unwind_sniffer): Pass architecture to
5440 tdep->in_solib_call_trampoline callback.
5441 * hppa-hpux-tdep.c (hppa_hpux_search_pattern): Add GDBARCH parameter.
5442 (hppa32_hpux_search_dummy_call_sequence): Pass architecture to
5443 hppa_hpux_search_pattern.
5444 * hppa-linux-tdep.c (insns_match_pattern): Add GDBARCH parameter.
5445 (hppa_linux_sigtramp_find_sigcontext): Add GDBARCH parameter.
5446 Pass to insns_match_pattern.
5447 (hppa_linux_sigtramp_frame_unwind_cache): Pass architecture to
5448 hppa_linux_sigtramp_find_sigcontext.
5449 (hppa_linux_sigtramp_frame_sniffer): Likewise.
5450 (hppa32_hpux_in_solib_call_trampoline): Add GDBARCH parameter.
5451 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5452
5453 * i386-tdep.c (i386_follow_jump): Add GDBARCH parameter.
5454 (i386_analyze_frame_setup): Add GDBARCH parameter.
5455 (i386_analyze_prologue): Add GDBARCH parameter. Pass to
5456 i386_follow_jump and i386_analyze_frame_setup.
5457 (i386_skip_prologue): Pass architecture to i386_analyze_prologue
5458 and i386_follow_jump.
5459 (i386_frame_cache): Pass architecture to i386_analyze_prologue.
5460 (i386_pe_skip_trampoline_code): Add FRAME parameter.
5461 * i386-tdep.h (i386_pe_skip_trampoline_code): Add FRAME parameter.
5462 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Pass
5463 frame to i386_pe_skip_trampoline_code.
5464
5465 * ia64-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter
5466 to sigcontext_register_address callback.
5467 * ia64-tdep.c (ia64_find_global_pointer): Add GDBARCH parameter.
5468 (ia64_find_unwind_table): Pass architecture to
5469 ia64_find_global_pointer.
5470 (find_extant_func_descr): Add GDBARCH parameter.
5471 (find_func_descr): Pass architecture to find_extant_func_descr
5472 and ia64_find_global_pointer.
5473 (ia64_sigtramp_frame_init_saved_regs): Pass architecture to
5474 tdep->sigcontext_register_address callback.
5475 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Add
5476 GDBARCH parameter.
5477
5478 * iq2000-tdep.c (iq2000_scan_prologue): Add GDBARCH parameter.
5479 (iq2000_frame_cache): Pass architecture to iq2000_scan_prologue.
5480
5481 * lm32-tdep.c (lm32_analyze_prologue): Add GDBARCH parameter.
5482 (lm32_skip_prologue, lm32_frame_cache): Pass architecture to
5483 lm32_analyze_prologue.
5484
5485 * m32r-tdep.c (decode_prologue): Add GDBARCH parameter.
5486 (m32r_skip_prologue): Pass architecture to decode_prologue.
5487
5488 * m68hc11-tdep.c (m68hc11_analyze_instruction): Add GDBARCH parameter.
5489 (m68hc11_scan_prologue): Pass architecture to
5490 m68hc11_analyze_instruction.
5491
5492 * m68k-tdep.c (m68k_analyze_frame_setup): Add GDBARCH parameter.
5493 (m68k_analyze_prologue): Pass architecture to
5494 m68k_analyze_frame_setup.
5495
5496 * m88k-tdep.c (m88k_fetch_instruction): Add BYTE_ORDER parameter.
5497 (m88k_analyze_prologue): Add GDBARCH parameter. Pass byte order
5498 to m88k_fetch_instruction.
5499 (m88k_skip_prologue): Pass architecture to m88k_analyze_prologue.
5500 (m88k_frame_cache): Likewise.
5501
5502 * mep-tdep.c (mep_get_insn): Add GDBARCH parameter.
5503 (mep_analyze_prologue): Pass architecture to mep_get_insn.
5504
5505 * mips-tdep.c (mips_fetch_instruction): Add GDBARCH parameter.
5506 (mips32_next_pc): Pass architecture to mips_fetch_instruction.
5507 (deal_with_atomic_sequence): Likewise.
5508 (unpack_mips16): Add GDBARCH parameter, pass to mips_fetch_instruction.
5509 (mips16_scan_prologue): Likewise.
5510 (mips32_scan_prologue): Likewise.
5511 (mips16_in_function_epilogue_p): Likewise.
5512 (mips32_in_function_epilogue_p): Likewise.
5513 (mips_about_to_return): Likewise.
5514 (mips_insn16_frame_cache): Pass architecture to mips16_scan_prologue.
5515 (mips_insn32_frame_cache): Pass architecture to mips32_scan_prologue.
5516 (mips_skip_prologue): Pass architecture to mips16_scan_prologue
5517 and mips32_scan_prologue.
5518 (mips_in_function_epilogue_p): Pass architecture to
5519 mips16_in_function_epilogue_p and
5520 mips32_in_function_epilogue_p.
5521 (heuristic_proc_start): Pass architecture to mips_fetch_instruction
5522 and mips_about_to_return.
5523 (mips_skip_mips16_trampoline_code): Pass architecture to
5524 mips_fetch_instruction.
5525 (fetch_mips_16): Add GDBARCH parameter.
5526 (mips16_next_pc): Pass architecture to fetch_mips_16.
5527 (extended_mips16_next_pc): Pass architecture to unpack_mips16 and
5528 fetch_mips_16.
5529
5530 * objc-lang.c (read_objc_method, read_objc_methlist_nmethods,
5531 read_objc_methlist_method, read_objc_object, read_objc_super,
5532 read_objc_class): Add GDBARCH parameter.
5533 (find_implementation_from_class): Add GDBARCH parameter, pass
5534 to read_objc_class, read_objc_methlist_nmethods, and
5535 read_objc_methlist_method.
5536 (find_implementation): Add GDBARCH parameter, pass to
5537 read_objc_object and find_implementation_from_class.
5538 (resolve_msgsend, resolve_msgsend_stret): Pass architecture
5539 to find_implementation.
5540 (resolve_msgsend_super, resolve_msgsend_super_stret): Pass
5541 architecture to read_objc_super and find_implementation_from_class.
5542
5543 * ppc64-linux-tdep.c (ppc64_desc_entry_point): Add GDBARCH parameter.
5544 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target,
5545 ppc64_standard_linkage3_target): Pass architecture to
5546 ppc64_desc_entry_point.
5547 * rs6000-tdep.c (bl_to_blrl_insn_p): Add BYTE_ORDER parameter.
5548 (skip_prologue): Pass byte order to bl_to_blrl_insn_p.
5549 (rs6000_fetch_instruction): Add GDBARCH parameter.
5550 (rs6000_skip_stack_check): Add GDBARCH parameter, pass to
5551 rs6000_fetch_instruction.
5552 (skip_prologue): Pass architecture to rs6000_fetch_instruction.
5553
5554 * remote-mips.c (mips_store_word): Return old_contents as host
5555 integer value instead of target bytes.
5556
5557 * s390-tdep.c (struct s390_prologue_data): Add BYTE_ORDER member.
5558 (s390_analyze_prologue): Initialize it.
5559 (extend_simple_arg): Add GDBARCH parameter.
5560 (s390_push_dummy_call): Pass architecture to extend_simple_arg.
5561
5562 * scm-lang.c (scm_get_field): Add BYTE_ORDER parameter.
5563 * scm-lang.h (scm_get_field): Add BYTE_ORDER parameter.
5564 (SCM_CAR, SCM_CDR): Pass SCM_BYTE_ORDER to scm_get_field.
5565 * scm-valprint.c (scm_scmval_print): Likewise.
5566 (scm_scmlist_print, scm_ipruk, scm_scmval_print): Define
5567 SCM_BYTE_ORDER.
5568
5569 * sh64-tdep.c (look_for_args_moves): Add GDBARCH parameter.
5570 (sh64_skip_prologue_hard_way): Add GDBARCH parameter, pass to
5571 look_for_args_moves.
5572 (sh64_skip_prologue): Pass architecture to
5573 sh64_skip_prologue_hard_way.
5574 * sh-tdep.c (sh_analyze_prologue): Add GDBARCH parameter.
5575 (sh_skip_prologue): Pass architecture to sh_analyze_prologue.
5576 (sh_frame_cache): Likewise.
5577
5578 * solib-irix.c (extract_mips_address): Add GDBARCH parameter.
5579 (fetch_lm_info, irix_current_sos, irix_open_symbol_file_object):
5580 Pass architecture to extract_mips_address.
5581
5582 * sparc-tdep.h (sparc_fetch_wcookie): Add GDBARCH parameter.
5583 * sparc-tdep.c (sparc_fetch_wcookie): Add GDBARCH parameter.
5584 (sparc_supply_rwindow, sparc_collect_rwindow): Pass architecture
5585 to sparc_fetch_wcookie.
5586 (sparc32_frame_prev_register): Likewise.
5587 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5588 * sparc32nbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5589 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5590
5591 * spu-tdep.c (spu_analyze_prologue): Add GDBARCH parameter.
5592 (spu_skip_prologue): Pass architecture to spu_analyze_prologue.
5593 (spu_virtual_frame_pointer): Likewise.
5594 (spu_frame_unwind_cache): Likewise.
5595 (info_spu_mailbox_list): Add BYTE_ORER parameter.
5596 (info_spu_mailbox_command): Pass byte order to info_spu_mailbox_list.
5597 (info_spu_dma_cmdlist): Add BYTE_ORER parameter.
5598 (info_spu_dma_command, info_spu_proxydma_command): Pass byte order
5599 to info_spu_dma_cmdlist.
5600
5601 * symfile.c (read_target_long_array): Add GDBARCH parameter.
5602 (simple_read_overlay_table, simple_read_overlay_region_table,
5603 simple_overlay_update_1): Pass architecture to read_target_long_array.
5604
5605 * v850-tdep.c (v850_analyze_prologue): Add GDBARCH parameter.
5606 (v850_frame_cache): Pass architecture to v850_analyze_prologue.
5607
5608 * xstormy16-tdep.c (xstormy16_analyze_prologue): Add GDBARCH
5609 parameter.
5610 (xstormy16_skip_prologue, xstormy16_frame_cache): Pass architecture
5611 to xstormy16_analyze_prologue.
5612 (xstormy16_resolve_jmp_table_entry): Add GDBARCH parameter.
5613 (xstormy16_find_jmp_table_entry): Likewise.
5614 (xstormy16_skip_trampoline_code): Pass architecture to
5615 xstormy16_resolve_jmp_table_entry.
5616 (xstormy16_pointer_to_address): Likewise.
5617 (xstormy16_address_to_pointer): Pass architecture to
5618 xstormy16_find_jmp_table_entry.
5619
5620 * xtensa-tdep.c (call0_track_op): Add GDBARCH parameter.
5621 (call0_analyze_prologue): Add GDBARCH parameter, pass to
5622 call0_track_op.
5623 (call0_frame_cache): Pass architecture to call0_analyze_prologue.
5624 (xtensa_skip_prologue): Likewise.
5625
5af949e3
UW
56262009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5627
5628 * defs.h (strlen_paddr, paddr, paddr_nz): Remove.
5629 (paddress): Add GDBARCH parameter.
5630 * utils.c (strlen_paddr, paddr, paddr_nz): Remove.
5631 (paddress): Add GDBARCH parameter, use it instead of current_gdbarch.
5632 * ui-out.h (ui_out_field_core_addr): Add GDBARCH parameter.
5633 * ui-out.c (ui_out_field_core_addr): Add GDBARCH parameter,
5634 use it instead of current_gdbarch.
5635
5636 Update calls to ui_out_field_core_addr to pass architecture:
5637 * ada-lang.c (print_one_exception): Update.
5638 * breakpoint.c (print_one_breakpoint_location,
5639 print_one_exception_catchpoint): Update.
5640 * disasm.c (dump_insns): Update.
5641 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5642 * mi/mi-main.c (mi_cmd_data_read_memory): Update.
5643 * mi/mi-symbol-cmds.c: Include "objfiles.h".
5644 (mi_cmd_symbol_list_lines): Update.
5645 * stack.c (print_frame_info, print_frame): Update.
5646
5647 Update callers of paddress to pass architecture:
5648 * ada-tasks.c (info_task): Update.
5649 * ada-valprint.c (ada_val_print_1): Update.
5650 * annotate.c (annotate_source, annotate_frame_begin): Update.
5651 * breakpoint.c (insert_bp_location, describe_other_breakpoints,
5652 mention): Update.
5653 * cli/cli-cmds.c (edit_command, list_command, print_disassembly):
5654 Update.
5655 * corefile.c (memory_error): Update.
5656 * c-valprint.c (print_function_pointer_address, c_val_print): Update.
5657 * disasm.c (dis_asm_print_address): Update.
5658 * exec.c (print_section_info): Update.
5659 * f-valprint.c (f_val_print): Update.
5660 * infcmd.c: Include "arch-utils.h".
5661 (jump_command, program_info): Update.
5662 * linux-fork.c: Include "arch-utils.h".
5663 (info_forks_command): Update.
5664 * m2-valprint.c (print_function_pointer_address,
5665 print_unpacked_pointer, print_variable_at_address,
5666 m2_val_print): Update.
5667 * m32r-rom.c (m32r_load_section, m32r_load, m32r_upload_command):
5668 Update.
5669 * printcmd.c (print_address, print_address_demangle, address_info):
5670 Update.
5671 * p-valprint.c (pascal_val_print): Update.
5672 * source.c: Include "arch-utils.h".
5673 (line_info): Update.
5674 * stack.c (frame_info, print_block_frame_labels): Update.
5675 * symfile.c (add_symbol_file_command, list_overlays_command): Update.
5676 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1,
5677 print_symbol, print_partial_symbols, maintenance_info_psymtabs,
5678 maintenance_check_symtabs): Update.
5679 * symtab.c (find_pc_sect_symtab): Update.
5680 * target.c (deprecated_debug_xfer_memory): Update.
5681 * tracepoint.c (scope_info): Update.
5682 * tui/tui-stack.c (tui_make_status_line): Update.
5683 * valprint.c (val_print_string): Update.
5684
5685 Update callers of paddr_nz to use paddress instead (keeping
5686 user-visible output identical):
5687 * alpha-tdep.c (alpha_heuristic_proc_start): Update.
5688 * amd64-tdep.c (fixup_riprel, amd64_displaced_step_copy_insn,
5689 amd64_displaced_step_fixup): Update.
5690 * arch-utils.c (simple_displaced_step_copy_insn): Update.
5691 * auxv.c (fprint_target_auxv): Update.
5692 * breakpoint.c (insert_single_step_breakpoint): Update.
5693 * buildsym.c (finish_block): Update.
5694 * cli/cli-dump.c (restore_section_callback): Update.
5695 * fbsd-nat.c (fbsd_find_memory_regions): Update.
5696 * frame.c (frame_unwind_register_value): Update.
5697 * gcore.c (gcore_create_callback): Update.
5698 * hppa-tdep.c (hppa_frame_cache, hppa_skip_trampoline_code): Update.
5699 * i386-tdep.c (i386_displaced_step_fixup, i386_record_modrm,
5700 i386_record_lea_modrm_addr, i386_record_lea_modrm,
5701 i386_process_record): Update.
5702 * ia64-tdep.c (ia64_frame_this_id, ia64_sigtramp_frame_this_id,
5703 ia64_libunwind_frame_this_id, ia64_libunwind_sigtramp_frame_this_id,
5704 ia64_dummy_id, ia64_access_reg, ia64_access_rse_reg): Update.
5705 * infrun.c (displaced_step_prepare, displaced_step_fixup,
5706 handle_inferior_event, insert_step_resume_breakpoint_at_sal,
5707 insert_longjmp_resume_breakpoint): Update.
5708 * linux-nat.c (linux_nat_find_memory_regions): Update.
5709 * linux-record.c (record_linux_system_call): Update.
5710 * mips-tdep.c (heuristic_proc_start, mips_eabi_push_dummy_call,
5711 mips_n32n64_push_dummy_call, mips_o32_push_dummy_call,
5712 mips_o64_push_dummy_call): Update.
5713 * monitor.c (monitor_error, monitor_remove_breakpoint): Update.
5714 * record.c (record_arch_list_add_mem, record_wait,
5715 record_xfer_partial): Update.
5716 * remote-mips.c (mips_fetch_word, mips_check_lsi_error,
5717 mips_common_breakpoint): Update.
5718 * remote-sim.c (gdbsim_xfer_inferior_memory): Update.
5719 * rs6000-tdep.c (ppc_displaced_step_fixup): Update.
5720 * solib-som.c (som_current_sos): Update.
5721 * symfile.c (load_progress, generic_load): Update.
5722 * symfile-mem.c (add_vsyscall_page): Update.
5723 * valops.c (value_fetch_lazy): Update.
5724 * windows-tdep.c (windows_xfer_shared_library): Update.
5725
5726 Update callers of paddr_nz to use paddress instead (changing
5727 user-visible output to make it more correct):
5728 * dwarf2loc.c (locexpr_describe_location): Update.
5729 * ia64-tdep.c (ia64_memory_insert_breakpoint,
5730 ia64_memory_remove_breakpoint): Update.
5731 * jv-valprint.c (java_value_print): Update.
5732 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
5733 * monitor.c (monitor_read_memory): Update.
5734
5735 Update callers of paddr to use paddress instead (changing
5736 user-visible output to make it more correct):
5737 * arm-tdep.c (arm_push_dummy_call): Update.
5738 * breakpoint.c (insert_bp_location, create_thread_event_breakpoint,
5739 create_breakpoint): Update.
5740 * darwin-nat-info.c (darwin_debug_regions): Update.
5741 * dcache.c (dcache_info): Update.
5742 * dsrec.c (load_srec, make_srec): Update.
5743 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program,
5744 dwarf2_frame_cache): Update.
5745 * gcore.c (gcore_copy_callback): Update.
5746 * gnu-nat.c (gnu_xfer_memory): Update.
5747 * mips-linux-nat.c (mips_show_dr): Update.
5748 * monitor.c (monitor_write_memory, monitor_insert_breakpoint,
5749 monitor_remove_breakpoint): Update.
5750 * remote.c (compare_sections_command): Update.
5751 * remote-m32r-sdi.c (m32r_xfer_memory, m32r_insert_breakpoint,
5752 m32r_remove_breakpoint, m32r_insert_watchpoint,
5753 m32r_remove_watchpoint): Update.
5754 * sol-thread.c (info_cb): Update.
5755 * symfile.c (load_progress): Update.
5756
5757 Update callers of paddress or paddr_nz to use hex_string instead
5758 (changes output of internal/error/debug messages only):
5759 * dwarf2read.c (dump_die_shallow): Update.
5760 * frame.c (fprint_field, fprint_frame, frame_pc_unwind,
5761 get_frame_func, create_new_frame): Update.
5762 * hppa-tdep.c (find_unwind_entry, unwind_command): Update.
5763 * ia64-tdep.c (get_kernel_table, ia64_find_proc_info_x,
5764 ia64_get_dyn_info_list): Update.
5765 * maint.c (maintenance_translate_address): Update.
5766 * mi/mi-cmd-var.c (mi_cmd_var_create): Update.
5767 * target.c (target_flash_erase): Update.
5768
5769 Update callers of paddr/paddr_nz to use phex/phex_nz instead,
5770 using an appropriate address size. Remove use of strlen_paddr.
5771 * exec.c (exec_files_info): Update.
5772 * i386-nat.c (i386_show_dr): Update.
5773 * remote.c (remote_flash_erase): Update.
5774 * m32r-rom.c (m32r_load_section): Update.
5775 * monitor.c (monitor_vsprintf, monitor_store_register): Update.
5776 * remote.c (remote_check_symbols, remote_search_memory): Update.
5777 * remote-mips.c (mips_request, mips_common_breakpoint): Update.
5778 * scm-valprint.c (scm_ipruk, scm_scmval_print): Update.
5779 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Update.
5780 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs,
5781 sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs,
5782 sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5783 sh_dsp_show_regs): Update.
5784 * xcoffsolib.c (sharedlibrary_command): Update.
5785
5786
5787 * maint.c (maint_print_section_info): Add ADDR_SIZE parameter.
5788 Use hex_string_custom instead of paddr.
5789 (print_bfd_section_info): Pass address size.
5790 (print_objfile_section_info): Likewise.
5791
5792 * annotate.h (annotate_source): Add GDBARCH parameter.
5793 (annotate_frame_begin): Likewise.
5794 * annotate.c (annotate_source): Add GDBARCH parameter.
5795 (annotate_frame_begin): Likewise.
5796 * source.c (identify_source_line): Update call to annotate_source.
5797 * stack.c (print_frame_info, print_frame): Update call to
5798 annotate_frame_begin.
5799
5800 * breakpoint.c (describe_other_breakpoints): Add GDBARCH parameter.
5801 (create_breakpoint, create_ada_exception_breakpoint): Update call.
5802
5803 * stack.c (print_block_frame_labels): Add GDBARCH parameter.
5804 (print_frame_label_vars): Update call.
5805
5806 * symmisc.c (print_partial_symbols): Add GDBARCH parameter.
5807 (dump_psymtab): Update call to print_partial_symbols.
5808 (struct print_symbol_args): Add GDBARCH member.
5809 (dump_symtab_1): Set print_symbol_args architecture member.
5810 (print_symbol): Use it.
5811
5812 * windows-tdep.h (windows_xfer_shared_library): Add GDBARCH
5813 parameter.
5814 * windows-tdep.c (windows_xfer_shared_library): Likewise.
5815 * i386-cygwin-tdep.c (struct cpms_data): Add GDBARCH member.
5816 (core_process_module_section): Pass architecture from cpms_data to
5817 windows_xfer_shared_library.
5818 (windows_core_xfer_shared_libraries): Initialize cmps_data
5819 architecture member.
5820 * windows-nat.c (windows_xfer_shared_libraries): Pass architecture
5821 to windows_xfer_shared_library.
5822
5823 * defs.h (print_address): Add GDBARCH parameter.
5824 * printcmd.c (print_address): Add GDBARCH parameter.
5825 (print_scalar_formatted, do_examine): Update call.
5826 * findcmd.c (find_command): Update call.
5827 * tracepoint.c: Include "arch-utils.h".
5828 (trace_find_line_command): Update call.
5829 * tui/tui-disasm.c (tui_disassemble): Update call.
5830
5831 * value.h (print_address_demangle): Add GDBARCH parameter.
5832 * printcmd.c (print_address_demangle): Add GDBARCH parameter.
5833 * c-valprint.c (print_function_pointer_address, c_val_print):
5834 Update call.
5835 * f-valprint.c (f_val_print): Update call.
5836 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update call.
5837 * jv-valprint.c (java_val_print): Update call.
5838 * m2-valprint.c (print_function_pointer_address, m2_val_print):
5839 Update call.
5840 * p-valprint.c (pascal_val_print): Update call.
5841
5842 * disasm.c (gdb_disassemble_info): Install architecture into
5843 di.application_data field.
5844
13274fc3
UW
58452009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5846
5847 * disasm.h (gdb_disassembly): Add GDBARCH parameter.
5848 (gdb_print_insn): Likewise.
5849 * disasm.c (dump_insns): Add GDBARCH parameter. Use it instead
5850 of current_gdbarch.
5851 (do_mixed_source_and_assembly): Add GDBARCH parameter. Pass to
5852 dump_insns.
5853 (do_assembly_only): Likewise.
5854 (gdb_disassembly): Add GDBARCH parameter. Use it instead of
5855 current_gdbarch. Pass to subroutines.
5856 (gdb_print_insn): Add GDBARCH parameter. Use it instead of
5857 current_gdbarch.
5858
5859 * stack.c (struct gdb_disassembly_stub_args): Add GDBARCH member.
5860 (gdb_disassembly_stub): Pass architecture to gdb_disassembly.
5861 (do_gdb_disassembly): Add GDBARCH argument. Store into args.
5862 (print_frame_info): Pass architecture to do_gdb_disassembly.
5863
5864 * printcmd.c (print_formatted): Pass architecture to gdb_print_insn.
5865
5866 * mi/mi-cmd-disas.c: Include "arch-utils.h"
5867 (mi_cmd_disassemble): Pass architecture to gdb_disassembly.
5868
5869 * cli/cli-cmds.c: Include "arch-utils.h".
5870 (print_disassembly): Add GDBARCH parameter. Pass to gdb_disassembly
5871 and tui_show_assembly.
5872 (disassemble_current_function): Pass architecture to
5873 tui_get_low_disassembly_address and print_disassembly.
5874 (disassemble_command): Pass architecture to
5875 tui_get_low_disassembly_address and print_disassembly.
5876
5877 * tui/tui.c (tui_show_assembly): Add GDBARCH parameter. Pass to
5878 tui_update_source_windows_with_addr.
5879
5880 * tui/tui-data.h (struct tui_locator_element): Add GDBARCH member.
5881 (struct tui_source_info): Likewise.
5882 * tui/tui-data.c (tui_clear_win_detail): Clear source_info.gdbarch.
5883
5884 * tui/tui-disasm.c (tui_disassemble): Add GDBARCH parameter.
5885 Pass to gdb_print_insn.
5886 (tui_find_disassembly_address): Add GDBARCH parameter. Pass to
5887 tui_disassemble.
5888 (tui_set_disassem_content): Add GDBARCH parameter. Install into
5889 source_info.gdbarch. Pass to tui_disassemble.
5890 (tui_show_disassem): Add GDBARCH parameter. Pass to
5891 tui_update_source_window.
5892 (tui_show_disassem_and_update_source): Add GDBARCH parameter. Pass to
5893 tui_show_disassem and tui_update_source_window.
5894
5895 (tui_get_begin_asm_address): Return locator architecture in addition
5896 to locator PC value.
5897
5898 (tui_get_low_disassembly_address): Add GDBARCH parameter. Pass to
5899 tui_get_low_disassembly_address.
5900
5901 (tui_vertical_disassem_scroll): Pass architecture to subroutines.
5902
5903 * tui/tui-disasm.h (tui_set_disassem_content): Add GDBARCH parameter.
5904 (tui_show_disassem): Likewise.
5905 (tui_show_disassem_and_update_source): Likewise.
5906 (tui_get_begin_asm_address): Return architecture and PC value.
5907
5908 * tui/tui.h (tui_get_low_disassembly_address): Add GDBARCH parameter.
5909 (tui_show_assembly): Add GDBARCH parameter.
5910
5911 * tui/tui-layout.c (extract_display_start_addr): Return current window
5912 architecture in addition to current PC value.
5913
5914 (tui_set_layout): Update calls to tui_get_low_disassembly_address and
5915 extract_display_start_addr. Pass architecture to
5916 tui_update_source_windows_with_addr.
5917
5918 * tui/tui-source.c: Include "objfiles.h".
5919 (tui_set_source_content): Initialize window architecture.
5920 (tui_show_symtab_source): Add GDBARCH parameter. Pass to
5921 tui_update_source_window_as_is
5922
5923 * tui/tui-source.h (tui_show_symtab_source): Add GDBARCH parameter.
5924
5925 * tui/tui-stack.c (tui_set_locator_info): Add GDBARCH parameter.
5926 Install locator architecture.
5927 (tui_set_locator_filename): Update call.
5928 (tui_show_frame_info): Pass architecture to tui_set_locator_info
5929 and subroutines.
5930
5931 * tui/tui-win.c (make_visible_with_new_height): Pass architecture
5932 to tui_update_source_window.
5933
5934 * tui/tui-winsource.c: Include "objfiles.h".
5935 (tui_display_main): Update call to tui_get_begin_asm_address.
5936 Pass architecture to tui_update_source_windows_with_addr.
5937 (tui_update_source_window): Add GDBARCH parameter. Pass to
5938 tui_update_source_window_as_is.
5939 (tui_update_source_window_as_is): Add GDBARCH parameter.
5940 Pass to tui_set_disassem_content.
5941 (tui_update_source_windows_with_addr): Add GDBARCH parameter.
5942 Pass to subroutines.
5943 (tui_update_source_windows_with_line): Pass objfile architecture
5944 to subroutines.
5945 (tui_horizontal_source_scroll): Pass architecture to
5946 tui_update_source_window_as_is.
5947
5948 * tui/tui-winsource.h (tui_update_source_window): Add GDBARCH
5949 parameter.
5950 (tui_update_source_window_as_is): Likewise.
5951 (tui_update_source_windows_with_addr): Likewise.
5952
a6d9a66e
UW
59532009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5954
5955 * breakpoint.h (struct breakpoint): New member GDBARCH.
5956 * breakpoint.c: Include "arch-utils.h".
5957 (set_raw_breakpoint_without_location): Add GDBARCH parameter.
5958 Use it to set breakpoint architecture.
5959 (set_raw_breakpoint): Add GDBARCH parameter.
5960 (create_internal_breakpoint): Likewise.
5961 (create_catchpoint): Likewise.
5962 (create_fork_vfork_event_catchpoint): Likewise.
5963 (create_breakpoint): Likewise.
5964 (create_breakpoints): Likewise.
5965 (break_command_really): Likewise.
5966 (create_ada_exception_breakpoint): Likewise.
5967 Update local callers to pass architecture:
5968 (create_internal_breakpoint): Update.
5969 (create_overlay_event_breakpoint): Update.
5970 (create_longjmp_master_breakpoint): Update.
5971 (create_thread_event_breakpoint): Update.
5972 (create_solib_event_breakpoint): Update.
5973 (create_catchpoint): Update.
5974 (create_fork_vfork_event_catchpoint): Update.
5975 (set_momentary_breakpoint): Update.
5976 (clone_momentary_breakpoint): Update.
5977 (create_breakpoint): Update.
5978 (create_breakpoints): Update.
5979 (break_command_really): Update.
5980 (break_command_1): Update.
5981 (set_breakpoint): Update.
5982 (watch_command_1): Update.
5983 (catch_fork_command_1): Update.
5984 (catch_exec_commnd_1): Update.
5985 (handle_gnu_v3_exceptions): Update.
5986 (create_ada_exception_breakpoint): Update.
5987 (catch_ada_exception_command): Update.
5988 (catch_assert_command): Update.
5989 (trace_command): Update.
5990
5991 * breakpoint.h (struct bp_location): New member GDBARCH.
5992 * breakpoint.c (get_sal_arch): New function.
5993 (set_raw_breakpoint): Set location architecture.
5994 (add_location_to_breakpoint): Likewise.
5995 (clone_momentary_breakpoint): Likewise.
5996 (watch_command_1): Likewise.
5997 (update_watchpoint): Likewise.
5998 (bp_loc_is_permanent): Use location architecture instead of
5999 current_gdbarch.
6000 (adjust_breakpoint_address): Add GDBARCH parameter; use it
6001 instead of current_gdbarch.
6002 Update callers of adjust_breakpoint_address to pass
6003 breakpoint location architecture:
6004 (set_raw_breakpoint): Update.
6005 (watch_command_1): Update.
6006
6007 * tracepoint.c: (collect_symbol): Add GDBARCH parameter, use instead
6008 of current_gdbarch.
6009 (add_local_symbols): Add GDBARCH parameter. Pass to collect_symbol.
6010 (encode_actions): Pass tracepoint architecture to add_local_symbols
6011 (encode_actions): Use tracepoint architecture instead of
6012 current_gdbarch. Pass it to add_local_symbols and collect_symbol.
6013
6014 * breakpoint.h (struct breakpoint_ops): Replace last_addr parameter
6015 of print_one callback with last_loc.
6016 * breakpoint.c (print_one_breakpoint_location): Replace last_addr
6017 parameter with last_loc.
6018 (print_one_breakpoint): Likewise.
6019 (do_captured_breakpoint_query): Update call.
6020 (breakpoint_1): Pass last_loc instead of last_addr to
6021 print_one_breakpoint. Pass last location architecture instead of
6022 current_gdbarch to set_next_address.
6023 Update all implementations of the print_one callback:
6024 * breakpoint.c (print_one_catch_fork): Update.
6025 (print_one_catch_vfork): Update.
6026 (print_one_catch_exec): Update.
6027 (print_one_exception_catchpoint): Update.
6028 * ada-lang.c (print_one_exception): Update.
6029 (print_one_catch_exception): Update.
6030 (print_one_catch_exception_unhandled): Update.
6031 (print_one_catch_assert): Update.
6032
6033 * breakpoint.c (print_one_breakpoint_location): Add PRINT_ADDRESS_BITS
6034 parameter. Use it instead of gdbarch_addr_bit (current_gdbarch).
6035 (print_one_breakpoint): Add PRINT_ADDRESS_BITS parameter and pass it
6036 to print_one_breakpoint_location.
6037 (breakpoint_address_bits): New function.
6038 (do_captured_breakpoint_query): Compute number of address bits to print
6039 and pass it to print_one_breakpoint.
6040 (breakpoint_1): Likewise. Use it instead of current_gdbarch.
6041
6042 * breakpoint.h (create_thread_event_breakpoint): Add GDBARCH.
6043 * breakpoint.c (create_thread_event_breakpoint): Likewise.
6044 Update callers to create_thread_event_breakpoint:
6045 * aix-thread.c (pd_enable): Update.
6046 * linux-thread-db.c (enable_thread_event): Update.
6047
6048 * breakpoint.h (create_solib_event_breakpoint): Add GDBARCH.
6049 * breakpoint.c (create_solib_event_breakpoint): Likewise.
6050 Update callers to create_solib_event_breakpoint:
6051 * solib-frv.c (enable_break, enable_break2): Update.
6052 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
6053 * solib-som.c (som_solib_create_inferior_hook): Update.
6054 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
6055 * solib-svr4.c (enable_break): Update.
6056
6057 * breakpoint.h (insert_single_step_breakpoint): Add GDBARCH.
6058 * breakpoint.c (insert_single_step_breakpoint): Likewise.
6059 Update callers to insert_single_step_breakpoint:
6060 * alpha-tdep.c (alpha_software_single_step): Update.
6061 * arm-linux-tdep.c (arm_linux_software_single_step): Update.
6062 * arm-tdep.c (arm_software_single_step): Update.
6063 * cris-tdep.c (cris_software_single_step): Update.
6064 * rs6000-aix-tdep.c (rs6000_software_single_step): Update.
6065 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Update.
6066 * sparc-tdep.c (sparc_software_single_step): Update.
6067 * spu-tdep.c (spu_software_single_step): Update.
6068 * mips-tdep.c (deal_with_atomic_sequence): Add GDBARCH parameter.
6069 Pass it to insert_single_step_breakpoint.
6070 (mips_software_single_step): Pass architecture to
6071 deal_with_atomic_sequence and insert_single_step_breakpoint.
6072
6073 * breakpoint.h (deprecated_insert_raw_breakpoint): Add GDBARCH.
6074 (deprecated_remove_raw_breakpoint): Likewise.
6075 * breakpoint.c (deprecated_insert_raw_breakpoint): Add GDBARCH.
6076 (deprecated_remove_raw_breakpoint): Likewise.
6077 Update callers to deprecated_insert_raw_breakpoint and
6078 deprecated_remove_raw_breakpoint:
6079 * breakpoint.c (single_step_gdbarch): New static variable.
6080 (insert_single_step_breakpoint): Pass GDBARCH parameter to
6081 deprecated_insert_raw_breakpoint. Store it in single_step_gdbarch.
6082 (remove_single_step_breakpoints): Pass architecture stored in
6083 single_step_gdbarch to deprecated_remove_raw_breakpoint.
6084 * rs6000-nat.c (exec_one_dummy_insn): Update.
6085 * solib-irix.c (enable_break, disable_break): Update.
6086 * procfs.c (procfs_mourn_inferior): Update.
6087 (remove_dbx_link_breakpoint): Update.
6088
6089 * breakpoint.h (set_breakpoint): Add GDBARCH parameter.
6090 (set_momentary_breakpoint, set_momentary_breakpoint_at_pc): Likewise.
6091 * breakpoint.c (set_breakpoint): Add GDBARCH parameter.
6092 (set_momentary_breakpoint, set_momentary_breakpoint_at_pc): Likewise.
6093 Update callers to set_breakpoint, set_momentary_breakpoint and
6094 set_momentary_breakpoint_at_pc:
6095 * breakpoint.c (set_momentary_breakpoint_at_pc): Update.
6096 (until_break_command): Update.
6097 * infcall.c (call_function_by_hand): Update.
6098 * infcmd.c (finish_backward, finish_forward): Update.
6099 * infrun.c (insert_step_resume_breakpoint_at_sal): Add GDBARCH
6100 parameter. Pass it to set_momentary_breakpoint.
6101 (insert_longjmp_resume_breakpoint): Add GDBARCH parameter.
6102 Pass it to set_momentary_breakpoint_at_pc.
6103 (handle_inferior_event): Update.
6104 (insert_step_resume_breakpoint_at_frame): Update.
6105 (insert_step_resume_breakpoint_at_caller): Update..
6106 * mi/mi-cmd-break.c: Include "arch-utils.h".
6107 (mi_cmd_break_insert): Update.
6108
6109 * target.h (struct target_ops): Add GDBARCH parameter to
6110 to_insert_breakpoint, to_remove_breakpoint, to_insert_hw_breakpoint,
6111 and to_remove_hw_breakpoint members.
6112 (target_insert_breakpoint, target_remove_breakpoint,
6113 target_insert_hw_breakpoint, target_remove_hw_breakpoint): Add GDBARCH
6114 parameter, pass to target routine.
6115 (memory_remove_breakpoint, memory_insert_breakpoint): Add GDBARCH
6116 parameter.
6117 * target.c (debug_to_insert_breakpoint, debug_to_remove_breakpoint,
6118 debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint): Add
6119 GDBARCH parameter, pass to target routine.
6120 (update_current_target): Update function signature.
6121 * breakpoint.c (insert_bp_location, remove_breakpoint,
6122 deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint):
6123 Pass architecture to target_ routines.
6124 Update all implementations of the target breakpoint routines to take
6125 GDBARCH parameter and use it instead of GDBARCH as appropriate:
6126 * corelow.c (ignore): Update.
6127 * exec.c (ignore): Update.
6128 * mem-break.c (memory_insert_breakpoint): Update.
6129 (memory_remove_breakpoint): Update.
6130 * monitor.c (monitor_insert_breakpoint): Update.
6131 (monitor_remove_breakpoint): Update.
6132 * record.c (record_insert_breakpoint): Update.
6133 (record_beneath_to_insert_breakpoint): Update.
6134 (record_remove_breakpoint): Update.
6135 (record_beneath_to_remove_breakpoint): Update.
6136 * remote.c (remote_insert_breakpoint): Update.
6137 (remote_remove_breakpoint): Update.
6138 (remote_insert_hw_breakpoint): Update.
6139 (remote_remove_hw_breakpoint): Update.
6140 * remote-m32r-sdi.c (m32r_insert_breakpoint): Update.
6141 (m32r_remove_breakpoint): Update.
6142 * remote-mips.c (mips_insert_breakpoint): Update.
6143 (mips_remove_breakpoint): Update.
6144 * i386-nat.c (i386_insert_hw_breakpoint): Update.
6145 (i386_remove_hw_breakpoint): Update.
6146 * nto-procfs.c (procfs_insert_breakpoint): Update.
6147 (procfs_remove_breakpoint): Update.
6148 (procfs_insert_hw_breakpoint): Update.
6149 (procfs_remove_hw_breakpoint): Update.
6150
36f15f55
UW
61512009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6152
6153 * frame.h (frame_unwind_arch): New.
6154 (frame_unwind_caller_arch): Likewise.
6155 * frame-unwind.h (frame_prev_arch_ftype): New type.
6156 (struct frame_unwind): New member prev_arch.
6157 * frame.c (struct frame_info): New member prev_arch.
6158 (frame_unwind_arch): New function.
6159 (frame_unwind_caller_arch): Likewise..
6160 (get_frame_arch): Reimplement in terms of frame_unwind_arch.
6161 * sentinel-frame.c (sentinel_frame_prev_arch): New function.
6162 (sentinel_frame_unwinder): Install it.
6163
6164 * frame.c (frame_pc_unwind): Use frame_unwind_arch instead
6165 of get_frame_arch.
6166 (frame_unwind_register_value): Likewise.
6167 (frame_unwind_register_signed): Likewise.
6168 (frame_unwind_register_unsigned): Likewise.
6169 * frame-unwind.c (frame_unwind_got_optimized): Likewise.
6170 (frame_unwind_got_register): Likewise.
6171 (frame_unwind_got_constant): Likewise.
6172 (frame_unwind_got_bytes): Likewise.
6173 (frame_unwind_got_address): Likewise.
6174
6175 * frame.h (enum frame_type): New value ARCH_FRAME.
6176 * frame.c (fprint_frame_type): Handle ARCH_FRAME.
6177 * stack.c (print_frame_info): Likewise.
6178
c2250ad1
UW
61792009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6180
6181 * target.h (struct target_ops): New member to_thread_architecture.
6182 (target_thread_architecture): New macro.
6183 * target.c (update_current_target): Inherit to_thread_architecture.
6184 (default_thread_architecture): New function.
6185 (debug_to_thread_architecture): New function.
6186 (setup_target_debug): Handle to_thread_architecture.
6187
6188 * regcache.h (get_thread_arch_regcache): New.
6189 * regcache.c (struct regcache_list): New data type.
6190 (current_regcache): Hold regcache list instead of single regcache.
6191 (current_thread_ptid, current_thread_arch): New static variables.
6192 (get_thread_arch_regcache): New function.
6193 (get_thread_regcache): Use it. Call target_thread_architecture.
6194 (regcache_thread_ptid_changed): Update to current_regcache changes.
6195 (registers_changed): Likewise. Reset current_thread_arch and
6196 current_thread_ptid.
6197
6198 * remote.c (remote_wait): Access target registers in target_gdbarch.
6199 * linux-nat.c (linux_nat_do_thread_registers): Likewise.
6200 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
6201 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
6202 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
6203 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
6204 * solib-svr4.c (enable_break): Likewise.
6205 (svr4_relocate_main_executable): Likewise.
6206
d452c4bc
UW
62072009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6208
6209 * python/python-internal.h (struct language_defn): Declare.
6210 (python_gdbarch, python_language): Likewise.
6211 (ensure_python_env): Add prototype.
6212 (make_cleanup_py_restore_gil): Remove prototype.
6213
6214 * python/python.c: Include "arch-utils.h", "value.h" and "language.h".
6215 (python_gdbarch, python_language): New global variables.
6216 (struct python_env): New data type.
6217 (ensure_python_env, restore_python_env): New functions.
6218 (eval_python_from_control_command): Call ensure_python_env to
6219 install current architecture and language.
6220 (python_command, gdbpy_new_objfile): Likewise.
6221 * python/python-cmd.c: Include "arch-utils.h" and "language.h".
6222 (cmdpy_destroyer, cmdpy_function, cmdpy_completer): Call
6223 ensure_python_env.
6224 * python/python-type.c (clean_up_objfile_types): Likewise.
6225 * python/python-objfile.c: Include "language.h".
6226 (clean_up_objfile): Call ensure_python_env.
6227 * python/python-prettyprint.c (apply_val_pretty_printer): Likewise.
6228 (apply_varobj_pretty_printer): Do not call PyGILState_Ensure.
6229 * varobj.c (varobj_ensure_python_env): New helper function.
6230 (varobj_get_display_hint, update_dynamic_varobj_children,
6231 install_default_visualizer, varobj_set_visualizer, free_variable,
6232 value_get_print_value): Call it.
6233 (value_get_print_value): Add varobj argument instead of pretty
6234 printer argument. Update all callers.
6235
6236 * python/python-utils.c (py_gil_restore, make_cleanup_py_restore_gil):
6237 Remove.
6238
6239 * value.h (internal_function_fn): Add GDBARCH and LANGUAGE argument.
6240 (call_internal_function): Likewise.
6241 * value.c (call_internal_function): Likewise. Pass to handler.
6242 * eval.c (evaluate_subexp_standard): Update call.
6243 * python/python-function.c: Include "language.h".
6244 (fnpy_call): Add GDBARCH and LANGAUAGE arguments and call
6245 make_cleanup_python_env.
6246
6247 * python/python-value.c (builtin_type_pyint, builtin_type_pyfloat,
6248 builtin_type_pylong, builtin_type_pybool, builtin_type_pychar,
6249 valpy_str): Use python_gdbarch and python_language instead of
6250 current_gdbarch and current_language.
6251 * python/python-type.c (typy_lookup_typename): Likewise.
6252
e17c207e
UW
62532009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6254
6255 * arch-utils.c (selected_byte_order): Return target_byte_order_user.
6256 (show_endian): Use target_byte_order_user if specified; otherwise
6257 use get_current_arch () instead of current_gdbarch.
6258 (show_architecture): Use set_architecture_string if specified;
6259 otherwise use get_current_arch () instead of current_gdbarch.
6260 (get_current_arch): New function.
6261 * arch-utils.h (get_current_arch): Add prototype.
6262
6263 * osabi.c (show_osabi): Use get_current_arch () instead of
6264 current_gdbarch.
6265
6266 * findcmd.c: Include "arch-utils.h".
6267 (parse_find_args): Add BIG_P argument. Use it instead of byte order
6268 of current_gdbarch.
6269 (find_command): Use get_current_arch () instead of current_gdbarch.
6270 Pass byte order to parse_find_args.
6271
6272 * maint.c: Include "arch-utils.h".
6273 (maintenance_print_architecture): Use get_current_arch () instead
6274 of current_gdbarch.
6275
6276 * reggroups.c: Include "arch-utils.h".
6277 (maintenance_print_reggroups): Use get_current_arch () instead
6278 of current_gdbarch.
6279
6280 * symfile.c: Include "arch-utils.h".
6281 (overlay_load_command): Use get_current_arch () instead of
6282 current_gdbarch.
6283
6284 * value.c: Include "arch-utils.h".
6285 (show_convenience): Use get_current_arch () instead of
6286 current_gdbarch.
6287
6288 * tui/tui-regs.c: Include "arch-utils.h".
6289 (tui_reg_next_command): Use get_current_arch () instead of
6290 current_gdbarch.
6291
6292 * mi/mi-main.c: Include "arch-utils.h".
6293 (mi_cmd_data_read_memory): Use get_current_arch () instead of
6294 current_gdbarch.
6295
6296 * parse.c: Include "arch-utils.h".
6297 (parse_exp_in_context): Use get_current_arch () instead of
6298 current_gdbarch.
6299
50810684
UW
63002009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6301
6302 * gdbtypes.c (make_pointer_type, make_reference_type,
6303 smash_to_memberptr_type, lookup_array_range_type, check_stub_method):
6304 Use type architecture instead of current_gdbarch.
6305
6306 * gdbtypes.h (address_space_name_to_int, address_space_int_to_name):
6307 Add GDBARCH paramter.
6308 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name):
6309 Add GDBARCH parameter. Use it instead of current_gdbarch.
6310 * c-typeprint.c (c_type_print_modifier): Update call.
6311 * parse.c (push_type_address_space): Likewise.
6312
6313 * findvar.c (extract_typed_address, store_typed_address): Use type
6314 architecture instead of current_gdbarch.
6315
6316 * value.c (value_as_address, unpack_field_as_long): Use type architecture
6317 instead of current_gdbarch.
6318
6319 * doublest.c (floatformat_from_length): Add GDBARCH argument. Use it
6320 instead of current_gdbarch.
6321 (floatformat_from_type): Pass type architecture.
6322
6323 * infcall.c (find_function_addr): Use type architecture instead
6324 of current_gdbarch.
6325
6326 * valarith.c (value_bitstring_subscript, value_x_binop, value_neg,
6327 value_bit_index): Use type architecture instead of current_gdbarch.
6328 * valops.c (value_cast, value_slice): Likewise.
6329
6330 * value.h (modify_field): Add TYPE argument.
6331 * value.c (modify_field): Add TYPE argument. Use type architecture
6332 instead of current_gdbarch.
6333 (set_internalvar_component): Likewise.
6334 * eval.c (evaluate_struct_tuple): Update call.
6335 * valops.c (value_assign): Likewise.
6336 * ada-lang.c (modify_general_field): Likewise. Add TYPE argument.
6337 (make_array_descriptor): Update calls.
6338 (move_bits): Add BITS_BIG_ENDIAN_P argument. Use it instead of
6339 current_gdbarch.
6340 (ada_value_assign, value_assign_to_component): Update calls.
6341 (decode_packed_array, ada_value_primitive_packed_val, ada_value_assign,
6342 value_assign_to_component): Use type arch instead of current_gdbarch.
6343
6344 * printcmd.c (float_type_from_length): Remove GDBARCH argument,
6345 use type architecture instead.
6346 (print_scalar_formatted, printf_command): Update calls. Use type
6347 architecture instead of current_gdbarch.
6348 * valprint.c (val_print_type_code_int): Use type architecture
6349 instead of current_gdbarch.
6350 * varobj.c (value_get_print_value): Likewise.
6351 * python/python-prettyprint.c (print_string_repr): Add GDBARCH
6352 argument. Use it instead of current_gdbarch.
6353 (apply_val_pretty_printer): Update call.
6354
6355 * ada-valprint.c (ada_val_print_1): Use type architecture instead
6356 of current_gdbarch.
6357 * c-valprint.c (print_function_pointer_address): Add GDBARCH argument.
6358 Use it instead of current_gdbarch.
6359 (c_val_print): Update calls passing type architecture.
6360 * f-valprint.c (f_val_print): Use type architecture instead of
6361 current_gdbarch.
6362 * jv-valprint (java_value_print): Likewise.
6363 * m2-valprint.c (print_function_pointer_address): Add GDBARCH argument.
6364 Use it instead of current_gdbarch.
6365 (print_unpacked_pointer): Update calls passing type architecture.
6366 * scm-valprint.c (scm_scmval_print): Use type architecture instead of
6367 current_gdbarch.
6368
6369 * gnu-v3-abi.c (get_class_arch): Remove.
6370 (gnuv3_rtti_type): Use get_type_arch instead of get_class_arch. Remove
6371 special-case check for Java classes.
6372 (gnuv3_virtual_fn_field, gnuv3_baseclass_offset, gnuv3_print_method_ptr,
6373 gnuv3_method_ptr_size, gnuv3_make_method_ptr, gnuv3_method_ptr_to_value):
6374 Use get_type_arch instead of get_class_arch.
6375
e9bb382b
UW
63762009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6377
6378 * gdbtypes.h (TYPE_OBJFILE_OWNED, TYPE_OWNER): New macros.
6379 (TYPE_OBJFILE, TYPE_ALLOC, TYPE_ZALLOC): Reimplement.
6380 (alloc_type_arch): Add prototype.
6381 (alloc_type_copy): Likewise.
6382 (get_type_arch): Likewise.
6383 (arch_type): Likewise.
6384 (arch_integer_type): Likewise.
6385 (arch_character_type): Likewise.
6386 (arch_boolean_type): Likewise.
6387 (init_float_type): Remove, replace by ...
6388 (arch_float_type): ... this.
6389 (init_complex_type): Remove, replace by ...
6390 (arch_complex_type): ... this.
6391 (init_flags_type): Remove, replace by ...
6392 (arch_flags_type): ... this.
6393 (init_composite_type): Remove, replace by ...
6394 (arch_composite_type): ... this.
6395
6396 * gdbtypes.c (alloc_type): No longer support NULL objfile.
6397 (init_type): Likewise.
6398 (alloc_type_arch): New function.
6399 (alloc_type_copy): New function.
6400 (get_type_arch): New function.
6401
6402 (smash_type): Preserve type ownership information.
6403 (make_pointer_type, make_reference_type, make_function_type,
6404 smash_to_memberptr_type, smash_to_method_type): No longer
6405 preserve OBJFILE across smash_type calls.
6406 (make_pointer_type, make_reference_type, make_function_type,
6407 lookup_memberptr_type, lookup_methodptr_type, allocate_stub_method,
6408 create_range_type, create_array_type, create_set_type, copy_type):
6409 Use alloc_type_copy when allocating types.
6410 (check_typedef): Use alloc_type_arch.
6411 (copy_type_recursive): Likewise. Preserve type ownership data
6412 after copying type.
6413 (recursive_dump_type): Dump type ownership data.
6414 (alloc_type_instance): Update type ownership check.
6415 (copy_type, copy_type_recursive): Likewise.
6416
6417 (arch_type): New function.
6418 (arch_integer_type): Likewise.
6419 (arch_character_type): Likewise.
6420 (arch_boolean_type): Likewise.
6421 (init_float_type): Remove, replace by ...
6422 (arch_float_type): ... this.
6423 (init_complex_type): Remove, replace by ...
6424 (arch_complex_type): ... this.
6425 (init_flags_type): Remove, replace by ...
6426 (arch_flags_type): ... this.
6427 (append_flags_type_flag): Move down.
6428 (init_composite_type): Remove, replace by ...
6429 (arch_composite_type): ... this.
6430 (append_composite_type_field_aligned,
6431 append_composite_type_field): Move down.
6432
6433 * gdbarch.c (gdbtypes_post_init): Allocate all types
6434 using per-architecture routines.
6435 * ada-lang.c (ada_language_arch_info): Likewise.
6436 * f-lang.c (build_fortran_types): Likewise.
6437 * jv-lang.c (build_java_types): Likewise.
6438 * m2-lang.c (build_m2_types): Likewise.
6439 * scm-lang.c (build_scm_types): Likewise.
6440
6441 * ada-lang.c (ada_type_of_array): Use alloc_type_copy.
6442 (packed_array_type): Likewise.
6443 (ada_template_to_fixed_record_type_1): Likewise.
6444 (template_to_static_fixed_type): Likewise.
6445 (to_record_with_fixed_variant_part): Likewise.
6446 (to_fixed_variant_branch_type): Likewise.
6447 (to_fixed_array_type): Likewise.
6448 (to_fixed_range_type): Likewise.
6449 (empty_record): Use type instead of objfile argument.
6450 Use alloc_type_copy.
6451 (to_fixed_variant_branch_type): Update call to empty_record.
6452 * jv-lang.c (type_from_class): Use alloc_type_arch.
6453
6454 * arm-tdep.c (arm_ext_type): Allocate per-architecture type.
6455 * i386-tdep.c (i386_eflags_type, i386_mxcsr_type, i387_ext_type,
6456 i386_mmx_type, i386_sse_type): Likewise.
6457 * ia64-tdep.c (ia64_ext_type): Likewise.
6458 * m32c-tdep.c (make_types): Likewise.
6459 * m68k-tdep.c (m68k_ps_type, m68881_ext_type): Likewise.
6460 * rs6000-tdep.c (rs6000_builtin_type_vec64,
6461 rs6000_builtin_type_vec128): Likewise.
6462 * sparc-tdep.c (sparc_psr_type, sparc_fsr_type): Likewise.
6463 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type,
6464 sparc64_fprs_type): Likewise.
6465 * spu-tdep.c (spu_builtin_type_vec128): Likewise.
6466 * xtensa-tdep.c (xtensa_register_type): Likewise.
6467 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6468 * target-descriptions.c (tdesc_gdb_type): Likewise.
6469 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6470
209bd28e
UW
64712009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6472
6473 * i386-tdep.h (struct gdbarch_tdep): Add i386_eflags_type and
6474 i386_mxcsr_type members.
6475 (i386_eflags_type): Make into function.
6476 (i386_mxcsr_type): Likewise.
6477 * i386-tdep.c (i386_eflags_type): Make into function.
6478 (i386_mxcsr_type): Likewise.
6479 (i386_register_type): Update uses.
6480 (i386_init_types): Remove.
6481 (_initialize_i386_tdep): Do not call it.
6482 * amd64-tdep.c (amd64_register_type): Update uses.
6483
6484 * m68k-tdep.h (struct gdbarch_tdep): Add m68k_ps_type member.
6485 * m68k-tdep.c (m68k_ps_type): Make into function.
6486 (m68k_register_type): Update use.
6487 (m68k_init_types): Remove.
6488 (_initialize_m68k_tdep): Do not call it.
6489
6490 * sparc-tdep.h (struct gdbarch_tdep): Add sparc_psr_type,
6491 sparc_fsr_type, sparc64_pstate_type, sparc64_fsr_type, and
6492 sparc64_fprs_type members.
6493 * sparc-tdep.c (sparc_psr_type): Make into function.
6494 (sparc_fsr_type): Likewise.
6495 (sparc32_register_type): Update uses.
6496 (sparc_init_types): Remove.
6497 (_initialize_sparc_tdep): Do not call it.
6498 * sparc64-tdep.c (sparc64_pstate_type): Make into function.
6499 (sparc64_fsr_type): Likewise.
6500 (sparc64_fprs_type): Likewise.
6501 (sparc64_register_type): Update uses.
6502 (sparc64_init_types): Remove.
6503 (_initialize_sparc64_tdep): Likewise.
6504
27067745
UW
65052009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6506
6507 * gdbtypes.h (builtin_type_ieee_single, builtin_type_ieee_double,
6508 builtin_type_i387_ext, builtin_type_m68881_ext, builtin_type_arm_ext,
6509 builtin_type_ia64_spill, builtin_type_ia64_quad): Remove.
6510 (init_float_type, init_complex_type): Add prototypes.
6511 * gdbtypes.c (builtin_type_ieee_single, builtin_type_ieee_double,
6512 builtin_type_i387_ext, builtin_type_m68881_ext, builtin_type_arm_ext,
6513 builtin_type_ia64_spill, builtin_type_ia64_quad): Remove.
6514 (_initialize_gdbtypes): Do not initialize them.
6515 (build_flt): Rename to ...
6516 (init_float_type): ... this. Make global.
6517 (build_complex): Rename to ...
6518 (init_complex_type): ... this. Make global. Remove BIT argument.
6519 (gdbtypes_post_init): Update calls.
6520
6521 * ada-lang.c (ada_language_arch_info): Use init_float_type.
6522 * jv-lang.c (build_java_types): Likewise.
6523 * m2-lang.c (build_m2_types): Likewise.
6524 * f-lang.c (build_fortran_types): Use init_float_type and
6525 init_complex_type.
6526
6527 * target-descriptions.c (tdesc_gdb_type): Call init_float_type instead
6528 of using builtin_type_ieee_single, builtin_type_ieee_double, or
6529 builtin_type_arm_ext.
6530
6531 * ia64-tdep.h (struct gdbarch_tdep): Add ia64_ext_type member.
6532 * ia64-tdep.c (builtin_type_ia64_ext): Remove.
6533 (_initialize_ia64_tdep): Do not initialize it.
6534 (floatformat_valid, floatformat_ia64_ext, floatformats_ia64_ext):
6535 Move up.
6536 (ia64_ext_type): New function.
6537 (ia64_register_reggroup_p, ia64_convert_register_p,
6538 ia64_register_to_value, ia64_value_to_register,
6539 ia64_extract_return_value, ia64_store_return_value): Use ia64_ext_type
6540 instead of builtin_type_ia64_ext.
6541
6542 * i386-tdep.h (struct gdbarch_tdep): Add i387_ext_type member.
6543 (i387_ext_type): Add prototype.
6544 * i386-tdep.c (i387_ext_type): New function.
6545 (i386_extract_return_value, i386_store_return_value,
6546 i386_register_type): Use it instead of builtin_type_i387_ext.
6547 * amd64-tdep.c (amd64_register_type): Likewise.
6548 * i387-tdep.c (print_i387_value, i387_register_to_value,
6549 i387_value_to_register): Likewise.
6550 (print_i387_value, print_i387_ext): Add GDBARCH argument.
6551 (print_i387_ext, i387_print_float_info): Pass to subroutines.
6552
6553 * m68k-tdep.h (struct gdbarch_tdep): Add m68881_ext_type member.
6554 * m68k-tdep.c (m68881_ext_type): New function.
6555 (m68k_register_type, m68k_convert_register_p): Use it instead
6556 of builtin_type_m68881_ext.
6557
6558 * arm-tdep.h (struct gdbarch_tdep): Add arm_ext_type member.
6559 * arm-tdep.c (arm_ext_type): New function.
6560 (arm_register_type): Use it instead of builtin_type_arm_ext.
6561
6562 * alpha-tdep.c (alpha_register_type): Use builtin types
6563 instead of builtin_type_ieee_double.
6564
6565 * mips-tdep.c (mips_float_register_type, mips_double_register_type):
6566 Remove.
6567 (mips_register_type): Use builtin types instead of
6568 builtin_type_ieee_single and builtin_type_ieee_double.
6569 (mips_print_fp_register): Use builtin types instead of
6570 mips_float_register_type and mips_double_register_type.
6571
6572 * hppa-tdep.c (hppa32_register_type, hppa64_register_type):
6573 Use builtin types instead of builtin_type_ieee_single and
6574 builtin_type_ieee_double.
6575
df4df182
UW
65762009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6577
6578 * gdbtypes.h (builtin_type_int0, builtin_type_int8, builtin_type_uint8,
6579 builtin_type_int16, builtin_type_uint16, builtin_type_int32,
6580 builtin_type_uint32, builtin_type_int64, builtin_type_uint64,
6581 builtin_type_int128, builtin_type_uint128): Remove.
6582 (struct builtin_type): New members builtin_int0, builtin_int8,
6583 builtin_uint8, builtin_int16, builtin_uint16, builtin_int32,
6584 builtin_uint32, builtin_int64, builtin_uint64, builtin_int128,
6585 and builtin_uint128.
6586 * gdbtypes.c (builtin_type_int0, builtin_type_int8, builtin_type_uint8,
6587 builtin_type_int16, builtin_type_uint16, builtin_type_int32,
6588 builtin_type_uint32, builtin_type_int64, builtin_type_uint64,
6589 builtin_type_int128, builtin_type_uint128): Remove.
6590 (_initialize_gdbtypes): Do not initialize them.
6591 (gdbtypes_post_init): Initialize fixed-size integer types.
6592
6593 * dwarf2expr.c (unsigned_address_type, signed_address_type): Add
6594 GDBARCH argument. Return platform-specific type.
6595 (dwarf2_read_address, execute_stack_op): Update calls.
6596
6597 * target-descriptions.c (tdesc_gdb_type): Use platform-specific types
6598 instead of global builtin_int_... variables.
6599 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6600 * printcmd.c (do_examine): Likewise.
6601 * jv-exp.y (parse_number): Likewise.
6602
6603 * alpha-tdep.c (alpha_register_type, alpha_push_dummy_call,
6604 alpha_store_return_value): Likewise.
6605 * amd64-linux-tdep.c (amd64_linux_register_type): Likewise.
6606 * amd64-tdep.c (amd64_register_type): Likewise.
6607 * arm-tdep.c (arm_register_type): Likewise.
6608 * avr-tdep.c (avr_register_type): Likewise.
6609 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
6610 * frv-tdep.c (frv_register_type): Likewise.
6611 * h8300-tdep.c h8300_register_type): Likewise.
6612 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_register_type,
6613 hppa64_register_type): Likewise.
6614 * i386-tdep.c (i386_mmx_type, i386_sse_type): Likewise.
6615 * iq2000-tdep.c (iq2000_register_type): Likewise.
6616 * lm32-tdep.c (lm32_register_type, lm32_push_dummy_call): Likewise.
6617 * m32r-tdep.c (m32r_register_type): Likewise.
6618 * m68hc11-tdep.c (m68hc11_register_type, m68hc11_pseudo_register_read,
6619 m68hc11_pseudo_register_write): Likewise.
6620 * m68k-tdep.c (m68k_register_type): Likewise.
6621 * m88k-tdep.c (m88k_register_type, m88k_store_arguments): Likewise.
6622 * mep-tdep.c (mep_register_type): Likewise.
6623 * mips-tdep.c (mips_register_type, mips_pseudo_register_type,
6624 mips_print_fp_register): Likewise.
6625 * moxie-tdep.c (moxie_register_type): Likewise.
6626 * mt-tdep.c (mt_copro_register_type, mt_register_type): Likewise.
6627 * rs6000-tdep.c (rs6000_builtin_type_vec64,
6628 rs6000_builtin_type_vec128): Likewise.
6629 * score-tdep.c (score_register_type): Likewise.
6630 * sparc-tdep.c (sparc32_register_type, sparc32_store_arguments):
6631 Likewise.
6632 * sparc64-tdep.c (sparc64_register_type, sparc64_store_arguments):
6633 Likewise.
6634 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
6635 * v850-tdep.c (v850_register_type): Likewise.
6636 * xstormy16-tdep.c (xstormy16_register_type): Likewise.
6637 * xtensa-tdep.c (xtensa_register_type): Likewise.
6638
6639 * mt-tdep.c (struct gdbarch_tdep): New data structure.
6640 (mt_gdbarch_init): Alloc TDEP structures.
6641 (mt_register_type): Cache coprocessor type in TDEP instead of
6642 static global variable.
6643
6644 * xtensa-tdep.h (struct gdbarch_tdep): Add type_entries member.
6645 * xtensa-tdep.c (type_entries): Remove.
6646 (xtensa_register_type): Cache fixed-size types in TDEP instead
6647 of in global variable.
6648
69feb676
UW
66492009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6650
6651 * gdbtypes.h (builtin_type_true_char): Remove.
6652 (builtin_type_true_unsigned_char): Likewise.
6653 (struct builtin_type): Add builtin_true_char and
6654 builtin_true_unsigned_char members.
6655 * gdbtypes.c (builtin_type_true_char): Remove.
6656 (builtin_type_true_unsigned_char): Likewise.
6657 (_initialize_gdbtypes): Do not initialize them.
6658 (gdbtypes_post_init): Initialize builtin_true_char and
6659 builtin_true_unsigned_char members of builtin_type.
6660
6661 * printcmd.c (print_scalar_formatted): Use builtin_type
6662 members instead of builtin_type_true_char and
6663 builtin_type_true_unsigned_char.
6664 * ada-valprint.c (ada_val_print_1): Likewise.
6665
48319d1f
UW
66662009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6667
6668 * gdbtypes.h (builtin_type_void): Remove.
6669 * gdbtypes.c (builtin_type_void): Remove.
6670 (_initialize_gdbtypes): Do not initialize it.
6671
6672 (safe_parse_type): Add GDBARCH argument. Use it to construct
6673 void return type.
6674 (check_stub_method): Update call.
6675
6676 * infcall.c (call_function_by_hand): Use platform-specific type
6677 instead of builtin_type_void.
6678 * valops.c (value_cast): Use input void type instead of
6679 builtin_type_void.
6680
22601c15
UW
66812009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6682
6683 * ada-lang.c (assign_component): Use platform-specific integer type
6684 instead of builtin_type_int32 type.
6685 (ada_evaluate_subexp) [OP_ATR_SIZE]: Likewise.
6686
6687 * ax-gdb.c (gen_expr) [UNOP_NEG]: Use platform-specific integer type
6688 instead of builtin_type_int8 type.
6689 * valarith.c (value_x_unop): Likewise.
6690 * python/python-value.c (valpy_absolute): Avoid reference to
6691 builtin_type_int8 type.
6692
6693 * eval.c (evaluate_subexp_standard): Use platform-specific integer
6694 type instead of builtin_type_int8 as EVAL_SKIP return value type.
6695 * ada-lang.c (ada_evaluate_subexp): Likewise.
6696 * jv-lang.c (evaluate_subexp_java): Likewise.
6697 * m2-lang.c (evaluate_subexp_modula2): Likewise.
6698 * scm-lang.c (evaluate_exp): Likewise.
6699
6700 * value.h (value_bitstring): Add INDEX_TYPE argument.
6701 * valops.c (value_bitstring): Add INDEX_TYPE argument, use it instead
6702 of builtin_type_int32 as base range type.
6703 * eval.c (evaluate_subexp_standard): Update value_bitstring call.
6704
e3506a9f
UW
67052009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6706
6707 * gdbtypes.c (lookup_array_range_type): Add prototype.
6708 (lookup_string_range_type): Likewise.
6709 * gdbtypes.c (lookup_array_range_type): New function.
6710 (lookup_string_range_type): Likewise.
6711
6712 * ax-gdb.c (gen_repeat): Use lookup_array_range_type.
6713 * parse.c (follow_types): Likewise.
6714 * jv-lang.c (java_array_type): Likewise.
6715 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6716 * mt-tdep.c (mt_register_type): Likewise.
6717 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
6718 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
6719 * value.c (allocate_repeat_value): Likewise.
6720 * valops.c (value_array, value_cstring): Likewise.
6721 * valops.c (value_string): Use lookup_string_range_type.
6722
d5c831bd
UW
67232009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6724
6725 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Remove
6726 redundant check for NULL TYPE_TARGET_TYPE.
6727 * m2-valprint.c (m2_print_long_set): Likewise.
6728 * p-valprint.c (pascal_type_print_base): Likewise.
6729
5d3729b5
UW
67302009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6731
6732 * printcmd.c (next_gdbarch): New static variable.
6733 (set_next_address, do_examine, x_command): Set it.
6734 (decode_format): Use 'a' size to indicate width of an address.
6735 (do_examine): Add GDBARCH argument. Handle 'a' size.
6736 (x_command): Pass architecture to do_examine.
6737 Error if called without argument the first time.
6738 (do_one_display): Pass architecture to do_examine.
6739
6740 (examine_i_type, examine_b_type, examine_h_type, examine_w_type,
6741 examine_g_type): Remove.
6742 (_initialize_printcmd): Do not initialize them.
6743 (do_examine): Use builin_type_int... instead of examine_..._type.
6744
78267919
UW
67452009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6746
6747 * gdbtypes.h (struct builtin_type): Add internal_fn member.
6748 * gdbtypes.c (gdbtypes_post_init): Initialize it.
6749 * value.c (internal_fn_type): Remove.
6750 (_initialize_values): Do not initialize it.
6751
6752 * value.c (struct internalvar): Add enum internalvar_kind type and
6753 kind member. Restructure union internalvar_data type. Remove type,
6754 canonical, and make_value members.
6755 (init_if_undefined_command): Update for data structure changes.
6756 (create_internalvar): Likewise.
6757 (create_internalvar_type_lazy): Likewise.
6758 (get_internalvar_integer): Likewise.
6759 (get_internalvar_function): Likewise.
6760 (set_internalvar_component): Likewise.
6761 (set_internalvar): Likewise.
6762 (set_internalvar_integer): Likewise.
6763 (set_internalvar_function): Likewise.
6764 (clear_internalvar): Likewise.
6765 (add_internal_function): Likewise.
6766 (preserve_one_internalvar): New function.
6767 (preserve_values): Call it.
6768
6769 * value.h (value_of_internalvar): Add GDBARCH parameter.
6770 (internalvar_make_value): Likewise.
6771 * value.c (value_of_internalvar): Add GDBARCH parameter. Pass it to
6772 make_value callback. Use it to generate per-architecture result value
6773 types for internal variables with no pre-defined type. Update for data
6774 structure changes.
6775 (show_convenience): Pass architecture to value_of_internalvar.
6776 * eval.c (evaluate_subexp_standard): Likewise.
6777 * infrun.c (siginfo_make_value): Add GDBARCH parameter. Use it
6778 instead of current frame architecture. Return per-architecture type.
6779
6780 * value.h (set_internalvar_string): Add prototype.
6781 * value.c (set_internalvar_string): New function.
6782 * tracepoint.c (set_traceframe_context): Use it.
6783
0daa2b63
UW
67842009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
6785
6786 * jv-lang.h (java_int_type, java_byte_type, java_short_type,
6787 java_long_type, java_boolean_type, java_char_type, java_float_type,
6788 java_double_type, java_void_type): Remove.
6789 (struct builtin_java_type): New data type.
6790 (builtin_java_type): Add prototype.
6791 (java_primitive_type): Add GDBARCH argument.
6792 (java_primitive_type_from_name): Likewise.
6793 (type_from_class): Likewise.
6794
6795 * jv-lang.c (java_int_type, java_byte_type, java_short_type,
6796 java_long_type, java_boolean_type, java_char_type, java_float_type,
6797 java_double_type, java_void_type): Remove.
6798
6799 (build_java_types, builtin_java_type): New functions.
6800 (java_type_data): New static variable.
6801 (_initialize_java_language): Initialize it. No longer initialize
6802 global types.
6803 (java_language_arch_info): Use per-architecture types.
6804
6805 (java_primitive_type): Add GDBARCH argument. Return per-architecture
6806 type instead of refering to global variable.
6807 (java_primitive_type_from_name): Add GDBARCH argument.
6808 (java_primitive_type_name): New function.
6809 (java_demangled_signature_length): Use it instead of
6810 java_primitive_type_from_name.
6811 (java_demangled_signature_copy): Likewise.
6812
6813 (type_from_class): Add GDBARCH argument. Pass to java_link_class_type,
6814 java_primitive_type, and recursive type_from_class call.
6815 (java_link_class_type): Add GDBARCH argument. Pass to type_from_class
6816 calls. Use per-architecture types instead of global types.
6817
6818 * jv-exp.y (parse_java_type): New define.
6819 Use per-architecture types instead of global types througout.
6820
6821 * jv-valprint.c (java_value_print): Pass architecture to
6822 type_from_class and java_primitive_type_from_name. Use per-
6823 architecture types instead of global types.
6824
d70e31dd
DE
68252009-07-01 Doug Evans <dje@google.com>
6826
6827 * NEWS: Mention biarch amd64-linux gdbserver and hardware watchpoint
6828 support for i386-linux, amd64-linux, and i386-win32 builds of
6829 gdbserver.
6830
b565e757 68312009-07-01 Nick Roberts <nickrob@snap.net.nz>
7371bfdc
NR
6832
6833 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for deleted files.
6834
59dd3af6
JK
68352009-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6836
6837 * Makefile.in (TARGET_FLAGS_TO_PASS): Include also FORCE_PARALLEL.
6838 (check//%): Construct FORCE_PARALLEL for the sub-make. Extend the
6839 comment for it.
6840
2fd481e1
PP
68412009-06-30 Paul Pluzhnikov <ppluzhnikov@google.com>
6842
6843 gdb/10275
6844 * dwarf2-frame.c (dwarf2_frame_state): Move cfa_offset, cfa_reg,
6845 cfa_how and cfa_exp into regs and adjust users.
6846
c38f313d
DJ
68472009-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6848
6849 * dwarf2read.c (inherit_abstract_dies): Work around GCC PR 40573.
6850
8b777f02
VP
68512009-06-30 Vladimir Prus <vladimir@codesourcery.com>
6852
6853 * mi/mi-cmd-stack.c (parse_print_values): New.
6854 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Use the above.
6855
1a4300e9
VP
68562009-06-30 Vladimir Prus <vladimir@codesourcery.com>
6857
6858 * varobj.c (varobj_get_type): Use type_to_string.
6859
173853dc
PA
68602009-06-29 Pedro Alves <pedro@codesourcery.com>
6861
6862 * infrun.c (handle_inferior_event): Context switch to the new
6863 thread when resuming for a new_thread_event.
6864
4a399546
UW
68652009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6866
6867 * ada-lang.h (ada_convert_actual): Add GDBARCH argument.
6868 * ada-lang.c (convert_actual): Remove stale prototype.
6869 (ensure_lval, make_array_descriptor, ada_convert_actual):
6870 Add GDBARCH argument and pass through to subroutine calls.
6871 (ensure_lval): Use GDBARCH instead of current_gdbarch.
6872 * infcall.c (value_arg_coerce): Update ada_convert_actual call.
6873
30b15541
UW
68742009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6875
6876 * ada-lang.c (resolve): Use per-architecture void type instead
6877 of platform-independent one.
6878 (ada_evaluate_subexp) [STRUCTOP_STRUCT]: Likewise.
6879 (ada_resolve_function): Reimplement fallback logic to avoid
6880 explicit reference to builtin_type_void.
6881
7c964f07
UW
68822009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6883
6884 * ada-valprint.c (ada_print_scalar): Accept NULL type argument
6885 to indicate scalar should be printed as default integer.
6886 (print_optional_low_bound): Pass NULL to ada_print_scalar to
6887 indicate default integer output.
6888 * ada-typeprint.c (print_range, print_range_bound): Likewise.
6889 (print_choices): Likewise. Thus, accept NULL as val_type.
6890 * ada-lang.c (ada_variant_discrim_type): Return NULL when failed
6891 to look up controlling discriminant name.
6892
1ce677a4
UW
68932009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6894
6895 * ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
6896 Fall back to orig_type as index type if symbol lookup fails.
6897 Allocate result types from ORIG_TYPE's objfile.
6898 (ada_array_bound_from_type, to_fixed_array_type,
6899 ada_evaluate_subexp): Pass original index type to
6900 to_fixed_range_type. Do not pass objfile.
6901
6902 * ada-typeprint.c (print_range_type_named): Add ORIG_TYPE argument.
6903 Fall back to orig_type as index type if symbol lookup fails.
6904 (print_array_type, ada_print_type): Pass original index type
6905 to print_range_type_named.
6906
dd19d49e
UW
69072009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6908
6909 * ada-lang.c (ada_index_type): Update comment.
6910
1eea4ebd
UW
69112009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6912
6913 * ada-lang.c (ada_index_type): Make static. Add NAME argument.
6914 Throw error on invalid input arguments. Return NULL if unable
6915 to determine index type.
6916
6917 (ada_array_bound_from_type): Remove TYPEP argument.
6918 (ada_array_bound): Make static. Return LONGEST instead of value.
6919 Update for ada_array_bound_from_type change.
6920 (ada_array_length): Return LONGEST instead of value.
6921 Update for ada_array_bound_from_type change.
6922 (make_array_descriptor): Update for ada_array_bound change.
6923
6924 (ada_evaluate_subexp) [OP_ATR_RANGE, OP_ATR_FIRST, OP_ATR_LAST,
6925 OP_ATR_LENGTH]: Update for ada_array_bound_from_type,
6926 ada_array_bound, ada_array_length, ada_index_type changes.
6927 Always use ada_index_type to compute result type; fall back
6928 to architecture-specific integer type if ada_index_type fails.
6929
6930 * ada-lang.h (ada_index_type): Remove prototype.
6931 (ada_array_bound): Likewise.
6932
578933ab
PA
69332009-06-29 Pedro Alves <pedro@codesourcery.com>
6934
6935 * dbxread.c (read_dbx_symtab): Clear has_line_numbers when ending
6936 a psymtab.
6937
6bc80edc
TT
69382009-06-29 Tom Tromey <tromey@redhat.com>
6939
6940 * README: Mention parallel check.
6941
794684b6
SW
69422009-06-29 Sami Wagiaalla <swagiaal@redhat.com>
6943
6944 * dwarf2read.c (read_import_statement): Properly set import location
6945 and destination.
6946 * cp-support.h (cp_add_using, cp_add_using_directive): Now take char*
6947 inner, char* outer arguments. Updated callers.
6948
2497b498
UW
69492009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6950
6951 * value.h (value_subscript, value_subscripted_rvalue,
6952 value_bitstring_subscript, value_ptradd): Use LONGEST instead
6953 of value as type of the index argument.
6954 (value_ptrsub): Remove.
6955 * valarith.c (value_subscript, value_subscripted_rvalue,
6956 value_bitstring_subscript, value_ptradd): Use LONGEST instead
6957 of value as type of the index argument.
6958 (value_ptrsub): Remove.
6959
6960 * wrapper.h (gdb_value_subscript): Use LONGEST instead of
6961 value as type of the index argument.
6962 * wrapper.c (gdb_value_subscript): Likewise.
6963
6964 Update calls to gdb_value_subscript, value_subscript,
6965 value_subscripted_rvalue, value_bitstring_subscript and
6966 value_ptradd to use LONGEST instead of value as index
6967 argument type. Use value_ptradd instead of value_ptrsub.
6968 * ada-lang.c (ada_value_subscript, ada_value_ptr_subscript,
6969 ada_tag_name_2): Update.
6970 * ada-tasks.c (read_atcb): Update.
6971 * eval.c (evaluate_subexp_standard): Update.
6972 * valarith.c (value_subscript): Update.
6973 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Update.
6974 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
6975 gnuv3_method_ptr_to_value): Update.
6976 * jv-lang.c (evaluate_subexp_java): Update.
6977 * m2-lang.c (evaluate_subexp_modula2): Update.
6978 * python/python-value.c (valpy_getitem, valpy_binop): Update.
6979 * wrapper.c (gdb_value_subscript): Update.
6980 * varobj.c (c_describe_child): Update.
6981
0c8b41f1
UW
69822009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6983
6984 * gdbtypes.h (make_function_type): Remove OBJFILE parameter.
6985 * gdbtypes.c (make_function_type): Remove OBJFILE parameter.
6986 (lookup_function_type): Update call.
6987 * stabsread.c (read_type): Likewise.
6988 * dwarf2read.c (read_subroutine_type): Use lookup_function_type
6989 instead of make_function_type.
6990 * jv-lang.c (type_from_class): Likewise. Do not allocate types
6991 on the fake "dynamics" obstack.
6992
46bf5051
UW
69932009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6994
6995 * gdbtypes.h (struct builtin_type): Remove builtin_core_addr,
6996 nodebug_text_symbol, nodebug_data_symbol, nodebug_unknown_symbol,
6997 and nodebug_tls_symbol members.
6998 (struct objfile_type): New data structure.
6999 (objfile_type): Add prototype.
7000 * gdbtypes.c (gdbtypes_post_init): Remove initialization code
7001 for types no longer in struct builtin_type.
7002 (objfile_type_data): New static variable.
7003 (_initialize_gdbtypes): Initialize it.
7004 (objfile_type): New function.
7005
7006 * gdbtypes.h (builtin_type_error): Remove.
7007 * gdbtypes.c (build_complex): Do not use builtin_type_error.
7008 * symtab.c (builtin_type_error): Remove.
7009 (_initialize_symtab): Remove initialization.
7010
7011 * stabsread.c (dbx_lookup_type, define_symbol, error_type,
7012 rs6000_builtin_type, read_range_type): Use per-objfile types
7013 instead of global or per-architecture builtin types.
7014 * coffread.c (decode_type): Likewise.
7015 * dwarf2read.c (read_array_type, read_tag_string_type,
7016 new_symbol, die_type): Likewise.
7017 * mdebugread.c (parse_symbol, basic_type, upgrade_type,
7018 parse_procedure, psymtab_to_symtab_1): Likewise.
7019 * xcoffread.c (process_xcoff_symbol): Likewise.
7020 * parse.c (write_exp_msymbol): Likewise.
7021
7022 * stabsread.c (rs6000_builtin_type_data): New static variable.
7023 (_initialize_stabsread): Initialize it.
7024 (rs6000_builtin_type): Add OBJFILE argument. Allocate builtin
7025 types per-objfile instead of globally.
7026
7027 * stabsread.c (dbx_lookup_type): Add OBJFILE argument. Use it
7028 instead of current_objfile; pass it to rs6000_builtin_type.
7029 (dbx_alloc_type, read_type, read_range_type): Update calls.
7030 (cleanup_undefined_types_noname): Add OBJFILE argument and
7031 pass it to dbx_lookup_type.
7032 (cleanup_undefined_types): Add OBJFILE argument and pass it
7033 to cleanup_undefined_types_noname.
7034 * stabsread.h (cleanup_undefined_types): Add OBJFILE argument.
7035 * buildsym.c (end_symtab): Update call.
7036
b08f1e8d
UW
70372009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
7038
7039 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7040 target_gdbarch instead of current_gdbarch.
7041
6d10c194
UW
70422009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
7043
7044 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-windows-tdep.o.
7045 (ALL_TARGET_OBS): Add moxie-tdep.o, i386-darwin-tdep.o, and
7046 solib-darwin.o.
7047
7048 * configure.tgt: Add comment.
7049
9901a55b
PP
70502009-06-28 Paul Pluzhnikov <ppluzhnikov@google.com>
7051
7052 * mi/mi-cmds.c (mi_cmds): Remove unimplemented entries.
7053
edb3359d
DJ
70542009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
7055 Jan Kratochvil <jan.kratochvil@redhat.com>
7056
7057 * NEWS: Document inlined function support.
7058 * Makefile.in (SFILES): Add inline-frame.c.
7059 (COMMON_OBS): Add inline-frame.o.
7060 * block.c (contained_in): Rewrite to use lexical nesting.
7061 (block_linkage_function): Skip inlined function blocks.
7062 (block_inlined_p): New.
7063 * block.h (struct block): Update comment.
7064 (block_inlined_p): New prototype.
7065 * blockframe.c (get_frame_block): Handle inlined functions.
7066 (get_frame_function): Do not use block_linkage_function.
7067 (block_innermost_frame): Use get_frame_block and contained_in.
7068 * breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
7069 Skip over inlined functions. Simplify epilogue check.
7070 (bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
7071 Update comments.
7072 (set_momentary_breakpoint): Only accept non-inlined frames.
7073 (watch_command_1): Use frame_unwind_caller_pc and
7074 frame_unwind_caller_id instead of get_prev_frame.
7075 (until_break_command): Likewise. Use get_stack_frame_id.
7076 * buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
7077 * dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
7078 * dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
7079 (read_func_scope, new_symbol): Likewise. Handle arguments specially
7080 for inlined functions without call site information.
7081 (inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
7082 (die_specification): Treat DW_AT_abstract_origin as a specification.
7083 (read_type_die): Handle DW_TAG_inlined_subroutine.
7084 * frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
7085 * frame.c (fprint_frame_id): Print inline depth.
7086 (fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
7087 (skip_inlined_frames, get_stack_frame_id): New.
7088 (frame_unwind_caller_id): Use skip_inlined_frames.
7089 (frame_id_inlined_p): New.
7090 (frame_id_eq): Make the logic match the comments. Add inline_depth
7091 check.
7092 (frame_id_inner): Handle inlined functions.
7093 (frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
7094 (frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
7095 (get_prev_frame_1): Check for inline frames. Split out frame
7096 allocation to get_prev_frame_raw.
7097 (get_prev_frame_raw): New function.
7098 (get_prev_frame): Handle inline frames.
7099 (get_frame_pc): Use frame_unwind_pc.
7100 (get_frame_address_in_block): Skip inlined frames on both sides.
7101 (pc_notcurrent): Delete.
7102 (find_frame_sal): Rewrite to handle inline call sites. Use
7103 get_frame_address_in_block.
7104 (deprecated_update_frame_pc_hack): Make static.
7105 * frame.h: Update comments.
7106 (struct frame_id): Add inline_depth.
7107 (enum frame_type): Add INLINE_FRAME.
7108 (frame_id_inlined_p, get_stack_frame_id): New prototypes.
7109 * gdbthread.h (struct thread_info): Add step_stack_frame_id field.
7110 * infcmd.c (set_step_frame): New function.
7111 (step_once): Use set_step_frame. Handle inlined functions.
7112 (until_next_command): Use set_step_frame.
7113 (finish_backward), finish_forward): Use get_stack_frame_id.
7114 (finish_command): Support inlined functions.
7115 * inferior.h (set_step_info): New prototype.
7116 * infrun.c (RESUME_ALL): Use minus_one_ptid.
7117 (clear_proceed_status): Clear step_stack_frame_id.
7118 (init_wait_for_inferior): Call clear_inline_frame_state.
7119 (init_execution_control_state): Make static.
7120 (set_step_info): New function.
7121 (init_thread_stepping_state): Do not set the symtab or line here.
7122 (stepped_in_from): New function.
7123 (handle_inferior_event): Handle inlined functions. Use set_step_info.
7124 (insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
7125 (struct inferior_status): Add step_stack_frame_id.
7126 (save_inferior_status, restore_inferior_status): Save and restore
7127 step_stack_frame_id.
7128 * inline-frame.c, inline-frame.h: New files.
7129 * minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
7130 * regcache.c (regcache_write_pc): Call reinit_frame_cache.
7131 * s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
7132 * stack.c (frame_show_address): New.
7133 (print_frame_info, print_frame): Use it.
7134 (find_frame_funname): Use get_frame_function. Handle inlined blocks.
7135 (frame_info): Mark inlined functions.
7136 (backtrace_command_1): Use get_current_user_frame.
7137 (print_frame_local_vars, print_frame_label_vars): Update comments.
7138 (return_command): Refuse inlined functions.
7139 * symtab.c (lookup_symbol_aux_local): Stop at inlined function
7140 boundaries.
7141 (find_function_start_sal): Avoid inlined functions.
7142 (completion_list_add_fields): New function.
7143 (default_make_symbol_completion_list): Use it. Use block_static_block
7144 and block_global_block. Check for inlined functions.
7145 (skip_prologue_using_sal): Avoid line number comparison across
7146 inlining.
7147 * symtab.h (struct symbol): Add is_inlined.
7148 (SYMBOL_INLINED): New.
7149 * target.c (target_resume): Call clear_inline_frame_state.
7150 * valops.c (value_of_variable): Check block_inlined_p.
7151
c7ce8faa
DJ
71522009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
7153
7154 * frame.c (frame_unwind_id): Renamed to ...
7155 (frame_unwind_caller_id): ... this. All callers updated.
7156 (frame_pc_unwind): Renamed to ...
7157 (frame_unwind_caller_pc): ... this. All callers updated.
7158 * frame.h: Document frame_unwind_caller_WHAT functions.
7159 (frame_unwind_id): Renamed to ...
7160 (frame_unwind_caller_id): ... this.
7161 (frame_pc_unwind): Renamed to ...
7162 (frame_unwind_caller_pc): ... this.
7163 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
7164 * stack.c (parse_frame_specification_1): Do not rely on
7165 frame_unwind_id.
7166
388a8562
MS
71672009-06-27 Michael Snyder <msnyder@vmware.com>
7168
7169 * infrun.c (handle_inferior_event): Improve handling of
7170 reverse-stepping into and over shared library functions.
7171
f3a5f1de
KO
71722009-06-25 Karen Osmond <karen.osmond@gmail.com>
7173
7174 * linespec.c (find_method): Add new not_found_ptr parameter to
7175 bring in line with symtab_from_filename, decode_variable.
7176 (decode_compound): Likewise. Also propagate not_found_ptr to
7177 find_method.
7178 (decode_line_1): Propagate not_found_ptr to decode_compound.
7179 (cplusplus_error): Now throws NOT_FOUND_ERROR.
7180
123e3958
KO
71812009-06-25 Karen Osmond <karen.osmond@gmail.com>
7182
7183 * MAINTAINERS (Write After Approval): Add self.
7184
4e608b4f
UW
71852009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
7186
7187 * valops.c (value_one): Reimplement broken decimal-float case.
7188
34e13b5b
UW
71892009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
7190
7191 * eval.c (evaluate_subexp_standard): Use expression architecture
7192 instead of current_gdbarch.
7193
7194 * infrun.c (handle_inferior_event): Avoid unncessary reference
7195 to current_gdbarch and get_current_frame ().
7196
0fd8e87f
UW
71972009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
7198
7199 * breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
7200 (enum bptype): Add bp_longjmp_master.
7201
7202 * breakpoint.c (create_longjmp_master_breakpoint): New function.
7203 (update_breakpoints_after_exec): Handle bp_longjmp_master
7204 breakpoints. Call create_longjmp_master_breakpoint.
7205 (print_it_typical, bpstat_stop_status, bpstat_what,
7206 print_one_breakpoint_location, allocate_bp_location, mention,
7207 delete_command, breakpoint_re_set_one): Handle bp_longjmp_master.
7208 (breakpoint_re_set): Call create_longjmp_master_breakpoint.
7209 (create_longjmp_breakpoint): Delete.
7210 (set_longjmp_breakpoint): Add THREAD argument. Reimplement
7211 to install momentary clones of bp_longjmp_master breakpoints.
7212
7213 * infcmd.c (step_1): Pass thread to set_longjmp_breakpoint.
7214
ca5f395d
CC
72152009-06-23 Cary Coutant <ccoutant@google.com>
7216
7217 * dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
7218 Set basic_block to 0 after a special opcode.
7219
5b2ab461
JK
72202009-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 Fix a regression by the mmap patch from 2009-06-16.
7223 * symfile.c (reread_symbols): Move sym_finish and clear_objfile_data
7224 calls before deleting the OBJFILE obstack. Extend the comment.
7225
45d5d5ca
UW
72262009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
7227
7228 * jv-lang.h (JAVA_OBJECT_SIZE): Remove.
7229 (get_java_object_header_size): Add GDBARCH parameter.
7230 * jv-lang.c (get_java_object_header_size): Add GDBARCH parameter.
7231 Use it instead of current_gdbarch.
7232 (evaluate_subexp_java): Replace JAVA_OBJECT_SIZE with call to
7233 get_java_object_header_size.
7234 * jv-valprint.c (java_value_print): Likewise.
7235
27aa8d6a
SW
72362009-06-23 Sami Wagiaalla <swagiaal@redhat.com>
7237
01fc9d36
TG
7238 * dwarf2read.c (process_die): Handle import statements
7239 (DW_TAG_imported_declaration, case DW_TAG_imported_module)
7240 (read_import_statement): New.
7241 (read_func_scope): Update using_directives to point to current context
7242 (read_lexical_block_scope): Ditto.
7243 * cp-support.h: Added prototype for cp_add_using.
7244 * cp-namespace.c: Removed local context_stack.
7245 (cp_initialize_namespace): Deleted.
7246 (cp_finalize_namespace): Deleted.
7247 (cp_add_using_directive): Use using_directives instead of using_list.
7248 (cp_add_using): No longer static.
7249 * buildsym.h: Created global using_direct variable.
7250 Created using_direct variable in context_stack.
7251 * buildsym.c (finish_block): Set using directives for the block under
7252 construction.
7253 (start_symtab): Removed call to cp_initialize_namespace().
7254 (end_symtab): Removed call to cp_finalize_namespace().
7255 (push_context): Save and reset using_directives.
7256 * block.c (block_using): Return using directives for given
7257 block instead of static block.
27aa8d6a 7258
ad068eab
UW
72592009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
7260
7261 * target-descriptions.h (struct type): Do not declare.
7262 (struct tdesc_type): Declare.
7263 (tdesc_named_type): Change return type to struct tdesc_type *.
7264 (tdesc_record_type): Remove.
7265 (tdesc_create_vector): Add prototype.
7266 (tdesc_create_union): Likewise.
7267 (tdesc_add_field): Likewise.
7268
7269 * target-descriptions.c (struct tdesc_reg): Replace gdb_type
7270 member by tdesc_type member.
7271 (struct tdesc_type_field, tdesc_type_field): Add type and vector def.
7272 (struct tdesc_type, tdesc_type_p): Likewise.
7273 (struct tdesc_arch_reg, tdesc_arch_reg): Likewise.
7274 (struct tdesc_feature): Change type of "types" to VEC(tdesc_type_p).
7275 (struct tdesc_arch_data): Replace registers member by arch_regs.
7276
7277 (tdesc_predefined_types): Change to array of pre-defined
7278 struct tdesc_type structures. Add "code_ptr" and "data_ptr".
7279 (tdesc_named_type): Return struct tdesc_type * instead of GDB type.
7280 (tdesc_gdb_type): New function.
7281
7282 (target_find_description): Update for data structure changes.
7283 (tdesc_data_cleanup): Likewise.
7284 (tdesc_numbered_register): Likewise.
7285 (tdesc_use_registers): Likewise.
7286 (tdesc_create_reg): Likewise.
7287
7288 (tdesc_find_arch_register): New function.
7289 (tdesc_find_register): Use it.
7290 (tdesc_register_type): Use tdesc_gdb_type to generate GDB type from
7291 tdesc_type on demand; cache generated types in tdesc_arch_reg.
7292
7293 (tdesc_free_type): New function.
7294 (tdesc_free_feature): Call it.
7295
7296 (tdesc_create_vector): New function.
7297 (tdesc_create_union): Likewise.
7298 (tdesc_add_field): Likewise.
7299 (tdesc_record_type): Remove.
7300
7301 (tdesc_type_id): Remove.
7302 (maint_print_c_tdesc_cmd): Update for data structure changes. Update
7303 generated code to create tdesc_type structures instead of GDB types.
7304
7305 * xml-tdesc.c: Do not include "gdbtypes.h".
7306 (struct tdesc_parsing_data): Change type of current_union to
7307 struct tdesc_type *.
7308 (tdesc_start_reg): Do not special-case "code_ptr" or "data_ptr".
7309 (tdesc_start_union): Call tdesc_create_union.
7310 (tdesc_start_field): Call tdesc_add_field.
7311 (tdesc_start_vector): Call tdesc_create_vector.
7312 (tdesc_end_union): Remove.
7313 (feature_children): Remove reference to tdesc_end_union.
7314
7315 * features/arm-with-iwmmxt.c: Regenerate.
7316 * features/mips-linux.c: Regenerate.
7317 * features/mips64-linux.c: Regenerate.
7318 * features/rs6000/powerpc-32.c: Regenerate.
7319 * features/rs6000/powerpc-32l.c: Regenerate.
7320 * features/rs6000/powerpc-403.c: Regenerate.
7321 * features/rs6000/powerpc-403gc.c: Regenerate.
7322 * features/rs6000/powerpc-505.c: Regenerate.
7323 * features/rs6000/powerpc-601.c: Regenerate.
7324 * features/rs6000/powerpc-602.c: Regenerate.
7325 * features/rs6000/powerpc-603.c: Regenerate.
7326 * features/rs6000/powerpc-604.c: Regenerate.
7327 * features/rs6000/powerpc-64.c: Regenerate.
7328 * features/rs6000/powerpc-64l.c: Regenerate.
7329 * features/rs6000/powerpc-7400.c: Regenerate.
7330 * features/rs6000/powerpc-750.c: Regenerate.
7331 * features/rs6000/powerpc-860.c: Regenerate.
7332 * features/rs6000/powerpc-altivec32.c: Regenerate.
7333 * features/rs6000/powerpc-altivec32l.c: Regenerate.
7334 * features/rs6000/powerpc-altivec64.c: Regenerate.
7335 * features/rs6000/powerpc-altivec64l.c: Regenerate.
7336 * features/rs6000/powerpc-e500.c: Regenerate.
7337 * features/rs6000/powerpc-e500l.c: Regenerate.
7338 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
7339 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
7340 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
7341 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
7342 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
7343 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
7344 * features/rs6000/powerpc-vsx32.c: Regenerate.
7345 * features/rs6000/powerpc-vsx32l.c: Regenerate.
7346 * features/rs6000/powerpc-vsx64.c: Regenerate.
7347 * features/rs6000/powerpc-vsx64l.c: Regenerate.
7348 * features/rs6000/rs6000.c: Regenerate.
7349
284614f0
JB
73502009-06-23 Joel Brobecker <brobecker@adacore.com>
7351
7352 * ada-lang.c (decode_packed_array): If the value is a pointer to
7353 an array, then use value_ind to dereference it, not ada_value_ind.
7354 (ada_template_to_fixed_record_type_1): Handle the case where a
7355 dynamic field is an aligner type.
7356 (to_fixed_array_type): Add handling for packed array types.
7357 (ada_get_base_type): Do not follow the XVS type if the type is
7358 an aligner type.
7359 (ada_evaluate_subexp): Split a few statements up for clarity
7360 and debuggability.
7361 <OP_FUNCALL>: Add handling of the case of a packed array that
7362 has already been fixed.
7363
4b27a620
JB
73642009-06-23 Joel Brobecker <brobecker@adacore.com>
7365
7366 * ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
7367 (evaluate_subexp_type): Reimplement using evaluate_subexp.
7368 * value.h (evaluate_subexp): Add declaration.
7369 * eval.c (evaluate_subexp): Make non-static.
7370 * objc-lang.c (print_object_command): Use evaluate_subexp.
7371
69de3c6a
PP
73722009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
7373
7374 Revert 2009-05-14 breakpoint commit (no longer needed).
7375 * breakpoint.h (breakpoint_re_set_objfile): Remove
7376 * breakpoint.c (breakpoint_re_set_objfile): Likewise
7377 (create_overlay_event_breakpoint): Remove objfile parameter,
7378 iterate over all objfiles.
7379 * objfiles.c (objfile_relocate): Update.
7380 * symfile.c (new_symfile_objfile): Likewise.
7381
85e306ed
TT
73822009-06-23 Tom Tromey <tromey@redhat.com>
7383
7384 PR gdb/10309:
7385 * c-lang.c (classify_type): Iterate over typedefs.
7386 * c-valprint.c (textual_element_type): Iterate over typedefs.
7387
7bd06e87
TG
73882009-06-22 Tristan Gingold <gingold@adacore.com>
7389
7390 * darwin-nat.c (darwin_xfer_partial): Use host_address_to_string
7391 instead of "%p".
7392
07e7f39f
JK
73932009-06-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7394
7395 PR gdb/9988:
7396 * buildsym.c (block_compar): New function.
7397 (end_symtab): Replace the bubble sort by a qsort based code.
7398
73992009-06-22 Sami Wagiaalla <swagiaal@redhat.com>
f667014e
SW
7400
7401 * MAINTAINERS (Write After Approval): Add self.
7402
6e3f70d7
UW
74032009-06-22 Ulrich Weigand <uweigand@de.ibm.com>
7404
7405 * spu-tdep.c (spu_get_longjmp_target): New function.
7406 (spu_gdbarch_init): Install it.
7407
df4b58fe
L
74082009-06-22 H.J. Lu <hongjiu.lu@intel.com>
7409
7410 PR server/10306
7411 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
7412
a49f981f
MS
74132009-06-21 Michael Snyder <msnyder@vmware.com>
7414
7415 * inferior.h: Update ancient comment.
7416
0763ab81
PA
74172009-06-20 Aleksandar Ristovski <aristovski@qnx.com>
7418 Pedro Alves <pedro@codesourcery.com>
7419
7420 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Avoid dereferencing
7421 NULL pointer.
7422 (scan_dyntag): Skip if input bfd isn't elf flavoured.
7423 (locate_base): Call elf_locate_base even without an exec_bfd.
7424
5d2c29b8
TT
74252009-06-19 Samuel Bronson <naesten@gmail.com>
7426
121e16b5 7427 PR cli/9903:
5d2c29b8
TT
7428 * cli/cli-decode.c (apropos_cmd): Skip traversing abbreviations
7429 for prefix commands to avoid duplicates in the output.
7430
4a98be19
TT
74312009-06-19 Samuel Bronson <naesten@gmail.com>
7432
121e16b5 7433 PR cli/9903:
4a98be19
TT
7434 * cli/cli-decode.c (apropos_cmd): Fix avoidance of double
7435 printing.
7436
3daf8fe5
JG
74372009-06-19 Jerome Guitton <guitton@adacore.com>
7438
7439 * breakpoint.c (expand_line_sal_maybe): When explicit_line,
7440 skip prologue on each sals.
7441 (skip_prologue_sal): Return explicit_line and explicit_pc
7442 unmodified.
7443
bb00b29d
TG
74442009-06-19 Tristan Gingold <gingold@adacore.com>
7445
8e54f210
TG
7446 * darwin-nat.c (_initialize_darwin_inferior): Remove commented-out
7447 line.
7448
74492009-06-19 Tristan Gingold <gingold@adacore.com>
bb00b29d
TG
7450 * machoread.c (macho_symtab_read): Adjust for bfd changes.
7451 * darwin-nat.h (struct darwin_exception_msg): New type to describe
7452 a mach exception.
7453 (struct private_thread_info): New type to describe the state of the
7454 thread.
7455 (DEF_VEC_I thread_t): Removed, replaced by ...
7456 (DEF_VEC_O darwin_thread_t): ... this new type.
7457 (struct darwin_inferior): Renamed to ...
7458 (struct private_inferior): ... this type. Fields added.
7459 (darwin_not_port): Moved into the private inferior structure.
7460 * darwin-nat.c: Add includes, improve comments.
7461 Rewrite to handle multiple threads and processes.
7462 (darwin_resume_to): New function and protype.
7463 (darwin_resume, darwin_wait_to, darwin_wait): Ditto.
7464 (darwin_kill_inferior): Add ops argument.
7465 (darwin_pid_to_str): New function.
7466 (darwin_thread_alive): Ditto.
7467 (darwin_inf, darwin_not_port): Removed.
7468 (darwin_inf_fake_stop): New variable.
7469 (msgin, msgout, msg_state, exc_msg): Removed.
7470 (mach_check_error): Use warning instead of error.
7471 (darwin_ptrace): Adjust debug level.
7472 (cmp_thread_t): Fix names (typo).
7473 (darwin_check_new_threads): Argument is now an inferior,
7474 adjust for new structures, add no change check, ignore dead ports,
7475 handle first thread case.
7476 (find_inferior_task_it): New function.
7477 (find_inferior_notify_it): Ditto.
7478 (darwin_find_inferior_by_task): Ditto.
7479 (darwin_find_inferior_by_notify): Ditto.
7480 (darwin_find_thread): Ditto.
7481 (darwin_suspend_inferior): Ditto.
7482 (darwin_resume_inferior): Ditto.
7483 (catch_exception_raise_state): Removed.
7484 (catch_exception_raise_state_identity): Removed.
7485 (darwin_suspend_inferior_it): New function.
7486 (darwin_resume_inferior_it): Ditto.
7487 (darwin_dump_message): New function, extracted from darwin_wait.
7488 (darwin_decode_exception_message): New function.
7489 (darwin_encode_reply): New function.
7490 (catch_exception_raise): Removed.
7491 (darwin_send_reply): New function, extracted from darwin_resume.
7492 (darwin_resume_thread): New function, extracted from darwin_resume.
7493 (struct resume_inferior_threads_param): New type.
7494 (darwin_resume_inferior_threads_it): New function.
7495 (darwin_resume_inferior_threads): New function.
7496 (darwin_suspend_inferior_threads): New function.
7497 (darwin_resume): Mostly rewritten to handle multiple threads and
7498 some corner cases.
7499 (darwin_decode_message): New function extracted from darwin_wait.
7500 (cancel_breakpoint): New function.
7501 (darwin_wait): Mostly rewritten. Handle multiple threads.
7502 (darwin_mourn_inferior): Adjust for per process structures.
7503 (darwin_reply_to_all_pending_messages): New function.
7504 (darwin_stop_inferior): Adjust for per inferior structures.
7505 (darwin_attach_pid): Ditto.
7506 (darwin_init_thread_list): Ditto.
7507 (darwin_attach): Ditto.
7508 (darwin_detach): Ditto.
7509 (darwin_files_info): Now empty.
7510 (darwin_pid_to_str): Adjust returns string to match one expected by
7511 the testsuite.
7512 (darwin_read_write_inferior): Rename err variable to match other uses.
7513 Adjust debug message. Handle submaps.
7514 (darwin_xfer_memory): Adjust for per inferior structures.
7515 (set_enable_mach_exceptions): Ditto.
7516 (darwin_pid_to_exec_file): New function.
7517 (darwin_get_ada_task_ptid): Ditto.
7518 (darwin_supports_multi_process): Ditto.
7519 (_initialize_darwin_inferior): Remove useless assertion, adjust for
7520 per inferior structures. Add new target operations.
7521
31410e84
MS
75222009-06-18 Hui Zhu <teawater@gmail.com>
7523 Michael Snyder <msnyder@vmware.com>
7524
7525 * infrun.c (handle_inferior_event): Improve reverse stepping
7526 through function epilogue.
7527
6373d119
MS
7528 * infrun.c (handle_inferior_event): Reverse-next through
7529 trampoline.
7530
c098b58b
PP
75312009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7532
7533 * dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
7534 dwarf_frame_size.
7535
affddf13
TT
75362009-06-17 Tom Tromey <tromey@redhat.com>
7537
7538 * dwarf2read.c (zlib_decompress_section): Use a cleanup.
7539
9898f801
UW
75402009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7541
7542 * gdbarch.sh (pointer_to_address): Change to type 'm'.
7543 (address_to_pointer): Likewise.
7544 * gdbarch.c, gdbarch.h: Regenerate.
7545
7546 * inferior.h (unsigned_pointer_to_address): Add GDBARCH argument.
7547 (signed_pointer_to_address): Likewise.
7548 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
7549 * findvar.c (unsigned_pointer_to_address): Likewise.
7550 (signed_pointer_to_address): Likewise.
7551 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
7552
7553 * avr-tdep.c (avr_address_to_pointer): Likewise.
7554 (avr_pointer_to_address): Likewise.
7555 * iq2000-tdep.c (iq2000_pointer_to_address): Likewise.
7556 (iq2000_address_to_pointer): Likewise.
7557 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
7558 (m32c_m16c_pointer_to_address): Likewise.
7559 * spu-tdep.c (spu_pointer_to_address): Likewise.
7560 * xstormy16-tdep.c (xstormy16_pointer_to_address): Likewise.
7561 (xstormy16_address_to_pointer): Likewise.
7562
1fac167a
UW
75632009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7564
7565 * printcmd.c (print_scalar_formatted): Always truncate
7566 unsigned data types.
7567
7568 * cli-dump.c (struct callback_data): Change type of load_offset
7569 to CORE_ADDR.
7570 (restore_binary_file): Update type casts.
7571 (restore_command): Parse load_offset as address, not long.
7572
7573 * utils.c (string_to_core_addr): Do not sign-extend value.
7574 * varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
7575 before comparing against requested frame address.
7576
a78c2d62
UW
75772009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7578
7579 * gdbarch.sh (gcore_bfd_target): New gdbarch callback.
7580 * gdbarch.h, gdbarch.c: Regenerate.
7581
7582 * gcore.c (default_gcore_target): Make return value const.
7583 Call gdbarch_gcore_bfd_target if present.
7584 (default_gcore_arch, default_gcore_mach): Use target_gdbarch.
7585
7586 * corelow.c (core_read_description): Call gdbarch_core_read_description
7587 on core_gdbarch instead of current_gdbarch.
7588
7589 * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
7590
3b7538c0
UW
75912009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7592
7593 * gdbtypes.c (create_string_type): Receive character type as argument.
7594 * gdbtypes.h (create_string_type): Add character type argument.
7595 * dwarf2read.c (read_tag_string_type): Pass character type to
7596 create_string_type.
7597
7598 * value.h (value_string): Add character type argument.
7599 * valops.c (value_string): Add character type argument. Pass it to
7600 create_string_type. Do not allocate space in inferior.
7601 * valarith.c (value_concat): Pass character type to value_string.
7602
7603 * value.h (value_typed_string): Rename to ...
7604 (value_cstring): ... this.
7605 * valops.c (value_typed_string): Rename to ...
7606 (value_cstring): ... this.
7607 * c-lang.c (evaluate_subexp_c): Update.
7608
7609 * python/python-value.c (builtin_type_pychar): New define.
7610 (convert_value_from_python): Call value_cstring instead
7611 of value_from_string.
7612 * value.c (value_from_string): Remove.
7613 * value.h (value_from_string): Remove.
7614
7615 * eval.c (evaluate_subexp_standard): Pass character type to
7616 value_string. Pass expression architecture to value_nsstring
7617 and lookup_child_selector.
7618 * objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
7619 (lookup_child_selector): Likewise.
7620 (value_nsstring): Likewise.
7621 * objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
7622 Pass character type to value_string..
7623 (lookup_child_selector): Likewise.
7624 (value_nsstring): Add GDBARCH parameter, use it instead of
7625 objfile architecture. Pass architecture to lookup_objc_class
7626 and lookup_child_selector. Pass character type to value_string.
7627 (end_msglist): Pass architecture to lookup_objc_class.
7628 * objc-exp.y: Pass architecture to lookup_objc_class.
7629
e6c014f2
UW
76302009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7631
7632 * gdbtypes.h (struct language_defn): Add forward declaration.
7633 (lookup_typename): Add LANGUAGE and GDBARCH parameters.
7634 (lookup_unsigned_typename): Likewise.
7635 (lookup_signed_typename): Likewise.
7636 * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
7637 Use them instead of current_language and current_gdbarch.
7638 (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
7639 Pass them to lookup_typename.
7640 (lookup_signed_typename): Likewise.
7641
7642 * c-exp.y: Pass parse_language and parse_gdbarch to
7643 lookup_unsigned_typename and lookup_signed_typename.
7644 * objc-exp.y: Likewise.
7645 * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
7646
7647 * c-lang.c (evaluate_subexp_c): Pass expression language and
7648 gdbarch to lookup_typename.
7649 * printcmd.c (printf_command): Pass current language and
7650 gdbarch to lookup_typename.
7651 * python/python-type.c (typy_lookup_typename): Likewise.
7652 Include "language.h".
7653
ec22ec34
UW
76542009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7655
7656 * sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
7657 Use it instead of current_gdbarch. Pass architecture to
7658 sparc32_gregset_supplies_p.
7659 (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead
7660 of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p.
7661 * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p,
7662 sparc64nbsd_fpregset_supplies_p): Likewise.
7663 * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p):
7664 Add GDBARCH parameter.
7665 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
7666 (sparc_fetch_inferior_registers): Pass regcache architecture to
7667 sparc_gregset_supplies_p and sparc_fpregset_supplies_p.
7668 (sparc_store_inferior_registers): Likewise.
7669 * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p:
7670 Add GDBARCH parameter.
7671 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
7672
a97b0ac8
UW
76732009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7674
7675 * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
7676 of current_gdbarch.
7677 * aix-thread.c (pd_enable): Likewise.
7678 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
7679 * bsd-uthread.c (bsd_uthread_activate): Likewise.
7680 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
7681 * linux-thread-db.c (enable_thread_event): Likewise.
7682 * monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
7683 * nto-procfs.c (procfs_open): Likewise.
7684 * procfs.c (invalidate_cache, procfs_insert_watchpoint,
7685 info_proc_mappings, info_mappings_callback): Likewise.
7686 * record.c (record_open): Likewise.
7687 * rs6000-nat.c (ARCH64): Likewise.
7688 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
7689 (darwin_bfd_open): Likewise.
7690 * memattr.c (mem_info_command): Likewise.
7691
7692 * windows-nat.c (win32_resume): Use current regcache architecture
7693 instead of current_gdbarch.
7694
7695 * dbug-rom.c (dbug_regname): Remove check against number of
7696 registers in current_gdbarch.
7697 * solib-pa64.c (read_dynamic_info): Remove unused variable.
7698
d80b854b
UW
76992009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7700
7701 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,
7702 use it instead of current_gdbarch.
7703 * frame.h (deprecated_pc_in_call_dummy): Add GDBARCH parameter.
7704 * arm-tdep.c (arm_skip_prologue): Pass architecture to
7705 deprecated_pc_in_call_dummy.
7706
7707 * symtab.c (skip_prologue_using_sal): Add GDBARCH parameter.
7708 Use it instead of current_gdbarch.
7709 * symtab.h (skip_prologue_using_sal): Add GDBARCH parameter.
7710 * breakpoint.c (expand_line_sal_maybe): Pass architecture to
7711 skip_prologue_using_sal.
7712 * arm-tdep.c (skip_prologue_using_sal): Likewise.
7713 * lm32-tdep.c (lm32_skip_prologue): Likewise.
7714 * m32-tdep.c (m32c_skip_prologue): Likewise.
7715 * mips-tdep.c (mips_skip_prologue): Likewise.
7716 * moxie-tdep.c (moxie_skip_prologue): Likewise.
7717 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
7718 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
7719 * frv-tdep.c (frv_analyze_prologue): Add GDBARCH parameter, pass
7720 it to skip_prologue_using_sal. Update call sites ...
7721 (frv_skip_prologue, frv_frame_unwind_cache): ... here.
7722
7723 * mn10300-tdep.c (struct mn10300_prologue): Add GDBARCH member.
7724 (check_for_saved): Use it instead of current_gdbarch.
7725 (mn10300_analyze_prologue): Set it.
7726
7727 * value.c (using_struct_return): Add GDBARCH parameter. Use it
7728 instead of current_gdbarch.
7729 * value.h (using_struct_return): Add GDBARCH parameter.
7730 * eval.c (evaluate_subexp_standard): Pass architecture to
7731 using_struct_return.
7732 * infcall.c (call_function_by_hand): Likewise.
7733 * stack.c (return_command): Likewise.
7734 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
7735
7736 * symtab.c (in_prologue): Add GDBARCH parameter. Use it instead of
7737 current_gdbarch.
7738 * symtab.h (in_prologue): Add GDBARCH parameter.
7739 * infrun.c (handle_inferior_event): Pass architecture to in_prologue.
7740
7741 * eval.c (evaluate_subexp_standard): Use expression architecture
7742 instead of current_gdbarch.
7743
7744 * c-lang.c (evaluate_subexp_c): Use expression architecture and
7745 language instead of current_gdbarch and current_language.
7746
7747 * printcmd.c (do_one_display): Use expression architecture instead
7748 of current_gdbarch.
7749
7750 * infcmd.c (print_return_value): Use architecture of stop_regcache
7751 instead of current_gdbarch.
7752 (print_vector_info, print_float_info): Remove GDBARCH argument,
7753 use frame architecture instead.
7754 (vector_info, float_info): Update calls.
7755
7756 * objc-lang.c (objc_skip_trampoline): Use frame architecture
7757 instead of current_gdbarch.
7758
7759 * parse.c (write_dollar_variable): Use parse architecture instead
7760 of current_gdbarch.
7761
7762 * source.c (line_info): Use objfile architecture instead of
7763 current_gdbarch.
7764
7765 * symtab.c (find_function_start_sal): Use gdbarch instead of
7766 current_gdbarch.
7767 (print_msymbol_info): Use objfile architecture instead of
7768 current_gdbarch.
7769
7770 * valops.c (value_assign): Use frame architecture instead of
7771 current_gdbarch.
7772
fbf65064
UW
77732009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7774
7775 * buildsym.c (record_line): Remove call to gdbarch_addr_bits_remove.
7776
7777 * coffread.c (coff_symtab_read): Call gdbarch_addr_bits_remove before
7778 calling record_line.
7779 (enter_linenos): Likewise.
7780 * dbxread.c (process_one_symbol): Likewise.
7781 * dwarf2read.c (dwarf_decode_lines): Likewise.
7782 * mdebugread.c (psymtab_to_symtab_1): Likewise.
7783 * xcoffread.c (enter_line_range): Likewise.
7784
505e835d
UW
77852009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7786
7787 * ax-gdb.c (gen_bitfield_ref): Add EXP argument, use expression
7788 architecture instead of current_gdbarch.
7789 (gen_struct_ref): Add EXP argument, pass to get_bitfield_ref.
7790 (gen_expr): Pass expression to get_struct_ref.
7791
7792 * symtab.h (struct symbol_ops): Add GDBARCH parameter to
7793 tracepoint_var_ref callback.
7794 * ax-gdb.c (gen_var_ref): Pass architecture to tracepoint_var_ref
7795 symbol operation callback.
7796 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Add GDBARCH parameter.
7797 Use it instead of current_gdbarch.
7798 (locexpr_tracepoint_var_ref): Add GDBARCH parameter. Pass it to
7799 dwarf2_tracepoint_var_ref.
7800 (loclist_tracepoint_var_ref): Likewise.
7801
55f960e1
UW
78022009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7803
7804 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
7805 Use it instead of address bits of current_gdbarch.
7806 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
7807 * arm-tdep.c (thumb_analyze_prologue): Pass address bits to
7808 make_pv_area.
7809 (arm_scan_prologue): Likewise.
7810 * m32c-tdep.c (m32c_analyze_prologue): Likewise.
7811 * mep-tdep.c (mep_analyze_prologue): Likewise.
7812 * mn10300-tdep.c (mn10300_analyze_prologue): Likewise.
7813 * s390-tdep.c (s390_analyze_prologue): Likewise.
7814
7ccb0be9
UW
78152009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7816
7817 * mi/mi-main.c (mi_cmd_data_list_register_names): Use selected
7818 frame architecture instead of current_gdbarch.
7819 (mi_cmd_data_list_changed_registers): Likewise.
7820 (mi_cmd_data_list_register_values): Likewise. Pass selected
7821 frame to get_register.
7822 (get_register): Add FRAME argument, use it as frame to retrieve
7823 registers from (instead of selected frame). Use frame architecture
7824 instead of current_gdbarch.
7825 (mi_cmd_data_write_register_values): Use current regcache
7826 architecture instead of current_gdbarch.
7827
5eccfcc2
UW
78282009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7829
7830 * tui/tui-regs.c (tui_show_register_group): Remove GDBARCH parameter;
7831 use frame architecture instead. Replace current_gdbarch uses.
7832 (tui_show_registers): Update call.
7833 (tui_get_register): Remove GDBARCH parameter; use frame architecture
7834 instead.
7835 (tui_show_register_group): Update call.
7836 (tui_check_register_values): Likewise.
7837 (tui_register_format): Remove GDBARCH parameter; use frame
7838 architecture instead. Replace current_gdbarch uses.
7839 (tui_get_register): Update call.
7840
bd57a748
UW
78412009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7842
7843 * gdbarch.sh (construct_inferior_arguments): Remove.
7844 * gdbarch.c, gdbarch.h: Regenerate.
7845 * infcmd.c (get_inferior_args): Call construct_inferior_arguments
7846 directly instead of gdbarch_construct_inferior_arguments.
7847 (construct_inferior_arguments): Remove GDBARCH argument.
7848 * inferior.h (construct_inferior_arguments): Likewise.
7849
9216df95
UW
78502009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7851
7852 * symfile.c (section_is_mapped): Use objfile architecture instead
7853 of current_gdbarch.
7854 (TARGET_LONG_BYTES): Remove.
7855 (read_target_long_array): Add SIZE argument. Use it instead of
7856 TARGET_LONG_BYTES.
7857 (simple_read_overlay_table): Retrieve long size from objfile
7858 architecture; pass it to read_target_long_array.
7859 (simple_read_overlay_region_table): Likewise.
7860 (simple_overlay_update_1): Likewise.
7861
9f5a595d
UW
78622009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7863
7864 * infrun.c (cleanup_displaced_step_closure): Remove.
7865 (displaced_step_clear_cleanup): Move to before displaced_step_prepare.
7866 (displaced_step_prepare): Use displaced_step_clear_cleanup instead
7867 of cleanup_displaced_step_closure.
7868 (handle_inferior_event, keep_going): Use thread architecture instead
7869 of current_gdbarch.
7870
568d6575
UW
78712009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
7872
7873 * infrun.c (handle_inferior_event): Use current frame architecture
7874 or thread architecture instead of current_gdbarch. Pass to
7875 handle_step_into_function and handle_step_into_function_backward.
7876 (handle_step_into_function): Add GDBARCH parameter. Use it instead
7877 of current_gdbarch.
7878 (handle_step_into_function_backward): Likewise.
7879 (insert_step_resume_breakpoint_at_frame): Use frame architecture
7880 instead of current_gdbarch.
7881 (insert_step_resume_breakpoint_at_caller): Likewise.
7882
ea5d7a99
PM
78832009-06-17 Pierre Muller <muller@ics.u-strasbg.fr>
7884 Pedro Alves <pedro@codesourcery.com>
7885
7886 * infcmd.c (post_create_inferior): Call breakpoint_re_set after target
7887 is pushed for watchpoint promotion to hardware watchpoint.
7888
dce234bc
PP
78892009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7890
7891 * dwarf2read.c (dwarf_info_section, dwarf_abbrev_section)
7892 (dwarf_line_section, dwarf_pubnames_section, dwarf_aranges_section)
7893 (dwarf_loc_section, dwarf_macinfo_section, dwarf_str_section)
7894 (dwarf_ranges_section, dwarf_frame_section)
7895 (dwarf_eh_frame_section): Removed.
7896 (dwarf2_resize_section): Likewise.
7897 (dwarf2_read_section): Now static, use bfd_mmap() if possible.
7898 (dwarf2_get_section_info): New function.
7899 (munmap_section_buffer): Likewise.
7900 (dwarf2_per_objfile_cleanup): Likewise.
7901 (section_is_p): Signature change.
7902 * dwarf2-frame.c (dwarf2_build_frame_info): Use
7903 dwarf2_get_section_info instead of dwarf2_read_section.
7904
7eedccfa
PP
79052009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7906
7907 * solib.c (symbol_add_stub): New FLAGS parameter.
7908 (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub
7909 directly.
7910 (solib_add): Defer breakpoint_re_set until after all solibs.
7911 * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust.
7912 * rs6000-nat.c (objfile_symbol_add): Adjust.
7913 * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS.
7914 (new_symfile_objfile): Likewise.
7915 (symbol_file_add_with_addrs_or_offsets): Likewise.
7916 (symbol_file_add_from_bfd): Likewise.
7917 (symbol_file_add): Likewise.
7918 * symfile.h (enum symfile_add_flags): New. Adjust prototypes.
7919 * symfile-mem.c (symbol_file_add_from_memory): Adjust.
7920 * windows-nat.c (safe_symbol_file_add_stub): Adjust.
7921 * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
7922
19ef5c71
KS
79232009-06-16 Keith Seitz <keiths@redhat.com>
7924
7925 * linespec.c (collect_methods): Delete.
7926 (add_matching_methods): Reove destructor special case.
7927 (find_method): Call find_methods directly instead of
7928 collect_methods.
7929 * valops.c (value_struct_elt): Remove destructor
7930 special cases.
7931 (check_field): Likewise.
7932 (value_struct_elt_for_reference): Likewise.
7933 (destructor_name_p): Remove misleading comment about dtors
7934 being "special cases".
7935 * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed.
7936 * gdbtypes.c (get_destructor_fn_field): Likewise.
7937
a4261689
PA
79382009-06-16 Pedro Alves <pedro@codesourcery.com>
7939
7940 * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
7941 TARGET_OJECT_MEMORY reads to the topmost target, not to the
7942 flattened current_target.
7943
4e99ad69
TG
79442009-06-16 Tristan Gingold <gingold@adacore.com>
7945
7946 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
7947 call_length field.
7948 (avr_register_name): Add const to register_names.
7949 (avr_scan_arg_moves): Move inside avr_scan_prologue.
7950 (avr_scan_prologue): Add pc_end argument.
7951 Only read prologue bytes that can be read.
7952 Limit the scan to the known prologue length.
7953 Makes pattern variables static and const.
7954 Fix indentation.
7955 (avr_skip_prologue): Pass func_end argument to avr_scan_prologue.
7956 Fix indentation.
7957 (avr_breakpoint_from_pc): Constify avr_break_insn.
7958 (avr_extract_return_value): Fix function comment.
7959 (avr_frame_unwind_cache): Fix GNU style violations.
7960 Pass current_pc argument to avr_scan_prologue to stop prologue
7961 analysis to the current pc. This fixes the bug with the 'next'
7962 command.
7963 Correctly set the SP register of the previous frame (use call_length).
7964 (avr_frame_prev_register): Fix indentation.
7965 Correctly read PC from the stack on avr6 architectures.
7966 (avr_push_dummy_call): Fix indentation.
7967 (avr_gdbarch_init): Set call_length according to the architecture.
7968
7cd1089b
PM
79692009-06-15 Phil Muldoon <pmuldoon@redhat.com>
7970
7971 * infcall.c (show_unwind_on_terminating_exception_p): New
7972 function.
7973 (call_function_by_hand): Create breakpoint and clean-up call for
7974 std::terminate.breakpoint. Add unwind_on_terminating_exception_p
7975 gate. Pop frame on breakpoint hit.
7976 (_initialize_infcall): Add add_setshow_boolean_cmd for
7977 unwind-on-terminating-exception.
7978
b2ab525c
KB
79792009-06-12 Kevin Buettner <kevinb@redhat.com>
7980
7981 * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
7982 `has_section_at_zero' flag from stripped objfile to separate,
7983 debug info only, objfile.
7984
4b477ade
PA
79852009-06-12 Pedro Alves <pedro@codesourcery.com>
7986
7987 * exec.h (section_table_xfer_memory_partial): Improve description,
7988 mention SECTION_NAME.
7989 * exec.c (section_table_xfer_memory_partial): Remove stale
7990 description.
7991
c59fcb4c
AR
79922009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
7993
7994 * nto-tdep.h (nto_generic_supply_gpregset)
7995 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
7996 * nto-tdep.c (nto_generic_supply_gpregset)
7997 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
7998
19a934d8
AR
79992009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
8000
8001 * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
8002 (i386nto_sigcontext_addr): Change the way context address is calculated.
8003 (i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
8004 sc_sp_offset and set sc_reg_offset and sc_num_regs.
8005
80b1849c
AR
80062009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
8007
8008 * i386-nto-tdep.c (i386_nto_target): Remove definition.
8009 (init_i386nto_ops): Use macros to set fields to global
8010 current_nto_target directly.
8011 (i386nto_init_abi): Remove unused nto_set_target call.
8012 * nto-tdep.h (nto_set_target): Remove unused declaration.
8013 * nto-tdep.c (nto_set_target): Remove unused function.
8014
80c99de1
PA
80152009-06-11 Pedro Alves <pedro@codesourcery.com>
8016
8017 * breakpoint.c (break_command_really): Rename local variable
8018 breakpoint_chain to bkpt_chain.
8019
dbfb31a4
AR
80202009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
8021
8022 Add support for XMM registers.
8023 * i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
8024 (i386nto_register_area): Correctly calculate offsets and sizes for
8025 all supported registers.
8026
17dd65ce
TT
80272009-06-11 Tom Tromey <tromey@redhat.com>
8028
8029 * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
8030 'static' from local variable definitions.
8031
828cd292
PA
80322009-06-11 Pedro Alves <pedro@codesourcery.com>
8033
8034 * symtab.c (append_expanded_sal): Remove unused local variables.
8035
d4db2f36
PA
80362009-06-11 Pedro Alves <pedro@codesourcery.com>
8037
8038 * infrun.c (sched_multi): New global.
8039 (resume): If sched_multi is set, resume only threads of the
8040 current inferior.
8041 (prepare_to_proceed): Don't switch over to wait_ptid if we're
8042 resuming a different inferior, and sched_multi is off.
8043 (show_schedule_multiple): New.
8044 (_initialize_infrun): Register new "set schedule-multiple" command.
8045 * inferior.h (sched_multi): Declare.
8046 * NEWS: Mention new "schedule-multiple" setting.
8047
e21458b2
PA
80482009-06-11 Pedro Alves <pedro@codesourcery.com>
8049
8050 * varobj.c (varobj_create): Properly restore the selected frame.
8051
8bb318c6
TT
80522009-06-05 Tom Tromey <tromey@redhat.com>
8053
8054 * inferior.c (print_inferior): Make a table, not a list. Emit
8055 table headers.
8056
bbb29520
PA
80572009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
8058
8059 * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
8060 darwin_wait (blocking wait).
8061 (darwin_kill_inferior): Likewise.
8062
66852e9c
PA
80632009-06-10 Pedro Alves <pedro@codesourcery.com>
8064
8065 * infrun.c (handle_inferior_event): Update comment around trying
8066 to revert back to a stepping thread that has exited.
8067
d0c6ba3d
CC
80682009-06-10 Cary Coutant <ccoutant@google.com>
8069
8070 * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
8071 DW_LNE_set_discriminator.
8072
059fb39f
PM
80732009-06-10 Pierre Muller <muller@ics.u-strasbg.fr>
8074
8075 * breakpoint.c: ARI fixes.
8076 (create_overlay_event_breakpoint): Avoid assignment inside if statement.
8077 (print_one_breakpoint_location): Likewise.
8078 (create_longjmp_breakpoint): Likewise.
8079 (tracepoint_save_command): Likewise
8080 (bpstat_find_step_resume_breakpoint): No operator at end of line.
8081 (bpstat_stop_status): Likewise.
8082 (describe_other_breakpoints): Likewise.
8083 (hw_watchpoint_used_count): Likewise.
8084 (expand_line_sal_maybe): Likewise.
8085 (break_command_really): Likewise.
8086 (delete_command): Likewise.
8087 (do_enable_breakpoint): Likewise.
8088 (delete_trace_command): Likewise.
8089 (catch_exception_command_1): Likewise and remove extra parentheses.
8090
7681d515
PM
80912009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
8092
8093 * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
8094 "ubreak" command that does not exist.
8095
300d0284
PM
80962009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
8097
8098 * cli/cli-decode.c (add_alias_cmd): Correct assertion.
8099
72753510
PA
81002009-06-07 Pedro Alves <pedro@codesourcery.com>
8101
8102 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
8103
d1a7880c
PA
81042009-06-07 Pedro Alves <pedro@codesourcery.com>
8105
8106 * procfs.h: New.
8107 * proc-utils.h (procfs_first_available): Don't declare here.
8108 * sol-thread.c: Include procfs.h instead of sys/procfs.h and
8109 proc-utils.h.
8110 * procfs.c: Include procfs.h.
8111 (procfs_target): Make it public. Don't register
8112 procfs_can_use_hw_breakpoint here.
8113 (proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
8114 defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
8115 (procfs_can_use_hw_breakpoint): Remove check of
8116 TARGET_HAS_HARDWARE_WATCHPOINTS.
8117 (procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
8118 here.
8119 (_initialize_procfs): Don't add the procfs target here.
8120
8121 * i386-sol2-nat.c: Include target.h and procfs.h.
8122 (_initialize_amd64_sol2_nat): Install the procfs target here,
8123 customized with watchpoints support.
8124 * irix5-nat.c: Include target.h.
8125 (_initialize_core_irix5): Rename to ...
8126 (_initialize_irix5_nat): ... this. Install the procfs target
8127 here, customized with watchpoints support.
8128 * alpha-nat.c: Include procfs.h.
8129 (_initialize_core_alpha): Rename to...
8130 (_initialize_alpha_nat): ... this. Install the procfs target
8131 here, customized with watchpoints support.
8132 * sparc-sol2-nat.c: Include target.h and procfs.h.
8133 (_initialize_sparc_sol2_nat): New.
8134
8135 * config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
8136 * config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
8137 * config/mips/irix5.mh (NAT_FILE): Delete.
8138 * config/mips/irix6.mh (NAT_FILE): Delete.
8139 * config/mips/nm-irix5.h: Delete.
8140
81b92222
PA
814120009-06-07 Pedro Alves <pedro@codesourcery.com>
8142
8143 * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
8144 to enum target_object. Cleanup comments.
8145 * auxv.h: Include "target.h". Cleanup comments to not mention
8146 NATIVE_XFER_AUXV anymore.
8147
cc35222d
PA
81482009-06-07 Pedro Alves <pedro@codesourcery.com>
8149
8150 * inferior.h (procfs_first_available): Move declaration to...
8151 * proc-utils.h: ... here.
8152 * sol-thread.c: Include procfs.h and proc-utils.h.
8153
09d3bde9
PA
81542009-06-07 Pedro Alves <pedro@codesourcery.com>
8155
8156 * inferior.h (proc_iterate_over_mappings): Delete declaration.
8157 * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
8158 * procfs.c (proc_iterate_over_mappings): Delete.
8159
c35b1492
PA
81602009-06-07 Pedro Alves <pedro@codesourcery.com>
8161
8162 * target.h (struct target_ops): Make to_has_all_memory,
8163 to_has_memory, to_has_stack, to_has_registers and to_has_execution
8164 methods instead of variables.
8165 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
8166 (target_has_registers_1, target_has_execution_1): Declare
8167 functions.
8168 (target_has_all_memory): Rewrite to call target_has_all_memory_1.
8169 (target_has_memory): Rewrite to call target_has_memory_1.
8170 (target_has_stack): Rewrite to call target_has_all_stack_1.
8171 (target_has_registers): Rewrite to call target_has_registers_1.
8172 (target_has_execution): Rewrite to call target_has_execution_1.
8173 (default_child_has_all_memory, default_child_has_memory)
8174 (default_child_has_stack, default_child_has_registers)
8175 (default_child_has_execution): Declare.
8176 (target_mark_running, target_mark_exited): Delete declarations.
8177 * target.c (default_child_has_all_memory,
8178 default_child_has_memory, default_child_has_stack,
8179 default_child_has_registers, default_child_has_execution): New.
8180 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
8181 target_has_registers_1, target_has_execution_1): New.
8182 (add_target): Default the to_has_all_memory, to_has_all_memory,
8183 to_has_memory, to_has_stack, to_has_registers and to_has_execution
8184 callbacks to return 0.
8185 (update_current_target): Do not inherit to_has_all_memory,
8186 to_has_memory, to_has_stack, to_has_registers or to_has_execution.
8187 (target_mark_running, target_mark_exited): Delete.
8188 (memory_xfer_partial): Adjust.
8189 (target_read_memory, target_write_memory, target_search_memory):
8190 Dispatch to the the top-most target, not the flattened
8191 current_target.
8192 (target_info): Adjust.
8193 (init_dummy_target): Install return_zero as callback for
8194 to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
8195 to_has_execution.
8196 (set_maintenance_target_async_permitted): Use have_live_inferiors
8197 instead of target_has_execution.
8198 * target-memory.c (target_write_memory_blocks): Dispatch memory
8199 writes to the the top-most target, not the flattened
8200 current_target.
8201
8202 * breakpoint.c (insert_breakpoints): Don't check for
8203 target_has_execution here.
8204 (update_global_location_list): Check if there are live inferiors
8205 to debug instead of target_has_execution.
8206 * infcmd.c (kill_command, detach_command): Check if there are
8207 inferiors instead of target_has_execution.
8208 * inferior.h (have_live_inferiors): Declare.
8209 * inferior.c (have_live_inferiors): New.
8210 * infrun.c (normal_stop): Don't check for target_has_execution to
8211 finish the thread states.
8212 * thread.c (is_thread_state, is_stopped, is_exited, is_running)
8213 (any_running, is_executing): Remove checks for
8214 target_has_execution.
8215 * top.c (kill_or_detach): Don't try to kill core inferiors.
8216 (quit_target): Don't check for target_has_execution.
8217
8218 * corelow.c (core_has_memory, core_has_stack, core_has_registers):
8219 New.
8220 (init_core_ops): Install core_has_memory, core_has_stack and
8221 core_has_registers.
8222 * exec.c (exec_has_memory): New.
8223 (init_exec_ops): Install exec_has_memory.
8224 * remote.c (remote_add_inferior): Don't call target_mark_running.
8225 (remote_start_remote): Don't call target_mark_exited or call
8226 target_mark_running.
8227 (remote_open_1): Use have_inferiors instead of
8228 target_has_execution. Don't use target_mark_exited.
8229 (init_remote_ops): Install deafult_child_has_all_memory,
8230 default_child_has_memory, default_child_has_stack,
8231 default_child_has_registers, default_child_has_execution.
8232 * bsd-kvm.c (bsd_kvm_return_one): New.
8233 (bsd_kvm_add_target): Register bsd_kvm_return_one as
8234 to_has_memory, to_has_stack and to_has_registers callbacks.
8235 * remote-m32r-sdi.c (m32r_return_one): New.
8236 (init_m32r_ops): Register it.
8237 * inf-child.c (inf_child_target): Adjust to register
8238 default_child_has_all_memory, default_child_has_memory,
8239 default_child_has_stack, default_child_has_registers,
8240 default_child_has_execution callbacks.
8241 * gnu-nat.c (init_gnu_ops): Likewise.
8242 * go32-nat.c (init_go32_ops): Likewise.
8243 * hpux-thread.c (init_hpux_thread_ops): Likewise.
8244 * monitor.c (init_base_monitor_ops): Likewise.
8245 * nto-procfs.c (init_procfs_ops): Likewise.
8246 * remote-mips.c (_initialize_remote_mips): Likewise.
8247 * windows-nat.c (init_windows_ops): Likewise.
8248 * remote-sim.c (gdbsim_create_inferior): Don't use
8249 target_mark_running or target_mark_exited.
8250 (gdbsim_mourn_inferior): Don't call target_mark_exited.
8251 (init_gdbsim_ops): Adjust to register
8252 default_child_has_all_memory, default_child_has_memory,
8253 default_child_has_stack, default_child_has_registers,
8254 default_child_has_execution callbacks.
8255
8256 * linux-nat.c (linux_nat_xfer_partial): If reading memory, and
8257 there's no inferior selected, defer to a lower stratum.
8258
da1f2771
TT
82592009-06-05 Tom Tromey <tromey@redhat.com>
8260
8261 * varobj.c (update_dynamic_varobj_children): Wrap error text in
8262 _().
8263 (install_visualizer): Likewise.
8264 (varobj_set_visualizer): Likewise.
8265
68c9c314 82662009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
4b459977
VP
8267
8268 * mi/mi-main.c (mi_cmd_exec_continue)
8269 (mi_cmd_exec_interrupt): Adjust parsing of thread group
8270 ids to current reality, where they don't have any 'p' prefix.
8271
b3ed98d2
AR
82722009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
8273
8274 * corelow.c (core_open): Check for core_gdbarch before calling
8275 gdbarch_target_signal_from_host.
8276
68c1b02d
TT
82772009-06-05 Tom Tromey <tromey@redhat.com>
8278
8279 * c-exp.y (parse_number): Don't use K&R definition.
8280 (yylex): Likewise.
8281 (yyerror): Likewise.
8282
0b4bc29a
JK
82832009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8284
8285 * varobj.c (varobj_update): Fix out of scope varobjs to not to change.
8286
768a979c
UW
82872009-06-04 Ulrich Weigand <uweigand@de.ibm.com>
8288
8289 * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
8290 * ax-gdb.c (gen_var_ref): Likewise.
8291 * findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
8292 * printcmd.c (address_info): Likewise.
8293 * dwarf2loc.c (dwarf_expr_frame_base): Likewise.
8294 * dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
8295 * symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
8296 * dwarf2loc.h: Likewise.
8297 * dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.
8298
8299 * symtab.h: (struct symbol_register_ops): New struct definition.
8300 (struct symbol): Make "ops" member a union of symbol_computed_ops and
8301 symbol_register_ops callback pointers.
8302 (SYMBOL_REGISTER_OPS): New macro.
8303 * tracepoint.c: Include "objfiles.h".
8304 (scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
8305 callback to retrieve register numbers.
8306 * ax-gdb.c (gen_var_ref): Likewise.
8307 * findvar.c (read_var_value): Likewise.
8308 * printcmd.c (address_info): Likewise.
8309
8310 * coffread.c (coff_reg_to_regnum): New function.
8311 (coff_register_funcs): New static variable.
8312 (process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
8313 Install SYMBOL_REGISTER_OPS callbacks.
8314 * mdebugread.c (mdebug_reg_to_regnum): New function.
8315 (mdebug_register_funcs): New static variable.
8316 (parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
8317 Install SYMBOL_REGISTER_OPS callbacks.
8318 * stabsread.c (stab_reg_to_regnum): New function.
8319 (stab_register_funcs): New static variable.
8320 (define_symbol): Do not call gdbarch_stab_reg_to_regnum.
8321 Install SYMBOL_REGISTER_OPS callbacks.
8322
930123b7
DE
83232009-06-03 Doug Evans <dje@google.com>
8324
8325 * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
8326 after discarding its contents.
8327
07b82ea5
PA
83282009-06-03 Pedro Alves <pedro@codesourcery.com>
8329
8330 * target.c: Include "exec.h".
8331 (update_current_target): Don't inherit to_sections or
8332 to_sections_end.
8333 (target_get_section_table): New.
8334 (target_section_by_addr): Fetch the section table from the passed
8335 in target.
8336 (memory_xfer_partial): Handle unmapped overlay sections before
8337 anything else. Get the overlay mapped address here. Adjust to
8338 use section_table_xfer_memory_partial.
8339 (get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
8340 instead of TARGET_OBJECT_MEMORY.
8341 (target_resize_to_sections): Delete.
8342 (remove_target_sections): Adjust to remove target sections from
8343 `current_target_sections', and use resize_section_table.
8344 * target.h (struct target_ops) <to_sections, to_sections_end>:
8345 Remove fields.
8346 <to_get_section_table>: New method.
8347 (xfer_memory, print_section_info): Delete declarations.
8348 (struct target_section_table): New type.
8349 (target_get_section_table): Declare.
8350 (target_resize_to_sections): Delete declaration.
8351 (remove_target_sections): Delete declaration.
8352 * bfd-target.c (target_bfd_xfer_partial): Get the section table
8353 from to_data.
8354 (target_bfd_get_section_table): New.
8355 (target_bfd_xclose): Adjust.
8356 (target_bfd_reopen): Store the section table in the to_data field.
8357 * corelow.c (core_data): New.
8358 (core_close): Adjust to release core_data and its sections.
8359 (core_open): Allocate core_data, and build its target sections
8360 table.
8361 (deprecated_core_resize_section_table): New.
8362 (core_files_info): Pass core_data to print_section_info.
8363 (core_xfer_partial): Adjust to use
8364 section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
8365 (init_core_ops): Do not install a deprecated_xfer_memory callback
8366 anymore.
8367 * solib.c (update_solib_list): Add the shared library sections
8368 to the current target sections table.
8369 * exec.c (current_target_sections_1): New global.
8370 (current_target_sections): New global.
8371 (exec_close_1): New function, refactored from exec_close. Remove
8372 the exec_bfd's sections from the current target sections table.
8373 Adjust to not use to_sections.
8374 (exec_close): Remove all target sections. Call exec_close_1.
8375 (exec_file_clear): Use exec_close_1 instead of unpushing the
8376 target.
8377 (exec_file_attach): Likewise. Adjust to not use to_sections. Add
8378 exec_bfd's sections to the current target sections table. Don't
8379 push the exec_ops target here.
8380 (resize_section_table): New.
8381 (add_target_sections): New.
8382 (remove_target_sections): Moved here.
8383 (section_table_xfer_memory): Adjust to implement the xfer_partial
8384 interface, and rename to...
8385 (section_table_xfer_memory_partial): ... this, replacing the
8386 current function of that same name.
8387 (exec_get_section_table): New.
8388 (exec_xfer_partial): New.
8389 (xfer_memory): Delete.
8390 (print_section_info): Replace the target_ops parameter by a
8391 target_section_table parameter.
8392 (exec_files_info, set_section_command, exec_set_section_address):
8393 Adjust to use the current sections table.
8394 (init_exec_ops): Do not register a deprecated_xfer_memory
8395 callback. Register to_xfer_partial and to_get_section_table
8396 callbacks.
8397 * infrun.c (handle_inferior_event): Update comments around
8398 solib_add.
8399 * rs6000-nat.c (xcoff_relocate_core): Adjust to use
8400 deprecated_core_resize_section_table.
8401 * exec.h (resize_section_table): Declare.
8402 (section_table_xfer_memory_partial): Add const char * argument.
8403 (remove_target_sections): Declare here.
8404 (add_target_sections): Declare.
8405 (print_section_info): Declare here.
8406 * gdbcore.h (deprecated_core_resize_section_table): Declare.
8407
4fa62494
UW
84082009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
8409
8410 * value.h (struct internalvar): Remove.
8411 (get_internalvar_integer): Add prototype.
8412 (set_internalvar_integer): Add prototype.
8413 (clear_internalvar): Add prototype.
8414
8415 * value.c (struct internalvar): Move here. Add type member. Remove
8416 endian member. Add union_internalvar member instead of value member.
8417 (init_if_undefined_command): Use intvar->type.
8418 (create_internalvar): Do not initialize value/endian, but type.
8419 (create_internalvar_type_lazy): Call create_internalvar.
8420 (value_of_internalvar): Handle host-side internalvar contents.
8421 (set_internalvar_component): Likewise.
8422 (set_internalvar): Likewise.
8423 (get_internalvar_integer): New function.
8424 (clear_internalvar): Likewise.
8425 (set_internalvar_integer): Likewise.
8426 (preserve_values): Handle host-side internalvar contents.
8427
8428 * breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
8429 set_internalvar_integer instead of set_internalvar.
8430 * findcmd.c (find_command): Likewise.
8431 * infrun.c (handle_inferior_event): Likewise.
8432 * source.c (forward_search_command, reverse_search_command): Likewise.
8433 * tracepoint.c (set_traceframe_num, set_tracepoint_num,
8434 set_traceframe_context): Likewise.
8435
8436 * printcmd.c (x_command): Call clear_internalvar instead of
8437 set_internalvar.
8438 * tracepoint.c (set_traceframe_context): Likewise.
8439
8440 * breakpoint.c (get_number_trailer): Call get_internalvar_integer
8441 instead of value_of_internalvar.
8442 * linespec.c (decode_dollar): Likewise.
8443
8444 * expprint.c (dump_subexp_body_standard): Use internalvar_name
8445 instead of accessing internalvar private elements.
8446 * valops.c (value_assign): Copy from original source instead of
8447 accessing internalvar private elements.
8448
6ceaaae5
UW
84492009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
8450
8451 * scm-lang.c (builtin_type_scm): Remove.
8452 (scm_lookup_name): Add GDBARCH parameter. Use it instead of
8453 objfile architecture. Use per-architecture builtin_scm_type instead
8454 of builtin_type_scm.
8455 (evaluate_exp): Pass expression architecture to scm_lookup_name.
8456
8457 (scm_get_field): Add SIZE parameter. Use it instead of
8458 TYPE_LENGTH (builtin_type_scm).
8459
8460 (build_scm_types): New function.
8461 (scm_type_data): New variable.
8462 (builtin_scm_type): New function.
8463 (_initialize_scheme_language): Do not initialize builtin_type_scm.
8464 Register build_scm_types as post-init function for scm_type_data.
8465
8466 * scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
8467 instead of builtin_type_scm.
8468
8469 * scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
8470 (scm_get_field): Add SIZE paramter.
8471 (scm_scmval_print): Remove prototype.
8472 (builtin_type_scm): Remove.
8473 (struct builtin_scm_type): Add structure definition.
8474 (builtin_scm_type): Add prototype.
8475
8476 * scm-valprint.c (scm_inferior_print): Add TYPE parameter. Use it
8477 instead of builtin_core_addr type; do not use objfile architecture.
8478 (scm_scmlist_print): Add TYPE parameter. Use it to define SCM_SIZE.
8479 Pass type to scm_scmval_print.
8480 (scm_ipruk): Add TYPE parameter. Use it to define SCM_SIZE.
8481 (scm_scmval_print): Make static. Add TYPE parameter. Use it to
8482 define SCM_SIZE. Pass type to scm_ipruk and scm_scmlist_print.
8483 (scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.
8484
0a9d309a
UW
84852009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
8486
8487 * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
8488 mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
8489 mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
8490 mdebug_type_unsigned_char, mdebug_type_unsigned_short,
8491 mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
8492 mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
8493 mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
8494 mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
8495 mdebug_type_complex, mdebug_type_double_complex,
8496 mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
8497 Remove.
8498
8499 (basic_type_data): New global variable.
8500 (basic_type): New function.
8501 (parse_type): Remove static basic type map map_bt. Call basic_type
8502 to get basic types instead of using mdebug_type_ variables.
8503
8504 (parse_symbol): Use builtin types instead of mdebug_type_ variables.
8505 (upgrade_type): Likewise.
8506 (parse_procedure): Likewise.
8507 (psymtab_to_symtab_1): Likewise.
8508
8509 (_initialize_mdebugread): Do not initialize mdebug_type_ variables.
8510 Initialize basic_type_data.
8511
289bd67a
UW
85122009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
8513
8514 * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
8515 * dfp.c (promote_decimal): Remove.
8516 (decimal_binop): Convert LEN_RESULT to input parameter.
8517 Remove call to decimal_binop.
8518 (decimal_compare): Remove call to decimal_binop.
8519
8520 * valarith.c (value_binop): Pass desired result type length
8521 to decimal_binop.
8522
64c9be2e
TG
85232009-06-01 Tristan Gingold <gingold@adacore.com>
8524
8525 * configure.tgt (avr): Set gdb_sim to use the simulator.
8526
5a437975
DE
85272009-05-29 Doug Evans <dje@google.com>
8528
8529 * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
8530 If scheduler-locking is enabled, we're not going to be singlestepping
8531 any other previously stopped thread.
8532
ab730e72
PA
85332009-05-29 Pedro Alves <pedro@codesourcery.com>
8534
8535 * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
8536
3d22076f
EZ
85372009-05-29 Eli Zaretskii <eliz@gnu.org>
8538
8539 * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
8540 for stabs and COFF debug info.
8541
b3444185
PA
85422009-05-28 Pedro Alves <pedro@codesourcery.com>
8543
8544 * infrun.c (handle_inferior_event): When thread hoping, switch
8545 inferior_ptid to the event thread before removing breakpoints from
8546 the target. If not stopping, also try to revert back to a thread
8547 that was doing a "next". Check if that thread still exists before
8548 resuming.
8549 (currently_stepping_thread): Delete and merge with ...
8550 (currently_stepping): ... this.
8551 (currently_stepping_callback): Rename to ...
8552 (currently_stepping_or_nexting_callback): ... this, and also
8553 return true if the thread was stepping over a call (has a
8554 step-resume breakpoint).
8555
8f500870
TT
85562009-05-28 Tom Tromey <tromey@redhat.com>
8557
8558 * python/python.c (gdbpy_parameter): Rename. Fix error message.
8559 (GdbMethods): Change "get_parameter" to "parameter".
8560
6bf0ce2b
PP
85612009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
8562 Paul Pluzhnikov <ppluzhnikov@google.com>
8563
8564 * configure.ac (!have_libpython): Add python-prettyprint source
8565 and object files.
8566 * configure: Regenerate.
8567 * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
8568 python headers.
8569
b6313243
TT
85702009-05-27 Vladimir Prus <vladimir@codesourcery.com>
8571 Tom Tromey <tromey@redhat.com>
8572 Thiago Jung Bauermann <bauerman@br.ibm.com>
8573
8574 * mi/mi-main.c (mi_cmd_list_features): List "python" feature.
8575 * varobj.h (varobj_set_visualizer): Declare.
8576 (varobj_get_display_hint): Likewise.
8577 (varobj_update_result_t) <children_changed, value_installed>: New
8578 fields.
8579 * mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
8580 * mi/mi-cmds.h (mi_cmd_var_set_visualizer,
8581 mi_cmd_var_set_child_range): Declare.
8582 * mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
8583 (mi_cmd_var_list_children): Emit display hint.
8584 (varobj_update_one): Emit display hint. Handle dynamic children.
8585 * python/python.c (GdbMethods): Add "default_visualizer".
8586 * python/python-internal.h (apply_varobj_pretty_printer,
8587 gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
8588 Declare.
8589 (gdbpy_default_visualizer): Likewise.
8590 * varobj.c: Include python.h, python-internal.h.
8591 (PyObject): New typedef.
8592 (struct varobj) <children_requested, pretty_printer>: New fields.
8593 (varobj_create): Call install_default_visualizer.
8594 (instantiate_pretty_printer): New function.
8595 (varobj_set_display_format): Update.
8596 (varobj_get_display_hint): New function.
8597 (update_dynamic_varobj_children): New function.
8598 (varobj_get_num_children): Handle dynamic children.
8599 (varobj_list_children): Likewise.
8600 (install_new_value): Likewise.
8601 (varobj_add_child): New function.
8602 (install_visualizer): Likewise.
8603 (install_default_visualizer): Likewise.
8604 (varobj_set_visualizer): Likewise.
8605 (varobj_update): Handle dynamic children.
8606 (create_child): Use create_child_with_value.
8607 (create_child_with_value): New function.
8608 (value_get_print_value): Call pretty printer. Add value_formatter
8609 argument.
8610 (c_value_of_variable): Update.
8611 (varobj_invalidate): Always free all_rootvarobj.
8612 * python/python-prettyprint.c (apply_varobj_pretty_printer): New
8613 function.
8614 (gdbpy_get_varobj_pretty_printer): Likewise.
8615 (gdbpy_default_visualizer): Likewise.
8616
a6bac58e
TT
86172009-05-27 Tom Tromey <tromey@redhat.com>
8618 Thiago Jung Bauermann <bauerman@br.ibm.com>
8619 Phil Muldoon <pmuldoon@redhat.com>
8620 Paul Pluzhnikov <ppluzhnikov@google.com>
8621 Vladimir Prus <vladimir@codesourcery.com>
8622
8623 * python/python-value.c (value_object_to_value): New function.
8624 * python/python-internal.h: Include frameobject.h.
8625 (gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
8626 Declare.
8627 (value_object_to_value): Declare.
8628 * printcmd.c (struct format_data) <raw>: New field.
8629 (last_format): Default to 0.
8630 (decode_format): Initialize val.raw. Handle /r flag.
8631 (print_command_1): Initialize fmt.raw and opts.raw.
8632 (output_command): Likewise.
8633 (x_command): Fix initialization of fmt.format. Initialize
8634 fmt.raw.
8635 (display_command): Initialize fmt.raw.
8636 (do_one_display): Set opts.raw.
8637 * python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
8638 gdbpy_display_hint_cst): New globals.
8639 (_initialize_python): Initialize them. Set gdb.pretty_printers.
8640 * cp-valprint.c: Include python.h.
8641 (cp_print_value): Call apply_val_pretty_printer.
8642 * python/python.h (apply_val_pretty_printer): Declare.
8643 * stack.c (print_this_frame_argument_p): Remove.
8644 (print_frame_args): Compute summary flag. Don't use
8645 print_this_frame_argument_p.
8646 * valprint.c: Include python.h.
8647 (user_print_options): Initialize new fields.
8648 (scalar_type_p): New function.
8649 (val_print): Handle 'raw' and 'summary' modes. Call
8650 apply_val_pretty_printer.
8651 (value_print): Handle 'raw' mode.
8652 * valprint.h (struct value_print_options) <raw, summary>: New
8653 fields.
8654 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
8655 (SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
8656 (python-prettyprint.o): New target.
8657 * python/python-prettyprint.c: New file.
8658
42ae5230
TT
86592009-05-27 Tom Tromey <tromey@redhat.com>
8660 Paul Pluzhnikov <ppluzhnikov@google.com>
8661
8662 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
8663 value_address.
8664 * cli/cli-dump.c (dump_value_to_file): Use value_address.
8665 * valprint.c (common_val_print): Likewise.
8666 * v850-tdep.c (v850_push_dummy_call): Use value_address.
8667 * tracepoint.c (encode_actions): Use value_address.
8668 * printcmd.c (print_formatted): Use value_address.
8669 (x_command): Likewise.
8670 * p-valprint.c (pascal_object_print_static_field): Use
8671 value_address.
8672 * mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
8673 * mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
8674 * m32r-tdep.c (m32r_push_dummy_call): Use value_address.
8675 * jv-valprint.c (java_value_print): Use value_address.
8676 * infcall.c (find_function_addr): Use value_address.
8677 * gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
8678 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
8679 * frv-tdep.c (frv_push_dummy_call): Use value_address.
8680 * frame.c (frame_register_unwind): Use value_address.
8681 (frame_unwind_register_value): Likewise.
8682 * darwin-nat-info.c (info_mach_region_command): Use
8683 value_address.
8684 * cp-valprint.c (cp_print_static_field): Use value_address.
8685 * c-valprint.c (c_value_print): Use value_address.
8686 * breakpoint.c (update_watchpoint): Use value_address.
8687 (can_use_hardware_watchpoint): Likewise.
8688 * ada-valprint.c (ada_val_print_1): Use value_address.
8689 (ada_value_print): Likewise.
8690 * ada-tasks.c (read_fat_string_value): Use value_address.
8691 * jv-lang.c (java_link_class_type): Use set_value_address.
8692 (java_link_class_type): Likewise.
8693 (get_java_utf8_name): Use value_address.
8694 (type_from_class): Likewise.
8695 (java_link_class_type): Likewise.
8696 * findvar.c (value_of_register): Use set_value_address.
8697 (read_var_value): Likewise.
8698 (read_var_value): Likewise.
8699 * eval.c (evaluate_subexp_standard): Use set_value_address.
8700 (evaluate_subexp_standard): Use value_address.
8701 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
8702 * ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
8703 (ada_value_primitive_packed_val): Likewise.
8704 (ensure_lval): Likewise.
8705 (thin_data_pntr): Use value_address.
8706 (desc_bounds): Likewise.
8707 (ada_value_primitive_packed_val): Likewise.
8708 (value_assign_to_component): Likewise.
8709 (ensure_lval): Likewise.
8710 (make_array_descriptor): Likewise.
8711 (ada_to_fixed_value): Likewise.
8712 (unwrap_value): Likewise.
8713 * value.c (deprecated_value_address_hack): Remove.
8714 (value_address): New function.
8715 (value_raw_address): Likewise.
8716 (set_value_address): Likewise.
8717 (value_fn_field): Use set_value_address.
8718 (value_from_contents_and_address): Likewise.
8719 (value_fn_field): Likewise.
8720 (allocate_value_lazy): Don't use VALUE_ADDRESS.
8721 (value_as_address): Use value_address.
8722 (value_static_field): Likewise.
8723 * valops.c (search_struct_field): Use set_value_address.
8724 (value_at): Likewise.
8725 (value_at_lazy): Likewise.
8726 (value_repeat): Likewise.
8727 (value_cast_structs): Use value_address.
8728 (value_cast): Likewise.
8729 (value_fetch_lazy): Likewise.
8730 (value_assign): Likewise.
8731 (value_repeat): Likewise.
8732 (address_of_variable): Likewise.
8733 (value_coerce_array): Likewise.
8734 (value_coerce_function): Likewise.
8735 (value_addr): Likewise.
8736 (search_struct_field): Likewise.
8737 (search_struct_method): Likewise.
8738 (find_method_list): Likewise.
8739 (value_struct_elt_for_reference): Likewise.
8740 (value_full_object): Likewise.
8741 * jv-valprint.c (java_value_print): Use set_value_address.
8742 * value.h (deprecated_value_address_hack): Remove.
8743 (VALUE_ADDRESS): Remove.
8744 (value_address): Declare.
8745 (value_raw_address): Declare.
8746 (set_value_address): Declare.
8747
2c74e833
TT
87482009-05-27 Tom Tromey <tromey@redhat.com>
8749 Thiago Jung Bauermann <bauerman@br.ibm.com>
8750 Phil Muldoon <pmuldoon@redhat.com>
8751 Paul Pluzhnikov <ppluzhnikov@google.com>
8752
8753 * python/python.c (_initialize_python): Call
8754 gdbpy_initialize_types.
8755 (GdbMethods): Add "lookup_type".
8756 * python/python-value.c (value_object) <type>: New field.
8757 (valpy_dealloc): Decref type.
8758 (valpy_new): Initialize type.
8759 (valpy_get_type): New function.
8760 (value_to_value_object): Initialize type.
8761 (valpy_cast): New function.
8762 (value_object_getset): Add "type".
8763 (value_object_methods): Add "cast".
8764 * python/python-internal.h (type_to_type_object): Declare.
8765 (type_object_to_type): Likewise.
8766 (gdbpy_initialize_types): Likewise.
8767 (gdbpy_lookup_type): Declare.
8768 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
8769 (SUBDIR_PYTHON_SRCS): Add python-type.c.
8770 (python-type.o): New target.
8771 * python/python-type.c: New file.
8772
89c73ade
TT
87732009-05-27 Tom Tromey <tromey@redhat.com>
8774 Thiago Jung Bauermann <bauerman@br.ibm.com>
8775 Phil Muldoon <pmuldoon@redhat.com>
8776
8777 * python/python.c: Include objfiles.h, observer.h.
8778 (gdbpy_auto_load): New global.
8779 (gdbpy_current_objfile): Likewise.
8780 (GDBPY_AUTO_FILENAME): New define.
8781 (gdbpy_new_objfile): New function.
8782 (gdbpy_get_current_objfile): Likewise.
8783 (gdbpy_objfiles): Likewise.
8784 (_initialize_python): Add "maint set auto-load". Call
8785 gdbpy_initialize_objfile. Attach objfile observer.
8786 (GdbMethods): New methods current_objfile, objfiles.
8787 * python/python-objfile.c: New file.
8788 * python/python-internal.h (objfile_to_objfile_object): Declare.
8789 (objfpy_get_printers): Likewise.
8790 (gdbpy_initialize_objfile): Likewise.
8791 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
8792 (SUBDIR_PYTHON_SRCS): Add python-objfile.c.
8793 (python-objfile.o): New target.
8794
a75724bc
PA
87952009-05-27 Pedro Alves <pedro@codesourcery.com>
8796
8797 * infrun.c (follow_exec): Clear the stop_requested flag.
8798 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
8799 Add debug output.
8800
97c44116
AR
88012009-05-27 Aleksandar Ristovski <aristovski@qnx.com>
8802
8803 * nto-procfs.c (get_regset): Pass correct pointer.
8804
f504f079
DE
88052009-05-26 Doug Evans <dje@google.com>
8806
8807 * dwarf2read.c (follow_die_ref): Add comment.
8808 (dwarf2_mark_helper): Tweak comment.
8809 (dwarf2_mark): Move description to its proper place.
8810
4fcbb494
PM
88112009-05-25 Pierre Muller <muller@ics.u-strasbg.fr>
8812
8813 * procfs.c (procfs_wait): Add options parameter.
8814
4e3990f4
DE
88152009-05-24 Doug Evans <dje@google.com>
8816
e09875d4
DE
8817 Global renaming of find_thread_pid to find_thread_ptid.
8818 * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
8819 * thread.c (find_thread_ptid): Renamed from find_thread_pid.
8820 All callers updated.
8821
4e3990f4
DE
8822 * infrun.c (follow_fork): Initialize new step_* locals
8823 to avoid "may be used uninitialized" warnings.
8824
98b54c18
PA
88252009-05-24 Pedro Alves <pedro@codesourcery.com>
8826
8827 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
8828
e58b0e63
PA
88292009-05-24 Pedro Alves <pedro@codesourcery.com>
8830
8831 * gdbthread.h (struct thread_info): New `pending_follow' field.
8832 * thread.c (new_thread): New function.
8833 (add_thread_silent): Use it.
8834 * breakpoint.c (internal_breakpoint_number): New global, moved
8835 from inside...
8836 (create_internal_breakpoint): ... this.
8837 (clone_momentary_breakpoint): New.
8838 * breakpoint.h (clone_momentary_breakpoint): Declare.
8839 * infrun.c (nullify_last_target_wait_ptid): Move declaration
8840 higher.
8841 (pending_follow): Delete.
8842 (follow_fork): Handle pending follow fork event here. Moved the
8843 preserving of thread stepping state here.
8844 (resume): Don't handle pending follow fork events here. Only
8845 install the inferior's terminal modes if we're about to resume it.
8846 (proceed): Handle possible pending follow fork events here.
8847 (init_wait_for_inferior): No need to clear pending_follow anymore,
8848 it's gone.
8849 (handle_inferior_event): Adjust to per-thread `pending_follow'.
8850 Call `follow_fork' to handle following the fork. If the
8851 follow-fork is cancelled, stop stepping.
8852 * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
8853 `pending_follow' events. Remove code that handled preserving the
8854 thread stepping state.
8855 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
8856 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
8857
ea26755d 88582009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
70992597
PM
8859
8860 * symfile.c (add_shared_symbol_files_command): Remove
8861 prototype and function.
8862 (_initialize _symfile): Move "add-shared-symbol-files"
8863 command and "assf" alias.
8864 * windows-nat.c (_initialize_windows_nat): to here.
8865 Change "add-shared-symbol-files" to alias.
8866
8867 * config/i386/cygwin.mh: Remove NAT_FILE.
8868 * config/i386/mingw.mh: Remove NAT_FILE.
8869 * config/i386/mingw64.mh: Remove NAT_FILE.
8870 * config/i386/nm-cygwin.h: Remove file.
8871 * config/i386/nm-cygwin64.h: Remove file.
8872
5e31abdf
HZ
88732009-05-24 Hui Zhu <teawater@gmail.com>
8874
8875 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
8876 I386_LINUX_RECORD_IOCTL_*,
8877 I386_LINUX_RECORD_FCNTL_*) Removed.
8878 (i386_linux_init_abi): Change size of record from macros to
8879 numbers.
8880
88812009-05-24 Hui Zhu <teawater@gmail.com>
8882
8883 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
8884 * linux-record.c (record_linux_system_call): Ditto.
8885 * linux-record.h (linux_record_tdep): Ditto.
8886
1b36a34b
JK
88872009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8888
8889 Replace the savestring calls by xstrdup calls where possible.
8890 * breakpoint.c (condition_command, set_raw_breakpoint)
8891 (create_catchpoint, update_breakpoint_locations): Replace the
8892 savestring calls by xstrdup calls where possible.
8893 * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
8894 (record_producer): Likewise.
8895 * coffread.c (coff_start_symtab, complete_symtab): Likewise.
8896 * corefile.c (set_gnutarget): Likewise.
8897 * dbxread.c (add_new_header_file): Likewise.
8898 * demangle.c (set_demangling_command, set_demangling_style): Likewise.
8899 * event-top.c (push_prompt, pop_prompt, command_line_handler)
8900 (set_async_prompt): Likewise.
8901 * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
8902 Likewise.
8903 * language.c (set_language_command, _initialize_language): Likewise.
8904 * linespec.c (decode_line_2): Likewise.
8905 * rs6000-nat.c (add_vmap): Likewise.
8906 * top.c (set_prompt, init_history, init_main): Likewise.
8907 * tracepoint.c (stringify_collection_list): Likewise.
8908 * varobj.c (varobj_create): Remove variable expr_len. Replace the
8909 savestring calls by xstrdup calls where possible.
8910 (value_of_root, c_name_of_variable, c_describe_child): Replace the
8911 savestring calls by xstrdup calls where possible.
8912 * xcoffread.c (complete_symtab): Likewise.
8913 * cli/cli-script.c (build_command_line, define_command): Likewise.
8914 * cli/cli-setshow.c (do_setshow_command): Likewise.
8915
61d8f275
JK
89162009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 Remove already unreachable code.
8919 * varobj.c (varobj_get_handle): Fix comment when error is called.
8920 All callers updated.
8921
969107c5
EZ
89222009-05-23 Eli Zaretskii <eliz@gnu.org>
8923
70926f63
EZ
8924 * README (`configure' options): Document GDB-specific options to
8925 `configure'.
8926
8c7a1ee8
EZ
8927 * symtab.c (skip_prologue_using_lineinfo): New function.
8928 (find_function_start_sal): Use it to get to the first line of
8929 function's body that has an entry in the lineinfo table.
8930
969107c5
EZ
8931 * symmisc.c (dump_symtab): Switch the current language to
8932 the language of the symtab we are dumping only if the symtab's
8933 language is neither language_auto nor language_unknown.
8934
8935 * coffread.c (coff_symtab_read): Set language_minimal as the
8936 language for the "_globals_" pseudo-file.
754dd031
EZ
8937 (process_coff_symbol): Set the symbol's language to the language
8938 of current_subfile.
969107c5 8939
0542c86d
PA
89402009-05-22 Pedro Alves <pedro@codesourcery.com>
8941
8942 * target.h (struct section_table): Rename to ...
8943 (struct target_section): ... this.
8944 * exec.c: Adjust all references.
8945 * exec.h: Adjust all references.
8946 * nto-tdep.c: Adjust all references.
8947 * nto-tdep.h: Adjust all references.
8948 * ppc-linux-tdep.c: Adjust all references.
8949 * rs6000-nat.c: Adjust all references.
8950 * s390-tdep.c: Adjust all references.
8951 * solib-darwin.c: Adjust all references.
8952 * solib-frv.c: Adjust all references.
8953 * solib-irix.c: Adjust all references.
8954 * solib-null.c: Adjust all references.
8955 * solib-osf.c: Adjust all references.
8956 * solib-pa64.c: Adjust all references.
8957 * solib-som.c: Adjust all references.
8958 * solib-sunos.c: Adjust all references.
8959 * solib-svr4.c: Adjust all references.
8960 * solib-target.c: Adjust all references.
8961 * solib.c: Adjust all references.
8962 * solist.h: Adjust all references.
8963 * symfile.c: Adjust all references.
8964 * symfile.h: Adjust all references.
8965 * target.c: Adjust all references.
8966
b34fab9a
HZ
89672009-05-22 Hui Zhu <teawater@gmail.com>
8968
8969 Add sys_fcntl argument interfaces to linux_record_tdep.
8970
8971 * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
8972 fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
8973 interfaces.
8974 * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
8975 I386_LINUX_RECORD_FCNTL_F_GETLK64,
8976 I386_LINUX_RECORD_FCNTL_F_SETLK64,
8977 I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
8978 of I386 Linux sys_fcntl arguments.
8979 (i386_linux_init_abi): Set macros values to linux_record_tdep.
8980 * linux-record.c (record_linux_system_call): Change to use
8981 the interface in linux_record_tdep in sys_fcntl and
8982 sys_fcntl64.
8983
8984 * linux-record.c (record_linux_system_call): Fix the process
8985 record build error about type in CYGWIN.
8986
88c0ab9d
PA
89872009-05-22 Pedro Alves <pedro@codesourcery.com>
8988
8989 * inflow.c (kill_command): Delete left over static declaration.
8990
348f8c02
PA
89912009-05-22 Pedro Alves <pedro@codesourcery.com>
8992
8993 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
8994 Include exec.h.
8995 (struct section_closure): Delete.
8996 (add_to_section_table): Delete.
8997 (build_target_sections_from_bfd): Delete.
8998 (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
8999 (target_bfd_reopen): Use build_section_table.
9000 * exec.c (xfer_memory): Move most code except for overlay
9001 debugging support from here...
9002 (section_table_xfer_memory): ... to this new function.
9003 (section_table_xfer_memory_partial): New.
9004 * exec.h (section_table_xfer_memory_partial): Declare.
9005 * bfd-target.h (build_target_sections_from_bfd): Delete
9006 declaration.
9007
41575630
PA
90082009-05-22 Pedro Alves <pedro@codesourcery.com>
9009
9010 * remote.c (compare_sections_command): Don't declare exec_bfd.
9011 * tracepoint.c: Include "gdbcore.h".
9012 (remote_set_transparent_ranges): Don't declare exec_bfd.
9013
783425fc
PA
90142009-05-21 Pedro Alves <pedro@codesourcery.com>
9015
9016 * aix-thread.c (init_aix_thread_ops): Whitespace.
9017
61439e34
PA
90182009-05-21 Pedro Alves <pedro@codesourcery.com>
9019
9020 * dec-thread.c (dec_thread_wait): Add options parameter. Use it
9021 to call the to_wait method in the target beneath.
9022 * remote-m32r-sdi.c (m32r_wait): Add options parameter.
9023
8914d83b
JB
90242009-05-21 Joel Brobecker <brobecker@adacore.com>
9025
9026 * aix-thread.c (aix_thread_wait): Add options parameter. Use it
9027 to call the to_wait method in the target_beneath.
9028
d9d2d8b6
PA
90292009-05-21 Pedro Alves <pedro@codesourcery.com>
9030
9031 * linux-nat.c (linux_nat_terminal_inferior)
9032 (linux_nat_terminal_ours): Don't check sync_execution.
9033 * remote.c (remote_terminal_inferior, remote_terminal_ours):
9034 Don't check sync_execution. Update comments.
9035 * target.c (target_terminal_inferior): New.
9036 * target.h (target_terminal_inferior): Delete macro, and declare
9037 as function.
9038 * event-top.c (async_disable_stdin): Make idempotent. Don't give
9039 the target the terminal here.
9040 * inflow.c (terminal_ours_1): Don't return early without setting
9041 `terminal_is_ours'.
9042
47608cb1
PA
90432009-05-21 Pedro Alves <pedro@codesourcery.com>
9044
9045 * target.h (TARGET_WNOHANG): New.
9046 * target.c (target_wait): Add `options' argument. Adjust.
9047 (struct target_ops) <to_wait>: Add `options' argument.
9048 (target_wait): Add `options' argument.
9049 * infrun.c (wait_for_inferior): Pass 0 as options to
9050 target_wait (blocking wait).
9051 (fetch_inferior_event): Pass TARGET_WNOHANG as options to
9052 target_wait.
9053 * fork-child.c (startup_inferior): Pass 0 as options to
9054 target_wait (blocking wait).
9055 * linux-nat.c (linux_nat_create_inferior): Remove async masking.
9056 (linux_nat_wait_1): Add `target_options' argument. Use it instead
9057 of checking on target_can_async_p.
9058 (linux_nat_wait): Add `target_options' argument. Adjust.
9059 * remote.c (remote_wait_ns): Add `options' argument. Adjust to
9060 check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
9061 (remote_wait_as): Add `options' argument. Adjust to check on
9062 TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
9063 a blocking wait, keep waiting until an interesting event comes
9064 out.
9065 (remote_wait): Add `options' argument. Don't loop here if the
9066 target is in async mode, and a blocking wait has been requested.
9067
9068 * top.c (deprecated_target_wait_hook): Add `options' argument.
9069 * linux-thread-db.c (thread_db_wait): Add `options' argument, and
9070 pass it down to the layer beneath.
9071 * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
9072 * record.c (record_beneath_to_wait): Add `options' argument.
9073 (record_wait): Add `options' argument, and pass it down to the
9074 layer beneath.
9075 * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
9076 * darwin-nat.c (darwin_wait): Likewise.
9077 * defs.h (deprecated_target_wait_hook): Likewise.
9078 * gnu-nat.c (gnu_wait): Add `options' argument.
9079 * go32-nat.c (go32_wait): Likewise.
9080 * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
9081 pass it down to the layer beneath.
9082 * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
9083 * monitor.c (monitor_wait): Likewise.
9084 * nto-procfs.c (procfs_wait): Likewise.
9085 * remote-mips.c (mips_wait): Add `options' argument.
9086 * remote-sim.c (gdbsim_wait): Likewise.
9087 * rs6000-nat.c (rs6000_wait): Add `options' argument.
9088 * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
9089 it down to the layer beneath.
9090 * spu-linux-nat.c (spu_child_wait): Add `options' argument.
9091 * windows-nat.c (windows_wait): Likewise.
9092 * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
9093
9944e9c2
PA
90942009-05-21 Pedro Alves <pedro@codesourcery.com>
9095
9096 * mi/mi-interp.c (mi_on_resume): Account for whole process
9097 resumes.
9098
c244a140
JK
90992009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9100
9101 * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
9102
76bee0cc
JK
91032009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9104
9105 * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
9106
4ac36638
JK
91072009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9108
9109 Fix parsing DW_AT_const_value using DW_FORM_string.
9110 * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
9111
77f0be4e
JB
91122009-05-20 Joel Brobecker <brobecker@adacore.com>
9113
9114 * aix-thread.c (giter_count): Do not count the main thread.
9115 (giter_accum): Do not include the main thread.
9116
fbdebf46
JK
91172009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9118
9119 Remove the PROT parameter from openp.
9120 * source.c (openp): Remove the parameter PROT. Assertion check MODE.
9121 defs.h (openp): Update the prototype.
9122 Update all the openp callers.
9123
5fd62852
PA
91242009-05-19 Pedro Alves <pedro@codesourcery.com>
9125
9126 * inflow.c (kill_command): Moved to infcmd.c.
9127 (_initialize_inflow): Don't add the "kill" command or clear
9128 inferior_ptid here.
9129 * infcmd.c (kill_command): Moved here from inflow.c.
9130 (_initialize_infcmd): Add the "kill" command here.
9131
191c4426
PA
91322009-05-19 Pedro Alves <pedro@codesourcery.com>
9133
9134 * fork-child.c: Don't include frame.h. Include terminal.h.
9135 (fork_inferior): Call new_tty_postfork after forking adn adding
9136 the child to the inferior list.
9137 * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
9138 here.
9139 * inflow.c (struct terminal_info): Remove const qualifier from
9140 `run_terminal' field.
9141 (inferior_thisrun_terminal): Tweak comment.
9142 (inflow_inferior_exit): Release the `run_terminal' field.
9143 (copy_terminal_info): New function.
9144 (new_tty_postfork): New function.
9145 * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
9146 (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
9147 * inf-ptrace.c: Include terminal.h.
9148 (inf_ptrace_follow_fork): Copy the parent's terminal info to the
9149 child.
9150 * linux-nat.c: Include terminal.h.
9151 (linux_child_follow_fork): Copy the parent's terminal info to the
9152 child.
9153 * inf-ttrace.c: Include terminal.h.
9154 (inf_ttrace_follow_fork): Copy the parent's terminal info to the
9155 child.
9156
2ea7b647
PA
91572009-05-19 Pedro Alves <pedro@codesourcery.com>
9158
9159 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
9160 (update_global_location_list): Use gdbarch_has_global_breakpoints
9161 instead of gdbarch_has_global_solist and
9162 target_supports_multi_process.
9163 * dicos-tdep.c (dicos_init_abi): Set
9164 gdbarch_has_global_breakpoints.
9165 * gdbarch.sh (has_global_solist): Update comment.
9166 (has_global_breakpoints): New.
9167 * remote.c (remote_start_remote): Use
9168 gdbarch_has_global_breakpoints instead of
9169 gdbarch_has_global_solist.
9170 * target.c (target_detach): Use gdbarch_has_global_breakpoints
9171 instead of gdbarch_has_global_solist.
9172 * infcmd.c (attach_command): Use gdbarch_has_global_solist instead
9173 of target_supports_multi_process.
9174
6342b74a
PP
91752009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9176
9177 * objc-lang.c (find_methods): Plug a small memory leak.
9178
1a816a87
PA
91792009-05-18 Pedro Alves <pedro@codesourcery.com>
9180
9181 * solib-svr4.c: Include observer.h.
9182 (debug_base, debug_loader_offset_p, debug_loader_offset)
9183 (debug_loader_name, main_lm_addr): Move these globals...
9184 (struct svr4_info): ... into this new structure.
9185 (svr4_info_p): New typedef.
9186 (svr4_info): New global.
9187 (get_svr4_info, remove_svr4_info, solib_svr4_inferior_exit): New
9188 functions.
9189 (locate_base, solib_svr4_r_map, solib_svr4_r_brk)
9190 (solib_svr4_r_ldsomap): Add svr4_info argument. Adjust to
9191 per-inferior svr4.
9192 (open_symbol_file_object): Adjust to per-inferior svr4.
9193 (svr4_default_sos, svr4_current_sos, svr4_fetch_objfile_link_map):
9194 Ditto.
9195 (enable_break): Add svr4_info argument. Adjust to per-inferior
9196 svr4.
9197 (enable_break, svr4_solib_create_inferior_hook, svr4_clear_solib):
9198 Adjust to per-inferior svr4.
9199 (_initialize_svr4_solib): Install the solib_svr4_inferior_exit
9200 observer.
9201
4d062f1a
PA
92022009-05-18 Pedro Alves <pedro@codesourcery.com>
9203
9204 * linux-nat.h (linux_proc_get_tgid): Declare.
9205 * linux-nat.c (linux_proc_get_tgid): New.
9206 * linux-thread-db.c (struct thread_db_info): New field
9207 `need_stale_parent_threads_check'.
9208 (add_thread_db_info): Set it.
9209 (find_new_threads_callback): Ignore stale fork parent threads.
9210 (thread_db_resume): New.
9211 (init_thread_db_ops): Install thread_db_resume.
9212
d90e17a7
PA
92132009-05-18 Pedro Alves <pedro@codesourcery.com>
9214
9215 * fork-child.c (fork_inferior): Only reset the thread list if this
9216 is the first inferior.
9217 (startup_inferior): If the target support multi-process, tell it
9218 to resume only the new process.
9219 * linux-nat.c (num_lwps): Delete global.
9220 (purge_lwp_list): New function.
9221 (num_lwps): New function.
9222 (add_lwp, delete_lwp): Adjust.
9223 (ptid_match): New.
9224 (iterate_over_lwps): Add filter argument. Handle it.
9225 (linux_nat_attach): Remove FIXME note.
9226 (linux_nat_detach): Adjust to iterate over threads of the inferior
9227 we're detaching from. Adjust to num_lwps being a function. Don't
9228 assume the head of the lwp list is the main thread of the process
9229 we're detaching from. Don't destroy the LWP list.
9230 (resume_callback): Add debug output.
9231 (linux_nat_resume): Handle resuming a single inferior. Allow a
9232 wildcard resume in non-stop mode.
9233 (linux_handle_extended_wait): Don't assume inferior_ptid is the
9234 correct inferior of the parent LWP.
9235 (status_callback): Also check lp->waitstatus.
9236 (select_event_lwp): Add new filter parameter. Handle it.
9237 (linux_nat_filter_event): Adjust to num_lwps being a function.
9238 (linux_nat_wait_1): When adding the first lwp of the inferior, use
9239 an is_lwp check instead of checking for the number of lwps.
9240 (linux_nat_wait_1): Handle waiting for a specific tgid. Handle
9241 pending process exit statuses.
9242 (linux_nat_mourn_inferior): Don't destroy all the LWP info.
9243 Instead delete LWPs of the inferior that we're mourning. Don't
9244 unregister from the event loop here.
9245 (linux_nat_pid_to_str): Use `num_lwps'.
9246 (linux_nat_make_corefile_notes): Adjust to walk over lwps of a
9247 single inferior.
9248 (linux_nat_is_async_p): Check if async was masked out.
9249 (linux_multi_process): New global.
9250 (linux_nat_supports_multi_process): New.
9251 (linux_nat_stop_lwp): Remove LWP filtering. It is done by the
9252 caller.
9253 (linux_nat_stop): Adjust to make iterate_over_lwps itself do the
9254 LWP filtering.
9255 (linux_nat_close): New.
9256 (linux_nat_add_target): Register linux_nat_close and
9257 linux_nat_supports_multi_process.
9258 * linux-nat.h (iterate_over_lwps): Add filter argument.
9259 * linux-thread-db.c (thread_db_handle): Delete.
9260 (proc_handle, thread_agent, td_init_p, td_ta_new_p)
9261 (td_ta_map_id2thr_p, td_ta_map_lwp2thr_p, td_ta_thr_iter_p)
9262 (td_ta_event_addr_p, td_ta_set_event_p, td_ta_event_getmsg_p)
9263 (td_thr_validate_p, td_thr_get_info_p, td_thr_event_enable_p)
9264 (td_thr_tls_get_addr_p, td_create_bp_addr, td_death_bp_addr): No
9265 longer globals, moved to...
9266 (struct thread_db_info): ... this new structure.
9267 (thread_db_list): New.
9268 (add_thread_db_info, get_thread_db_info, delete_thread_db_info):
9269 New.
9270 (have_threads_callback): Filter out threads of all inferiors but
9271 the one specified by the ARGS argument.
9272 (have_threads): Add ptid argument specifying the inferior we're
9273 interested in. Handle it.
9274 (struct thread_get_info_inout): New.
9275 (thread_get_info_callback, thread_from_lwp): Adjust to use it.
9276 (thread_db_attach_lwp): Check that inferior of the passed in
9277 thread is using thread-db. Adjust.
9278 (enable_thread_event): Remove thread_agent parameter. Instead,
9279 get it from the per-inferior thread-db info.
9280 (dladdr_to_soname): Move higher up.
9281 (enable_thread_event_reporting): Adjust to use per-inferior
9282 thread-db info.
9283 (try_thread_db_load_1): Replace `handle' parameter by a
9284 thread_db_info parameter. Adjust to use per-inferior thread-db
9285 info.
9286 (try_thread_db_load): Adjust to use per-inferior thread-db info.
9287 (thread_db_load, disable_thread_event_reporting): Ditto.
9288 (check_for_thread_db): Remove conditional reporting of which
9289 libthread_db is in use.
9290 (thread_db_new_objfile): Add comment about inferior_ptid.
9291 (attach_thread): Adjust to use per-inferior thread-db info.
9292 (thread_db_detach): Adjust to use per-inferior thread-db info.
9293 Remove thread event breakpoints of the current inferior. Only
9294 unpush the thread-db target if there are no more processes using
9295 it.
9296 (check_event): Adjust to use per-inferior thread-db info.
9297 (thread_db_wait): Adjust to use per-inferior thread-db info. Only
9298 unpush the thread-db target if there are no more processes using
9299 it.
9300 (thread_db_mourn_inferior): Adjust to use per-inferior thread-db
9301 info. Mark breakpoints of the current inferior out before
9302 deleting them. Only unpush the thread-db target if there are no
9303 more processes using it.
9304 (find_new_threads_callback): Adjust to use per-inferior thread_db
9305 info.
9306 (thread_db_find_new_threads_1): Add new ptid argument. Adjust to
9307 use per-inferior thread-db info.
9308 (thread_db_find_new_threads): Adjust to use per-inferior thread-db
9309 info.
9310 (thread_db_get_thread_local_address): Adjust.
9311 (thread_db_get_ada_task_ptid): Adjust.
9312 * inf-ptrace.c (inf_ptrace_mourn_inferior): Only unpush the target
9313 if there no more processes left to debug.
9314 * thread.c (set_running, set_executing): Handle resuming all
9315 threads of a single inferior.
9316 * mi/mi-interp.c (mi_output_running_pid): New.
9317 (mi_inferior_count): New.
9318 (mi_on_resume): For backwards compatibility, if resuming all
9319 threads of an inferior, and there is only one inferior, output
9320 "all".
9321
dddfab26
UW
93222009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
9323
9324 * ada-lang.c (ada_find_any_type): Move check for primitive types ...
9325 (to_fixed_range_type): ... to here.
9326
556bdfd4
UW
93272009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
9328
9329 * ada-lang.c (desc_data_type): Remove, replace by ...
9330 (desc_data_target_type): ... this.
9331 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
9332 (ada_is_array_descriptor_type): Likewise.
9333 (ada_type_of_array): Likewise.
9334 (ada_coerce_to_simple_array_type): Likewise.
9335 (ada_array_element_type): Likewise.
9336
aaa88a99
UW
93372009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
9338
9339 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
9340 result of ada_vax_float_print_function inferior call.
9341
17280b9f
UW
93422009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
9343
9344 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
9345 avoid creating a dummy value.
9346
830bb937
UW
93472009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
9348
9349 * p-valprint.c (pascal_val_print): Use extract_typed_address
9350 to extract reference value.
9351
e035e373
UW
93522009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
9353
9354 * doublest.c (NAN): Remove unused define.
9355 (extract_floating_by_length, deprecated_extract_floating): Remove.
9356 (store_floating_by_length, deprecated_store_floating): Remove.
9357 (extract_typed_floating): Do not call extract_floating_by_length.
9358 (store_typed_floating): Do not call store_floating_by_length.
9359 (convert_typed_floating): Remove redundant assertions.
9360 * doublest.h (deprecated_extract_floating): Remove.
9361 (deprecated_store_floating): Remove.
9362 * sh64-tdep.c (sh64_register_convert_to_raw): Call
9363 extract_typed_floating instead of deprecated_extract_floating.
9364
c28c63d8
JB
93652009-05-18 Jon Beniston <jon@beniston.com>
9366
9367 * MAINTAINERS: Add lm32 target.
9368 * Makefile.in: Add lm32 dependencies.
9369 * NEWS: Indicate lm32 is a new target.
9370 * configure.tgt: Add lm32 targets.
9371 * lm32-tdep.c: New file.
9372
739fc47a
PA
93732009-05-18 Pedro Alves <pedro@codesourcery.com>
9374
9375 * corelow.c (core_open): Flush the register cache before doing
9376 anything with registers.
9377
7e1789f5
PA
93782009-05-18 Pedro Alves <pedro@codesourcery.com>
9379
9380 * inflow.h (our_process_group): Remove declaration.
9381 (inferior_process_group): Delete global variable declaration.
9382 (inferior_process_group): New function declaration.
9383 * inflow.c: Include observer.h.
9384 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
9385 Delete.
9386 (struct terminal_info): New struct.
9387 (our_terminal_info): New global.
9388 (inferior_process_group): New function.
9389 (inferior_thisrun_terminal): Extend description comment.
9390 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
9391 instead of globals.
9392 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
9393 terminal settings.
9394 (terminal_inferior): Ditto.
9395 (terminal_ours_1): Ditto.
9396 (inflow_new_inferior, inflow_inferior_exit): New functions.
9397 (child_terminal_info): Adjust to per-inferior terminal settings.
9398 (osig_set): New global.
9399 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
9400 or clear `osig_set' accordingly.
9401 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
9402 SIGINT handler, instead of checking the current inferior (which
9403 may be none).
9404 (_initialize_inflow): Attach inflow_new_inferior and
9405 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
9406 notifications, respectively.
9407 * inferior.h (struct terminal_info): Forward declare.
9408 (struct inferior): Add `terminal_info' field.
9409 * inferior.c (delete_inferior_1): Notify the inferior_exit
9410 observers before removing the inferior from the lists and deleting
9411 it.
9412 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
9413 a function instead of a variable. Adjust.
9414 * procfs.c (procfs_stop): Ditto.
9415
b242c3c2
PA
94162009-05-17 Pedro Alves <pedro@codesourcery.com>
9417
9418 * infrun.c (handle_inferior_event): When handling a
9419 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
9420 immediatelly.
60a7d074 9421 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
b242c3c2
PA
9422 from the child if vforking.
9423 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
9424 breakpoints from the child here.
9425
71b43ef8
PA
94262009-05-17 Pedro Alves <pedro@codesourcery.com>
9427
9428 * infrun.c (pending_follow): Remove execd_pathname member.
9429 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
9430 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
9431 event, don't copy `execd_pathname' to pending_follow, use the
9432 event copy instead. Release `execd_pathname' once done with
9433 handling the event.
9434
235f2b04
PA
9435 * infrun.c (pending_follow): Remove mention of exec events.
9436
a6b808b4
HZ
94372009-05-17 Hui Zhu <teawater@gmail.com>
9438
9439 * i386-tdep.c (i386_process_record): Make it extern.
9440 (i386_gdbarch_init): Don't call set_gdbarch_process_record
9441 here.
d5f3b873 9442 * i386-tdep.h (i386_process_record): Declare.
a6b808b4
HZ
9443 * i386-linux-tdep.c (i386_linux_init_abi): Call
9444 set_gdbarch_process_record.
9445
ee342b23
VP
94462009-05-17 Vladimir Prus <vladimir@codesourcery.com>
9447
9448 Always report varobj as changed when in_scope attribute changes.
9449
9450 * varobj.c (install_new_value): If non-NULL-ness of value
9451 changed, return 1.
9452
17a37d48
PP
94532009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9454
9455 * NEWS: Mention set/show libthread-db-search-path.
9456 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
9457 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
9458 * linux-thread-db.c (libthread_db_search_path): New setting.
9459 (thread_db_handle): New variable (replaces using_thread_db).
9460 (try_thread_db_load_1): New function.
9461 (try_thread_db_load, thread_db_load_search): Likewise.
9462 (dladdr_to_soname): Likewise.
9463 (thread_db_load): Iterate over possibly multiple libthread_db's.
9464 (check_for_thread_db): Attempt to load new libthread_db.
9465 (thread_db_detach, thread_db_wait): Unload libthread_db.
9466 (thread_db_mourn_inferior): Likewise.
9467 (_initialize_thread_db): Add new libthread-db-search-path option.
9468 Defer loading of libthread_db to check_for_thread_db.
9469 * solib.c (libpthread_name_p): New function.
9470 (libpthread_solib_p): Call it.
9471 * solib.h (libpthread_name_p): New prototype.
9472
0643c12e
PM
94732009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
9474
9475 * MAINTAINERS: Update my email address.
9476
e62c965a
PP
94772009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
9478
9479 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
9480 * breakpoint.c (create_overlay_event_breakpoint): Renamed
9481 from create_overlay_event_breakpoint_1, old
9482 create_overlay_event_breakpoint deleted.
9483 (breakpoint_re_set_objfile): Don't rescan all objfiles
9484 unnecessarily.
9485 (breakpoint_re_set): New function.
9486 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
9487 instead of breakpoint_re_set.
9488 * objfiles.c (objfile_relocate): Likewise.
9489
9e2ace22
JB
94902009-05-14 Joel Brobecker <brobecker@adacore.com>
9491
9492 * gdbarch.sh: Add comment documenting the target_gdbarch global.
9493 gdbarch.h does NOT need to be regenerated as the corresponding
9494 change has already been made in a previous commit.
9495
39a90fca 94962009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
9bb9e8ad
PM
9497
9498 Remove all i386 debug register low level macros in config nm files.
9499 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
9500 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
9501 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
9502
9503 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
9504 (struct i386_dr_low_type): New type.
9505 (i386_dr_low): New global variable.
9506 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
9507 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
9508 i386_dr_low struct variable fields.
9509 (i386_remove_aligned_watchpoint): Likewise.
9510 (i386_stopped_data_address): Likewise.
9511 (i386_stopped_by_hwbp): Likewise.
9512 (show_debug_regs_command_added): New static variable.
9513 (add_show_debug_regs_command): New static function.
9514 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
9515 (i386_set_debug_register_length): New function.
9516 (_initialize_i386_nat): Delete.
9517
9518 * amd64-linux-nat.c: Include "i386-nat.h".
9519 (amd64_linux_dr_set_control): Change to static.
9520 (amd64_linux_dr_get_status): Change to static.
9521 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
9522 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
9523
9524 * go32-nat.c: Include "i386-nat.h".
9525 (go32_set_addr): Change to static.
9526 (go32_set_dr7): Change to static. Change arg type to unisgned long.
9527 (go32_get_dr6): Change to static. Change return type to unisnged long.
9528 (init_go32_ops): Set i386_dr_low variable fields.
9529 * i386-linux-nat.c: Include "i386-nat.h".
9530 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
9531 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
9532 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
9533 * i386bsd-nat.h: Declare functions used for
9534 i386_dr_low fields in i386fbsd-nat.c.
9535 * i386fbsd-nat.c: Include "i386-nat.h".
9536 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
9537 * windows-nat.c: Include "i386-nat.h".
9538 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
9539 Change to static.
9540 (cygwin_get_dr6): Change return type to unisnged long.
9541 (cygwin_set_dr7): Change arg type to unisgned long.
9542 (init_windows_ops): Set i386_dr_low function fields.
9543
9544 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
9545 i386_set_debug_register_length.
9546 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
9547
9548 * config/i386/nm-cygwin.h: Remove all I386_* macros.
9549 * config/i386/nm-cygwin64.h: Likewise.
9550 * config/i386/nm-fbsd.h: Likewise.
9551 * config/i386/nm-linux.h: Likewise.
9552 * config/i386/nm-i386.h: Remove completely.
9553 * config/i386/nm-go32.h: Remove completely.
9554 * config/i386/nm-linux64.h: Remove completely.
9555 * config/i386/go32.mh (NAT_FILE): Remove entry.
9556 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
9557
7a893eb8
JB
95582009-05-14 Jon Beniston <jon@beniston.com>
9559
9560 * MAINTAINERS: Add Jon Beniston to write after approval list.
9561
57a9e6af
PP
95622009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
9563
9564 * objc-lang.c (objc_objfile_data): New variable.
9565 (find_methods): Skip objfiles without Obj-C methods.
9566 (_initialize_objc_lang): New function.
9567
3f7f5fe4
JB
95682009-05-13 Joel Brobecker <brobecker@adacore.com>
9569
9570 * c-lang.c (print_wchar): Remove unnecessary cast.
9571
25ad2853
JB
95722009-05-12 Jim Blandy <jimb@red-bean.com>
9573
9574 * MAINTAINERS: Remove self as m32c target maintainer.
9575
cbe54154
PA
95762009-05-12 Pedro Alves <pedro@codesourcery.com>
9577
9578 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
9579 * command.h (deprecated_add_set_cmd): Delete declaration.
9580 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
9581 'set debug gnu-nat' and 'show debug gnu-nat'.
9582 * i386-nat.c (_initialize_i386_nat): Replace 'maint
9583 show-debug-registers' with 'maint set show-debug-registers' and
9584 'maint show show-debug-registers'.
9585 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
9586 show-debug-registers' with 'maint set show-debug-registers' and
9587 'maint show show-debug-registers'.
9588
2d90c72a
JB
95892009-05-12 Joel Brobecker <brobecker@adacore.com>
9590
9591 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
9592 pushing it on the output obstack.
9593
00903456
JK
95942009-05-11 Joel Brobecker <brobecker@adacore.com>
9595
9596 Fix internal error on breaking at a multi-locations caller source line.
9597 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
9598 command with no parameters.
9599
7feb7d06
PA
96002009-05-11 Pedro Alves <pedro@codesourcery.com>
9601
9602 * linux-nat.c (enum sigchld_state): Delete.
9603 (linux_nat_async_events_state): Delete.
9604 (struct waitpid_result): Delete.
9605 (waitpid_queue): Delete.
9606 (queued_waitpid_1): Delete.
9607 (async_file_flush): New.
9608 (queued_waitpid, push_waitpid): Delete.
9609 (async_file_mark): New.
9610 (drain_queued_events): Delete.
9611 (my_waitpid): Remove locally queued events handling.
9612 (linux_test_for_tracefork): Upjust.
9613 (linux_child_follow_fork): Ditto.
9614 (sync_sigchld_action): Delete.
9615 (blocked_mask): Reinstate.
9616 (async_sigchld_action): Rename to...
9617 (sigchld_action): ... this.
9618 (block_child_signals): New.
9619 (restore_child_signals_mask): New.
9620 (lin_lwp_attach_lwp): Adjust.
9621 (linux_nat_create_inferior): Ditto.
9622 (linux_nat_attach): Also use lp->status in async mode.
9623 (get_pending_status): Don't use queued_waitpid.
9624 (linux_nat_detach): Don't drain locally queued events.
9625 (linux_nat_resume): Allow pending wait statuses stored lp->status
9626 in async mode. If returning early due to a pending event,
9627 re-register the event source.
9628 (stop_wait_callback): Allow pending wait statuses stored
9629 lp->status in async mode.
9630 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
9631 (linux_nat_wait): Rename to ...
9632 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
9633 lp->status in async mode. Always add WNOHANG to the waitpid
9634 options in async mode.
9635 (linux_nat_wait): New.
9636 (kill_callback): Don't drain locally queued events.
9637 (sigchld_handler): Rewrite.
9638 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
9639 refer to "set target-async".
9640 (linux_nat_async_mask): If in non-stop, and re-enabling async
9641 mode, re-register the target event source in the event loop.
9642 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
9643 (get_pending_events, async_sigchld_handler)
9644 (linux_nat_async_events): Delete.
9645 (handle_target_event): New.
9646 (linux_nat_async_file_handler): Delete.
9647 (linux_async_pipe): New.
9648 (linux_nat_async): Only re-register in the event loop if not
9649 registered yet. Always notify the event-loop once if enabling the
9650 event source.
9651 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
9652 lp->status, not in the locally queued event list.
9653 (linux_nat_stop): Don't mask out async event handling.
9654 (linux_nat_setup_async): Delete.
9655 (_initialize_linux_nat): Adjust.
9656 (lin_thread_get_thread_signals): blocked_mask is global again.
9657 Adjust.
9658
39a90fca 96592009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
d92524f1
PM
9660
9661 Unify target macros.
9662
9663 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
9664 (target_stoppped_by_watchpoint): New macro.
9665 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
9666 (target_have_steppable_watchpoint): New macro.
9667 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
9668 (target_have_continuable_watchpoint): New macro.
9669 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
9670 (target_can_use_hardware_watchpoint): New macro.
9671 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
9672 (target_region_ok_for_hw_watchpoint): New macro.
9673
9674 * breakpoint.c (update_watchpoint): Use new macros.
9675 (bpstat_alloc): Likewise.
9676 (create_breakpoint): Likewise.
9677 (watch_command_1): Likewise.
9678 (can_use_hardware_watchpoint): Likewise.
9679 (do_enable_breakpoint): Likewise.
9680 * infrun.c (handle_inferior_event): Adapt to new macros.
9681 * mips-tdep.c (mips_gdbarch_init): Update comments.
9682 * procfs.c (procfs_set_watchpoint): Update comment.
9683 (procfs_insert_watchpoint): Adapt to new macros.
9684 * remote-m32r-sdi.c (m32r_stop):
9685 * remote-mips.c (mips_remove_breakpoint):
9686 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
9687 (debug_to_stopped_by_watchpoint): Likewise.
9688
9689
39a90fca 96902009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
fe524716
PM
9691
9692 * src/gdb/target.h: Remove all tests for already defined
9693 macros. All macros defined here should not be set in config
9694 headers anymore.
9695
1dfe79e8
SDJ
96962009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9697
9698 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
9699 (have_ptrace_getsetfpregs): Likewise.
9700 fetch_all_gp_regs): New function.
9701 (fetch_gp_regs): New function.
9702 (fetch_all_fp_regs): Likewise.
9703 (fetch_fp_regs): New function.
9704 (fetch_ppc_registers): Using the new methods to fetch general-
9705 purpose and floating-pointer registers.
9706 (store_all_gp_regs): New function.
9707 (store_gp_regs): Likewise.
9708 (store_all_fp_regs): New function.
9709 (store_fp_regs): Likewise.
9710 (store_ppc_registers): Using the new methods to store general-
9711 purpose and floating-pointer registers.
9712
2cda8d2f
DE
97132009-05-08 Doug Evans <dje@google.com>
9714
9715 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
9716
b0afac70
SDJ
97172009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9718
9719 * MAINTAINERS (Write After Approval): Add self.
9720
6b614274
JB
97212009-05-07 Joel Brobecker <brobecker@adacore.com>
9722
9723 * gdbarch.h (target_gdbarch): Add comment documenting this global.
9724
97252009-05-06 Joel Brobecker <brobecker@adacore.com>
4edb1e84
JB
9726
9727 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
9728 system iconv.
9729 * configure: Regenerate.
9730
6b614274 97312009-05-06 Joel Brobecker <brobecker@adacore.com>
8626589c
JB
9732
9733 * utils.c: Add include of gdb_usleep.h.
9734 (defaulted_query): Detect false EOF conditions that happen
9735 on terminals opened with the O_NONBLOCK flag when there is
9736 nothing to read.
9737
a562dc8f
PA
97382009-05-06 Pedro Alves <pedro@codesourcery.com>
9739
9740 * inferior.c (add_inferior): Move observer_notify_new_inferior
9741 call to ...
9742 (add_inferior_silent): ... here.
9743
39a90fca 97442009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
25513619
PA
9745 Pedro Alves <pedro@codesourcery.com>
9746
9747 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
9748 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
9749 functions.
9750 (procfs_stopped_by_watchpoint): Made static, ptid argument
9751 removed.
9752 (_initialize_procfs): Register new watchpoint related target
9753 functions.
9754 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
9755 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
9756 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
9757 (target_insert_watchpoint, target_remove_watchpoint): Delete.
9758 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
9759 declarations.
9760 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
9761 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
9762 (target_insert_watchpoint, target_remove_watchpoint): Delete.
9763 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
9764 declarations.
9765 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
9766 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
9767 (target_insert_watchpoint, target_remove_watchpoint): Delete.
9768 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
9769 declarations.
9770
51f4db83 97712009-05-06 Hui Zhu <teawater@gmail.com>
e7a8dbfb 9772
8408d274
HZ
9773 * i386-tdep.c (i386_process_record): Change bzero to memset.
9774
51f4db83 97752009-05-06 Hui Zhu <teawater@gmail.com>
8408d274
HZ
9776
9777 * NEWS: Add item for process record and replay.
e7a8dbfb 9778
f6402f18
MG
97792009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
9780
9781 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
9782
fb14de7b
UW
97832009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
9784
9785 * inferior.h (read_pc, write_pc): Remove.
9786 * regcache.c (read_pc, write_pc): Remove.
9787
9788 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
9789 of read_pc.
9790 (handle_inferior_event): Use regcache_read_pc instead of read_pc
9791 when determining value of stop_pc. Replace subsequent uses of
9792 read_pc by inspecting already-retrieved stop_pc value.
9793 (keep_going): Use regcache_read_pc instead of read_pc.
9794
9795 * breakpoint.c (watchpoint_check): Use current frame architecture
9796 and PC instead of current_gdbarch and read_pc ().
9797 * tracepoint.c (set_traceframe_context): Replace PC argument
9798 with FRAME argument.
9799 (trace_start_command, finish_tfind_command): Update calls.
9800 (finish_tfind_command): Compare frame IDs to identify transitions
9801 between frames.
9802 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
9803 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
9804 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
9805 of read_pc and write_pc.
9806 (store_register): Make regcache argument non-const. Update call
9807 to exec_one_dummy_insn.
9808
9809 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
9810 * infcmd.c (post_create_inferior): Likewise.
9811 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
9812 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9813 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
9814 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
9815 * linux-fork.c (fork_load_infrun_state): Likewise.
9816 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
9817 * record.c (record_wait): Likewise.
9818 * procfs.c (procfs_wait): Likewise.
9819 * remote-mips.c (common_open, mips_wait): Likewise.
9820 * remote-m32r-sdi.c (m32r_resume): Likewise.
9821
9822 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
9823 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
9824 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
9825 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
9826 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
9827
9828 * solib-darwin.c: Include "regcache.h".
9829 * solib-pa64.c: Include "regcache.h".
9830 * solib-svr4.c: Include "regcache.h.".
9831
9832 * symfile.c: Do not mention read_pc or write_pc in comments.
9833 * dink32-rom.c: Likewise.
9834 * m32r-rom.c: Likewise.
9835 * mips-tdep.c: Likewise.
9836
f698437e
UW
98372009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
9838
9839 * fork-child.c (startup_inferior): Move setting stop_pc ...
9840 * infcmd.c (post_create_inferior): ... to here.
9841
64644d9b
MS
98422009-05-04 Michael Snyder <msnyder@vmware.com>
9843
9844 * NEWS: Add item for reverse debugging commands.
9845
67ce33d7
PA
98462009-05-04 Pedro Alves <pedro@codesourcery.com>
9847
9848 * go32-nat.c (go32_stop): Delete.
9849 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
9850 (go32_create_inferior): Don't call go32_stop or
9851 go32_kill_inferior.
9852 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
9853 here.
9854 (init_go32_ops): Don't register go32_stop.
9855
26a4ddaa
EZ
98562009-05-02 Eli Zaretskii <eliz@gnu.org>
9857
9858 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
9859 sym_name.
9860
9861 * infcall.c (find_function_addr): Avoid compiler warnings for
9862 funaddr.
9863
a11a1416
JK
98642009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9865
9866 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
9867 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
9868
ee78f3e5
DE
98692009-05-01 Doug Evans <dje@google.com>
9870
9871 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
9872 to thread_info.
9873
699275c9
EZ
98742009-05-01 Eli Zaretskii <eliz@gnu.org>
9875
299a410e
EZ
9876 * record.c (_initialize_record): Reformat and clarify doc strings
9877 for stop-at-limit and insn-number-max.
9878
699275c9
EZ
9879 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
9880
323427d1
JK
98812009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9882
9883 Make specifiable the make_function_type type memory ownership.
9884 * gdbtypes.c (make_function_type): New parameter `objfile', use it
9885 explicitely instead of TYPE-initialized removed local variable
9886 `objfile'. Describe `objfile' it in the function comment.
9887 (lookup_function_type): Update make_function_type callers.
9888 * gdbtypes.h (make_function_type): Update the prototype.
9889 * jv-lang.c (java_link_class_type): Update make_function_type callers.
9890 * dwarf2read.c (read_subroutine_type): Likewise.
9891 * stabsread.c (read_type): Likewise.
9892
15430fc0
EZ
98932009-05-01 Eli Zaretskii <eliz@gnu.org>
9894
89c9c2ec
EZ
9895 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
9896 printing a bogus "Thread <main>".
9897 (go32_thread_alive): Don't return 1 for null_ptid.
9898
15430fc0
EZ
9899 * i386-tdep.c (i386_go32_init_abi): Override the number of
9900 registers due to non-support of SSE.
9901
c7098c41
AG
99022009-04-30 Anthony Green <green@moxielogic.com>
9903
9904 * configure.tgt: Link the moxie simulator in with gdb.
9905
25c2f6ab
PP
99062009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
9907
9908 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
9909 are present.
15430fc0 9910
77fcef51
HZ
99112009-04-30 Hui Zhu <teawater@gmail.com>
9912 Michael Snyder <msnyder@vmware.com>
9913
9914 I386 Linux process record and replay support.
9915
9916 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
9917 This struct has the argument for the function
9918 "record_linux_system_call".
9919 (i386_linux_intx80_sysenter_record): New function. Parse the
9920 system call instruction and call function
9921 "record_linux_system_call" to record execute log.
9922 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
9923 Set "i386_linux_intx80_sysenter_record" to
9924 "i386_intx80_record" and "i386_sysenter_record".
9925
7ad10968
HZ
99262009-04-30 Hui Zhu <teawater@gmail.com>
9927 Michael Snyder <msnyder@vmware.com>
9928
9929 I386 architecture process record and replay support.
9930
9931 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
9932 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
9933 instruction set.
9934 (aflag, dflag, override, modrm, mod, reg, rm, ot,
9935 i386_record_pc): New variables. Ditto.
9936 (i386_record_modrm, i386_record_lea_modrm_addr,
9937 i386_record_lea_modrm): New functions. Ditto.
9938 (i386_process_record): New function. Parse the instruction in
9939 address "addr" and record the values of registers and memory
9940 that will be changed by this instruction.
9941 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
9942 "process_record" interface.
9943 * i386-tdep.h (gdbarch_tdep): New function pointers
9944 "i386_intx80_record" and "i386_sysenter_record" that point to
9945 the function that can record "intx80" and "sysenter" execute
9946 log.
9947
96429cc8
HZ
99482009-04-30 Hui Zhu <teawater@gmail.com>
9949 Michael Snyder <msnyder@vmware.com>
9950
9951 * infrun.c (use_displaced_stepping): Return false if process
9952 record and replay target is used.
9953 (proceed): Call function "record_not_record_set" if pocess
9954 record and replay target is used.
9955
b7f6bf22
HZ
99562009-04-30 Hui Zhu <teawater@gmail.com>
9957 Michael Snyder <msnyder@vmware.com>
9958
9959 Linux process record and replay support.
9960
9961 * Makefile.in (ALLDEPFILES): Add linux-record.c.
9962 (ALL_TARGET_OBS): Add linux-record.o.
9963 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
9964 (i[34567]86-*-linux*): Add linux-record.o.
9965 * linux-record.c, linux-record.h: New file.
9966
69d05d38
HZ
99672009-04-30 Hui Zhu <teawater@gmail.com>
9968 Michael Snyder <msnyder@vmware.com>
9969
9970 Process record and replay target.
9971
9972 * Makefile.in (SFILES): Add record.c.
9973 (COMMON_OBS): Add record.o.
9974 * record.c, record.h: New file.
9975
81e64f55
HZ
99762009-04-30 Hui Zhu <teawater@gmail.com>
9977 Michael Snyder <msnyder@vmware.com>
9978
9979 * target.h (strata): New stratum "record_stratum".
9980
0407e712
HZ
99812009-04-30 Hui Zhu <teawater@gmail.com>
9982 Michael Snyder <msnyder@vmware.com>
9983
9984 GDBARCH interface for process record and replay.
9985
9986 * gdbarch.sh (process_record): This interface point to the
9987 function that records the inferior execute log.
9988
c5af0dad
DE
99892009-04-29 Doug Evans <dje@google.com>
9990
9991 * i386-nat.c (child_post_startup_inferior): Delete, unused.
9992
df2b6d2d
PA
99932009-04-29 Pedro Alves <pedro@codesourcery.com>
9994
9995 * breakpoint.c (print_exception_catchpoint): Access `b' directly
9996 instead of `b->loc->owner'.
9997 (print_mention_exception_catchpoint): Ditto.
9998
484086b7
JK
99992009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10000
10001 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
10002
379a77b5
TT
100032009-04-27 Tom Tromey <tromey@redhat.com>
10004
10005 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
10006
aad80b26
JG
100072009-04-27 Jerome Guitton <guitton@adacore.com>
10008
10009 * symtab.c (append_exact_match_to_sals): New function, extracted
10010 from expand_line_sal.
10011 (expand_line_sal): Use append_exact_match_to_sals to append exact
10012 matches. If none found, append all best items.
10013
57a46001
JG
100142009-04-27 Jerome Guitton <guitton@adacore.com>
10015
10016 * main.c (captured_main): Move gdbinit lookups after gdb_init.
10017
d389af10
JK
100182009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10019
10020 PR gdb/9675:
10021 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
10022 (read_func_scope): Call inherit_abstract_dies.
10023
90b9b517
EZ
100242009-04-25 Eli Zaretskii <eliz@gnu.org>
10025
10026 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
10027 sparc-sol2-nat.c and sparc-sol2-tdep.c.
80a0ea0f
EZ
10028
10029 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
10030
39a90fca 100312009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
5ac79d78
PM
10032
10033 ARI change: Use "/* ARI: rule */" pattern.
10034 * utils.c: Update ARI patterns.
10035 * gdb_dirent.h: Likewise.
10036
d7066cce
AG
100372009-04-23 Anthony Green <green@moxielogic.com>
10038
10039 * MAINTAINERS: Add moxie target.
10040 * configure.tgt: Add moxie-*-elf target.
10041 * moxie-tdep.c: New file.
10042 * moxie-tdep.h: New file.
10043
fc84d355 100442009-04-23 Joel Brobecker <brobecker@adacore.com>
72fcaa05
JB
10045
10046 * ada-lang.c: Remove an extra empty line. No code change.
10047
217dc9e2
JK
100482009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 Fix double free on error inserting the breakpoint instruction.
10051 * breakpoint.c (create_breakpoints): Move the
10052 update_global_location_list call to ...
10053 (break_command_really): ... here together with the second local call
10054 both unified after all the cleanups.
10055
b14b1491
TT
100562009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10057 Tom Tromey <tromey@redhat.com>
10058
10059 * configure, config.in: Regenerate.
10060 * configure.ac: Support for relocatable GDB datadir. Use
10061 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
10062 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
10063 * top.c (init_main): Add "set data-directory".
10064 * defs.h (gdb_datadir): Declare.
10065 * main.c (gdb_datadir): New global.
10066 (captured_main): Initialize gdb_datadir. Use relocate_directory.
10067 (relocate_path): New function.
10068 (relocate_directory): Likewise.
10069 (get_init_files): Use relocate_path.
10070 (README): Mention --with-gdb-datadir.
10071
5e7b5f74
JB
100722009-04-23 Joel Brobecker <brobecker@adacore.com>
10073
10074 * ada-tasks (task_command_1): Call target_find_new_threads.
10075
465f42bb
JB
100762009-04-23 Joel Brobecker <brobecker@adacore.com>
10077
10078 * stack.c (do_gdb_disassembly): Print the exception message if an
10079 error was thrown while trying to perform the disassembly.
10080
3038237c
JK
100812009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10082
10083 * varobj.c (free_variable): Replace free_current_contents by xfree.
10084
17c12639
KH
100852009-04-22 Kazu Hirata <kazu@codesourcery.com>
10086
10087 * arm-linux-nat.c (fetch_register, store_register): Use
10088 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
10089 * arm-linux-tdep.c (arm_linux_supply_gregset,
10090 arm_linux_collect_gregset): Likewise.
10091 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
10092 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
10093
a362e3d3
HZ
100942009-04-22 Hui Zhu <teawater@gmail.com>
10095
10096 * stack.c (_initialize_stack): Set the default of
10097 disassemble-next-line to off.
10098
d2596e2e
TT
100992009-04-21 Tom Tromey <tromey@redhat.com>
10100
10101 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
10102 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
10103
62e4f60c
AS
101042009-04-21 Andreas Schwab <schwab@linux-m68k.org>
10105
10106 * configure.ac: Add quotes to not lose brackets in help text.
10107 * configure: Rebuild.
10108
82cd387f 101092009-04-21 Andreas Schwab <schwab@linux-m68k.org>
cfd53605
AS
10110
10111 * configure.ac: Don't postprocess Makefile in config.status.
10112 Substitute GDB_NM_FILE. Don't substitute nm_h.
10113 * Makefile.in (GDB_NM_FILE): Substitute.
10114 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
10115 * configure: Regenerate.
10116 * gnulib/Makefile.in: Regenerate.
10117
26e251b6
JM
101182009-04-21 Joseph Myers <joseph@codesourcery.com>
10119
10120 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
10121 --with-htmldir): New.
10122 * configure: Regenerate.
10123
32c1c914
TT
101242009-04-21 Tom Tromey <tromey@redhat.com>
10125
10126 * configure: Rebuild.
10127 * configure.ac: Use lower case for start of help strings. Clean
10128 up --with-sysroot help.
10129
a1220294
TT
101302009-04-21 Tom Tromey <tromey@redhat.com>
10131
10132 * configure: Rebuild.
10133 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
10134 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
10135 in help.
10136
39a90fca 101372009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
dfc3cd0e
PM
10138
10139 ARI fix: remove "%p".
10140 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
10141 (ia64_sigtramp_frame_this_id): Ditto.
10142 (ia64_libunwind_frame_this_id): Ditto.
10143 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
10144 * symmisc.c (maintenance_info_psymtabs): Ditto.
10145
29b0e8a2
JM
101462009-04-21 Joseph Myers <joseph@codesourcery.com>
10147
10148 * configure.ac (--with-relocated-sources): New.
10149 * configure, config.in: Regenerate.
10150 * source.c (add_substitute_path_rule): Remove static.
10151 * source.h (add_substitute_path_rule): Declare.
10152 * main.c: Include "source.h".
10153 (captured_main): Add substitution rule if RELOC_SRCDIR.
10154
39a90fca 101552009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
ccabeb57
PM
10156
10157 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
cfd53605 10158
b9412953
DD
101592009-04-20 David Daney <ddaney@caviumnetworks.com>
10160
10161 * NEWS: Mention MIPS/Linux hardware watchpoint support.
10162
101632009-04-20 David Daney <ddaney@caviumnetworks.com>
10164
10165 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
10166 (maint_show_dr, super_close): New variables.
10167 (super_fetch_registers, super_store_registers): Make static.
10168 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
10169 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
10170 (pt_watch_style): Define new enum.
10171 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
10172 Define new structs.
10173 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
10174 New variables.
10175 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
10176 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
10177 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
10178 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
10179 (type_to_irw, fill_mask, try_one_watch)
10180 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
10181 (mips_linux_new_thread, populate_regs_from_watches)
10182 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10183 (mips_linux_close): New functions.
10184 (_initialize_mips_linux_nat): Register watchpoint functions with
10185 the target_ops. Add show-debug-regs maintenance command.
10186
101872009-04-20 David Daney <ddaney@caviumnetworks.com>
10188
10189 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
10190
6de3146c
PA
101912009-04-19 Pedro Alves <pedro@codesourcery.com>
10192
10193 * NEWS: Mention gdbserver support for x86 Windows CE.
10194
10085bb5
EZ
101952009-04-19 Eli Zaretskii <eliz@gnu.org>
10196
e424a02e
EZ
10197 * config/djgpp/fnchange.lst: Fix typos.
10198
10085bb5
EZ
10199 Set default host and target charsets in the DJGPP port.
10200
10201 * config/djgpp/config.sed (am_cv_langinfo_codeset)
10202 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
10203 in all configure scripts that define ac_cv_env_CPP_value.
10204
10205 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
10206 Include langinfo.h.
10207
10208 * config/djgpp/nl_types.h: New file.
10209
10210 * config/djgpp/langinfo.h: New file.
10211
10212 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
10213
2b831889
JM
102142009-04-18 Carlos O'Donell <carlos@codesourcery.com>
10215
10216 * Makefile.in (MAKEHTML): Set to makeinfo --html.
10217 (MAKEHTMLFLAGS): Set to empty.
10218
d647eed6
EZ
102192009-04-18 Eli Zaretskii <eliz@gnu.org>
10220
d7713ae0
EZ
10221 * NEWS: Mention all new set/show commands added since GDB 6.8 was
10222 released.
10223
d647eed6
EZ
10224 * go32-nat.c (go32_sysinfo): Check if the call to
10225 __dpmi_get_capabilities fills the buffer with information, and
10226 don't use the buffer if not.
10227
58720494
TT
102282009-04-17 Tom Tromey <tromey@redhat.com>
10229
10230 * charset.c (_initialize_charset): Add special case for "646".
10231
89a34d1b
JM
102322009-04-17 Carlos O'Donell <carlos@codesourcery.com>
10233
10234 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
10235 * configure: Regenerate.
10236 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
10237 configure substitutions.
10238 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
10239
39a90fca 102402009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
a74ce742
PM
10241
10242 ARI fix: Do not use %p, replace by call to host_address_to_string
10243 for host pointers.
10244 * darwin-nat.c (darwin_xfer_partial): Apply change.
10245 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
10246 * gnu-nat.h (proc_debug): Ditto.
10247 * symmisc.c (maintenance_info_symtabs): Ditto.
10248 (maintenance_info_psymtabs): Ditto.
10249 * windows-nat.c (handle_load_dll): Ditto.
10250 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
10251 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
10252
0ca8834f
JM
102532009-04-17 Joseph Myers <joseph@codesourcery.com>
10254
10255 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
10256 --enable-64-bit-bfd.
10257 (sparc-*-linux*): Likewise.
10258
541f1105
EZ
102592009-04-17 Eli Zaretskii <eliz@gnu.org>
10260
10261 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
10262 the NT family.
10263
1554e9be
PA
102642009-04-16 Pedro Alves <pedro@codesourcery.com>
10265
10266 * remote.c (remote_query_attached): Fix pasto in packet_ok result
10267 checking.
10268
bf75638e
JB
102692009-04-16 Joel Brobecker <brobecker@adacore.com>
10270
10271 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
10272 Revert the previous change. Might not be correct, actually.
10273
3705b1c5
JB
102742009-04-16 Joel Brobecker <brobecker@adacore.com>
10275
10276 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
10277 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
10278 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
10279 Remove declaration. These are non-existent functions.
10280
37da21bc
JB
102812009-04-16 Joel Brobecker <brobecker@adacore.com>
10282
10283 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
10284 Fix a compilation warning on mips-irix due to casting from
10285 a pointer of different size.
10286
6f38eac8
JB
102872009-04-16 Joel Brobecker <brobecker@adacore.com>
10288
10289 * ada-lang.c (symtab_for_sym): Delete.
10290 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
10291
f9bc20b9
JB
102922009-04-16 Joel Brobecker <brobecker@adacore.com>
10293
10294 * ada-lang.c (extract_string): Delete.
10295 (ada_main_name): Reimplement using target_read_string instead of
10296 extract_string.
10297
335d71d6
AS
102982009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10299
10300 * m68klinux-nat.c: Remove obsolete comment.
10301 (fetch_register, store_register): Don't call
10302 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
10303 which are always nops here.
10304
732f6a93
TT
103052009-04-14 Tom Tromey <tromey@redhat.com>
10306
10307 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
10308 (c_printstr): Likewise.
10309 * charset.c: Include gdb_wait.h.
10310 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
10311 (find_charset_names): Use pexecute. Handle libiconv's output.
10312 Detect errors.
10313 (_initialize_charset): Use xstrdup.
10314 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
10315 cases.
10316 (INTERMEDIATE_ENCODING): New define.
10317 * configure, config.in: Rebuild.
10318 * configure.ac: Check for btowc.
10319
334cc82d
TT
103202009-04-15 Tom Tromey <tromey@redhat.com>
10321
10322 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
10323
27e3013d
EZ
103242009-04-15 Eli Zaretskii <eliz@gnu.org>
10325
10326 * utils.c (parse_escape): Initialize target_char to pacify GCC.
10327
8ea5dfdf
JK
103282009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
10331
88c15c34
PM
103322009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
10333
10334 ARI fix: sprintf rule.
10335 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
10336 * ada-lang.c (add_angle_brackets): Use xstrprintf.
10337 (ada_decode): Replace sprintf by xsnprintf.
10338 (find_old_style_renaming_symbol): Ditto.
10339 (ada_to_fixed_type_1, ada_enum_name): Ditto.
10340
10341
efbd6e75
JB
103422009-04-14 Joel Brobecker <brobecker@adacore.com>
10343
10344 * target.c (target_mourn_inferior): Call bfd_cache_close_all
10345 after having executed the target mourn_inferior routine.
10346
b46df7a1
EZ
103472009-04-14 Eli Zaretskii <eliz@gnu.org>
10348
10349 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
10350 undefined.
10351
2facfe5c
DD
103522009-04-13 David Daney <ddaney@caviumnetworks.com>
10353
10354 * infrun.c (maybe_software_singlestep): New function.
10355 (resume): Call maybe_software_singlestep.
10356 (handle_inferior_event): Same.
10357
18e8c3bc
TT
103582009-04-13 Tom Tromey <tromey@redhat.com>
10359
10360 * python/python-frame.c (frapy_richcompare): Return
10361 Py_NotImplemented, not an error. Handle Py_NE as well.
10362
e726d784
EZ
103632009-04-13 Eli Zaretskii <eliz@gnu.org>
10364
10365 * charset.c (EILSEQ): Define if not defined by system headers.
10366
685af672
EZ
103672009-04-11 Eli Zaretskii <eliz@gnu.org>
10368
238f4807 10369 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
a2effb2e 10370 to be consistent with renaming config.intl.in into config_intl.in.
238f4807 10371
c03b3c32
EZ
10372 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
10373 consistent with the change from 2008-11-09.
685af672 10374
c16abbde
JK
103752009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 * gdbtypes.c: Remove excessive parentheses at the return keywords.
2dbd25e5 10378 * varobj.c (varobj_invalidate): Fix indentation.
f4a34a08 10379 * varobj.c (varobj_invalidate): Fix formatting text width.
c16abbde 10380
143260c9
VP
103812009-04-08 Vladimir Prus <vladimir@codesourcery.com>
10382
10383 Implement -exec-jump.
10384
10385 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
10386 * mi/mi-main.c (mi_cmd_exec_jump): New.
10387 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
10388
d10c338d
DE
103892009-04-07 Doug Evans <dje@google.com>
10390
10391 * symfile.c (symbol_file_clear): Fix indentation.
10392
e5a6ba44
MK
103932009-04-06 Mark Kettenis <kettenis@gnu.org>
10394
10395 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
10396
409c383c
UW
103972009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
10398
10399 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
10400 (ppc_linux_auxv_parse): New function.
10401 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
10402 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
10403
104042009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
9592c5d0
UW
10405
10406 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
10407 BFD to contents of SPU name note.
10408 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
10409 with "from_tty" argument 1 instead of 0.
10410
de40b933
JK
104112009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10412
10413 * dwarf2read.c
10414 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
10415 Create the symbol in local scope.
10416 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
10417
6cbbcdfe
KS
104182009-04-02 Keith Seitz <keiths@redhat.com>
10419
10420 * stabsread.c (read_member_functions): GCC may emit an extra space
10421 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
10422 whitespace when looking for these functions.
10423
476f7b68
JB
104242009-04-01 Joel Brobecker <brobecker@adacore.com>
10425
10426 Change the default value for "set print frame-arguments" to scalars.
10427
10428 * stack.c (print_frame_arguments): Set initial value to "scalars".
10429
865093a3
AR
104302009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
10431
10432 * mips-tdep.c (mips_numeric_register_alieses): New definition.
cfd53605 10433 (mips_gdbarch_init): Add user registers from
865093a3
AR
10434 mips_numeric_register_aliases.
10435
5d3b6af6
JB
104362009-04-01 Joel Brobecker <brobecker@adacore.com>
10437
10438 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
10439
9db03742
JB
104402009-04-01 Joel Brobecker <brobecker@adacore.com>
10441
10442 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
10443 this is the last one.
10444
0d8f58ca
PA
104452009-04-01 Pedro Alves <pedro@codesourcery.com>
10446
10447 * remote.c (append_resumption): New.
10448 (remote_vcont_resume): Use it.
10449
1e2f1c5c
JB
104502009-04-01 Joel Brobecker <brobecker@adacore.com>
10451
10452 * windows-nat.c (+windows_get_ada_task_ptid): New function.
10453 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
10454
71c25dea
TT
104552009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
10456 Keith Seitz <keiths@redhat.com>
10457 Jan Kratochvil <jan.kratochvil@redhat.com>
10458
10459 PR gdb/6817
10460 * Makefile.in (dbxread.o): Update.
10461 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
10462 * dwarf2read.c (GDB_FORM_cached_string): New.
10463 (read_partial_die): Use dwarf2_canonicalize_name.
10464 (dwarf2_linkage_name): Use dwarf2_name.
10465 (dwarf2_canonicalize_name): New.
10466 (dwarf2_name): Use dwarf2_canonicalize_name.
10467 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
10468 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
10469 * symtab.c (lookup_symbol_in_language): Canonicalize input before
10470 searching.
10471 * cp-name-parser.y: operator() requires two parameters,
10472 according to libiberty.
10473 * minsyms.c (lookup_minimal_symbol): Canonicalize input
10474 before searching.
10475 * NEWS: Update.
10476
4a306c9a
JB
104772009-03-31 Joel Brobecker <brobecker@adacore.com>
10478
10479 Provide support for (Ada) task-specific breakpoints.
10480
10481 * ada-lang.h (ada_get_task_number): Add declaration.
10482 (breakpoint_ada_task_match): Delete declaration.
10483 * ada-tasks.c (ada_get_task_number): Make non-static.
10484 * breakpoint.h (struct breakpoint): Add field "task".
10485 * breakpoint.c (print_one_breakpoint_location): Add handling of
10486 task-specific breakpoints.
10487 (create_breakpoint, create_breakpoints, find_condition_and_thread):
10488 New parameter "task".
10489 (break_command_really): Update calls to find_condition_and_thread
10490 and create_breakpoints.
10491 (breakpoint_re_set_one): Update call to find_condition_and_thread.
10492 Set b->task.
10493
4a5a9917
JB
104942009-03-31 Joel Brobecker <brobecker@adacore.com>
10495
10496 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
10497
bad34192
PA
104982009-03-31 Pedro Alves <pedro@codesourcery.com>
10499
10500 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
10501 if the thread's ptid without a thread id field is in the list
10502 before calling thread_change_ptid.
10503 (extended_remote_attach_1): In non-stop mode, do not rely on
10504 querying the current thread, instead, query the thread list, and
10505 select the first thread of the process.
10506 * gdbthread.h (first_thread_of_process): Declare.
10507 * thread.c (first_thread_of_process): Define.
10508
1042e4c0
SS
105092009-03-30 Stan Shebs <stan@codesourcery.com>
10510
10511 Make tracepoints into a type of breakpoint.
10512 * breakpoint.h (enum bptype): Add bp_tracepoint.
10513 (struct breakpoint): Add fields step_count, pass_count, actions.
10514 (get_tracepoint, get_tracepoint_by_number): Declare.
10515 (all_tracepoints): Declare.
10516 * breakpoint.c: Include tracepoint.h, readline.h.
10517 (ALL_TRACEPOINTS): Move here from tracepoint.c.
10518 (tracepoint_count): Ditto.
10519 (should_be_inserted): GDB does not insert tracepoints itself.
10520 (print_it_typical): Add tracepoint case.
10521 (bpstat_what): Ditto.
10522 (print_one_breakpoint_location): Ditto, and add printing for
10523 pass count, step count, and action list.
10524 (user_settable_breakpoint): Add tracepoint case.
10525 (allocate_bp_location): Ditto.
10526 (set_breakpoint_location_function): Ditto.
10527 (disable_breakpoints_in_shlibs): Ditto.
10528 (mention): Ditto.
10529 (break_command_really): Add argument traceflag, use to choose
10530 basic breakpoint type.
10531 (break_command_1): Pass extra argument.
10532 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
10533 (breakpoint_re_set_one): Add tracepoint case.
10534 (disable_command, enable_command): Ditto.
10535 (set_tracepoint_count): Move here from tracepoint.c.
10536 (trace_command): Move here from tracepoint.c and use
10537 break_command_really.
10538 (tracepoints_info): Move here from tracepoint.c and call
10539 breakpoints_info.
10540 (enable_trace_command): Move here from tracepoint.c and call
10541 enable_command.
10542 (disable_trace_command): Move here from tracepoint.c and call
10543 disable_command.
10544 (delete_trace_command): Move here from tracepoint.c and call
10545 delete_breakpoint.
10546 (trace_pass_command): Move here from tracepoint.c.
10547 (get_tracepoint_by_number): Ditto.
10548 (tracepoint_save_command): Ditto.
10549 (get_tracepoint): New function.
10550 (all_tracepoints): New function.
10551 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
10552 deprecate "enable trace" and "disable trace" commands.
10553 * tracepoint.h (struct tracepoint): Remove.
10554 (tracepoint_chain): Remove decl.
10555 (deprecated_create_tracepoint_hook): Remove decl.
10556 (deprecated_delete_tracepoint_hook): Remove decl.
10557 (deprecated_modify_tracepoint_hook): Remove decl.
10558 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
10559 (free_actions): Update signature.
10560 (validate_actionline): Update signature.
10561 (end_actions_pseudocommand): Declare.
10562 (while_stepping_pseudocommand): Declare.
10563 * tracepoint.c: Include breakpoint.h.
10564 (tracepoint_chain, tracepoint_count): Remove.
10565 (free_actions, make_cleanup_free_actions): Update signature.
10566 (trace_command, set_raw_tracepoint): Remove.
10567 (trace_mention): Remove.
10568 (tracepoints_info): Remove.
10569 (tracepoint_operation, map_args_over_tracepoints): Remove.
10570 (get_tracepoint_by_number): Remove.
10571 (enable_trace_command, disable_trace_command): Remove.
10572 (delete_trace_command, trace_pass_command): Remove.
10573 (trace_actions_command, read_actions): Update signature.
10574 (validate_actionline): Update signature, use bp loc.
10575 (encode_actions): Ditto.
10576 (download_tracepoint): New function, body of trace_start_command.
10577 (trace_start_command): Call it, use all_tracepoints.
10578 (tracepoint_save_command): Remove.
10579 (tracepoint_dump_command): Use get_tracepoint.
10580 (end_actions_pseudocommand): Make globally visible.
10581 (while_stepping_pseudocommand): Ditto.
10582 (_initialize_tracepoint): Move command definitions to breakpoint.c.
10583
f8f6f20b
TJB
105842009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10585
10586 Expose frames to Python.
10587 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
10588 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
10589 (python-frame.o): New target.
10590 * python/python-frame.c: New file.
10591 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
10592 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
10593 gdbpy_initialize_frames): New prototypes.
10594 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
10595 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
10596 entries.
10597 * stack.c (find_frame_funname): New function, factored out of
10598 print_frame.
10599 (print_frame): Call find_frame_funname.
10600 * stack.h (find_frame_funname): Add prototype.
10601
77316f4c
TJB
106022009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
10603
10604 Remove unused value_object attribute `owned_by_gdb'.
10605 * python/python-value.c (value_object): Remove owned_by_gdb
10606 attribute.
10607 (valpy_dealloc): Remove reference to self->owned_by_gdb.
10608 (valpy_new): Likewise.
10609 (value_to_value_object): Likewise.
10610
c0c6f777
TJB
106112009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
10612
10613 Change gdb.Value.address from a method to an attribute.
10614 * python/python-value.c (value_object): Add `address' element.
10615 (valpy_dealloc): Decrement reference to self->address if set.
10616 (valpy_new): Initialize val_obj->address.
10617 (valpy_address): Rename to ...
10618 (valpy_get_address): ... this. Change signature from method to
10619 attribute. Update self->address if not set.
10620 (value_to_value_object): Initialize val_obj->address.
10621 (value_object_getset): Add `address' element.
10622 (value_object_methods): Remove `address' element.
10623
c2c8d75b
AS
106242009-03-29 Andreas Schwab <schwab@linux-m68k.org>
10625
10626 * observer.sh: Set LANG/LC_ALL to C, not c.
10627
1b31f75d
KB
106282009-03-28 Kevin Buettner <kevinb@redhat.com>
10629
10630 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
10631 `char' is unsigned.
10632
f91d3df5
PA
106332009-03-28 Pedro Alves <pedro@codesourcery.com>
10634
10635 * remote.c (remote_stop_ns): If multi-process extensions are off,
10636 and GDB is requesting the whole process to stop, sent "vCont;t",
10637 not "vCont;t:-1"
10638
7b0e8051
PA
106392009-03-28 Pedro Alves <pedro@codesourcery.com>
10640
10641 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
10642 null inferior_ptid.
10643
5362e076
EZ
106442009-03-27 Eli Zaretskii <eliz@gnu.org>
10645
10646 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
10647
88fc996f
DE
106482009-03-26 Doug Evans <dje@google.com>
10649
10650 * thread.c (do_restore_current_thread_cleanup): Redo test for
10651 whether to restore old->inferior_ptid.
10652
56ef84b1
TT
106532009-03-26 Tom Tromey <tromey@redhat.com>
10654
10655 * breakpoint.c (resolve_sal_pc): Preserve original line number
10656 when skipping prologue.
10657
a5321aa4
DE
106582009-03-26 Doug Evans <dje@google.com>
10659
10660 * thread.c (inferior_thread) Remove "extern" in definition.
10661
def2b000
TJB
106622009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
10663
10664 Add gdb.Value.is_optimized_out attribute.
10665 * python/python-value.c (valpy_get_is_optimized_out): New
10666 function.
10667 (value_object_getset): New variable.
10668 (value_object_type): Initialize tp_getset element.
10669
442ddf59
JK
106702009-03-26 Joel Brobecker <brobecker@adacore.com>
10671
10672 Recognize missing DW_AT_location as <value optimized out>.
10673 * dwarf2read.c
10674 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
10675 Call add_symbol_to_list.
10676
78485d59
TT
106772009-03-25 Tom Tromey <tromey@redhat.com>
10678
10679 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
10680 * stack.c (print_this_frame_argument_p): Use check_typedef.
10681
94ae1714
TT
106822009-03-25 Tom Tromey <tromey@redhat.com>
10683
10684 * configure: Rebuild.
10685 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
10686 Rearrange flags setting. Add comments.
10687
2bc57ae3
PM
106882009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
10689
10690 * config/i386/nm-i386.h: Remove code within
10691 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
10692 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
10693 macro.
10694 * config/i386/nm-cygwin64.h: Ditto.
10695 * config/i386/nm-fbsd.h: Ditto.
10696 * config/i386/nm-go32.h: Ditto.
10697 * config/i386/nm-linux.h: Ditto.
10698 * config/i386/nm-linux64.h: Ditto.
10699
549ba0f8
PM
107002009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
10701
10702 ARI fix: "xasprintf" rule.
10703 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
10704
68c97600
PA
107052009-03-25 Pedro Alves <pedro@codesourcery.com>
10706
10707 * remote.c (remote_start_remote): In non-stop mode, call
10708 init_wait_for_inferior before adding threads and inferiors.
10709
a6f1cd96
JB
107102009-03-25 Joel Brobecker <brobecker@adacore.com>
10711
10712 * breakpoint.c (breakpoint_thread_match): Split a large condition
10713 into several smaller conditions. No behavior change.
10714
dbfb4bc7 107152009-03-25 Pedro Alves <pedro@codesourcery.com>
a07daef3
PA
10716
10717 * infrun.c (infrun_thread_thread_exit): New.
10718 (_initialize_infrun): Attach it to the thread_exit observer.
10719 * thread.c (delete_thread_1): Always call the observer, passing it
10720 the silent flag.
10721 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
10722 SILENT, return immediately.
10723
d729566a
PA
107242009-03-25 Pedro Alves <pedro@codesourcery.com>
10725
10726 * infrun.c (normal_stop): Use has_stack_frames instead of
10727 target_has_stack.
10728 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
10729 when there is no thread selected.
10730 (mi_cmd_execute): Don't special case commands that can run without
10731 a valid selected thread.
10732 * top.c (execute_command): Don't special case commands that can
10733 run without a valid selected thread. Use has_stack_frames.
10734 * infcmd.c (ensure_valid_thread): New.
10735 (continue_1, step_1, jump_command, signal_command): Use it.
10736 (detach_command): Error out if there's no selected thread/inferior.
10737 * thread.c (print_thread_info): Allow having no thread selected.
10738 (switch_to_thread): Don't read the PC if there is no current thread.
10739 (do_restore_current_thread_cleanup): Don't record the current
10740 frame if there is no current thread.
10741 (make_cleanup_restore_current_thread): Don't read frame info if
10742 there is no selected thread.
10743 (_initialize_thread): Don't mark commands as
10744 "no_selected_thread_ok".
10745 * frame.c (get_current_frame): Error out if there is no valid
10746 selected thread.
10747 (has_stack_frames): Return false if there is no valid
10748 selected thread.
10749 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
10750 "no_selected_thread_ok".
10751 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
10752 (get_cmd_no_selected_thread_ok): Delete.
10753 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
10754 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
10755 Delete declaration.
10756 * stack.c (get_selected_block): Use has_stack_frames.
10757
f04c6d38
TJB
107582009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
10759
10760 Fix size of FPSCR in Power 7 processors.
10761 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
10762 (PPC_FEATURE_HAS_DFP): New #define.
10763 (ppc_linux_read_description): Check for DFP feature instead of
10764 ISA 2.05 to decide on size of the FPSCR.
10765
6c02c64c
KB
107662009-03-25 Kevin Buettner <kevinb@redhat.com>
10767
10768 * mn10300-tdep.c (trad-frame.h): Don't include.
10769 (prologue-value.h): Include.
10770 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
10771 (struct mn10300_prologue): Define.
10772 (push_reg, translate_rreg, check_for_saved): New functions.
10773 (mn10300_analyze_prologue): Rewrite, using prologue-value
10774 machinery. Handle more instructions than before. Permit
10775 instructions to occur in any order.
10776 (mn10300_skip_prologue): Find the extents of the function
10777 in question; mn10300_analyze_prologue no longer does this.
10778 (mn10300_analyze_frame_prologue): New function.
10779 (mn10300_frame_base): New function.
10780 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
10781 implementation.
10782 (mn10300_frame_prev_register): Likewise.
10783 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
10784 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
10785 `this_frame'.
10786 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
10787
67c296a2
PM
107882009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
10789
10790 Fix completer problem for filename completion on the first try.
10791
10792 * gdb/completer.h (gdb_completion_word_break_characters): New function.
10793 * gdb/completer.c: Include gdb_assert.h.
10794 (complete_line_internal_reason): New enum.
10795 (complete_line_internal): Change last argument type to
10796 complete_line_internal_reason.
10797 Modify function to handle the different complete_line_internal_reason
10798 argument values.
10799 (complete_line): Adapt to change in complete_line_internal.
10800 (command_completer): Ditto.
10801 (gdb_completion_word_break_characters): Implement new function.
10802 * top.c (init_main): Set rl_completion_word_break_hook to
10803 gdb_completion_word_break_characters.
c2c8d75b 10804
67c296a2 10805
1a6d2f2f
PM
108062009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
10807
10808 ARI fix: "strlen d_name" rule.
10809 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
10810
10811
fc3b640d
TT
108122009-03-24 Tom Tromey <tromey@redhat.com>
10813 Pedro Alves <pedro@codesourcery.com>
10814
10815 * configure, config.in: Rebuild.
10816 * configure.ac: Check for libiconvlist.
10817 * charset.c: Check HAVE_LIBICONVLIST.
10818 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
10819 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
10820 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
10821 Remove.
10822 (INTERNAL_CFLAGS_BASE): Update.
10823 (INTERNAL_LDFLAGS): Update.
10824 (CLIBS): Update.
10825
76a39ba7
JK
108262009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10827
10828 * configure.ac: Initialize the variable $PREFER_CURSES.
10829 * configure: Regenerated.
10830
bd8a8e1b
JK
108312009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10832
10833 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
10834 * configure: Regenerated.
10835
a3224241
PM
108362009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
10837
10838 ARI fix: "strerror" rule.
10839 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
10840 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
10841
6cdd57f4
JB
108422009-03-23 Joel Brobecker <brobecker@adacore.com>
10843
10844 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
10845 before looking up the fields inside our struct type.
10846
17466c1a
JB
108472009-03-23 Joel Brobecker <brobecker@adacore.com>
10848
10849 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
10850 trying to resolve the type qualification.
10851
8008e265
JB
108522009-03-23 Joel Brobecker <brobecker@adacore.com>
10853
10854 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
10855 we try to apply the attribute on the real type, rather than
10856 its associated typedef.
10857
31dedfee
JB
108582009-03-23 Joel Brobecker <brobecker@adacore.com>
10859
10860 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
10861 to make sure we try to get the modulus of the actual type, not the
10862 associated typedef.
10863
5bc23cb3
JB
108642009-03-23 Joel Brobecker <brobecker@adacore.com>
10865
10866 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
10867 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
10868 to get the real type, not the associated typedef.
10869
872c8b51
JB
108702009-03-23 Joel Brobecker <brobecker@adacore.com>
10871
10872 * ada-lang.c (ada_get_field_index): Add handling of the case
10873 when TYPE is a typedef of a struct.
10874
dcb626be
JB
108752009-03-23 Joel Brobecker <brobecker@adacore.com>
10876
e0cfd8e3 10877 Add gdb_usleep as a portable version of usleep based on gdb_select.
dcb626be
JB
10878 * gdb_usleep.h, gdb_usleep.c: New files.
10879 * Makefile.in (SFILES): Add gdb_usleep.c.
10880 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
10881 (COMMON_OBS): Add gdb_usleep.o.
10882 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
10883 by call to gdb_usleep.
10884
24be086d
JB
108852009-03-23 Joel Brobecker <brobecker@adacore.com>
10886
10887 * buildsym.c (end_symtab): If we ignore the subfiles, then
10888 unlink the associated symtabs if they were already allocated.
10889
cb01cfba
JB
108902009-03-23 Jerome Guitton <guitton@adacore.com>
10891
10892 Provide a way to force building of GDB with libcurses.
10893 * configure.ac: Add --with-curses.
10894 * configure: Regenerated.
10895
9c482037
TT
108962009-03-23 Tom Tromey <tromey@redhat.com>
10897
10898 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
10899 error message.
10900
e2dd7057
PP
109012009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
10902
10903 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
10904 solib_contains_address_p instead of searching.
c2c8d75b 10905
0dd7fb99
TT
109062009-03-23 Tom Tromey <tromey@redhat.com>
10907
10908 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
10909 (iconv): Make 'inbuf' argument const.
10910 (convert_between_encodings): Use ICONV_CONST.
10911 (wchar_iterate): Likewise.
10912
418c6cb3
CF
109132009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
10914
10915 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
10916 dynamically loaded function.
10917 (LookupPrivilegeValueA): Ditto.
10918 (OpenProcessToken): Ditto.
10919 (AdjustTokenPrivileges): Rename and define placeholder for address of
c2c8d75b 10920 dynamically loaded function.
418c6cb3
CF
10921 (LookupPrivilegeValueA): Ditto.
10922 (OpenProcessToken): Ditto.
10923 (set_process_privilege): Remove check for loaded functions.
10924 (bad_OpenProcessToken): Define.
10925 (_initialize_loadable): Load token functions from advapi here, setting
10926 OpenProcessToken function to a dummy static function which always return
10927 error if OS doesn't support this functionality.
10928
695de547
CF
109292009-03-22 Nicolas Roche <roche@adacore.com>
10930 Christopher Faylor <me+cygwin@cgf.cx>
10931
10932 * win32-nat.c (ctrl_c_handler): New function.
10933 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
10934 is run in a separate console.
10935
2b008701
CF
109362009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
10937
10938 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
10939 for dynamically loaded function.
10940 (DebugBreakProcess): Ditto.
10941 (DebugSetProcessKillOnExit): Ditto.
10942 (EnumProcessModules): Ditto.
10943 (GetModuleFileNameExA): Ditto.
10944 (GetModuleInformation): Ditto.
10945 (DebugActiveProcessStop): Rename and define placeholder for address of
418c6cb3 10946 dynamically loaded function.
2b008701
CF
10947 (DebugBreakProcess): Ditto.
10948 (DebugSetProcessKillOnExit): Ditto.
10949 (EnumProcessModules): Ditto.
10950 (GetModuleFileNameExA): Ditto.
10951 (GetModuleInformation): Ditto.
10952 (psapi_loaded): Delete.
10953 (get_module_name): Don't check psapi_loaded, just rely on the fact that
10954 dynamically loaded functions will return failure if they weren't
10955 previously found.
10956 (has_detach_ability): Delete.
10957 (windows_attach): Remove call to has_detach_ability (). Just rely on
10958 functions being callable.
10959 (bad_DebugActiveProcessStop): Define.
10960 (bad_DebugBreakProcess): Ditto.
10961 (bad_DebugSetProcessKillOnExit): Ditto.
10962 (bad_EnumProcessModules): Ditto.
10963 (bad_GetModuleFileNameExA): Ditto.
10964 (bad_GetModuleInformation): Ditto.
10965 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
10966 dynamic storage here, setting nonexistent functions to dummy static
10967 functions which always return error.
10968
f3b1572e
PA
109692009-03-22 Pedro Alves <pedro@codesourcery.com>
10970
10971 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
10972 to the about_to_proceed observer notification.
10973 (mi_about_to_proceed): New.
10974 (mi_on_resume): Only output ^running and the prompt here if the
10975 target was proceeded.
10976 * breakpoint.c (breakpoint_proceeded): New static.
10977 (breakpoint_about_to_proceed): New.
10978 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
10979 the about_to_proceed observer notification.
10980 * inferior.h (breakpoint_proceeded): Delete declaration.
10981 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
10982 Notify the about_to_proceed observers.
10983 (struct inferior_status): Delete breakpoint_proceeded member.
10984 (save_inferior_status): Don't save it.
10985 (restore_inferior_status): Don't restore it.
10986 * mi-main.h (mi_proceeded): Declare.
10987 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
10988 a command.
10989
c5a4d20b
PA
109902009-03-22 Pedro Alves <pedro@codesourcery.com>
10991
10992 * gdbthread.h (struct thread_info): Add in_infcall member.
10993 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
10994 Remove reverences to suppress_resume_observer. Refresh
10995 `call_thread' after returning from `proceed'.
10996 * infcmd.c (suppress_resume_observer): Delete.
10997 * inferior.h (suppress_resume_observer): Delete declaration.
10998 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
10999 inferior function.
11000 * thread.c (set_running): Remove references to
11001 suppress_resume_observer.
11002 * infrun.c (struct inferior_status): Add in_infcall member.
11003 (save_inferior_status): Save it.
11004 (restore_inferior_status): Restore it.
11005
41d2bdb4
PA
110062009-03-22 Pedro Alves <pedro@codesourcery.com>
11007
11008 * infcall.c (run_inferior_call): Remove references to
11009 suppress_stop_observer.
11010 * infcmd.c (suppress_stop_observer): Delete.
11011 (finish_command_continuation): Remove NOTE. Don't clear
11012 suppress_stop_observer anymore.
11013 (finish_command_continuation_free_arg): Likewise.
11014 (finish_forward): Remove references to suppress_stop_observer.
11015 Call normal_stop observer if we haven't already.
11016 * inferior.h (suppress_stop_observer): Delete.
11017 * infrun.c (normal_stop): When deciding to suppress the
11018 normal_stop observer, check for proceed_to_finish instead of
11019 suppress_stop_observer.
11020
065a2c74
PA
110212009-03-22 Pedro Alves <pedro@codesourcery.com>
11022
11023 * symfile.c (symfile_relocate_debug_section): Remove check for
11024 SEC_DEBUGGING.
11025
cc924cad
TJB
110262009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11027 Jim Blandy <jimb@red-bean.com>
11028 Thiago Jung Bauermann <bauerman@br.ibm.com>
11029 Tom Tromey <tromey@redhat.com>
11030
11031 Miscellaneous fixes to the Python code.
11032 * python/python-cmd.c (cmdpy_init): Accept keyword
11033 arguments.
11034 * python/python-value.c (valpy_string): Accept keyword
11035 arguments.
11036 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
11037 Do not call value_to_value_object on NULL RES_VAL.
11038 (value_object_methods): Change `string' entry to also accept
11039 keyword arguments.
11040 (convert_value_from_python): Return a copy of the value if obj is
11041 a gdb.Value object.
11042 (value_object_methods): Mark the `string' method as accepting
11043 keywords, and show method "prototype" in the doc string.
11044 * python/python.c (get_parameter): Don't return inside a
11045 TRY_CATCH.
11046
bc3b79fd
TJB
110472009-03-20 Tom Tromey <tromey@redhat.com>
11048
11049 Add support for convenience functions in Python.
11050 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
11051 (SUBDIR_PYTHON_SRCS): Add python-function.c.
11052 (python-function.o): New target.
11053 * eval.c: Include "python/python.h" and <ctype.h>.
11054 (evaluate_subexp_standard): Handle values of type
11055 TYPE_CODE_INTERNAL_FUNCTION.
11056 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
11057 * parse.c (write_exp_string): Remove duplicate word in comment.
11058 * python/python-function.c: New file.
11059 * python/python-internal.h (gdbpy_initialize_functions): Add
11060 prototype.
11061 * python/python.c (_initialize_python): Call
11062 gdbpy_initialize_functions.
11063 * valprint.c (value_check_printable): Handle values of type
11064 TYPE_CODE_INTERNAL_FUNCTION.
11065 * value.c: Include "cli/cli-decode.h".
11066 (internal_function): New struct.
11067 (functionlist, internal_fn_type): New static variables.
11068 (lookup_only_internalvar,
11069 lookup_internalvar): Add const qualifier to name argument.
11070 (create_internalvar): Likewise. Initialize new field.
11071 (set_internal_var): Fix typo in comment. Don't allow assignment
11072 to canonical variable.
11073 (value_create_internal_function, value_internal_function_name,
11074 call_internal_function, function_command, function_destroyer,
11075 add_internal_function): New functions.
11076 (_initialize_values): Create `function' placeholder command.
11077 Initialize internal_fn_type.
11078 * value.h (lookup_only_internalvar, create_internalvar,
11079 lookup_internalvar): Add const qualifier to name argument.
11080 (internal_function_fn, add_internal_function, call_internal_function,
11081 value_internal_function_name): Add prototypes.
11082 (struct internalvar) <canonical>: New field.
11083
546e879e
TT
110842009-03-20 Tom Tromey <tromey@redhat.com>
11085
11086 * c-lang.c (evaluate_subexp_c): Call check_typedef.
11087
6c7a06a3
TT
110882009-03-20 Tom Tromey <tromey@redhat.com>
11089 Julian Brown <julian@codesourcery.com>
11090
11091 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
11092 PR i18n/9401, PR exp/9613:
11093 * NEWS: Update
11094 * value.h (value_typed_string): Declare.
11095 (val_print_string): Update.
11096 * valprint.h (print_char_chars): Update.
11097 * valprint.c (print_char_chars): Add type argument. Update.
11098 (val_print_string): Likewise.
11099 * valops.c (value_typed_string): New function.
11100 * utils.c (host_char_to_target): New function.
11101 (parse_escape): Use host_char_to_target, host_hex_value. Update.
11102 Remove '^' case.
11103 (no_control_char_error): Remove.
11104 * typeprint.c (print_type_scalar): Update.
11105 * scm-valprint.c (scm_scmval_print): Update.
11106 * scm-lang.h (scm_printchar, scm_printstr): Update.
11107 * scm-lang.c (scm_printchar): Add type argument.
11108 (scm_printstr): Likewise.
11109 * printcmd.c (print_formatted): Update.
11110 (print_scalar_formatted): Update.
11111 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
11112 Handle '%lc' and '%ls'.
11113 * parser-defs.h (struct typed_stoken): New type.
11114 (struct stoken_vector): Likewise.
11115 (write_exp_string_vector): Declare.
11116 * parse.c (write_exp_string_vector): New function.
11117 * p-valprint.c (pascal_val_print): Update.
11118 * p-lang.h (is_pascal_string_type, pascal_printchar,
11119 pascal_printstr): Update.
11120 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
11121 Add 'char_type' argument.
11122 (pascal_emit_char): Add type argument.
11123 (pascal_printchar): Likewise.
11124 (pascal_printstr): Likewise.
11125 * objc-lang.c (objc_emit_char): Add type argument.
11126 (objc_printchar): Likewise.
11127 (objc_printstr): Likewise.
11128 * macroexp.c (get_character_constant): Handle unicode characters.
11129 Use c_parse_escape.
11130 (get_string_literal): Handle unicode strings. Use
11131 c_parse_escape.
11132 * m2-valprint.c (print_unpacked_pointer): Update.
11133 (m2_print_array_contents): Update.
11134 (m2_val_print): Update.
11135 * m2-lang.c (m2_emit_char): Add type argument.
11136 (m2_printchar): Likewise.
11137 (m2_printstr): Likewise.
11138 * language.h (struct language_defn) <la_printchar>: Add type
11139 argument.
11140 <la_printstr, la_emitchar>: Likewise.
11141 (LA_PRINT_CHAR): Likewise.
11142 (LA_PRINT_STRING): Likewise.
11143 (LA_EMIT_CHAR): Likewise.
11144 * language.c (unk_lang_emit_char): Add type argument.
11145 (unk_lang_printchar): Likewise.
11146 (unk_lang_printstr): Likewise.
11147 * jv-valprint.c (java_val_print): Update.
11148 * jv-lang.c (java_emit_char): Add type argument.
11149 * f-valprint.c (f_val_print): Update.
11150 * f-lang.c (f_emit_char): Add type argument.
11151 (f_printchar): Likewise.
11152 (f_printstr): Likewise.
11153 * expprint.c (print_subexp_standard): Update.
11154 * charset.h (target_wide_charset): Declare.
11155 (c_target_char_has_backslash_escape, c_parse_backslash,
11156 host_char_print_literally, host_char_to_target,
11157 target_char_to_host, target_char_to_control_char): Remove.
11158 (enum transliterations): New type.
11159 (convert_between_encodings): Declare.
11160 (HOST_ESCAPE_CHAR): New define.
11161 (host_letter_to_control_character, host_hex_value): Declare.
11162 (enum wchar_iterate_result): New enum.
11163 (struct wchar_iterator): Declare.
11164 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
11165 wchar_push_back): Declare.
11166 * charset-list.h: New file.
11167 * c-valprint.c (textual_name): New function.
11168 (textual_element_type): Handle wide character types.
11169 (c_val_print): Pass original type to textual_element_type. Handle
11170 wide character types.
11171 (c_value_print): Use textual_element_type. Pass original type of
11172 value to val_print.
11173 * c-lang.h (enum c_string_type): New type.
11174 (c_printchar, c_printstr): Update.
11175 * c-lang.c (classify_type): New function.
11176 (print_wchar): Likewise.
11177 (c_emit_char): Add type argument. Handle wide characters.
11178 (c_printchar): Likewise.
11179 (c_printstr): Add type argument. Handle wide and multibyte
11180 character sets.
11181 (convert_ucn): New function.
11182 (emit_numeric_character): Likewise.
11183 (convert_octal): Likewise.
11184 (convert_hex): Likewise.
11185 (ADVANCE): New macro.
11186 (convert_escape): New function.
11187 (parse_one_string): Likewise.
11188 (evaluate_subexp_c): Likewise.
11189 (exp_descriptor_c): New global.
11190 (c_language_defn): Use exp_descriptor_c.
11191 (cplus_language_defn): Likewise.
11192 (asm_language_defn): Likewise.
11193 (minimal_language_defn): Likewise.
11194 (charset_for_string_type): New function.
11195 * c-exp.y (%union): Add 'svec' and 'tsval'.
11196 (CHAR): New token.
11197 (exp): Add CHAR production.
11198 (string_exp): Rewrite.
11199 (exp) <string_exp>: Rewrite.
11200 (tempbuf): Now global.
11201 (tempbuf_init): New global.
11202 (parse_string_or_char): New function.
11203 (yylex) <tempbuf>: Now global.
11204 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
11205 Remove.
11206 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
11207 (c_parse_escape): New function.
11208 * auxv.c (fprint_target_auxv): Update.
11209 * ada-valprint.c (ada_emit_char): Add type argument.
11210 (ada_printchar): Likewise.
11211 (ada_print_scalar): Update.
11212 (printstr): Add type argument. Update calls to ada_emit_char.
11213 (ada_printstr): Add type argument.
11214 (ada_val_print_array): Update.
11215 (ada_val_print_1): Likewise.
11216 * ada-lang.c (emit_char): Add type argument.
11217 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
11218 type arguments.
11219 * gdb_locale.h: Include langinfo.h.
11220 * charset.c (_initialize_charset): Set default host charset from
11221 the locale. Don't register charsets. Add target-wide-charset
11222 commands. Call find_charset_names.
11223 (struct charset, struct translation): Remove.
11224 (GDB_DEFAULT_HOST_CHARSET): Remove.
11225 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
11226 (target_wide_charset_name): New global.
11227 (show_host_charset_name): Handle "auto".
11228 (show_target_wide_charset_name): New function.
11229 (host_charset_enum, target_charset_enum): Remove.
11230 (charset_enum): New global.
11231 (all_charsets, register_charset, lookup_charset, all_translations,
11232 register_translation, lookup_translation): Remove.
11233 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
11234 (iso_8859_print_literally, iso_8859_to_control,
11235 iso_8859_family_charset): Remove.
11236 (ebcdic_print_literally, ebcdic_to_control,
11237 ebcdic_family_charset): Remove.
11238 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
11239 register_iconv_charsets): Remove.
11240 (target_wide_charset_be_name, target_wide_charset_le_name): New
11241 globals.
11242 (identity_either_char_to_other): Remove.
11243 (set_be_le_names, validate): New functions.
11244 (backslashable, backslashed, represented): Remove.
11245 (default_c_target_char_has_backslash_escape): Remove.
11246 (default_c_parse_backslash, iconv_convert): Remove.
11247 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
11248 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
11249 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
11250 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
11251 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
11252 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
11253 (table_convert_char, table_translation, simple_table_translation):
11254 Remove.
11255 (current_host_charset, current_target_charset,
11256 c_target_char_has_backslash_escape_func,
11257 c_target_char_has_backslash_escape_baton): Remove.
11258 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
11259 (host_char_to_target_func, host_char_to_target_baton): Remove.
11260 (target_char_to_host_func, target_char_to_host_baton): Remove.
11261 (cached_iconv_host_to_target, cached_iconv_target_to_host):
11262 Remove.
11263 (lookup_charset_or_error, check_valid_host_charset): Remove.
11264 (set_host_and_target_charsets): Remove.
11265 (set_host_charset, set_target_charset): Remove.
11266 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
11267 (set_target_wide_charset_sfunc): New function.
11268 (show_charset): Print target wide character set.
11269 (host_charset, target_charset): Rewrite.
11270 (target_wide_charset): New function.
11271 (c_target_char_has_backslash_escape): Remove.
11272 (c_parse_backslash): Remove.
11273 (host_letter_to_control_character): New function.
11274 (host_char_print_literally): Remove.
11275 (host_hex_value): New function.
11276 (target_char_to_control_char): Remove.
11277 (cleanup_iconv): New function.
11278 (convert_between_encodings): New function.
11279 (target_char_to_host): Remove.
11280 (struct wchar_iterator): Define.
11281 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
11282 wchar_push_back): New functions.
11283 (do_cleanup_iterator): New function.
11284 (char_ptr): New typedef.
11285 (charsets): New global.
11286 (add_one, find_charset_names): New functions.
11287 (default_charset_names): New global.
11288 (auto_host_charset_name): Likewise.
11289 * aclocal.m4, config.in, configure: Rebuild.
11290 * configure.ac: Call AM_LANGINFO_CODESET.
11291 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
11292 (AM_ICONV): Invoke earlier.
11293 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
11294 LIBICONV_LIBDIR. Check for libiconv in build tree.
11295 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
11296 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
11297 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
11298 * gdb_obstack.h (obstack_grow_wstr): New define.
c2c8d75b
AS
11299 * gdb_wchar.h: New file.
11300 * defs.h: Include it.
6c7a06a3 11301
cb249c71
TT
113022009-03-20 Tom Tromey <tromey@redhat.com>
11303 Jan Kratochvil <jan.kratochvil@redhat.com>
11304
11305 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
11306 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
11307 typedef.
11308 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
11309 SYMBOL_TYPE result.
11310 * ada-typeprint.c (print_array_type): Do the NULL check
11311 unconditionally.
11312
16ad9370
TT
113132009-03-19 Tom Tromey <tromey@redhat.com>
11314
11315 * utils.c (do_obstack_free): New function.
11316 (make_cleanup_obstack_free): Likewise.
11317 * defs.h (make_cleanup_obstack_free): Declare.
11318
36dc683c
DE
113192009-03-18 Doug Evans <dje@google.com>
11320
89ecc4f5
DE
11321 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
11322 int, not a long long.
11323 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
11324
a411cd0e
DE
11325 * expprint.c (dump_raw_expression): Print note if non-NULL.
11326
36dc683c
DE
11327 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
11328 backwards.
11329
5b1ba0e5
NS
113302009-03-18 Nathan Sidwell <nathan@codesourcery.com>
11331
11332 * Makefile.in: Update license to GPLv3.
11333 * ada-exp.y: Update license to GPLv3.
11334 * ada-lex.l: Update license to GPLv3.
11335 * c-exp.y: Update license to GPLv3.
11336 * cp-name-parser.y: Update license to GPLv3.
11337 * darwin-nat-info.c: Update license to GPLv3.
11338 * f-exp.y: Update license to GPLv3.
11339 * gdb_thread_db.h: Update license to GPLv3.
11340 * hppanbsd-nat.c: Update license to GPLv3.
11341 * hppanbsd-tdep.c: Update license to GPLv3.
11342 * hppaobsd-tdep.c: Update license to GPLv3.
11343 * jv-exp.y: Update license to GPLv3.
11344 * m2-exp.y: Update license to GPLv3.
11345 * objc-exp.y: Update license to GPLv3.
11346 * p-exp.y: Update license to GPLv3.
11347 * reply_mig_hack.awk: Update license to GPLv3.
11348 * reverse.c: Update license to GPLv3.
11349 * xtensa-xtregs.c: Update license to GPLv3.
11350
8a2492ee
PA
113512009-03-18 Pedro Alves <pedro@codesourcery.com>
11352
11353 * remote.c (remote_close): Don't call generic_mourn_inferior.
11354 (remote_mourn_1): Call generic_mourn_inferior after closing the
11355 target.
11356
5338cef1
PA
113572009-03-18 Pedro Alves <pedro@codesourcery.com>
11358
11359 * remote.c (remote_start_remote): Add missing call to
11360 init_wait_for_inferior in non-stop mode.
11361
717a8278
PA
113622009-03-18 Pedro Alves <pedro@codesourcery.com>
11363
11364 * breakpoint.c (bpstat_should_step): Only consider software
11365 watchpoints that have a location.
11366
7d85a9c0
JB
113672009-03-17 Joel Brobecker <brobecker@adacore.com>
11368
11369 Add a target_ops parameter to the to_kill method in struct target_ops.
11370
11371 * target.h (struct target_ops): Add a "target_ops *" parameter to
11372 method to_kill.
11373 (target_kill): Remove macro. Add declaration.
11374 * target.c (debug_to_kill): Delete, no longer necessary.
11375 (target_kill): New function.
11376 (update_current_target): Stop inheriting the to_kill method.
11377 Do not de_fault it to no_process either.
11378 (setup_target_debug): Do not set current_target.to_kill.
11379 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
11380 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
11381 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
11382 accordingly.
11383
14064aa2
DE
113842009-03-17 Doug Evans <dje@google.com>
11385
11386 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
11387 glibc 2.3.2 and earlier.
11388
f06eadd9
JB
113892009-03-17 Joel Brobecker <brobecker@adacore.com>
11390
11391 * frame.c (get_prev_frame_1): Do not perform the inner_frame
11392 sanity check if this_frame is not NORMAL.
11393 (frame_id_inner): Update the description of this function.
11394
481df73e
HZ
113952009-03-17 Hui Zhu <teawater@gmail.com>
11396
11397 * stack.c: Change the introduce of "disassemble-next-line".
11398
6b251945
PA
113992009-03-17 Pedro Alves <pedro@codesourcery.com>
11400
11401 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
11402 declare as extern.
11403
30c33a9f
HZ
114042009-03-17 Hui Zhu <teawater@gmail.com>
11405
dafb3b41 11406 * stack.c: Include valprint.h.
30c33a9f
HZ
11407 (disassemble_next_line): New enum.
11408 (show_disassemble_next_line): New function. Show the current
11409 value of disassemble-next-line.
11410 (gdb_disassembly_stub_args): New struct for argument passing
11411 between function do_gdb_disassembly and function
11412 gdb_disassembly_stub.
11413 (gdb_disassembly_stub): New function. Helper for
11414 gdb_disassembly.
11415 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
11416 the exception from the gdb_disassembly because it will be
11417 broken by filter sometime.
11418 (print_frame_info): If disassemble-next-line is set to auto
11419 or on and doesn't have the line debug messages for $pc,
11420 output the next instruction.
11421 If disassemble-next-line is set to on and there is line debug
11422 messages, output assembly codes for next line.
11423 (_initialize_stack): Make the "set disassemble-next-line"
11424 command an auto-boolean command. Change its class to
11425 class_stack. Place it in the top level set list. Extend help
11426 to describe the auto mode.
11427
fee0be5d
PA
114282009-03-17 Pedro Alves <pedro@codesourcery.com>
11429
11430 * infrun.c (normal_stop): Don't overwrite old_chain.
11431
a624e111
JB
114322009-03-16 Joel Brobecker <brobecker@adacore.com>
11433
11434 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
11435 which is undefined, by call to regcache_invalidate, which should
11436 do what the original author wanted to do.
11437
383c0389
JB
114382009-03-16 Joel Brobecker <brobecker@adacore.com>
11439
11440 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
11441 (mips_create_inferior): Likewise.
11442
267fbcde
JB
114432009-03-16 Joel Brobecker <brobecker@adacore.com>
11444
11445 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
11446
da66f6a6
JB
114472009-03-16 Joel Brobecker <brobecker@adacore.com>
11448
11449 * darwin-nat.c (darwin_resume): Fix a compiler warning when
11450 building on x86_64-darwin.
11451
58529c02
JB
114522009-03-16 Tristan Gingold <gingold@adacore.com>
11453
11454 * configure.tgt: Add handling for x86_64-darwin.
11455
ba30a4e9
JK
114562009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11457
11458 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
11459
7fc0c7b5
JB
114602009-03-15 Joel Brobecker <brobecker@adacore.com>
11461
11462 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
11463 Use the ops parameter to get to the target beneath, rather than
11464 using the current_target global. Using the current_target global
11465 was an unintended accident.
11466
1ba0a4ee
JB
114672009-03-15 Joel Brobecker <brobecker@adacore.com>
11468
11469 Fix an error happening while loading symbols from a core file
11470 (on AIX).
11471
11472 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
11473 to detect whether we're debugging a core file or not.
11474
d30acaa7
JB
114752009-03-15 Joel Brobecker <brobecker@adacore.com>
11476
11477 Modernize the aix-thread later by getting rid of the base_target
11478 global. This brings back to life the AIX port which was otherwise
11479 crashing all the time.
11480
11481 * aix-thread.c (base_target): Delete.
11482 (pd_enable): Do not set base_target.
11483 (aix_thread_attach): Use find_target_beneath instead of base_target.
11484 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11485 (aix_thread_fetch_registers, aix_thread_store_registers),
11486 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11487 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
11488 (aix_thread_kill): Delete. Does not seem necessary.
11489 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
11490
61ff14c6
JK
114912009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11492
11493 * stack.c (return_command <retval_exp>): New variables retval_expr
11494 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
11495 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
11496 if RETURN_TYPE is NULL.
11497
0b16c5cf
PA
114982009-03-14 Pedro Alves <pedro@codesourcery.com>
11499
11500 * remote.c (PACKET_qAttached): New.
11501 (remote_query_attached): New.
11502 (remote_add_inferior): Add new `attached' argument. Handle it.
11503 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
11504 -1 to remote_add_inferior in new parameter.
11505 (extended_remote_attach_1): Adjust to pass 1 to
11506 remote_add_inferior in the new parameter.
11507 (extended_remote_create_inferior_1): Adjust to pass 0 to
11508 remote_add_inferior in the new parameter.
11509 (_initialize_remote): Add "set/show remote query-attached-packet"
11510 commands.
11511
9ee6bb93
TT
115122009-03-13 Tom Tromey <tromey@redhat.com>
11513
11514 * symtab.c (lookup_symbol_in_language): Use a cleanup.
11515
787274f0
DE
115162009-03-13 Doug Evans <dje@google.com>
11517
11518 * exceptions.h: Clean up some comments on catch_exceptions usage.
11519 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
11520 catch_exceptions.
11521
24f81874
JB
115222009-02-17 Joel Brobecker <brobecker@adacore.com>
11523
11524 The following patch helps getting rid of a warning inside solib-som.c.
11525
11526 * source.c (source_full_path_of): Constify parameter filename.
11527 * defs.h (source_full_path_of): Update declaration accordingly.
11528
e1578042
JB
115292009-03-12 Joel Brobecker <brobecker@adacore.com>
11530
11531 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
11532 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
11533 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
11534
9c2be529
JB
115352009-03-12 Joel Brobecker <brobecker@adacore.com>
11536
11537 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
11538 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
11539
2360f94a 115402009-03-12 Joel Brobecker <brobecker@adacore.com>
e22dccb5
JB
11541
11542 * ada-tasks.c (ada_task_is_alive): Move up and make static.
11543 * ada-lang.h (ada_task_is_alive): Remove declaration.
11544
facc390f
JB
115452009-03-12 Jerome Guitton <guitton@adacore.com>
11546
11547 * ada-lang.c (ada_delta): Change the type of numerators and
11548 denominators to DOUBLEST, as they may not fit into a long.
11549 (scaling_factor): Ditto.
11550
47e729a8
JB
115512009-03-12 Jerome Guitton <guitton@adacore.com>
11552
5c20fa2a 11553 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
47e729a8 11554
b79819ba
JB
115552009-03-12 Joel Brobecker <brobecker@adacore.com>
11556
11557 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
11558 types, if we are unable to determine the actual symbol type
11559 from its tag, then use the static approximation instead.
11560
0056e4d5
JB
115612009-03-12 Joel Brobecker <brobecker@adacore.com>
11562
11563 Fix crash printing packed record with packed array.
11564
11565 * ada-lang.c (ada_modulus_from_name): New function.
11566 (ada_modulus): In the case where the type length is bigger than
11567 the size of the type used to hold the bounds, try determining
11568 the modulus from the type name.
11569 (ada_value_primitive_packed_val): Fix bug in the computation of
11570 ntarg causing an out-of-buffer invalid access.
11571
3c513ee6
JB
115722009-03-12 Joel Brobecker <brobecker@adacore.com>
11573
11574 Fix segfault when printing short_integer'last.
11575
11576 * ada-lang.c (ada_find_any_type): Search in the primitive types
11577 if a symbol could not be found.
11578
680f3fad
JB
115792009-03-12 Joel Brobecker <brobecker@adacore.com>
11580
11581 * ada-tasks.c (task_states,long_task_states): Add new states
11582 Activating and Acceptor_Delay_Sleep. Update the description
11583 of state Acceptor_Sleep.
11584
2ab1c2d9
JB
115852009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
11586
11587 Fix a build failure on Darwin following some changes in
11588 the profile of some target_ops methods.
11589
11590 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
11591 where missing.
11592 (darwin_stop_inferior, darwin_detach): Likewise.
11593
1f31650a
VP
115942009-03-12 Vladimir Prus <vladimir@codesourcery.com>
11595
11596 Include token in ^running notification for CLI commands.
11597
c2c8d75b
AS
11598 * mi/mi-main.c (mi_execute_command): Set current_token here.
11599 (mi_cmd_execute): Do not set current_token here.
1f31650a 11600
4333ada3
VP
116012009-03-12 Vladimir Prus <vladimir@codesourcery.com>
11602
11603 Fix MI timings.
11604
c2c8d75b
AS
11605 * mi/mi-main.c (mi_print_timing_maybe): New.
11606 (captured_mi_execute_command): Simplify. Output timings to
11607 CLI commands, too.
11608 (mi_execute_async_cli_command): Do not print timings.
11609 * mi/mi-main.h (mi_print_timing_maybe): Declare.
11610 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
4333ada3 11611
c5933f6d
JB
116122009-03-12 Jerome Guitton <guitton@adacore.com>
11613
11614 * xcoffread.c (process_linenos): Check if the line in the
11615 include table refers to the main source file and, if so,
11616 add them to the main subfile.
11617
c7660128
JB
116182009-03-12 Joel Brobecker <brobecker@adacore.com>
11619
11620 Fix a build failure on AIX introduced after a change in the profile
11621 of some of the "methods" in the target_ops structure.
11622 * aix-thread.c: Add missing target_ops parameter throughout.
11623
11624 Implement Ada task switching on AIX.
11625 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
11626 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
11627
c5bc3a77
DJ
116282009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
11629
11630 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
11631 value_mark and value_free_to_mark.
11632 * objfiles.c (free_objfile): Call objfile_free_data before
11633 freeing the BFD.
11634
55518360
HZ
116352009-03-10 Hui Zhu <teawater@gmail.com>
11636
11637 * disasm.c (gdb_disassembly): Remove unused argument
11638 "line_num".
11639 * disasm.h (gdb_disassembly): Ditto.
11640 * cli/cli-cmds.c (print_disassembly): Ditto.
11641 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
11642
5fd1a349
PP
116432009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11644
11645 * solib.c (solib_contains_address_p): New function.
11646 (solib_name_from_address): Use it.
11647 * printcmd.c (display_uses_solib_p): Use it.
c2c8d75b
AS
11648 * solib.h (solib_contains_address_p): Declare it.
11649
36746093
JK
116502009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 * varobj.c (free_variable): Call value_free.
11653
757a13d0
JK
116542009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11655
11656 PR gdb/9873:
11657 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
11658 Move the variable `macinfo_type' out of the loop. Create a new
11659 processing pass before the current one to pre-create `current_file'.
11660 New complaint on misplaced zero/non-zero definitions/includes.
11661 Skip first DW_MACINFO_start_file with `at_commandline' set.
11662
c8fa6cdd
VP
116632008-03-09 Vladimir Prus <vladimir@codesourcery.com>
11664
11665 * solib.c (reload_shared_libraries): Give
11666 inferior a chance to reset solib breakpoint.
11667 Reinit frame cache.
11668
41b4aadc
CF
116692009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
11670
11671 * windows-nat.c (dr): Redefine to use largest possible integer which
11672 holds a pointer.
11673 (cygwin_set_dr): Avoid coercion.
11674
116752009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
11676
14b69f28 11677 * windows-nat.c (windows_create_inferior): Implement --tty handling on
41b4aadc
CF
11678 non-cygwin.
11679
f5c9a895
PP
116802009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11681
11682 Rename solib_address to solib_name_from_address.
11683 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
11684 (disable_breakpoints_in_unloaded_shlib): Update.
11685 * printcmd.c (display_uses_solib_p): Likewise.
11686 * stack.c (print_frame): Likewise.
11687 * solib.c: Rename.
11688 * solib.h: Rename.
c2c8d75b 11689
a3247a22
PP
116902009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11691
11692 * printcmd.c (do_one_display): Reparse exp_string.
11693 (display_uses_solib_p): New function.
11694 (clear_dangling_display_expressions): New function.
11695 (_initialize_printcmd): Add observer.
11696 * solib.c (no_shared_libraries): Swap order of calls to
11697 clear_solib and objfile_purge_solibs.
c2c8d75b 11698
d36df9c5
JB
116992009-03-05 Joel Brobecker <brobecker@adacore.com>
11700
11701 Implement the target-specific part of Ada tasking support
11702 on Tru64.
11703
11704 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
11705 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
11706
b254c0b2
JB
117072009-03-05 Joel Brobecker <brobecker@adacore.com>
11708
11709 Get rid of the global "base_target" and use "find_target_beneath"
11710 to find the underlying target.
11711 * dec-thread.c (base_target): Delete.
11712 (enable_dec_thread): Remove assignement to base_target.
11713 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
11714 (dec_thread_fetch_registers, dec_thread_store_registers)
11715 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
11716 Update the function profile if necessary.
11717 Use find_target_beneath to call the same method but from
11718 the underlying target, removing the need for "base_target".
11719
11720 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
11721 Fix a copy/paste error in a few debug traces...
11722
11723 * solib-osf.c (init_so): Use a simpler method for computing
11724 the size of lm_info structure. This also gets rid of warning
11725 emitted by the compiler.
11726
aae64587
PA
117272009-03-05 Pedro Alves <pedro@codesourcery.com>
11728
11729 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
11730 duplicates of permanent breakpoints.
11731
1941c569
PA
117322009-03-04 Pedro Alves <pedro@codesourcery.com>
11733
11734 * inferior.h (notice_new_inferior): Declare.
11735 * infcmd.c (notice_new_inferior): New.
11736 * remote.c (remote_add_inferior, remote_add_thread): New.
11737 (notice_new_inferiors): Rename to...
11738 (remote_notice_new_inferior): ... this. Add RUNNING argument.
11739 Use remote_add_thread instead of add_thread, passing it the
11740 RUNNING argument. Add an inferior with remote_add_inferior. If
11741 we just learned about an inferior, call notice_new_inferior.
11742 (record_currthread): Adjust.
11743 (remote_threads_info): Adjust to use remote_notice_new_inferior.
237d4315
PA
11744 (remote_start_remote, extended_remote_attach_1): Use
11745 remote_add_inferior.
1941c569
PA
11746 (process_stop_reply): Adjust. Call remote_notice_new_inferior
11747 after handling expedited registers and watchpoint state.
11748 (extended_remote_create_inferior_1): Use remote_add_inferior.
11749
9bde0732
AR
117502009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
11751
11752 * infcmd.c (registers_info): Remove register number case.
11753
6aa8e5c2
PA
117542009-03-03 Pedro Alves <pedro@codesourcery.com>
11755
11756 * top.c (quit_target): Check for target_has_execution before
11757 killing or detaching from inferiors.
11758
1d59cee5
JB
117592009-03-02 Joel Brobecker <brobecker@adacore.com>
11760
11761 Remove some unused routines.
11762
11763 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
11764 Delete.
11765 * ada-lang.c (ada_task_list_iterator_ftype)
11766 (iterate_over_live_ada_tasks): Delete.
11767 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
11768 Delete.
11769
223698f8
DE
117702009-03-01 Doug Evans <dje@google.com>
11771
9af17804
DE
11772 * symtab.c: Remove trailing whitespace throughout the file.
11773 (expand_line_sal): Fix some typos and whitespace.
11774
3c54f140
DE
11775 * Makefile.in (clean): rm -f $(DEPDIR)/*.
11776
2aecd87f
DE
11777 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
11778 (init.c): signals/ -> common/.
11779 (signals.o): Update.
11780 * target.h (target_signal_to_string,target_signal_to_string)
11781 (target_signal_from_name,target_signal_to_host_p)
11782 (target_signal_from_host,target_signal_to_host): Move to ...
11783 * common/gdb_signals.h: ... here. New file.
11784 * common/signals.c: Moved here from signals/signals.c.
11785 #include gdb_signals.h, remove #include of target.h in gdb case.
11786 (target_signal_from_command,default_target_signal_to_host)
11787 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
11788
223698f8
DE
11789 Include thread ID in target_wait debugging output.
11790 * infrun.c (print_target_wait_results): New function.
11791 (wait_for_inferior,fetch_inferior_event): Call it.
11792
93a91755
PA
117932009-02-27 Pedro Alves <pedro@codesourcery.com>
11794
11795 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
11796 with a ptid_t field.
11797 * linux-thread-db.c (thread_get_info_callback): Build the ptid
11798 using the pid stored in proc_handle.ptid.
11799 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
11800 (check_for_thread_db, thread_db_detach, check_event)
11801 (thread_db_mourn_inferior, find_new_threads_callback)
11802 (thread_db_find_new_threads_1): Adjust.
11803 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
11804 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
11805
b5096abe
PM
118062009-02-27 Phil Muldoon <pmuldoon@redhat.com>
11807
11808 * valprint.c (read_string): Rework clean-up logic. Use
11809 free_current_contents to clean-up buffer.
11810
a2f63f5e
AS
118112009-02-27 Andreas Schwab <schwab@linux-m68k.org>
11812
11813 * MAINTAINERS: Update e-mail address.
11814
83390453
PM
118152009-02-26 Phil Muldoon <pmuldoon@redhat.com>
11816
11817 * python/python-utils.c (python_string_to_unicode): Always return
11818 a new reference.
11819 (python_string_to_target_string): Decrement transient python
11820 instance.
11821 (python_string_to_host_string): Likewise.
11822
118232007-02-26 Pedro Alves <pedro@codesourcery.com>
a0740d21
PA
11824
11825 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
11826 call to super_fetch_registers.
11827 (mips64_linux_store_registers): Pass `ops' to call to
11828 super_store_registers.
11829
89c83b10
DE
118302009-02-25 Doug Evans <dje@google.com>
11831
99361f52
DE
11832 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
11833 error message.
11834
1c2af6c4
DE
11835 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
11836 disabled_shlib_breaks, unused.
11837
89c83b10
DE
11838 * printcmd.c (build_address_symbolic): Fix comment.
11839
9e2f0ad4
HZ
118402009-02-25 Hui Zhu <teawater@gmail.com>
11841
11842 * cli/cli-script.c (define_command): Add _() to query.
11843 * gnu-nat.c (inf_validate_task_sc): Ditto.
11844 * infcmd.c (kill_if_already_running): Ditto.
11845 (jump_command): Ditto.
11846 (attach_command): Ditto.
11847 * inflow.c (kill_command): Ditto.
11848 * infrun.c (handle_command): Ditto.
11849 * maint.c (maintenance_dump_me): Ditto.
11850 * memattr.c (mem_delete_command): Ditto.
11851 * monitor.c (monitor_interrupt_query): Ditto.
11852 * nto-procfs.c (interrupt_query): Ditto.
11853 * printcmd.c (undisplay_command): Ditto.
11854 * remote-mips.c (mips_kill): Ditto.
11855 * remote.c (interrupt_query): Ditto.
11856 * solib-irix.c (irix_open_symbol_file_object): Ditto.
11857 * solib-osf.c (osf_open_symbol_file_object): Ditto.
11858 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
11859 * solib-som.c (som_open_symbol_file_object): Ditto.
11860 * solib-svr4.c (open_symbol_file_object): Ditto.
11861 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
11862 * target.c (kill_or_be_killed): Ditto.
11863 * tracepoint.c (delete_trace_command): Ditto.
11864 * top.c (quit_confirm): Add _() to s that will be used
11865 in query.
11866
02529b48
PM
118672009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
11868
11869 Fix windows-nat.c compilation failure.
11870
11871 * windows-nat.c (windows_thread_alive): Fix forward declaration.
11872 (get_windows_debug_event): Add ops parameter to call to windows_resume.
11873
2fb89e62
PA
118742009-02-23 Pedro Alves <pedro@codesourcery.com>
11875
11876 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
11877
6f43c46f
JB
118782009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
11879
11880 * symtab.c (find_line_symtab): Initialize exact to avoid
11881 a compiler warning.
11882
84e473c8
PA
118832009-02-23 Pedro Alves <pedro@codesourcery.com>
11884
11885 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
11886 `ops' to recursive call.
11887
28439f5e
PA
118882009-02-23 Pedro Alves <pedro@codesourcery.com>
11889
11890 * corelow.c (get_core_registers): Adjust.
11891 (core_file_thread_alive): Rename to...
11892 (core_thread_alive): ... this.
11893 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
11894 (init_core_ops): Adjust.
11895 (coreops_suppress_target): Delete.
11896 (_initialize_corelow): Unconditionally add core_ops.
11897 * procfs.c: Include "inf-child.h".
11898 (procfs_ops): Delete.
11899 (init_procfs_ops): Delete. Reimplement as...
11900 (procfs_target): ... this, inheriting from inf-child.
11901 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
11902 (procfs_prepare_to_store): Delete.
11903 (procfs_store_registers, procfs_resume): Adjust.
11904 (procfs_open): Delete.
11905 (procfs_suppress_run): Delete.
11906 (procfs_can_run): Delete.
11907 (procfs_mourn_inferior): Adjust.
11908 (procfs_init_inferior): Add target_ops parameter. Adjust.
11909 (procfs_create_inferior): Don't pass procfs_init_inferior to
11910 fork_inferior. Instead call it after fork_inferior returns.
11911 (procfs_find_new_threads): Adjust.
11912 (_initialize_procfs): Adjust to use procfs_target instead of
11913 init_procfs_ops.
11914 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
11915 (lwp_to_thread): Use target_thread_alive.
11916 (sol_thread_open): Delete.
11917 (sol_thread_attach): Delete.
11918 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11919 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
11920 to use find_target_beneath.
11921 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
11922 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
11923 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
11924 (check_for_thread_db): New.
11925 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
11926 (sol_thread_new_objfile): Call check_for_thread_db.
11927 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
11928 (sol_thread_can_run): Delete.
11929 (sol_thread_alive): Adjust to use find_target_beneath.
11930 (sol_thread_stop): Delete.
11931 (rw_common): Use target_write_memory or target_read_memory.
11932 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
11933 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
11934 (solaris_pid_to_str): Remove check for libthread_db initialization
11935 failing.
11936 (sol_find_new_threads): Remove check for libthread_db
11937 initialization failing, or for an invalid inferior_ptid. Adjust
11938 to use find_target_beneath.
11939 (sol_core_open, sol_core_close, sol_core_detach,
11940 sol_core_files_info, sol_find_memory_regions,
11941 sol_make_note_section, ignore): Delete.
11942 (init_sol_thread_ops): Make it a thread_stratum target. Remove
11943 unneeded callback settings.
11944 (init_sol_core_ops): Delete.
11945 (_initialize_sol_thread): No longer call init_sol_core_ops, set
11946 procfs_suppress_run, or hack with core_ops.
11947
11948 * target.h (struct target_ops): Add a target_ops * parameter to
11949 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
11950 and to_find_new_threads.
11951 (target_fetch_registers, target_store_registers)
11952 (target_thread_alive, target_find_new_threads): Redeclare as
11953 function.
a2f63f5e 11954
28439f5e
PA
11955 * target.c (update_current_target): Do not inherit or de_fault
11956 to_resume, to_fetch_registers, to_store_registers,
11957 to_thread_alive, to_find_new_threads.
11958 (target_resume): Adjust.
11959 (target_thread_alive, target_find_new_threads): New.
11960 (debug_to_resume, debug_to_fetch_registers): Delete.
11961 (target_fetch_registers): New.
11962 (debug_to_store_registers): Delete.
11963 (target_store_registers): New.
11964 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
11965 (setup_target_debug): Adjust.
a2f63f5e 11966
28439f5e 11967 * gdbcore.h (core_ops): Delete declaration.
a2f63f5e 11968
28439f5e
PA
11969 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
11970 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
11971 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
11972 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
11973 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
11974 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
11975 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
11976 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
11977 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
11978 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
11979 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
11980 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
11981 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
11982 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
11983
11984 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
11985 * gdbarch.h, gdbarch.c: Regenerate.
11986
11987 * sol2-tdep.c: Include "inferior.h".
11988 (sol2_core_pid_to_str): New.
11989 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
11990
11991 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
11992 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
11993 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
11994 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
11995
907083d1
DE
119962009-02-22 Doug Evans <dje@google.com>
11997
11998 * exec.c (exec_file_attach): Fix comment.
11999
63807e1d
PA
120002009-02-22 Pedro Alves <pedro@codesourcery.com>
12001
12002 Silence a few -Wmissing-prototypes warnings.
12003
12004 PR build/9877:
a2f63f5e 12005 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
63807e1d 12006 it static.
a2f63f5e
AS
12007 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
12008 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
12009 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
63807e1d
PA
12010 (_initialize_amd64nbsd_tdep): ... this.
12011 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
12012 (_initialize_arm_linux_tdep): Declare.
12013 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
12014 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
12015 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
12016 * avr-tdep.c (avr_return_value): Make it static.
12017 (avr_frame_unwind_cache): Ditto.
12018 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
12019 (bsd_uthread_solib_loaded): Ditto.
12020 (bsd_uthread_solib_unloaded): Ditto.
12021 (bsd_uthread_target): Ditto.
12022 (_initialize_bsd_uthread): Declare.
12023 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
12024 (cris_frame_unwind_cache): Ditto.
12025 * frv-tdep.c (frv_return_value): Ditto.
12026 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
12027 (h8300h_use_struct_convention): Ditto.
12028 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
12029 Ditto.
12030 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
12031 declarations.
12032 * hppabsd-tdep.c: Include hppabsd-tdep.h.
12033 (hppabsd_find_global_pointer): Make it static.
12034 * hppabsd-tdep.h: New.
12035 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
12036 (hppabsd_init_abi): Remove declaration.
12037 (_initialize_hppabsd_tdep): Remove declaration.
12038 (_initialize_hppanbsd_tdep): Declare.
12039 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
12040 (hppabsd_init_abi): Delete declaration.
12041 (hppaobsd_init_abi): Make it static.
12042 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
12043 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
12044 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
12045 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
12046 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
12047 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
12048 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
12049 (_initialize_m32c_tdep): Declare.
12050 * m32r-rom.c (_initialize_m32r_rom): Declare.
12051 * m32r-tdep.c (m32r_skip_prologue): Make it static.
12052 (m32r_return_value): Ditto.
12053 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
12054 (m68hc11_return_value): Ditto.
12055 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
12056 * m88k-tdep.c (m88k_frame_cache): Make it static.
12057 * mep-tdep.c (mep_gdb_print_insn): Ditto.
12058 (mep_return_value): Ditto.
12059 (_initialize_mep_tdep): Declare.
12060 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
12061 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
12062 (mips_linux_syscall_next_pc): Ditto.
12063 (_initialize_mips_linux_tdep): Declare.
12064 * mips-tdep.c (mips_single_step_through_delay): Make it static.
12065 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
12066 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
12067 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
12068 * mt-tdep.c (_initialize_mt_tdep): Declare.
12069 * nbsd-tdep.c: Include nbsd-tdep.h.
12070 * nto-tdep.c (find_load_phdr): Make it static.
12071 (_initialize_nto_tdep): Declare.
12072 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
12073 static.
12074 (_initialize_ppc_linux_tdep): Declare.
12075 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
12076 (m32r_insert_watchpoint, m32r_remove_watchpoint)
12077 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
12078 static.
12079 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
12080 * rs6000-nat.c: Include xcoffread.h.
12081 (find_toc_address): Don't extern declare get_toc_offset. Adjust
12082 to call xcoff_get_to_offset.
12083 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
12084 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
12085 (rs6000_skip_trampoline_code): Make static.
12086 * s390-tdep.c (s390_regset_from_core_section): Ditto.
12087 * sh-tdep.c (sh_register_reggroup_p): Ditto.
12088 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
12089 (_initialize_shnbsd_tdep): Declare.
12090 * solib-frv.c (displacement_from_map): Make static.
12091 (_initialize_frv_solib): Declare.
12092 * solib-irix.c (fetch_lm_info): Make static.
12093 (_initialize_irix_solib): Declare.
12094 * solib-som.c: Include solib-som.h.
12095 (som_solib_select): Line break.
12096 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
12097 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
12098 (_initialize_sparcnbsd_tdep): ... this.
12099 * spu-tdep.c (spu_software_single_step): Make it static.
12100 (_initialize_spu_tdep): Declare.
12101 * vax-tdep.c (vax_frame_cache): Make it static.
12102 * xcoffread.c: Include xcoffread.h.
12103 (get_toc_offset): Rename to ...
12104 (xcoff_get_toc_offset): ... this.
12105 (_initialize_xcoffread): Declare.
12106 * xcoffread.h: New.
12107 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
12108 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
12109 static.
12110 (_initialize_xtensa_tdep): Declare.
12111
2c0b251b
PA
121122008-02-21 Pedro Alves <pedro@codesorcery.com>
12113
12114 Silence a few -Wmissing-prototypes warnings.
12115
12116 PR build/9877:
12117 * amd64-nat.c: Include "amd64-nat.h".
12118 * fork-child.c (_initialize_fork_child): Ditto.
12119 * gcore.c (_initialize_gcore): Ditto.
12120 * inf-ptrace.c: Include "inf-ptrace.h".
12121 (inf_ptrace_store_registers): Make it static.
12122 * linux-nat.c (linux_nat_terminal_ours): Make it static.
12123 (_initialize_linux_nat): Declare before definition.
12124 * linux-tdep.c: Include "linux-tdep.h".
12125 * linux-thread-db.c (_initialize_thread_db): Declare before
12126 definition.
12127 * proc-service.c (_initialize_proc_service): Ditto.
12128 * remote.c (remote_send_printf): Make it static.
12129 * solib.c: Include "solib.h".
12130 * symfile-mem.c (_initialize_symfile_mem): Declare before
12131 definition.
12132 * ada-lang.c (ada_la_decode, ada_match_name)
12133 (ada_suppress_symbol_printing, ada_is_array_type)
12134 (ada_value_ptr_subscript, ada_array_length)
12135 (ada_to_static_fixed_value): Make them static.
12136 (_initialize_ada_language): Declare before definition.
12137 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
12138 (ada_task_list_changed, ada_new_objfile_observer): Make them
12139 static.
12140 (_initialize_tasks): Declare before definition.
12141 * addrmap.c (_initialize_addrmap): Declare before definition.
12142 * auxv.c (default_auxv_parse): Make it static.
12143 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
12144 them static.
12145 * breakpoint.c (remove_sal): Add line break.
12146 (expand_line_sal_maybe): Make it static.
12147 * cp-name-parser.y: Include "cp-support.h".
12148 * cp-valprint.c (cp_find_class_member): Make it static.
12149 * eval.c (value_f90_subarray): Ditto.
12150 * exceptions.c (print_any_exception): Ditto.
12151 * findcmd.c (_initialize_mem_search): Declare before definition.
12152 * frame.c (frame_observer_target_changed): Make it static.
12153 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
12154 * inf-child.c: Include "inf-child.h".
12155 * inferior.h (valid_inferior_id): Rename to ...
12156 (valid_gdb_inferior_id): ... this.
12157 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
12158 Make them static.
12159 * jv-lang.c (java_language_arch_info): Make it static.
12160 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
12161 * osdata.c (info_osdata_command): Make it static.
12162 * regcache.c (regcache_observer_target_changed): Make it static.
12163 * reverse.c (_initialize_reverse): Declare before definition.
12164 * stabsread.c (cleanup_undefined_types_noname)
12165 (cleanup_undefined_types_1): Make them static.
12166 * symfile.c (place_section): Make it static.
12167 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
12168 * target-descriptions.c (_initialize_target_descriptions): Declare
12169 before definition.
12170 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
12171 (find_default_is_async_p, find_default_supports_non_stop): Make
12172 them static.
12173 (target_supports_non_stop): Add prototype.
12174 (dummy_pid_to_str): Make it static.
12175 * utils.c (_initialize_utils): Declare before definition.
12176 * ada-exp.y (_initialize_ada_exp): Declare before definition.
12177 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
12178 * target.h (struct target_ops): Add a prototype to the
12179 to_can_execute_reverse callback.
a2f63f5e
AS
12180 * macroscope.c (_initialize_macroscope): Declare before definition.
12181 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
2c0b251b
PA
12182 * python/python.c (_initialize_python): Declare before definition.
12183 * tui/tui-command.c: Include "tui/tui-command.h".
12184 * tui/tui-data.c (init_content_element, init_win_info): Make them
12185 static.
12186 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
12187 * tui/tui-interp.c (_initialize_tui_interp): Declare before
12188 definition.
12189 * tui/tui-layout.c: Include "tui/tui-layout.h".
12190 (_initialize_tui_layout): Declare before definition.
12191 * tui/tui-regs.c: Include "tui/tui-regs.h".
12192 (tui_display_reg_element_at_line): Make it static.
12193 (_initialize_tui_regs): Declare before definition.
12194 * tui/tui-stack.c (_initialize_tui_stack): Declare before
12195 definition.
12196 * tui/tui-win.c: Include "tui/tui-win.h".
12197 (_initialize_tui_win): Declare before definition.
12198 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
12199 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
12200 (tui_get_cmd_list): Add a prototype.
12201 * tui/tui-windata.c: Include tui-windata.h.
12202 * tui/tui-wingeneral.c (box_win): Make it static.
12203 * cli/cli-logging.c (show_logging_command): Make it static.
12204 (_initialize_cli_logging): Declare before definition.
12205 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
12206 definition.
12207
5aca5a82
PM
122082009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
12209
08c1f091 12210 Extend use of i386_use_watchpoints to all i386 native files
5aca5a82 12211 using hardware watchpoints.
08c1f091
DE
12212 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
12213 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
12214 * windows-nat.c (init_windows_ops): Ditto.
12215 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
12216 * config/i386/nm-cygwin64.h: Ditto.
12217 * config/i386/nm-fbsd.h: Ditto.
12218 * config/i386/nm-go32.h: Ditto.
5aca5a82 12219
1db300f1
JB
122202009-02-19 Joel Brobecker <brobecker@adacore.com>
12221
12222 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
12223
c86cf029
VP
122242009-02-18 Vladimir Prus <vladimir@codesourcery.com>
12225
12226 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
12227 (mi_interpreter_init): Register the above.
12228 * solib.c (clear_solib): Notify solib unload.
12229 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
12230 disable breakpoints on a.out targets.
12231
3ea85240
VP
122322009-02-17 Vladimir Prus <vladimir@codesourcery.com>
12233
12234 * observer.c (observer_test_first_notification_function)
12235 (observer_test_second_notification_function)
12236 (observer_test_third_notification_function): Adjust prototype.
12237
4c1d2973
PA
122382009-02-17 Pedro Alves <pedro@codesourcery.com>
12239
12240 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
12241 (ALL_TARGET_OBS): Add dicos-tdep.o.
12242 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
12243 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
12244 gdb_target_obs.
12245 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
12246 gdb_target_obs.
12247 * dicos-tdep.h, dicos-tdep.c: New.
12248 * amd64-dicos-tdep.c: New.
12249 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
12250 inferior.h. Include dicos-tdep.h.
12251 (i386_dicos_init_abi): Call dicos_init_abi.
12252 (i386_dicos_bfd_has_symbol_p): Delete.
12253 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
12254
12255 * NEWS: Mention x86-64 DICOS target support.
12256
1903f0e6
DE
122572009-02-16 Doug Evans <dje@google.com>
12258
12259 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
12260 All callers updated.
12261 (amd64_get_insn_details): Handle more 3-byte opcode insns.
12262 (amd64_breakpoint_p): Delete.
12263 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
12264 don't back up pc to the start of the int3.
12265 * i386-tdep.c: #include opcode/i386.h.
12266 (i386_skip_prefixes): New function.
12267 (i386_absolute_jmp_p): Constify argument.
12268 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
12269 (i386_breakpoint_p): Delete.
12270 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
12271 When fixing up after stepping an int3, don't back up pc to the start
12272 of the int3.
12273
959b8724
PA
122742009-02-16 Pedro Alves <pedro@codesourcery.com>
12275
12276 * corelow.c (core_close): Don't hardcode the core's pid.
12277 (core_open): Find core threads before calling
12278 post_create_inferior.
12279 (add_to_thread_list, get_core_register_section): Take into account
12280 systems where the regset section names encode the pid of the
12281 inferior.
12282
12283 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
12284 * gdbarch.h, gdbarch.c: Regenerate.
12285
12286 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
12287 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
12288 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
12289 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
12290
1d33d6ba
VP
122912009-02-14 Vladimir Prus <vladimir@codesourcery.com>
12292
12293 Include frame information for *stopped due to CLI commands.
12294
a2f63f5e
AS
12295 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
12296 * infcmd.c (finish_command_continuation): Pass '1' for
12297 'print_frame' parameter to the observer.
12298 * infrun.c (normal_stop): Don't print mi-specific information
12299 here. Pass 'stop_print_frame' to the 'print_frame' parameter
12300 of the observer.
12301 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
12302 If we need to print frame, and current uiout is not the MI one,
12303 print frame again.
1d33d6ba 12304
2ff5e605
PM
123052009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
12306
12307 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
12308 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
12309
5d7cb8df
JK
123102009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12311
12312 PR fortran/9806
12313 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
12314 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
12315
868a0084
PM
123162009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
12317
12318 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
5d7cb8df 12319 for DW_ATE_signed_char and DW_ATE_unsigned_char
868a0084
PM
12320 for pascal language.
12321
42e2132c
JK
123222009-02-11 Jim Meyering <meyering@redhat.com>
12323 Jan Kratochvil <jan.kratochvil@redhat.com>
12324
12325 Avoid NULL dereference.
12326 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
12327 New variable func_type.
12328
315aef0a
PA
123292009-02-11 Pedro Alves <pedro@codesourcery.com>
12330
12331 * gdbarch.c: Regenerate.
12332
58159490
PM
123332009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
12334
12335 * p-lang.c (is_pascal_string_type): Fix comment.
12336 Determine exact size of char elements for GPC
12337 strings.
12338 (pascal_printstr): Handle char width of 2 or 4.
12339 * p-valprint.c (pascal_val_print): Handle char
12340 of width 2 or 4.
a2f63f5e 12341
d3f36a39
DJ
123422009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
12343
12344 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
12345 inside the loop. Only call addrmap_set_empty if the compilation unit
12346 had DW_AT_high_pc and DW_AT_low_pc. Update call to
12347 scan_partial_symbols.
12348 (scan_partial_symbols): Take NEED_PC argument and pass it along with
12349 LOWPC and HIGHPC.
12350 (add_partial_namespace): Take NEED_PC argument and pass it through.
12351 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
12352 if necessary.
12353
47a3467a
PA
123542009-02-07 Pedro Alves <pedro@codesourcery.com>
12355
12356 * NEWS: Mention inspecting extra signal information, $_siginfo,
12357 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
12358
1ef18d08
PA
123592009-02-07 Pedro Alves <pedro@codesourcery.com>
12360
12361 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
12362 isn't defined.
12363
5b009018
PA
123642009-02-06 Pedro Alves <pedro@codesourcery.com>
12365
12366 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
12367 (compat_timer_t, compat_clock_t, struct compat_timeval)
12368 (compat_sigval_t, compat_siginfo_t): New types.
12369 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
12370 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
12371 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
12372 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
12373 (amd64_linux_siginfo_fixup): New.
12374 * linux-nat.c (linux_nat_siginfo_fixup): New.
12375 (siginfo_fixup): New.
12376 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
12377 siginfo layout expected by ptrace and the siginfo layout of the
12378 inferior.
12379 (linux_nat_set_siginfo_fixup): New.
12380 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
12381
4aa995e1
PA
123822009-02-06 Pedro Alves <pedro@codesourcery.com>
12383
12384 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
12385 * infrun.c (siginfo_value_read, siginfo_value_write): New.
12386 (siginfo_value_funcs): New.
12387 (siginfo_make_value): New.
12388 (_initialize_infrun): Create the $_siginfo convenience variable.
12389 * gdbtypes.h (append_composite_type_field_aligned): Declare.
12390 * gdbtypes.c (append_composite_type_field): Rename to...
12391 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
12392 argument. Handle it.
12393 (append_composite_type_field): Rewrite on top of
12394 append_composite_type_field_aligned.
12395 * value.h (internalvar_make_value): New typedef.
12396 (struct internalvar) <make_value>: New field.
12397 (create_internalvar_type_lazy): Declare.
12398 * value.c (create_internalvar): Clear make_value.
12399 (create_internalvar_type_lazy): New.
12400 (value_of_internalvar): If make_value is set use it.
12401 (preserve_values): Skip internal variables that don't have a
12402 value.
12403 * gdbarch.sh (get_siginfo_type): New.
12404 * gdbarch.h, gdbarch.c: Regenerate.
12405
12406 * linux-tdep.h, linux-tdep.c: New.
12407 * amd64-linux-tdep.c: Include "linux-tdep.h".
12408 (amd64_linux_init_abi): Register linux_get_siginfo_type and
12409 linux_get_siginfo_mapper.
12410 * i386-linux-tdep.c: Include "linux-tdep.h".
12411 (i386_linux_init_abi): Register linux_get_siginfo_type and
12412 linux_get_siginfo_mapper.
12413 * arm-linux-tdep.c: Include "linux-tdep.h".
12414 (i386_linux_init_abi): Register linux_get_siginfo_type and
12415 linux_get_siginfo_mapper.
12416
12417 * linux-nat.c (linux_xfer_siginfo): New.
12418 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
12419 * remote.c (PACKET_qXfer_siginfo_read)
12420 (PACKET_qXfer_siginfo_write): New.
12421 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
12422 "qXfer:siginfo:write" features.
12423 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
12424 (_initialize_remote): Add "set/show remote read-siginfo-object"
12425 and "set/show remote write-siginfo-object" commands.
12426
12427 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
12428 (HFILES_NO_SRCDIR): Add linux-tdep.h.
12429 (ALLDEPFILES): Add linux-tdep.c.
a2f63f5e 12430
4aa995e1
PA
12431 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
12432 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
12433 gdb_target_obs.
12434
5f5233d4
PA
124352009-02-06 Jim Blandy <jimb@codesourcery.com>
12436 Daniel Jacobowitz <dan@codesourcery.com>
12437 Vladimir Prus <vladimir@codesourcery.com>
12438 Pedro Alves <pedro@codesourcery.com>
12439
12440 * defs.h (enum lval_type): New value: lval_computed.
12441 * value.h (struct lval_funcs): New type.
12442 (allocate_computed_value, value_computed_funcs)
12443 (value_computed_closure): New declarations.
12444 * value.c (struct value): Add a structure to the location union
12445 for computed lvalues, containing 'funcs' and 'closure' members.
12446 (allocate_computed_value, value_computed_funcs)
12447 (value_computed_closure): New functions.
12448 (value_free): For computed lvalues, call the closure's
12449 'free_closure' function before freeing the value itself.
12450 (value_copy): If we're copying an lval_computed value, call the
12451 closure's 'copy_closure' function.
12452 (set_value_component_location): If the original value is a
12453 computed lvalue, then call the closure's 'copy_closure' function.
12454 (value_of_internalvar): If an internal variable's value is a
12455 computed lvalue, make retrieving its value produce an equivalent
12456 computed lvalue.
12457 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
12458 their read function.
12459 (value_assign): Assign to computed lvalues by calling their write
12460 function.
12461
117de6a9
PA
124622009-02-06 Pedro Alves <pedro@codesourcery.com>
12463
12464 * linux-nat.c (linux_nat_wait): Adjust.
12465 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
12466 * linux-nat.h (thread_db_init): Delete declaration.
12467 * linux-thread-db.c (target_beneath): Delete.
12468 (thread_db_init): Delete.
12469 (thread_db_detach): Use find_target_beneath.
12470 (thread_db_wait): Adjust interface. Use find_target_beneath.
12471 (thread_db_mourn_inferior): Use find_target_beneath.
12472 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
12473 (thread_db_async_mask): Delete.
12474 (thread_db_pid_to_str): Adjust interface. Use
12475 find_target_beneath.
12476 (thread_db_get_thread_local_address): Adjust interface. Use
12477 find_target_beneath.
12478 (init_thread_db_ops): Delete references to delete functions.
12479 * target.c (update_current_target): Don't inherit or default
12480 to_wait. Don't inherit to_pid_to_str and
12481 to_get_thread_local_address.
12482 (target_translate_tls_address): Look for a pushed target that
12483 implements to_get_thread_local_address, and use it instead of
12484 checking for target_get_thread_local_address_p.
12485 (target_wait, target_pid_to_str): Reimplement as functions.
12486 (dummy_pid_to_str): New.
12487 (init_dummy_target): Register it.
12488 (debug_to_wait): Delete.
12489 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
12490 to_get_thread_local_address accept a pointer to struct target_ops.
12491 (target_wait): Delete macro, and declare as function.
12492 (target_pid_to_str): Likewise.
12493 (target_get_thread_local_address)
12494 (target_get_thread_local_address_p): Delete.
12495 (noprocess): Add NORETURN and ATTR_NORETURN tags.
12496 * inf-ptrace.c (inf_ptrace_wait): Adjust.
12497 (inf_ptrace_pid_to_str): New.
12498 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
12499 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
12500 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
12501 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
12502 Adjust.
12503 * corelow.c (core_pid_to_str): Adjust.
12504 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
12505 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
12506 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
12507 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
12508 * hpux-thread.c (hpux_thread_wait): Adjust.
12509 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
12510 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
12511 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
12512 * procfs.c (procfs_pid_to_str): Adjust.
12513 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
12514 * remote-mips.c (mips_wait): Adjust.
12515 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
12516 * remote.c (remote_wait, remote_pid_to_str)
12517 (remote_get_thread_local_address): Adjust.
12518 * rs6000-nat.c (rs6000_wait): Adjust.
12519 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
12520 (sol_thread_wait, solaris_pid_to_str): Adjust.
12521 * spu-linux-nat.c (spu_child_wait): Adjust.
12522 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
12523
d8906c6f
TJB
125242009-02-06 Tom Tromey <tromey@redhat.com>
12525
12526 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
12527 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
12528 (python-cmd.o): New target.
12529 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
12530 completer prototype.
12531 (add_cmd): Initialize destroyer member of cmd_list_element. Use
12532 make_symbol_completion_list_fn as completer.
12533 (delete_cmd): Call destroyer if one is set.
12534 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
12535 completer member. Add destroyer member.
12536 (set_cmd_completer): Add self parameter to
12537 completer prototype.
12538 * command.h (set_cmd_completer): Add cmd parameter to
12539 completer prototype.
12540 * completer.c (noop_completer, filename_completer,
12541 location_completer, expression_completer, command_completer): Adapt
12542 to new completer prototype.
12543 (complete_line_internal): Pass new parameter to completer function.
12544 * completer.h (noop_completer, filename_completer,
12545 location_completer, expression_completer, command_completer): Adapt
12546 prototypes to new completer prototype.
12547 * interps.c (interpreter_completer): Adapt to new completer
12548 prototype.
12549 * python/python-cmd.c: New file.
12550 * python/python-internal.h (gdbpy_initialize_commands): Add
12551 prototype.
12552 (gdbpy_doc_cst): Add forward declaration.
12553 * python/python.c (gdbpy_doc_cst): Declare.
12554 (_initialize_python): Call gdbpy_initialize_commands. Initialize
12555 gdbpy_doc_cst.
12556 * symtab.c (make_symbol_completion_list_fn): New function.
12557 * symtab.h (make_symbol_completion_list_fn): Add prototype.
12558
739ef7fb
PA
125592009-02-06 Pedro Alves <pedro@codesourcery.com>
12560
12561 * target.c (target_get_osdata): Check for equal or higher than
12562 process_stratum, not dummy_stratum.
12563
6d097e65
PA
125642009-02-06 Pedro Alves <pedro@codesourcery.com>
12565
12566 * remote.c (extended_remote_can_run): Delete.
12567 (init_remote_ops): Don't register it.
12568 * target.c (target_get_osdata): Don't check for target_can_run.
12569 Instead any target that has already been pushed, otherwise
739ef7fb 12570 fallback to the default run target.
6d097e65 12571
947b8855
PA
125722009-02-06 Pedro Alves <pedro@codesourcery.com>
12573
12574 * target.c (target_create_inferior, target_detach)
12575 (target_mourn_inferior, target_attach, target_close): Do target
12576 debug output.
12577 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
12578 (debug_to_mourn_inferior, debug_to_close): Delete.
12579 (setup_target_debug): Adjust.
12580
611041af
PA
125812009-02-05 Pedro Alves <pedro@codesourcery.com>
12582
12583 * target.h (target_stopped_data_address_p): Delete declaration,
12584 and don't define as macro.
12585 * target.c (target_stopped_data_address_p): Delete.
12586
b6cb8e7d
TJB
125872009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
12588 Tom Tromey <tromey@redhat.com>
12589
12590 * python/python-utils.c (target_string_to_unicode): New function.
12591 * python/python-internal.h (target_string_to_unicode): New prototype.
12592 * python/python-value.c (valpy_string): New function.
12593 (value_object_methods): Add `string' entry.
12594
54ba13f7
PA
125952009-02-05 Pedro Alves <pedro@codesourcery.com>
12596
12597 * target.h (target_tid_to_str): Delete.
12598 * thread.c (print_thread_info, thread_apply_all_command)
12599 (thread_apply_command, thread_command, do_captured_thread_select):
12600 Use target_pid_to_str instead of target_tid_to_str.
12601 * linux-fork.c (delete_fork_command): Likewise.
12602
9d49bdc2
PA
126032009-02-05 Pedro Alves <pedro@codesourcery.com>
12604
12605 * frame.c (has_stack_frames): Make public.
12606 (get_prev_frame): Don't allow a NULL this_frame anymore.
12607 * frame.h (has_stack_frames): Declare.
12608 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
12609 to get_prev_frame, instead start at get_current_frame.
12610 (varobj_create): Check has_stack_frames before getting any frame;
12611 eliminate one usage of deprecated_safe_get_selected_frame.
12612
12453b93
TJB
126132009-02-05 Tom Tromey <tromey@redhat.com>
12614 Thiago Jung Bauermann <bauerman@br.ibm.com>
12615
12616 * python/python.c (GdbMethods): Move to bottom of file.
12617 (get_parameter, execute_gdb_command, gdbpy_write,
12618 gdbpy_flush): Remove forward declarations.
12619 (eval_python_from_control_command): Fix error checking of function
12620 PyRun_SimpleString. Fix error string.
12621 (python_command): Likewise.
12622 (execute_gdb_command): Added from_tty argument.
12623
ae6a3a4c
TJB
126242009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
12625
12626 * language.h (language_dfn): Add la_get_string member.
12627 (LA_GET_STRING): New macro.
12628 (default_get_string): New prototype.
12629 * language.c (default_get_string): New function.
12630 (unknown_language_defn, auto_language_defn, local_language_defn): Use
12631 default_get_string for la_get_string.
12632 * c-lang.c (c_get_string): New function.
12633 (c_language_defn, cplus_language_defn, asm_language_defn): Use
12634 c_get_string for la_get_string.
12635 (minimal_language_defn): Likewise
12636 * ada-lang.c (ada_language_defn): Likewise.
12637 * f-lang.c (f_language_defn): Use default_get_string for
12638 la_get_string.
12639 * jv-lang.c (java_language_defn): Likewise.
12640 * m2-lang.c (m2_language_defn): Likewise.
12641 * objc-lang.c (objc_language_defn): Likewise.
12642 * p-lang.c (p_language_defn): Likewise.
12643 * scm-lang.c (scm_language_defn): Likewise.
12644 * typeprint.c (type_to_string): New function.
12645 * value.h (type_to_string): New prototype.
12646 * valprint.c (val_print_string): Factor out code for reading string
12647 from the inferior into its own function. Put 2 spaces after period
12648 in comments.
12649 (read_string): New function.
12650 * valprint.h (read_string): New prototype.
12651
fa8a61dc
TT
126522009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
12653 Tom Tromey <tromey@redhat.com>
12654
12655 PR breakpoints/8079:
12656 * breakpoint.c (print_one_breakpoint): Use exp_string field
12657 to display expression of watchpoints.
12658 (mention): Likewise.
12659 (watch_command_1): Remove trailing whitespace from expression.
12660 * printcmd.c (struct display) <exp_string>: New field.
12661 (display_command): Set exp_string.
12662 (free_display): Free exp_string.
12663 (clear_displays): Use free_display.
12664 (do_one_display): Print exp_string.
12665 (display_info): Likewise.
12666
08c637de
TJB
126672009-02-04 Tom Tromey <tromey@redhat.com>
12668 Thiago Jung Bauermann <bauerman@br.ibm.com>
12669 Phil Muldoon <pmuldoon@redhat.com>
12670
12671 * python/python-internal.h (gdbpy_get_value_from_history): Rename
12672 prototype to gdbpy_history.
12673 (gdbpy_is_string): Declare.
12674 (python_string_to_host_string): Declare.
12675 * python/python-utils.c (gdbpy_is_string): New function.
12676 (unicode_to_encoded_string): New function.
12677 (unicode_to_target_string): Use it.
12678 (python_string_to_host_string): New function.
12679 * python/python-value.c (valpy_address): New function.
12680 (convert_value_from_python): Use gdbpy_is_string. Change to throw
12681 Python exception instead of a GDB exception on error. Properly check
12682 Python booleans.
12683 (valpy_getitem): Convert field name to host string. Handle array
12684 accesses. Adapt to new behaviour of convert_value_from_python.
12685 (valpy_new): Adapt to new behaviour of convert_value_from_python.
12686 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
12687 VALPY_BITXOR, VALPY_BITOR>: New constants.
12688 (valpy_binop): Update. Adapt to new behaviour of
12689 convert_value_from_python.
12690 (valpy_invert): New function.
12691 (valpy_lsh): Likewise.
12692 (valpy_rsh): Likewise.
12693 (valpy_and): Likewise.
12694 (valpy_or): Likewise.
12695 (valpy_xor): Likewise.
12696 (valpy_richcompare): Call convert_value_from_python instead of doing
12697 conversions itself.
12698 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
12699 (gdbpy_get_value_from_history): Rename
12700 function to gdbpy_history.
12701 (gdbpy_initialize_values): Don't set tp_new.
12702 (value_object_type): Add valpy_new.
12703 (value_object_methods): Add `address' entry.
12704 (value_object_as_number): Update for new methods.
12705 * python/python.c (GdbMethods): Rename entry from
12706 `get_value_from_history' to `history'.
12707
538e13a6 127082009-02-04 Jerome Guitton <guitton@adacore.com>
b5304971
JG
12709
12710 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
12711 of type to guard against a crash.
12712
33d502b4
JG
127132009-02-04 Jerome Guitton <guitton@adacore.com>
12714
12715 * value.c (value_from_contents_and_address): Always return
12716 a lval_memory value, even if address is null.
12717
9f08ae4f
TG
127182009-02-04 Tristan Gingold <gingold@adacore.com>
12719
12720 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
12721 (amd64_darwin_sigcontext_addr): Ditto.
12722 (darwin_dwarf_signal_frame_p): Ditto.
12723 (i386_darwin_init_abi): Handle signal frames, use the const for
12724 sc_num_regs.
12725 (x86_darwin_init_abi_64): Ditto.
12726
4bd207ef
TG
127272009-02-04 Tristan Gingold <gingold@adacore.com>
12728
12729 * i386-tdep.c (i386_sigtramp_p): Make it public.
12730 * i386-tdep.h (i386_sigtramp_p): Declare.
12731
4aa99a88
TG
127322009-02-04 Tristan Gingold <gingold@adacore.com>
12733
12734 * machoread.c (macho_symfile_read): Read minsymtab also from
12735 shared libraries.
12736 (macho_symfile_read): Try to read dwarf2 frame info from main
12737 object file, but not from OSO files.
12738 (macho_symfile_offsets): Update section names for latest BFD
12739 changes.
12740 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
12741 (x86_darwin_init_abi_64): Ditto.
12742 * solib-darwin.c: New file.
12743 * solib-darwin.h: New file.
12744 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
12745
7a848be1
TG
127462009-02-04 Tristan Gingold <gingold@adacore.com>
12747
12748 * solist.h (struct target_so_ops): Comment fallback behavior for
12749 operation same.
12750
b32d97f3
TT
127512009-02-03 Tom Tromey <tromey@redhat.com>
12752
12753 * completer.c (add_struct_fields): Check type_name against NULL
12754 before use.
12755
692263b8
JB
127562009-02-03 Joel Brobecker <brobecker@adacore.com>
12757
12758 * MAINTAINERS: Update Elena's email address.
12759
bfa149ac
JB
127602009-02-02 Joel Brobecker <brobecker@adacore.com>
12761
12762 * breakpoint (update_watchpoint): Minor comment adjustment.
12763
1c71341a
TT
127642009-02-02 Tom Tromey <tromey@redhat.com>
12765
52e44b43 12766 PR gdb/9594:
1c71341a
TT
12767 * completer.c (count_struct_fields): Count method names.
12768 (add_struct_fields): Add matching method names.
12769
85541719
DE
127702009-02-02 Doug Evans <dje@google.com>
12771
12772 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
12773 doing any further tcl/tk configury. Don't configure gdbtk if
12774 tcl or tk check fails.
12775 * aclocal.m4: Regenerate.
12776 * configure: Regenerate.
12777
a4295225
TT
127782009-02-02 Tom Tromey <tromey@redhat.com>
12779
12780 PR exp/9059:
12781 * valops.c (find_overload_match): Follow typedefs before taking
12782 address of object argument.
12783
f00150c9
DE
127842009-02-01 Doug Evans <dje@google.com>
12785
12786 * target.h (target_waitstatus_to_string): Declare.
12787 * target.c (target_waitstatus_to_string): New function. Copied from
12788 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
12789 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
12790 TARGET_WAITKIND_NO_HISTORY.
12791 (debug_to_wait): Call it.
12792 * infrun.c (wait_for_inferior): If debug_infrun, print result of
12793 target_wait.
12794 (fetch_inferior_event): Ditto.
12795
5abdf4bd
TT
127962009-01-30 Tom Tromey <tromey@redhat.com>
12797
12798 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
12799
592375cd
VP
128002009-01-30 Vladimir Prus <vladimir@codesourcery.com>
12801
12802 PR 8145.
12803 * thread.c (do_captured_list_thread_ids): Report the current
12804 thread id.
12805
41447f92
VP
128062009-01-30 Vladimir Prus <vladimir@codesourcery.com>
12807
12808 * breakpoint.c (create_breakpoint, create_breakpoints)
12809 (break_command_really, set_breakpoint): New parameter enabled.
12810 (create_breakpoint, break_command_really): Make breakpoint
12811 disabled if so requested.
12812 * breakpoint.h (set_breakpoint): New parameter enabled.
12813 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
12814
35669430
DE
128152009-01-28 Doug Evans <dje@google.com>
12816
12817 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
12818 (amd64_displaced_step_fixup): Declare.
12819 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
12820 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
12821 and make static global.
12822 (amd64_arch_regmap_len): New static global.
12823 (amd64_arch_reg_to_regnum): New function.
12824 (struct amd64_insn): New struct.
12825 (struct displaced_step_closure): New struct.
12826 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
12827 (rex_prefix_p,skip_prefixes)
12828 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
12829 (amd64_insn_length,amd64_get_unused_input_int_reg)
12830 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
12831 (amd64_displaced_step_copy_insn)
12832 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
12833 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
12834 (amd64_displaced_step_fixup): New functions.
12835 * amd64-linux-tdep.c: #include arch-utils.h.
12836 (amd64_linux_init_abi): Install displaced stepping support.
12837
4eb7c016
JG
128382009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
12839 Jerome Guitton <guitton@adacore.com>
12840
12841 * configure, config.in: Regenerated.
12842 * configure.ac: Add --with-system-gdbinit.
12843 * main.c (get_init_files): New.
12844 (captured_main): Use get_init_files. Load system gdbinit before
12845 $HOME/.gdbinit.
12846 (print_gdb_help): Print location of init files.
12847
7df3ce47
PA
128482009-01-28 Pedro Alves <pedro@codesourcery.com>
12849
12850 * corefile.c (generic_search): Delete disabled code.
12851 * gdbcore.h (generic_search): Delete declaration.
12852
77435e4c
PA
128532009-01-26 Pedro Alves <pedro@codesourcery.com>
12854
12855 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
12856 parent to the child.
12857 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
12858 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
12859 remove_breakpoints to remove breakpoints from the parent.
12860
1e275f79
PA
128612009-01-26 Pedro Alves <pedro@codesourcery.com>
12862
7488432f 12863 PR backtrace/9458, PR backtrace/8864:
1e275f79
PA
12864 * frame.c (create_new_frame): Update the frame's cached PC before
12865 finding its unwinder. Use frame_id_build to build the new frame's
12866 id.
12867 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
12868 array values from the ``args'' array values.
12869
1deafd4e
PA
128702009-01-26 Pedro Alves <pedro@codesourcery.com>
12871
12872 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
12873 (create_array_type, create_set_type, init_flags_type)
12874 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
12875 with a call to XZALLOC or XCALLOC, and pairs of calls to
12876 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
12877
3c16cced
PA
128782009-01-26 Pedro Alves <pedro@codesourcery.com>
12879
12880 Add "maint set|show internal-error|internal-warning quit|corefile
12881 ask|yes|no" commands.
12882
12883 PR gdb/7580:
12884 * utils.c (internal_problem_ask, internal_problem_yes)
12885 (internal_problem_no, internal_problem_modes): New.
12886 (struct internal_problem): Remove FIXME. Make should_quit and
12887 should_dump_core types to char *.
12888 (internal_vproblem, internal_error_problem)
12889 (internal_warning_problem): Adjust.
12890 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
12891 functions.
12892 (add_internal_problem_command): New.
12893 (_initialize_utils): New.
12894
616d7dd2
PA
128952009-01-25 Pedro Alves <pedro@codesourcery.com>
12896
12897 * infcmd.c (program_info): Use paddress instead of casting stop_pc
12898 to unsigned long.
12899
0516318b
PA
129002009-01-24 Pedro Alves <pedro@codesourcery.com>
12901
12902 * infrun.c (normal_stop): Don't call
12903 deprecated_update_frame_pc_hack.
12904 * frame.c (deprecated_update_frame_pc_hack)
12905 (deprecated_update_frame_base_hack): Delete, and ...
12906 (create_new_frame): ... inline here.
12907 * frame.h (deprecated_update_frame_pc_hack)
12908 (deprecated_update_frame_base_hack): Delete declarations.
12909
1e8fb976
PA
129102009-01-23 Pedro Alves <pedro@codesourcery.com>
12911
12912 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
12913 * cli/cli-setshow.c (do_setshow_command): Handle it.
12914 * command.h (enum var_types): Add var_zuinteger.
12915 (add_setshow_zuinteger_cmd): Declare.
12916
12917 * valprint.c (_initialize_valprint): Change the set input-radix
12918 and set output-radix commands to zuinteger type.
12919
dd7e2d2b
PA
129202009-01-23 Pedro Alves <pedro@codesourcery.com>
12921
12922 PR gdb/9664:
12923 * infrun.c (normal_stop): Tag threads as stopped, and run the
12924 hook-stop before printing the stack frame.
12925
392452f6
PA
129262009-01-22 Pedro Alves <pedro@codesourcery.com>
12927
12928 PR c++/9631:
12929 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
12930 vbasetype.
12931
f6a96b83
KH
129322009-01-20 Kazu Hirata <kazu@codesourcery.com>
12933
12934 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
12935 unsigned long.
12936
5d277928 129372009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
a12cc160
DJ
12938
12939 PR gdb/9346
12940 * infcmd.c (signal_command): Do not specify a resume PC.
12941
b89667eb
DE
129422009-01-19 Doug Evans <dje@google.com>
12943
12944 * dummy-frame.c (dummy_frame): Replace regcache member with
12945 caller_state.
12946 (dummy_frame_push): Replace caller_regcache arg with caller_state.
12947 All callers updated.
12948 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
12949 (dummy_frame_pop): Rewrite. Verify requested frame is in the
12950 dummy frame stack. Restore program state.
12951 (cleanup_dummy_frames): Rewrite.
12952 (dummy_frame_sniffer): Update. Make static.
12953 * dummy-frame.h (regcache,frame_info): Delete forward decls.
12954 (inferior_thread_state): New forward decl.
12955 (dummy_frame_push): Update prototype.
12956 * frame.c (frame_pop): dummy_frame_pop now does all the work for
12957 DUMMY_FRAMEs.
12958 * infcall.c (breakpoint_auto_delete_contents): Delete.
12959 (get_function_name,run_inferior_call): New fns.
12960 (call_function_by_hand): Simplify by moving some code to
12961 get_function_name, run_inferior_call. Inferior function call wrapped
12962 in TRY_CATCH so there's less need for cleanups and all exits from
12963 proceed are handled similarily. Detect program exit.
12964 Detect program stopping in a different thread.
12965 Make error messages more consistent.
12966 * inferior.h (inferior_thread_state): Declare (opaque type).
12967 (save_inferior_thread_state,restore_inferior_thread_state,
12968 make_cleanup_restore_inferior_thread_state,
12969 discard_inferior_thread_state, get_inferior_thread_state_regcache):
12970 Declare.
12971 (save_inferior_status): Update prototype.
12972 * infrun.c: (normal_stop): When stopped for the completion of an
12973 inferior function call, verify the expected stack frame kind.
12974 (inferior_thread_state): New struct.
12975 (save_inferior_thread_state,restore_inferior_thread_state,
12976 do_restore_inferior_thread_state_cleanup,
12977 make_cleanup_restore_inferior_thread_state,
12978 discard_inferior_thread_state,
12979 get_inferior_thread_state_regcache): New functions.
12980 (inferior_status): Move stop_signal, stop_pc, registers to
12981 inferior_thread_state. Remove restore_stack_info.
12982 (save_inferior_status): Remove arg restore_stack_info.
12983 All callers updated. Remove saving of state now saved by
12984 save_inferior_thread_state.
12985 (restore_inferior_status): Remove restoration of state now done by
12986 restore_inferior_thread_state.
12987 (discard_inferior_status): Remove freeing of registers, now done by
12988 discard_inferior_thread_state.
12989
aefc7064
PA
129902009-01-18 Pedro Alves <pedro@codesourcery.com>
12991
12992 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
12993 at a time, times NUM_TO_SCROLL.
12994 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
12995 fetch the selected frame if there is no stack.
12996
29f49a6a
PA
129972009-01-18 Pedro Alves <pedro@codesourcery.com>
12998
12999 PR gdb/9747:
13000 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
13001 Declare.
13002 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
13003 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
13004 is thrown while handling an event, finish the thread state.
13005 (normal_stop): Use finish_thread_state cleanup.
13006 * infcmd.c (run_command_1): If an error is thrown while starting
13007 the inferior, finish the thread state.
13008
e7243d73
PA
130092009-01-18 Pedro Alves <pedro@codesourcery.com>
13010
13011 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
13012 skip breakpoints without a location (pending breakpoints).
13013
e74994b5
PA
130142009-01-18 Pedro Alves <pedro@codesourcery.com>
13015
13016 PR build/9186:
13017 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
13018
8405c36e
NR
130192009-01-18 Nick Roberts <nickrob@snap.net.nz>
13020
13021 * thread.c (thread_command): Move call to annotate_thread_changed
13022 to...
13023 (do_captured_thread_select): ... here, to avoid printing an
13024 annotation if the thread change generates an exception.
13025
b8bfd3ed
JB
130262009-01-16 Joel Brobecker <brobecker@adacore.com>
13027
13028 * NEWS: Document x86_64/MinGW as a new native configuration.
13029
2dde91e9
JB
130302009-01-16 Joel Brobecker <brobecker@adacore.com>
13031
13032 * NEWS: Move the documentation of "info os processes" to
13033 the appropriate section (documenting the new commands).
13034
54363045
DE
130352009-01-15 Doug Evans <dje@google.com>
13036
13037 * target.h (target_signal_to_string): Make return type const char *.
13038 (target_signal_to_name): Ditto.
13039 (target_signal_from_name): Make arg const char *.
54363045 13040 * infrun.c (sig_print_info): Update.
54363045
DE
13041 * signals/signals.c (signals): Make array and struct members const.
13042 (target_signal_to_string): Make return type const char *.
13043 (target_signal_to_name): Ditto.
13044 (target_signal_from_name): Make arg const char *.
13045
572d275c
UW
130462009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
13047 Tristan Gingold <gingold@adacore.com>
13048
13049 * solist.h (struct target_so_ops): New member bfd_open.
13050 (solib_find): Add prototype.
13051 (solib_bfd_fopen): Add prototype.
13052 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
13053 from solib_bfd_open.
13054 (solib_bfd_open): Use ops->bfd_open override if present. Call
13055 solib_find and solib_bfd_open otherwise.
13056
13057 * objfiles.h (OBJF_KEEPBFD): New define.
13058 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
13059 objfile flag is set.
13060 * solib.c (symbol_add_stub): Do not allocate second BFD for
13061 shared library; use OBJF_KEEPBFD flag on solib objfile.
13062
0701b271
UW
130632009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
13064
13065 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
13066
61212c0f
UW
130672009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
13068
13069 * value.h (address_of_variable): Add prototype.
13070 (locate_var_value): Remove prototype.
13071
13072 * findvar.c (read_var_value): Do not attempt to default frame
13073 to selected frame.
13074 (locate_var_value): Remove function.
13075 * valops.c (value_of_variable): Retrieve selected frame for
13076 symbols that require a frame when called with NULL block.
13077 * valops.c (address_of_variable): New function.
13078
13079 * eval.c (evaluate_subexp_for_address): Call address_of_variable
13080 instead of calling locate_var_value.
13081 (evaluate_subexp_with_coercion): Likewise.
13082
adb483fe
DJ
130832009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
13084
13085 * NEWS: Document "define" for prefixed commands.
13086 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
13087 show_user_1 for prefix commands.
13088 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
13089 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
13090 commands. Return the containing command list.
13091 (define_command, document_command): Update to handle prefix commands.
13092 (show_user_1): Add prefix and name arguments. Handle prefix
13093 commands.
13094 * cli/cli-script.h (show_user_1): Update prototype.
13095
a32d7317
KT
130962009-01-14 Kai Tietz <kai.tietz@onevision.com>
13097
92a610f3 13098 * ser-mingw.c (console_select_thread): Add return to make
a32d7317
KT
13099 compiler happy.
13100 (pipe_select_thread): Likewise.
13101 (file_select_thread): Likewise.
13102
041d0fd7
PA
131032009-01-14 Pedro Alves <pedro@codesourcery.com>
13104
13105 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
13106 previous change.
13107
dc1981d7
PA
131082009-01-14 Pedro Alves <pedro@codesourcery.com>
13109
13110 * remote.c (extended_remote_mourn_1): Invalidate our notion of
13111 current general thread.
13112
244bf9ae
PA
131132009-01-14 Pedro Alves <pedro@codesourcery.com>
13114
13115 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
13116 without a live selected thread.
13117
e4d013fc
JB
131182009-01-14 Joel Brobecker <brobecker@adacore.com>
13119
13120 Update the copyright notice of some of the files I missed
13121 in the previous copyright update.
13122
a588db63
JB
131232009-01-14 Joel Brobecker <brobecker@adacore.com>
13124
13125 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
13126 base address instead of casting it to DWORD.
13127
77a732d9
UW
131282009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
13129
13130 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
13131 for NULL frame pointers.
13132
773698b5
JB
131332009-01-13 Mark Kettenis <kettenis@gnu.org>
13134
13135 * utils.c (host_address_to_string): Reimplement in a way that
13136 avoids the cast of the address to long.
13137
9918cab9
JB
131382009-01-13 Joel Brobecker <brobecker@adacore.com>
13139
13140 * mdebugread.c (parse_symbol): Save the symbol private data
13141 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
13142 (psymtab_to_symtab_1): Likewise.
13143 (parse_procedure): Declare variable "e" only in the scope
13144 where it is used. Extract the symbol private data using
13145 SYMBOL_VALUE_BYTES.
13146
74bcbdf3
PA
131472009-01-13 Jim Blandy <jimb@codesourcery.com>
13148
13149 Abstract out common code for copying value locations.
13150
13151 * value.h (set_value_component_location): New declaration.
13152 * value.c (set_value_component_location): New function.
13153 (value_primitive_field): Use it.
13154 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
13155 * valops.c (search_struct_field, value_slice): Same.
13156 * ada-lang.c (coerce_unspec_val_to_type)
13157 (ada_value_primitive_packed_val): Same.
13158
d7dc3873
JB
131592009-01-13 Joel Brobecker <brobecker@adacore.com>
13160
13161 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
13162
dc05df57
CF
131632009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
13164
13165 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
13166 throughout.
13167 * i386-cygwin-tdep.c: Ditto.
13168 * i386-windows-nat.c: Ditto.
13169 * windows-nat.h: Ditto.
13170 * windows-tdep.c: Ditto.
13171 * windows-tdep.h: Ditto.
13172 * windows-nat.c: Ditto.
13173 (cygwin_load_start): Redefine as CORE_ADDR.
13174 (cygwin_load_end): Ditto.
b8511eeb 13175 (windows_make_so): Coerce result of address arithmetic to uintptr_t
dc05df57
CF
13176 before coercing to CORE_ADDR to avoid a compiler warning.
13177 (handle_exception): Define addr as CORE_ADDR and coerce
13178 ExceptionAddress to uintptr_t before assigining to avoid a compiler
13179 warning.
13180 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
13181 files.
13182
31b060a2
CF
131832009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13184
13185 Fix linking with --enable-targets=all:
13186 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
13187 (HFILES_NO_SRCDIR): Add windows-tdep.h.
13188 (ALLDEPFILES): Add windows-tdep.c.
13189
f3b6bd60 131902009-01-11 Chris Faylor <me.gdb@cgf.cx>
31b060a2
CF
13191
13192 * win32-nat.h: Delete.
13193 * windows-nat.h: Rename from win32-nat.h.
13194 * win32-nat.c: Delete.
13195 * windows-nat.c: Rename from win32-nat.c.
13196 * win32-termcap.c: Delete.
13197 * windows-termcap.c: Rename from win32-termcap.c.
13198 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
13199 * configure.ac: Handle rename from win32-termcap.c ->
13200 windows-termcap.c.
13201 * configure: Regenerate.
13202 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
13203 -> windows-termcap.c.
13204 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
13205 windows-tdep.h.
13206 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
13207 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
13208 windows-tdep.h.
13209 (win32_make_so): Handle cygwin compiler warning due to change of
13210 load_addr from DWORD to LPVOID.
13211 (handle_load_dll): Use %p in format string to properly print address
13212 and avoid a compiler warning.
13213 (DEBUG_EXCEPTION_SIMPLE): Ditto.
13214 (handle_exception): Ditto.
13215 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
13216 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
13217 windows-nat.o.
13218 * config/i386/mingw.mh: Ditto.
13219 * config/i386/mingw64.mh: Ditto.
13220
0311118f
JK
132212009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13222
13223 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
13224 arrayprint_recurse_level to a parameter. Update all the callers. New
13225 comment at autovariables.
13226
5f61c20e
JK
132272009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13228
13229 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
13230 coding style.
13231
132322009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
13233
13234 * target.c (target_xfer_partial): Use host_address_to_string to
13235 print the address of readbuf and writebuf. Cast the address of
13236 elements inside the myaddr buffer into intptr_t.
13237 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
13238 Cast the address of elements inside the myaddr buffer into
13239 intptr_t.
13240
5f61c20e 132412009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
13242
13243 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
13244 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
13245 * configure.host, configure.tgt: Add handling for x86_64/windows.
13246 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
13247 and amd64-windows-tdep.c.
13248
5f61c20e 132492009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
13250
13251 * win32-tdep.h, win32-tdep.c: New files.
13252 * i386-cygwin-tdep.h: Delete.
13253 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
13254 i386-cygwin-tdep.h.
13255 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
13256 * win32-nat.c: Likewise.
13257 * configure.tgt: Add win32-tdep.o to the list of target object
13258 files for i386-cygwin and i386-mingw targets.
13259
5f61c20e 132602009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
13261
13262 * win32-nat.h: New file.
13263 * win32-nat.c (mappings): Initialize to NULL.
13264 (win32_set_context_register_offsets): New function.
13265 * i386-windows-nat.c: New file.
13266 (mappings): Moved here from win32-nat.c.
13267 (_initialize_i386_windows_nat): New function.
13268 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
13269 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
13270
25fc6591
AS
132712009-01-09 Andreas Schwab <schwab@suse.de>
13272
13273 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
13274
87f70781
PA
132752009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
13276
13277 * gdbtypes.c (append_composite_type_field): Correct the location of
13278 appended fields.
13279
58d4abe1
PA
132802009-01-09 Pedro Alves <pedro@codesourcery.com>
13281
13282 * defs.h (deprecated_error_hook): Delete declaration.
13283 * interps.c (clear_interpreter_hooks): Adjust.
13284 * remote-sim.c (gdb_os_error): Don't try to call
13285 deprecated_error_hook. No need to call exit anymore.
13286 * top.c (deprecated_error_hook): Delete.
13287
e3cb3832
JB
132882009-01-09 Joel Brobecker <brobecker@adacore.com>
13289
13290 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
13291 to print the address of the gdbarch pointer.
13292
30737ed9
JB
132932009-01-09 Joel Brobecker <brobecker@adacore.com>
13294
13295 * gdbarch.sh: Fix all the compilation errors on amd64-windows
13296 due to casting a pointer to a long when printing a function
13297 address. Instead, use host_address_to_string to convert our
13298 address to a string.
13299 * gdbarch.c: Regenerate.
13300
ec4dfccf
JB
133012009-01-09 Joel Brobecker <brobecker@adacore.com>
13302
13303 * event-top.c (async_disconnect, async_stop_sig): use "raise"
13304 instead of "kill" to raise a signal.
13305
d3653bf6
JB
133062009-01-09 Joel Brobecker <brobecker@adacore.com>
13307
13308 * win32-nat.c (get_module_name): Change the type of parameter
13309 "base_address" to LPVOID. Remove unnecessary cast.
13310 (struct lm_info): Change type of load_addr to LPVOID.
13311 (win32_make_so): Change the type of parameter "load_addr"
13312 to LPVOID. Remove some unnecessary casts.
13313 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
13314 (win32_xfer_shared_libraries): Add missing cast.
13315
308a8808
JB
133162009-01-09 Joel Brobecker <brobecker@adacore.com>
13317
13318 * win32-nat.c (has_detach_ability, set_process_privilege):
13319 Cast the result of GetProcAddress to (void *) to avoid
13320 a compilation warning.
13321
5851ab76
JB
133222009-01-09 Joel Brobecker <brobecker@adacore.com>
13323
13324 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
13325 already defined.
13326
5732a500
JB
133272009-01-09 Joel Brobecker <brobecker@adacore.com>
13328
13329 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
13330 definition of local variable "done".
13331 (info_w32_command, handle_exception): Remove unnecessary cast.
13332
def4de3a
JB
133332009-01-09 Joel Brobecker <brobecker@adacore.com>
13334
13335 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
13336 DebugSetProcessKillOnExit. Update all uses in this file.
13337 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
13338 Update all uses in this file.
13339
133402009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
13341
13342 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
13343 and use it when pushing the target.
13344 (win32_attach, win32_create_inferior): Update call to
13345 do_initial_win32_stuff.
13346 (win32_detach, win32_mourn_inferior): Use our ops parameter
13347 instead of the global win32_ops to unpush the target.
13348
1be7fe8d
JB
133492009-01-09 Joel Brobecker <brobecker@adacore.com>
13350
13351 * ser-mingw.c (ser_windows_open): Use proper type when casting
13352 in call to _open_osfhandle.
13353
1dac1b47
KT
133542009-01-09 Kai Tietz <kai.tietz@onevision.com>
13355
13356 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
13357
ecf180db
JB
133582009-01-09 Joel Brobecker <brobecker@adacore.com>
13359
13360 * CONTRIBUTE: Minor reformatting.
13361
8234eceb
KT
133622009-01-08 Kai Tietz <kai.tietz@onevision.com>
13363
13364 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
13365 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
13366 export directory.
8234eceb 13367
72ee8797
NF
133682009-01-08 Nathan Froyd <froydnj@codesourcery.com>
13369
13370 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
13371 Call exit to make it obvious to GCC.
13372
f7545552
TT
133732009-01-08 Tom Tromey <tromey@redhat.com>
13374
13375 PR breakpoints/9350:
13376 * varobj.c (varobj_invalidate): Unconditionally free
13377 all_rootvarobj.
13378 * symfile.c (syms_from_objfile): Free local_addr when returning
13379 normally.
13380 * exec.c (exec_file_attach): Do cleanups before returning.
13381 (exec_file_command): Likewise.
13382 * corefile.c (reopen_exec_file): Do cleanups before returning.
13383 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
a2f63f5e 13384 returning.
f7545552
TT
13385 (do_vec_free): New function.
13386 (update_global_location_list): Make a cleanup for old_locations.
13387 Do cleanups before returning. Remove unused variable 'e'.
13388 (find_condition_and_thread): Free result of parsing the
13389 expression.
13390 (print_it_typical): Do cleanups before returning.
13391 (breakpoint_re_set_one): Always free sals.sals.
13392
dde02812
ES
133932009-01-08 Joel Brobecker <brobecker@adacore.com>
13394 Emi Suzuki <emi-suzuki@tjsys.co.jp>
a2f63f5e 13395
dde02812
ES
13396 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
13397 watchpoints.
13398
69bcc6bc
DE
133992009-01-07 Doug Evans <dje@google.com>
13400
13401 * top.c (gdb_prompt_string): Delete, unused.
13402
fa3a767f
PA
134032009-01-07 Pedro Alves <pedro@codesourcery.com>
13404
13405 Delete ONE_PROCESS_WRITETEXT leftovers.
13406
13407 * breakpoint.c (insert_bp_location): Delete process_warning
13408 argument. Adjust.
13409 (insert_breakpoint_locations): Adjust.
13410 (reattach_breakpoints): Adjust.
13411 * infrun.c (normal_stop): Drop "It might be running in another
13412 process" notice.
13413
7b93f36d
SS
134142009-01-07 Stan Shebs <stan@codesourcery.com>
13415
13416 * config/pa/linux.mh (XDEPFILES): Remove.
13417
0380c18b
DE
134182009-01-07 Doug Evans <dje@google.com>
13419
13420 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
13421
60023297
JK
134222009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13423
13424 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
13425 spacing, a regression from 2008-04-22.
13426
ea8992ce
JB
134272009-01-07 Joel Brobecker <brobecker@adacore.com>
13428
13429 * utils.c (gdb_print_host_address): Adjust implementation to
13430 reuse host_address_to_string. Move comment explaining the conversion
13431 from host address to string from here...
13432 (host_address_to_string): ... to there.
13433
301d2c47
ES
134342009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
13435
13436 * MAINTAINERS: Add myself for write after approval privileges.
13437
170ce852
TT
134382009-01-06 Tom Tromey <tromey@redhat.com>
13439
13440 * value.c (set_internalvar): Use value_free, not xfree.
13441
fdb7262a
JB
134422009-01-06 Jim Blandy <jimb@red-bean.com>
13443
bf1d7d9c
JB
13444 Check return values of functions declared with warn_unused_result
13445 attribute in GLIBC 2.8.
13446 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
13447 * inflow.c (check_syscall): New function.
13448 (new_tty): Use check_syscall to check return values from open and dup.
13449 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
13450 * main.c (captured_main): Call cwd after setting up gdb_stderr;
13451 check for errors from getcwd.
13452 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
13453 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
13454 (stdio_file_fputs): Same.
13455 * utils.c (internal_vproblem): abort if last-ditch error message
13456 write fails.
13457
fdb7262a
JB
13458 * top.c (gdb_init): Don't set the current directory here; that's
13459 already been done in captured_main.
13460
84603566
SL
134612009-01-06 Sandra Loosemore <sandra@codesourcery.com>
13462
13463 * ser-tcp.c: Adjust includes.
13464 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
13465 (tcp_auto_retry, tcp_retry_limit): Declare.
13466 (TIMEOUT): Remove, in favor of tcp_retry_limit.
13467 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
13468 (wait_for_connect): New function.
13469 (net_open): Use it. Add auto-retry logic.
13470 (set_tcp_cmd, show_tcp_cmd): New functions.
13471 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
13472 and "set/show tcp connect-timeout" commands.
13473 * NEWS: Document new commands.
13474
5171e6b3
TT
134752009-01-05 Tom Tromey <tromey@redhat.com>
13476
13477 * python/python-internal.h (Py_ssize_t): Define as int.
13478
a367a1f2
JB
134792009-01-05 Jim Blandy <jimb@red-bean.com>
13480
13481 * MAINTAINERS: Fix my e-mail address as steering committee member.
13482
0fb0cc75
JB
134832009-01-03 Joel Brobecker <brobecker@adacore.com>
13484
13485 Updated copyright notices for most files.
13486
c9fc347d
JB
134872009-01-03 Joel Brobecker <brobecker@adacore.com>
13488
13489 * top.c (print_gdb_version): Update copyright year.
13490
a85d99b4
JB
134912009-01-03 Joel Brobecker <brobecker@adacore.com>
13492
13493 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
13494
4d78a120
JB
134952009-01-01 Pedro Alves <pedro@codesourcery.com>
13496
13497 PR breakpoints/9681:
13498 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
13499 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
13500 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
13501 retrow all other exceptions.
13502
67de2a4c 13503For older changes see ChangeLog-2008.
c906108c
SS
13504\f
13505Local Variables:
13506mode: change-log
13507left-margin: 8
13508fill-column: 74
13509version-control: never
57da7796 13510coding: utf-8
c906108c 13511End:
This page took 1.739103 seconds and 4 git commands to generate.