gdb/ChangeLog:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
21e1bee4
PP
12009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2
3 PR gdb/10838
4 * linux-thread-db.c (thread_db_info): New member.
5 (disable_thread_event_reporting): Call td_ta_clear_event.
6
1e5a1abc
KS
72009-11-11 Keith Seitz <keiths@redhat.com>
8
9 * linespec.c (lookup_prefix_sym): Lookup the symbol
10 in both STRUCT_DOMAIN and VAR_DOMAIN.
11
1e061d1a
MS
122009-11-11 Michael Snyder <msnyder@vmware.com>
13
f801e1e0
MS
14 * darwin-nat-info.c: Update copyright.
15 * dbxread.c: Ditto.
16 * gdbarch.sh: Ditto.
17 * gdbarch.c: Ditto.
18 * gdbarch.h: Ditto.
19 * inline-frame.c: Ditto.
20 * inline-frame.h: Ditto.
21 * s390-nat.c: Ditto.
1e061d1a
MS
22
232009-11-11 Michael Snyder <msnyder@vmware.com>
9659616a
MS
24
25 * findvar.c (top level): Fix and add comments.
26
66c53f2b
KS
272009-11-10 Keith Seitz <keiths@redhat.com>
28
5efc7e44 29 * c-exp.y (operator_stoken): New function.
66c53f2b
KS
30 (OPERATOR): New token.
31 (NEW): New token.
32 (DELETE): New token.
33 (operator): New rule.
34 (name): Add operator.
35 (ident_tokens): Add "new", "delete", and "operator".
36 * gdbtypes.c (rank_one_type): Don't complain about
37 void pointer conversion badness if both types are
38 void pointers.
39
32a0e547
JK
402009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 * symfile.c (separate_debug_file_exists): Change parameter parent_name
43 to parent_objfile. New variables parent_stat and abfd_stat. Call
44 strcmp and then bfd_stat functions to verify if NAME matches.
45 (find_separate_debug_file): Update the passed parameter at caller.
46
9b14d7aa
JK
472009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 * objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap.
50
da2f07f1
JK
512009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 * configure.ac: Call ACX_LARGEFILE.
54 * aclocal.m4: Call m4_include for ../config/largefile.m4 and
55 ../config/plugins.m4.
56 * configure: Regenerate.
57 * config.in: Regenerate.
58
072bba3b
KS
592009-11-10 Keith Seitz <keiths@redhat.com>
60
61 * c-exp.y: Add new rule for resolving method overloads.
62 * eval.c (make_params): New function.
63 (free_param_types): New function.
64 (evaluate_subexp_standard): Pass expect_type to value_aggregate_elt.
65 Handle case TYPE_INSTANCE.
66 (evaluate_subexp_for_address): Pass expect_type to value_aggregate_elt.
67 * expression.h (enum exp_opcode): Add TYPE_INSTANCE.
68 (compare_parameters): Add declaration.
69 * parse.c (operator_length_standard): Add TYPE_INSTANCE.
70 * valops.c (value_aggregate_elt): Add new expect_type parameter.
71 Pass expect_type to value_struct_elt_for_reference.
72 (value_struct_elt_for_reference): Add expect_type parameter and use
73 compare_parameters.
74 Check for overload matches with and without artificial parameters.
75 Skip artificial methods.
76 (compare_parameters): New function.
77 * value.h (value_aggregate_elt): Add new expect_type parameter.
78
de64a9ac
JM
792009-11-10 Joseph Myers <joseph@codesourcery.com>
80
81 * solib-svr4.c (enable_break): Call
82 gdbarch_convert_from_func_ptr_addr on results of looking up
83 fallback symbol names.
84
75125405
DJ
852009-11-10 Daniel Gutson <dgutson@codesourcery.com>
86
87 * procfs.c (procfs_do_thread_registers): Added a call to fetch
88 register values before saving them in the core file
89 through the gcore command.
90 (procfs_corefile_thread_callback): Removed the backup of
91 inferior_ptid before calling procfs_do_thread_registers since
92 the function already saves and restores it before returning.
93
9659616a
MS
942009-11-10 Michael Snyder <msnyder@vmware.com>
95
96 * dcache.c (dcache_invalidate_line): Remove block from used list
97 when adding it to freed list.
98
e124be18
MS
992009-11-10 Michael Snyder <msnyder@vmware.com>
100
101 * dcache.c: Fix typo, shorten long lines in comment.
102
7d2552b4
TG
1032009-11-10 Tristan Gingold <gingold@adacore.com>
104
105 * avr-tdep.c: Add AVR_PSEUDO_PC_REGNUM and AVR_NUM_PSEUDO_REGS.
106 (struct gdbarch_tdep): Add void_type, func_void_type and pc_type
107 fields.
108 (avr_register_name): Add "pc" name, renames "PC" to "PC2".
109 (avr_register_type): Handle AVR_PSEUDO_PC_REGNUM.
110 (avr_write_pc): Fix indentation.
111 (avr_pseudo_register_read): New function.
112 (avr_pseudo_register_write): New function.
113 (avr_frame_prev_register): Handle AVR_PSEUDO_PC_REGNUM.
114 (avr_gdbarch_init): Create types for pc. Register pseudo regs.
115
8a1d23b2
TG
1162009-11-10 Tristan Gingold <gingold@adacore.com>
117
118 * avr-tdep.c (avr_integer_to_address): New function.
119 (avr_gdbarch_init): Set integer_to_address.
120
8c201e54
TG
1212009-11-10 Tristan Gingold <gingold@adacore.com>
122
123 * avr-tdep.c (avr_skip_prologue): First try to skip prologue
124 using skip_prologue_using_sal.
125
1bd0bb72
TG
1262009-11-10 Tristan Gingold <gingold@adacore.com>
127
128 * avr-tdep.c (avr_extract_return_value): Remove.
129 (avr_return_value): Mostly rewritten. Fix handling for structures.
130 (avr_push_dummy_call): Handle struct_return.
131
1322009-11-10 Tristan Gingold <gingold@adacore.com>
133
134 * avr-tdep.c (avr_scan_prologue): Decode instructions used for
135 small stack allocation.
136 Adjust code for prologue that don't write SP.
137
ee143e81
TG
1382009-11-10 Tristan Gingold <gingold@adacore.com>
139
140 * avr-tdep.c (avr_make_saddr): Return 0 for NULL.
141
53f6a2c9
TG
1422009-11-10 Tristan Gingold <gingold@adacore.com>
143
144 * avr-tdep.c (avr_dwarf_reg_to_regnum): New function.
145 (avr_gdbarch_init): Call set_gdbarch_dwarf2_reg_to_regnum.
146
3ffc00b8
JB
1472009-11-09 Sebastien Granjoux <seb.sfo@free.fr>
148
149 PR mi/9583:
150 * symtab.c (find_line_symtab, append_exact_match_to_sals)
151 (expand_line_sal): Use full filename when setting breakpoints if
152 available
153
de4affc9
CC
1542009-11-09 Cary Coutant <ccoutant@google.com>
155
156 * dwarf2read.c (read_import_statement): Don't clobber original cu.
157
86c6265d
TT
1582009-11-09 Tom Tromey <tromey@redhat.com>
159
160 * python/python.c (execute_gdb_command): Copy the argument text.
161
bbaa04b8
VP
1622009-11-06 Vladimir Prus <vladimir@codesourcery.com>
163
164 * m68k-tdep.c (m68k_convert_register_p): Correct
165 messup.
166
3c1ac6e7
VP
1672009-11-06 Vladimir Prus <vladimir@codesourcery.com>
168
169 * m68k-tdep.c (m68k_convert_register_p): Compare with
170 the actual type of fp registers, not one of the possible
171 values.
172
c271b6e2
VP
1732009-11-06 Vladimir Prus <vladimir@codesourcery.com>
174
175 Prevent program output from mix with "^running".
176
177 gdb/
178 * mi/mi-interp.c (mi_on_resume): Output token
179 and "^running" together, so that nothing else gets
180 in between.
181
d85a05f0
DJ
1822009-11-05 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * dwarf2read.c (struct dwarf2_cu): Remove ranges_offset and
185 has_ranges_offset.
186 (struct partial_die_info): Remove language, has_stmt_list, dirname,
187 and line_offset.
188 (dwarf2_build_include_psymtabs): Take a die_info. Handle a missing
189 line table.
190 (dwarf2_get_pc_bounds): Take PST argument. Pass it
191 to dwarf2_ranges_read. Update all callers.
192 (init_cu_die_reader): Move earlier.
193 (dwarf2_find_base_address): New function.
194 (process_psymtab_comp_unit): Rewrite to use a full DIE for the
195 compilation unit. Use dwarf2_get_pc_bounds and
196 dwarf2_find_base_address.
197 (load_comp_unit): Rewrite to use a full DIE for the compilation unit.
198 (process_full_comp_unit): Use dwarf2_find_base_address.
199 (read_partial_die): Remove support for attributes only used
200 in the compilation unit DIE.
201 * symfile.c (allocate_psymtab): Make FILENAME const.
202 (start_psymtab_common): Likewise.
203 * symfile.h (allocate_psymtab, start_psymtab_common): Update
204 prototypes.
205
10abe6bf
TT
2062009-11-05 Tom Tromey <tromey@redhat.com>
207
208 * symmisc.c (print_symbol_bcache_statistics): Print filename cache
209 statistics.
210 (print_objfile_statistics): Likewise.
211 * symfile.c (reread_symbols): Initialize filename_cache.
212 (allocate_symtab): Cache the file name.
213 (allocate_psymtab): Likewise.
214 * solib-sunos.c (allocate_rt_common_objfile): Initialize
215 filename_cache.
216 * objfiles.h (struct objfile) <filename_cache>: New field.
217 * objfiles.c (allocate_objfile): Initialize filename_cache.
218 (free_objfile): Free filename_cache.
219
69a943f0
TT
2202009-11-05 Tom Tromey <tromey@redhat.com>
221
222 * symfile.c (add_psymbol_to_bcache): Make 'psymbol' static again.
223 Zero the 'value' field.
224
bba66b87
DE
2252009-11-05 Doug Evans <dje@google.com>
226
227 * amd64-tdep.c (amd64_init_frame_cache): Enhance comment describing
228 saved_regs.
229
52efb61a
DJ
2302009-11-05 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * top.c (execute_command): Select a frame before checking the current
233 language. Only output a message if verbose.
234
1c9e8358
TT
2352009-11-05 Tom Tromey <tromey@redhat.com>
236
237 * symtab.h (SYMBOL_SET_LINKAGE_NAME): Update comment.
238 * symfile.c (allocate_symtab): Don't use obsavestring on a
239 constant string.
240 * stabsread.c (define_symbol): Don't use obsavestring on a
241 constant string.
242 * mdebugread.c (parse_type): Don't use obsavestring on a constant
243 string.
244 (new_symtab): Likewise.
245 * elfread.c (elf_symtab_read): Don't use obsavestring on a
246 constant string.
247
8c2963fb
TT
2482009-11-04 Tom Tromey <tromey@redhat.com>
249
250 * symfile.c (add_psymbol_to_bcache): Don't copy name. Make
251 'psymbol' non-static.
252
12b6a110
PP
2532009-11-03 Paul Pluzhnikov <ppluzhnikov@google.com>
254
255 * linux-thread-db.c (disable_thread_event_reporting): Adjust.
256
b06adb81
JB
2572009-11-03 Joel Brobecker <brobecker@adacore.com>
258
259 * MAINTAINERS (Responsible Maintainers): Add Tristan Gingold as
260 maintainer of the avr target.
261
ad09a548
DJ
2622009-11-02 Daniel Jacobowitz <dan@codesourcery.com>
263
264 * elfread.c (elf_symfile_segments): Do not warn about
265 uninitialized sections outside of load segments.
266
24ddea62
JK
2672009-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
268
269 * symfile.c (build_id_to_debug_filename): New variable debugdir. Move
270 variables size, s and data into a new inner block. Change xmalloc for
271 alloca, use direct BUILDID->SIZE there now. Loop for the
272 DEBUG_FILE_DIRECTORY components.
273 (find_separate_debug_file): New variable debugdir and debugdir_end.
274 Loop for the DEBUG_FILE_DIRECTORY components.
275 (_initialize_symfile): For "debug-file-directory" use plural and note
276 one can use multiple components now.
277
25522fae
JK
2782009-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
279
280 * symfile.c (find_separate_debug_file): Initialize dir, debugfile and
281 canon_name to NULL. Change alloca to xmalloc, newly call xfree for it.
282 New label cleanup_return_debugfile, jump to it from the failure paths.
283
287ccc17
JK
2842009-11-02 Andrew Cagney <cagney@gnu.org>
285
286 * symfile.c (separate_debug_file_exists): When the CRCs mismatch
287 print a warning.
288 (find_separate_debug_file): Pass in the objfile's name.
289
abd0a5fa
JK
2902009-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
291
292 Remove INVALID_ENTRY_POINT.
293 * frame.c (inside_entry_func): New variable entry_point. Return 0 if
294 the entry point is not known.
295 * solib-irix.c (enable_break): Likewise.
296 * objfiles.c (init_entry_point_info): Stop using INVALID_ENTRY_POINT.
297 Initialize EI.ENTRY_POINT_P.
298 (entry_point_address): Rename to ...
299 (entry_point_address_query): ... a new function. Use EI.ENTRY_POINT_P.
300 (entry_point_address): New function.
301 (objfile_relocate): Use EI.ENTRY_POINT_P.
302 * objfiles.h (struct entry_info): Simplify entry_point comment. New
303 field entry_point_p.
304 (INVALID_ENTRY_POINT): Remove.
305 (entry_point_address_query): New prototype.
306 * solib-frv.c (enable_break): Check for NULL SYMFILE_OBJFILE and its
307 EI.ENTRY_POINT_P. Return 0 if ".interp" is not found.
308
399cd161
MS
3092009-11-01 Michael Snyder <msnyder@vmware.com>
310
311 * NEWS (New Commands): Mention record save/restore.
312
3d947dff
MS
3132009-10-31 Michael Snyder <msnyder@vmware.com>
314
315 * breakpoint.c (bpstat_stop_status): Fix broken comment.
316
07b7cff3
PA
3172009-10-31 Pedro Alves <pedro@codesourcery.com>
318
319 * record.c (record_restore, cmd_record_save): Debug output goes to
320 gdb_stdlog.
321
08bca259 3222009-10-31 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
bccd0dd2
SDJ
323
324 * breakpoint.c (catch_syscall_split_args): Remove unecessary warning
325 displayed when the user provided a syscall name and there is no
326 XML support.
327 * xml-syscall.c: Renamed `_sysinfo' to `sysinfo'.
328 (set_xml_syscall_file_name): Remove syscall_warn_user.
329 (xml_init_syscalls_info): Remove warning.
330 (init_sysinfo): Update warnings.
331
5d4e2b76
VP
3322009-10-30 Vladimir Prus <vladimir@codesourcery.com>
333
334 Fix breakpoint commands in MI.
335
336 * mi/mi-main.c (mi_execute_command): Run bpstat_do_actions.
337 * mi/mi-cmd-break.c (mi_cmd_break_commands): Pass 1 to
338 read_command_line_1 to actually parse composite commands.
339
8a35fb51
SL
3402009-10-29 Sandra Loosemore <sandra@codesourcery.com>
341
342 PR gdb/10783
343
344 * target.c (simple_search_memory): Correct read_addr initialization
345 in loop for searching subsequent chunks.
346
5fed8c43
DJ
3472009-10-28 Daniel Jacobowitz <dan@codesourcery.com>
348
349 Reported by Antti Hatala <ahatala@nvidia.com>.
350
351 * arm-tdep.c (thumb_get_next_pc): Limit check to IT instructions
352 correctly.
353
875cdfbb
PA
3542009-10-28 Pedro Alves <pedro@codesourcery.com>
355
356 * dwarf2-frame.c (dwarf2_build_frame_info): Discard --gc-section
357 leftover FDEs.
358
c4dbc9af
PA
3592009-10-28 Pedro Alves <pedro@codesourcery.com>
360
361 * infrun.c (keep_going): Wrap with resume_cleanups.
362
7dbc3bd2
PP
3632009-10-27 Paul Pluzhnikov <ppluzhnikov@google.com>
364
365 * MAINTAINERS: Add self to "modify-after-approval" maintainers.
366
02c6c942
PP
3672009-10-27 Paul Pluzhnikov <ppluzhnikov@google.com>
368
369 PR gdb/10757
370 * linux-thread-db.c (attach_thread): Return success/failure
371 indicator.
372 (thread_db_find_new_threads_silently): Retry until no new threads.
373 (struct callback_data): New.
374 (find_new_threads_callback): Count new threads, stop iteration
375 on error.
376 (find_new_threads_once): New function.
377 (thread_db_find_new_threads_2): Rename from
378 thread_db_find_new_threads_1 and adjust.
379 (thread_db_find_new_threads_1): New function.
380
0cf5390e
ME
3812009-10-26 Michael Eager <eager@eagercon.com>
382
383 * MAINTAINERS: Add self to "modify-after-approval" maintainers.
384
0ebc2096
HZ
3852009-10-26 Michael Snyder <msnyder@vmware.com>
386 Hui Zhu <teawater@gmail.com>
387
388 * Makefile.in (SFILES): Add gcore.c.
389 (COMMON_OBS): Add gcore.o.
390 * config/alpha/alpha-linux.mh (NATDEPFILES): Delete gcore.o.
391 * config/alpha/fbsd.mh (NATDEPFILES): Ditto.
392 * config/arm/linux.mh (NATDEPFILES): Ditto.
393 * config/i386/fbsd.mh (NATDEPFILES): Ditto.
394 * config/i386/fbsd64.mh (NATDEPFILES): Ditto.
395 * config/i386/i386sol2.mh (NATDEPFILES): Ditto.
396 * config/i386/linux.mh (NATDEPFILES): Ditto.
397 * config/i386/linux64.mh (NATDEPFILES): Ditto.
398 * config/i386/sol2-64.mh (NATDEPFILES): Ditto.
399 * config/ia64/linux.mh (NATDEPFILES): Ditto.
400 * config/m32r/linux.mh (NATDEPFILES): Ditto.
401 * config/m68k/linux.mh (NATDEPFILES): Ditto.
402 * config/mips/linux.mh (NATDEPFILES): Ditto.
403 * config/pa/linux.mh (NATDEPFILES): Ditto.
404 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
405 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
406 * config/s390/s390.mh (NATDEPFILES): Ditto.
407 * config/sparc/fbsd.mh (NATDEPFILES): Ditto.
408 * config/sparc/linux.mh (NATDEPFILES): Ditto.
409 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
410 * config/sparc/sol2.mh (NATDEPFILES): Ditto.
411 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
412 * target.c (dummy_find_memory_regions): Change output.
413 (dummy_make_corefile_notes): Ditto.
414
53f6a2c9
TG
4152009-10-26 Tristan Gingold <gingold@adacore.com>
416
417 * charset.c (_initialize_charset): Set a default value to
418 auto_host_charset_name if empty.
419
6d1915d4
TG
4202009-10-26 Tristan Gingold <gingold@adacore.com>
421
422 * avr-tdep.c (avr_push_dummy_call): Handle avr6 architecture.
423 Fix the returned value. Fix style.
424
599ec134
JB
4252009-10-26 Joel Brobecker <brobecker@adacore.com>
426
427 * MAINTAINERS (Responsible Maintainers): Add info about the microblaze
428 targets. Add Michael Eager as the maintainer for this target.
429
876fa593
JK
4302009-10-25 Jan Kratochvil <jan.kratochvil@redhat.com>
431
432 Performance optimize large bp_location count.
433 * breakpoint.c (ALL_BP_LOCATIONS_SAFE): Remove.
434 (ALL_BP_LOCATIONS): New parameter BP_TMP. Use now bp_location and
435 bp_location_count.
436 (bp_location_chain): Remove variable.
437 (bp_location, bp_location_count)
438 (bp_location_placed_address_before_address_max)
439 (bp_location_shadow_len_after_address_max): New variables.
440 (moribund_locations, update_watchpoint): Update the bp_location
441 variable name.
442 (breakpoint_restore_shadows): Extend the comment. Move the variable
443 b to local blocks. Move the variables bp_addr, bp_size and bptoffset
444 to a local block. New variables bc_l, bc_r and bc. New binary search
445 for the left range boundary. New break on reaching the right range
446 boundary. Move shadow existence conditionals to ...
447 (bp_location_has_shadow): ... a new function.
448 (insert_breakpoint_locations): Replace the temp variable by bp_tmp.
449 Use now ALL_BP_LOCATIONS instead of ALL_BP_LOCATIONS_SAFE.
450 (remove_breakpoints, remove_hw_watchpoints, reattach_breakpoints)
451 (detach_breakpoints): New variable bp_tmp. Update the ALL_BP_LOCATIONS
452 calling convention.
453 (update_breakpoints_after_exec): New variable bplocp_tmp. Update the
454 ALL_BP_LOCATIONS calling convention.
455 (breakpoint_here_p, software_breakpoint_inserted_here_p)
456 (breakpoint_thread_match): New variable bptp_tmp. Drop the const
457 attribute of bpt. Update the ALL_BP_LOCATIONS calling convention.
458 (regular_breakpoint_inserted_here_p): Likewise. Update the bp_location
459 variable name.
460 (mark_breakpoints_out, breakpoint_init_inferior): New variable
461 bptp_tmp. Update the ALL_BP_LOCATIONS calling convention.
462 (bpstat_stop_status): New variables blp_tmp and update_locations. Drop
463 the const attribute of bl. Update the ALL_BP_LOCATIONS calling
464 convention. Protect HIT_COUNT increment by an ENABLE_STATE check.
465 Delay the update_global_location_list call using update_locations.
466 (set_default_breakpoint): Drop the check_duplicates name from comment.
467 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib):
468 New variable locp_tmp. Update the ALL_BP_LOCATIONS calling convention.
469 (bp_location_compare, bp_location_compare_for_qsort)
470 (bp_location_target_extensions_update): New functions.
471 (check_duplicates, check_duplicates_for): Remove, moving their code ...
472 (update_global_location_list): ... into this existing function. Remove
473 variables next, loc2, old_locations, ret and ix. New variables locp,
474 loc_first, old_location, old_locp and old_location_count. Stop using
475 global_next, create now the array bp_location, sort it by
476 bp_location_compare_for_qsort and call
477 bp_location_target_extensions_update. Change quadratic iteration by
478 loc2 into an in-sync scanning by locp and loc2p. Rename former loc
479 usage as old_loc.
480 (do_vec_free): Remove.
481 (breakpoint_program_space_exit): Update the ALL_BP_LOCATIONS calling
482 convention.
483 (remove_breakpoints_pid): New variable b_tmp. Update the
484 ALL_BP_LOCATIONS calling convention.
485 * breakpoint.h (struct bp_location <global_next>): Remove.
486
342b5fef
JK
4872009-10-25 Jan Kratochvil <jan.kratochvil@redhat.com>
488
489 * mep-tdep.c: Update include for the new location cgen/bitset.h.
490
a515ee82
TT
4912009-10-23 Tom Tromey <tromey@redhat.com>
492
493 * blockframe.c (_initialize_blockframe): Remove declaration.
494
bcbfd759
DE
4952009-10-23 Doug Evans <dje@google.com>
496
497 * record.c (record_core_xfer_partial): Pass correct offset to
498 record_beneath_to_xfer_partial.
499
6aa96d03
MS
5002009-10-23 Michael Snyder <msnyder@vmware.com>
501
502 * record.c (top level): Don't include byteswap.h.
503 (netorder64): Use store_unsigned_integer instead of bswap_64.
504 (netorder32): Use store_unsigned_integer instead of bswap_32.
505 (netorder16): Use store_unsigned_integer instead of bswap_16.
506
3332cef8
MS
5072009-10-23 Michael Snyder <msnyder@vmware.com>
508
509 * record.c (netorder64): Use BFD_ENDIAN_LITTLE not LITTLE_ENDIAN.
510 (netorder32): Ditto.
511 (netorder16): Ditto.
512
6a0fa043
PP
5132009-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
514
515 * objfiles.c (allocate_objfile): Use xzalloc.
516
1de1372d
HZ
5172009-10-23 Hui Zhu <teawater@gmail.com>
518
519 * record.c (record_restore): Use phex_nz.
520
2f6e5d7e
TG
5212009-10-23 Tristan Gingold <gingold@adacore.com>
522
7e2183cc
TG
523 * frame.c (frame_unwind_pc): Fix typo: remove duplicate 0x.
524
5252009-10-23 Tristan Gingold <gingold@adacore.com>
526
2f6e5d7e
TG
527 * objfiles.c (allocate_objfile): Remove useless test. Move
528 declaration of last_one to the block that uses it.
529
6a0fa043
PP
5302009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
531
532 * record.c (record_restore, cmd_record_save): Fix warnings.
533
9c419145
PP
5342009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
535
536 * disasm.h (DISASSEMBLY_OMIT_FNAME) New define.
537 (gdb_disassembly): Correct parameter name.
538 * disasm.c (dump_insns): Adjust.
539 (gdb_disassembly): Fix indentation.
540 * cli/cli-cmds.c (disassemble_command): Adjust.
541
97bd5475
MS
5422009-10-22 Michael Snyder <msnyder@vmware.com>
543
544 * infrun.c (keep_going): If insert_breakpoints fails,
545 print the reason.
546
65a97ab3
PP
5472009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
548
549 PR gdb/10819
550 * dwarf2-frame.c (find_cie): Don't call bsearch on empty cie_table.
551 * objfiles.c (find_pc_section): Likewise.
552 (update_section_map): Don't allocate empty table.
553
ca621225 5542009-10-22 Hui Zhu <teawater@gmail.com>
3332cef8 555 Michael Snyder <msnyder@vmware.com>
0156b218
MS
556
557 * record.c (RECORD_FILE_MAGIC): New constant.
558 (record_arch_list_cleanups): Renamed from record_message_cleanups.
559 (bfdcore_read): New function.
560 (netorder64): New function.
561 (netorder32): New function.
562 (netorder16): New function.
563 (record_restore): New function. Restore a saved record log.
564 (bfdcore_write): New function.
565 (cmd_record_restore): New function.
566 (cmd_record_save): New function. Save a record log to a file.
567 (_initialize_record): Set up commands for save and restore.
568
ca621225 5692009-10-22 Michael Snyder <msnyder@vmware.com>
0156b218
MS
570
571 * gcore.h: New file.
572 * gcore.c (create_gcore_bfd): New function.
573 (write_gcore_file): New function.
574 (call_target_sbrk): New function. Abstracted from gcore_command.
575 (gcore_command): Call call_target_sbrk.
576
27699eea
MS
5772009-10-22 Hui Zhu <teawater@gmail.com>
578 Michael Snyder <msnyder@vmware.com>
579
580 * record.c (record_core_ops): New ops target vector.
581 (record_core_open_1): New function. Open core target.
582 (record_open_1): New function. Open normal process record.
583 (record_open): Call one of the above.
584 (record_close): Allow for both core and normal targets.
585 (record_core_resume): New function.
586 (record_core_kill): New function.
587 (record_core_fetch_registers): New function.
588 (record_core_prepare_to_store): New function.
589 (record_core_store_registers): New function.
590 (record_core_xfer_partial): New function.
591 (record_core_insert_breakpoint): New function.
592 (record_core_remove_breakpoint): New function.
593 (record_core_has_execution): New function.
594 (init_record_core_ops): New function.
595 (_initialize_record): Call init_record_core_ops, add_target.
596
46187dff
TG
5972009-10-22 Tristan Gingold <gingold@adacore.com>
598
599 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
600 amd64_supply_fxsave for amd64. Fix the offset.
601 (i386_darwin_store_inferior_registers): Use amd64_collect_fxsave
602 for amd64.
603
d4709618
MG
6042009-10-21 Maxim Grigoriev <maxim2405@gmail.com>
605
606 * xtensa-tdep.c (XTENSA_ISA_BADPC): New.
607 (xtensa_scan_prologue): Replace read_memory with target_read_memory.
608 (call0_analyze_prologue): Use XTENSA_ISA_BADPC instead of "0".
609 (call0_frame_cache): Check error conditions on call0_analyze_prologue.
610
2b28d209
PP
6112009-10-21 Paul Pluzhnikov <ppluzhnikov@google.com>
612
613 * defs.h (pc_prefix): New prototype.
614 * disasm.c (dump_insns): Mark current instruction.
615 * printcmd.c (do_examine): Likewise.
616 (pc_prefix): New function.
617 * stack.c (print_frame_info): Disassemble entire current line.
618
b54295a7
MS
6192009-10-21 Michael Snyder <msnyder@vmware.com>
620
621 Elaborate "info record".
622 * record.c (struct record_end_entry): New field 'insn_num'.
623 (record_insn_count): New variable.
624 (record_open): Initialize record_insn_count.
625 (info_record_command): Display contents of record log as
626 lowest, current, and highest instruction counts.
627 (show_record_insn_number): Delete.
628 (_initialize_record): Remove add_cmd show_record_insn_number.
629
c9ac0a72
AS
6302009-10-21 Andrew Stubbs <ams@codesourcery.com>
631 Joel Brobecker <brobecker@adacore.com>
632
633 * Makefile.in (HFILES_NO_SRCDIR): Remove shnbsd-tdep.h
634 * configure.tgt (sh*-*-linux*): Add corelow.o to gdb_target_obs.
635 * sh-linux-tdep.c: Include sh-tdep.h.
636 (REGSx16): New macro.
637 (gregs_table, fpregs_table): New variables.
638 (sh_linux_init_abi): Set core_gregmap and fpregmap.
639 * sh-tdep.c: Include regset.h.
640 (sh_corefile_supply_regset): New function.
641 (sh_corefile_collect_regset): New function.
642 (sh_corefile_gregset, sh_corefile_fpregset): New variables.
643 (sh_regset_from_core_section): New function.
644 (sh_gdbarch_init): Set up tdep value.
645 Call set_gdbarch_regset_from_core_section.
646 * sh-tdep.h (PC_REGNUM): New enum value.
647 (struct sh_corefile_regs): New type.
648 (sh_corefile_gregset): Export variable.
649 (sh_corefile_supply_regset): New prototype.
650 (sh_corefile_collect_regset): New prototype.
651 * shnbsd-tdep.c: Remove include of regcache.h, gdb_assert.h and
652 shnbsd-tdep.h.
653 (regmap): Use new definition using struct sh_corefile_regs.
654 (shnbsd_supply_gregset, shnbsd_collect_gregset): Delete.
655 (shnbsd_gregset): Delete.
656 (shnbsd_regset_from_core_section): Delete.
657 (shnbsd_supply_reg, shnbsd_fill_reg): Use new regset interface.
658 (shnbsd_init_abi): Set core_gregmap.
659 (shnbsd_supply_reg): Delete.
660 (shnbsd_fill_reg): Delete.
661 (SHNBSD_SIZEOF_GREGS): Move ...
662 * shnbsd-nat.c (SHNBSD_SIZEOF_GREGS): ... to here.
663 Remove include of shnbsd-tdep.h.
664 (shnbsd_fetch_inferior_registers): Replace shnbsd_supply_reg call
665 with sh_corefile_supply_regset.
666 (shnbsd_store_inferior_registers): Replace shnbsd_fill_reg call with
667 sh_corefile_collect_regset.
668 * shnbsd-tdep.h: Delete file.
669
47607d6f
PM
6702009-10-21 Pierre Muller <muller@ics.u-strasbg.fr>
671
672 * rs6000-nat.c (exec_one_dummy_insn): Add missing new ASPACE parameter
673 to depreacted_insert_raw_breakpoint function call.
674 * procfs.c (insert_dbx_link_bpt_in_file): Likewise.
675
6df67667
MS
6762009-10-20 Michael Snyder <msnyder@vmware.com>
677
678 * record.c: Add some top-level comments for general explanation.
679
90ca0479
MS
6802009-10-20 Hui Zhu <teawater@gmail.com>
681 Michael Snyder <msnyder@vmware.com>
682
683 * record.c (record_exec_insn): New function. Emulate one
684 instruction, forward or backward. Abstracted from record_wait.
685 (record_wait) Call record_exec_insn.
686
9d1807c3
MS
6872009-10-20 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
688
689 * infrun.c (handle_inferior_event): Add pspace field to sal
690 for reverse execution cases.
691
20176d8f
PA
6922009-10-20 Ken Werner <ken@linux.vnet.ibm.com>
693
694 * go32-nat.c (go32_create_inferior): Use inferior_appeared, not
695 inferior_appeared_silent.
696 * remote-sim.c (gdbsim_create_inferior): Ditto.
697
40625c9d
PA
6982009-10-20 Pedro Alves <pedro@codesourcery.com>
699
700 * darwin-nat.c (cancel_breakpoint): Pass the regcache's address
701 space to breakpoint_inserted_here_p.
702
c0694254
PA
7032009-10-20 Pedro Alves <pedro@codesourcery.com>
704
705 * linux-nat.c (linux_nat_thread_address_space): New.
706 (linux_nat_add_target): Install it.
707 * progspace.c (address_space_num): New.
708 * progspace.h (address_space_num): Declare.
709 * target.c (target_thread_address_space): Really query the target.
710 * target.h (struct target_ops) <to_thread_address_space>: New
711 field.
712
ffeecffa
JB
7132009-10-19 Joel Brobecker <brobecker@adacore.com>
714
715 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Add comment.
716
6c95b8df
PA
7172009-10-19 Pedro Alves <pedro@codesourcery.com>
718 Stan Shebs <stan@codesourcery.com>
719
720 Add base multi-executable/process support to GDB.
721
722 * Makefile.in (SFILES): Add progspace.c.
723 (COMMON_OBS): Add progspace.o.
724 * progspace.h: New.
725 * progspace.c: New.
726
727 * breakpoint.h (struct bp_target_info) <placed_address_space>: New
728 field.
729 (struct bp_location) <pspace>: New field.
730 (struct breakpoint) <pspace>: New field.
731 (bpstat_stop_status, breakpoint_here_p)
732 (moribund_breakpoint_here_p, breakpoint_inserted_here_p)
733 (regular_breakpoint_inserted_here_p)
734 (software_breakpoint_inserted_here_p, breakpoint_thread_match)
735 (set_default_breakpoint): Adjust prototypes.
736 (remove_breakpoints_pid, breakpoint_program_space_exit): Declare.
737 (insert_single_step_breakpoint, deprecated_insert_raw_breakpoint):
738 Adjust prototypes.
739 * breakpoint.c (executing_startup): Delete.
740 (default_breakpoint_sspace): New.
741 (breakpoint_restore_shadows): Skip if the address space doesn't
742 match.
743 (update_watchpoint): Record the frame's program space in the
744 breakpoint location.
745 (insert_bp_location): Record the address space in target_info.
746 Adjust to pass the symbol space to solib_name_from_address.
747 (breakpoint_program_space_exit): New.
748 (insert_breakpoint_locations): Switch the symbol space and thread
749 when inserting breakpoints. Don't insert breakpoints in a vfork
750 parent waiting for vfork done if we're not attached to the vfork
751 child.
752 (remove_breakpoints_pid): New.
753 (reattach_breakpoints): Switch to a thread of PID. Ignore
754 breakpoints of other symbol spaces.
755 (create_internal_breakpoint): Store the symbol space in the sal.
756 (create_longjmp_master_breakpoint): Iterate over all symbol
757 spaces.
758 (update_breakpoints_after_exec): Ignore breakpoints for other
759 symbol spaces.
760 (remove_breakpoint): Rename to ...
761 (remove_breakpoint_1): ... this. Pass the breakpoints symbol
762 space to solib_name_from_address.
763 (remove_breakpoint): New.
764 (mark_breakpoints_out): Ignore breakpoints from other symbol
765 spaces.
766 (breakpoint_init_inferior): Ditto.
767 (breakpoint_here_p): Add an address space argument and adjust to
768 use breakpoint_address_match.
769 (moribund_breakpoint_here_p): Ditto.
770 (regular_breakpoint_inserted_here_p): Ditto.
771 (breakpoint_inserted_here_p): Ditto.
772 (software_breakpoint_inserted_here_p): Ditto.
773 (breakpoint_thread_match): Ditto.
774 (bpstat_check_location): Ditto.
775 (bpstat_stop_status): Ditto.
776 (print_breakpoint_location): If there's a location to print,
777 switch the current symbol space.
778 (print_one_breakpoint_location): Add `allflag' argument.
779 (print_one_breakpoint): Ditto. Adjust.
780 (do_captured_breakpoint_query): Adjust.
781 (breakpoint_1): Adjust.
782 (breakpoint_has_pc): Also match the symbol space.
783 (describe_other_breakpoints): Add a symbol space argument and
784 adjust.
785 (set_default_breakpoint): Add a symbol space argument. Set
786 default_breakpoint_sspace.
787 (breakpoint_address_match): New.
788 (check_duplicates_for): Add an address space argument, and adjust.
789 (set_raw_breakpoint): Record the symbol space in the location and
790 in the breakpoint.
791 (set_longjmp_breakpoint): Skip longjmp master breakpoints from
792 other symbol spaces.
793 (remove_thread_event_breakpoints, remove_solib_event_breakpoints)
794 (disable_breakpoints_in_shlibs): Skip breakpoints from other
795 symbol spaces.
796 (disable_breakpoints_in_unloaded_shlib): Match symbol spaces.
797 (create_catchpoint): Set the symbol space in the sal.
798 (disable_breakpoints_before_startup): Skip breakpoints from other
799 symbol spaces. Set executing_startup in the current symbol space.
800 (enable_breakpoints_after_startup): Clear executing_startup in the
801 current symbol space. Skip breakpoints from other symbol spaces.
802 (clone_momentary_breakpoint): Also copy the symbol space.
803 (add_location_to_breakpoint): Set the location's symbol space.
804 (bp_loc_is_permanent): Switch thread and symbol space.
805 (create_breakpoint): Adjust.
806 (expand_line_sal_maybe): Expand comment to mention symbol spaces.
807 Switch thread and symbol space when reading memory.
808 (parse_breakpoint_sals): Set the symbol space in the sal.
809 (break_command_really): Ditto.
810 (skip_prologue_sal): Switch and space.
811 (resolve_sal_pc): Ditto.
812 (watch_command_1): Record the symbol space in the sal.
813 (create_ada_exception_breakpoint): Adjust.
814 (clear_command): Adjust. Match symbol spaces.
815 (update_global_location_list): Use breakpoint_address_match.
816 (breakpoint_re_set_one): Switch thread and space.
817 (breakpoint_re_set): Save symbol space.
818 (breakpoint_re_set_thread): Also reset the symbol space.
819 (deprecated_insert_raw_breakpoint): Add an address space argument.
820 Adjust.
821 (insert_single_step_breakpoint): Ditto.
822 (single_step_breakpoint_inserted_here_p): Ditto.
823 (clear_syscall_counts): New.
824 (_initialize_breakpoint): Install it as inferior_exit observer.
825
826 * exec.h: Include "progspace.h".
827 (exec_bfd, exec_bfd_mtime): New defines.
828 (exec_close): Declare.
829 * exec.c: Include "gdbthread.h" and "progspace.h".
830 (exec_bfd, exec_bfd_mtime, current_target_sections_1): Delete.
831 (using_exec_ops): New.
832 (exec_close_1): Rename to exec_close, and make public.
833 (exec_close): Rename to exec_close_1, and adjust all callers. Add
834 description. Remove target sections and close executables from
835 all program spaces.
836 (exec_file_attach): Add comment.
837 (add_target_sections): Check on `using_exec_ops' to check if the
838 target should be pushed.
839 (remove_target_sections): Only unpush the target if there are no
840 more target sections in any symbol space.
841 * gdbcore.h: Include "exec.h".
842 (exec_bfd, exec_bfd_mtime): Remove declarations.
843
844 * frame.h (get_frame_program_space, get_frame_address_space)
845 (frame_unwind_program_space): Declare.
846 * frame.c (struct frame_info) <pspace, aspace>: New fields.
847 (create_sentinel_frame): Add program space argument. Set the
848 pspace and aspace fields of the frame object.
849 (get_current_frame, create_new_frame): Adjust.
850 (get_frame_program_space): New.
851 (frame_unwind_program_space): New.
852 (get_frame_address_space): New.
853 * stack.c (print_frame_info): Adjust.
854 (print_frame): Use the frame's program space.
855
856 * gdbthread.h (any_live_thread_of_process): Declare.
857 * thread.c (any_live_thread_of_process): New.
858 (switch_to_thread): Switch the program space as well.
859 (restore_selected_frame): Don't warn if trying to restore frame
860 level 0.
861
862 * inferior.h: Include "progspace.h".
863 (detach_fork): Declare.
864 (struct inferior) <removable, aspace, pspace>
865 <vfork_parent, vfork_child, pending_detach>
866 <waiting_for_vfork_done>: New fields.
867 <terminal_info>: Remove field.
868 <data, num_data>: New fields.
869 (register_inferior_data, register_inferior_data_with_cleanup)
870 (clear_inferior_data, set_inferior_data, inferior_data): Declare.
871 (exit_inferior, exit_inferior_silent, exit_inferior_num_silent)
872 (inferior_appeared): Declare.
873 (find_inferior_pid): Typo.
874 (find_inferior_id, find_inferior_for_program_space): Declare.
875 (set_current_inferior, save_current_inferior, prune_inferiors)
876 (number_of_inferiors): Declare.
877 (inferior_list): Declare.
878 * inferior.c: Include "gdbcore.h" and "symfile.h".
879 (inferior_list): Make public.
880 (delete_inferior_1): Always delete thread silently.
881 (find_inferior_id): Make public.
882 (current_inferior_): New.
883 (current_inferior): Use it.
884 (set_current_inferior): New.
885 (restore_inferior): New.
886 (save_current_inferior): New.
887 (free_inferior): Free the per-inferior data.
888 (add_inferior_silent): Allocate per-inferior data.
889 Call inferior_appeared.
890 (delete_threads_of_inferior): New.
891 (delete_inferior_1): Adjust interface to take an inferior pointer.
892 (delete_inferior): Adjust.
893 (delete_inferior_silent): Adjust.
894 (exit_inferior_1): New.
895 (exit_inferior): New.
896 (exit_inferior_silent): New.
897 (exit_inferior_num_silent): New.
898 (detach_inferior): Adjust.
899 (inferior_appeared): New.
900 (discard_all_inferiors): Adjust.
901 (find_inferior_id): Make public. Assert pid is not zero.
902 (find_inferior_for_program_space): New.
903 (have_inferiors): Check if we have any inferior with pid not zero.
904 (have_live_inferiors): Go over all pushed targets looking for
905 process_stratum.
906 (prune_inferiors): New.
907 (number_of_inferiors): New.
908 (print_inferior): Add executable column. Print vfork parent/child
909 relationships.
910 (inferior_command): Adjust to cope with not running inferiors.
911 (remove_inferior_command): New.
912 (add_inferior_command): New.
913 (clone_inferior_command): New.
914 (struct inferior_data): New.
915 (struct inferior_data_registration): New.
916 (struct inferior_data_registry): New.
917 (inferior_data_registry): New.
918 (register_inferior_data_with_cleanup): New.
919 (register_inferior_data): New.
920 (inferior_alloc_data): New.
921 (inferior_free_data): New.
922 (clear_inferior_data): New.
923 (set_inferior_data): New.
924 (inferior_data): New.
925 (initialize_inferiors): New.
926 (_initialize_inferiors): Register "add-inferior",
927 "remove-inferior" and "clone-inferior" commands.
928
929 * objfiles.h: Include "progspace.h".
930 (struct objfile) <pspace>: New field.
931 (symfile_objfile, object_files): Don't declare.
932 (ALL_PSPACE_OBJFILES): New.
933 (ALL_PSPACE_OBJFILES_SAFE): New.
934 (ALL_OBJFILES, ALL_OBJFILES_SAFE): Adjust.
935 (ALL_PSPACE_SYMTABS): New.
936 (ALL_PRIMARY_SYMTABS): Adjust.
937 (ALL_PSPACE_PRIMARY_SYMTABS): New.
938 (ALL_PSYMTABS): Adjust.
939 (ALL_PSPACE_PSYMTABS): New.
940 * objfiles.c (object_files, symfile_objfile): Delete.
941 (struct objfile_sspace_info): New.
942 (objfiles_pspace_data): New.
943 (objfiles_pspace_data_cleanup): New.
944 (get_objfile_pspace_data): New.
945 (objfiles_changed_p): Delete.
946 (allocate_objfile): Set the objfile's program space. Adjust to
947 reference objfiles_changed_p in pspace data.
948 (free_objfile): Adjust to reference objfiles_changed_p in pspace
949 data.
950 (objfile_relocate): Ditto.
951 (update_section_map): Add pspace argument. Adjust to iterate over
952 objfiles in the passed in pspace.
953 (find_pc_section): Delete sections and num_sections statics.
954 Adjust to refer to program space's objfiles_changed_p. Adjust to
955 refer to sections and num_sections store in the objfile's pspace
956 data.
957 (objfiles_changed): Adjust to reference objfiles_changed_p in
958 pspace data.
959 (_initialize_objfiles): New.
960 * linespec.c (decode_all_digits, decode_dollar): Set the sal's
961 program space.
962 * source.c (current_source_pspace): New.
963 (get_current_source_symtab_and_line): Set the sal's program space.
964 (set_current_source_symtab_and_line): Set current_source_pspace.
965 (select_source_symtab): Ditto. Use ALL_OBJFILES.
966 (forget_cached_source_info): Iterate over all program spaces.
967 * symfile.c (clear_symtab_users): Adjust.
968 * symmisc.c (print_symbol_bcache_statistics): Iterate over all
969 program spaces.
970 (print_objfile_statistics): Ditto.
971 (maintenance_print_msymbols): Ditto.
972 (maintenance_print_objfiles): Ditto.
973 (maintenance_info_symtabs): Ditto.
974 (maintenance_info_psymtabs): Ditto.
975 * symtab.h (SYMTAB_PSPACE): New.
976 (struct symtab_and_line) <pspace>: New field.
977 * symtab.c (init_sal): Clear the sal's program space.
978 (find_pc_sect_symtab): Set the sal's program space. Switch thread
979 and space.
980 (append_expanded_sal): Add program space argument. Iterate over
981 all program spaces.
982 (expand_line_sal): Iterate over all program spaces. Switch
983 program space.
984
985 * target.h (enum target_waitkind) <TARGET_WAITKIND_VFORK_DONE>: New.
986 (struct target_ops) <to_thread_address_space>: New field.
987 (target_thread_address_space): Define.
988 * target.c (target_detach): Only remove breakpoints from the
989 inferior we're detaching.
990 (target_thread_address_space): New.
991
992 * defs.h (initialize_progspace): Declare.
993 * top.c (gdb_init): Call it.
994
995 * solist.h (struct so_list) <sspace>: New field.
996 * solib.h (struct program_space): Forward declare.
997 (solib_name_from_address): Adjust prototype.
998 * solib.c (so_list_head): Replace with a macro referencing the
999 program space.
1000 (update_solib_list): Set the so's program space.
1001 (solib_name_from_address): Add a program space argument and adjust.
1002
1003 * solib-svr4.c (struct svr4_info) <pid>: Delete field.
1004 <interp_text_sect_low, interp_text_sect_high, interp_plt_sect_low>
1005 <interp_plt_sect_high>: New fields.
1006 (svr4_info_p, svr4_info): Delete.
1007 (solib_svr4_sspace_data): New.
1008 (get_svr4_info): Rewrite.
1009 (svr4_sspace_data_cleanup): New.
1010 (open_symbol_file_object): Adjust.
1011 (svr4_default_sos): Adjust.
1012 (svr4_fetch_objfile_link_map): Adjust.
1013 (interp_text_sect_low, interp_text_sect_high, interp_plt_sect_low)
1014 (interp_plt_sect_high): Delete.
1015 (svr4_in_dynsym_resolve_code): Adjust.
1016 (enable_break): Adjust.
1017 (svr4_clear_solib): Revert bit that removed the svr4_info here,
1018 and reinstate clearing debug_base, debug_loader_offset_p,
1019 debug_loader_offset and debug_loader_name.
1020 (_initialize_svr4_solib): Register solib_svr4_pspace_data. Don't
1021 install an inferior_exit observer anymore.
1022
1023 * printcmd.c (struct display) <pspace>: New field.
1024 (display_command): Set the display's sspace.
1025 (do_one_display): Match the display's sspace.
1026 (display_uses_solib_p): Ditto.
1027
1028 * linux-fork.c (detach_fork): Moved to infrun.c.
1029 (_initialize_linux_fork): Moved "detach-on-fork" command to
1030 infrun.c.
1031 * infrun.c (detach_fork): Moved from linux-fork.c.
1032 (proceed_after_vfork_done): New.
1033 (handle_vfork_child_exec_or_exit): New.
1034 (follow_exec_mode_replace, follow_exec_mode_keep)
1035 (follow_exec_mode_names, follow_exec_mode_string)
1036 (show_follow_exec_mode_string): New.
1037 (follow_exec): New. Reinstate the mark_breakpoints_out call.
1038 Remove shared libraries before attaching new executable. If user
1039 wants to keep the inferior, keep it.
1040 (displaced_step_fixup): Adjust to pass an address space to the
1041 breakpoints module.
1042 (resume): Ditto.
1043 (clear_proceed_status): In all-stop mode, always clear the proceed
1044 status of all threads.
1045 (prepare_to_proceed): Adjust to pass an address space to the
1046 breakpoints module.
1047 (proceed): Ditto.
1048 (adjust_pc_after_break): Ditto.
1049 (handle_inferior_event): When handling a process exit, switch the
1050 program space to the inferior's that had exited. Call
1051 handle_vfork_child_exec_or_exit. Adjust to pass an address space
1052 to the breakpoints module. In non-stop mode, when following a
1053 fork and detach-fork is off, also resume the other branch. Handle
1054 TARGET_WAITKIND_VFORK_DONE. Set the program space in sals.
1055 (normal_stop): Prune inferiors.
1056 (_initialize_infrun): Install the new "follow-exec-mode" command.
1057 "detach-on-fork" moved here.
1058
1059 * regcache.h (get_regcache_aspace): Declare.
1060 * regcache.c (struct regcache) <aspace>: New field.
1061 (regcache_xmalloc): Clear the aspace.
1062 (get_regcache_aspace): New.
1063 (regcache_cpy): Copy the aspace field.
1064 (regcache_cpy_no_passthrough): Ditto.
1065 (get_thread_regcache): Fetch the thread's address space from the
1066 target, and store it in the regcache.
1067
1068 * infcall.c (call_function_by_hand): Set the sal's pspace.
1069
1070 * arch-utils.c (default_has_shared_address_space): New.
1071 * arch-utils.h (default_has_shared_address_space): Declare.
1072
1073 * gdbarch.sh (has_shared_address_space): New.
1074 * gdbarch.h, gdbarch.c: Regenerate.
1075
1076 * linux-tdep.c: Include auxv.h, target.h, elf/common.h.
1077 (linux_has_shared_address_space): New.
1078 (_initialize_linux_tdep): Declare.
1079
1080 * arm-tdep.c (arm_software_single_step): Pass the frame's address
1081 space to insert_single_step_breakpoint.
1082 * arm-linux-tdep.c (arm_linux_software_single_step): Pass the
1083 frame's pspace to breakpoint functions.
1084 * cris-tdep.c (crisv32_single_step_through_delay): Ditto.
1085 (cris_software_single_step): Ditto.
1086 * mips-tdep.c (deal_with_atomic_sequence): Add frame argument.
1087 Pass the frame's pspace to breakpoint functions.
1088 (mips_software_single_step): Adjust.
1089 (mips_single_step_through_delay): Adjust.
1090 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
1091 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
1092 * solib-irix.c (enable_break): Adjust to pass the current frame's
1093 address space to breakpoint functions.
1094 * sparc-tdep.c (sparc_software_single_step): Ditto.
1095 * spu-tdep.c (spu_software_single_step): Ditto.
1096 * alpha-tdep.c (alpha_software_single_step): Ditto.
1097 * record.c (record_wait): Adjust to pass an address space to the
1098 breakpoints module.
1099
1100 * fork-child.c (fork_inferior): Set the new inferior's program and
1101 address spaces.
1102 * inf-ptrace.c (inf_ptrace_follow_fork): Copy the parent's program
1103 and address spaces.
1104 (inf_ptrace_attach): Set the inferior's program and address spaces.
1105 * linux-nat.c: Include "solib.h".
1106 (linux_child_follow_fork): Manage parent and child's program and
1107 address spaces. Clone the parent's program space if necessary.
1108 Don't wait for the vfork to be done here. Refuse to resume if
1109 following the vfork parent while leaving the child stopped.
1110 (resume_callback): Don't resume a vfork parent.
1111 (linux_nat_resume): Also check for pending events in the
1112 lp->waitstatus field.
1113 (linux_handle_extended_wait): Report TARGET_WAITKIND_VFORK_DONE
1114 events to the core.
1115 (stop_wait_callback): Don't wait for SIGSTOP on vfork parents.
1116 (cancel_breakpoint): Adjust.
1117 * linux-thread-db.c (thread_db_wait): Don't remove thread event
1118 breakpoints here.
1119 (thread_db_mourn_inferior): Don't mark breakpoints out here.
1120 Remove thread event breakpoints after mourning.
1121 * corelow.c: Include progspace.h.
1122 (core_open): Set the inferior's program and address spaces.
1123 * remote.c (remote_add_inferior): Set the new inferior's program
1124 and address spaces.
1125 (remote_start_remote): Update address spaces.
1126 (extended_remote_create_inferior_1): Don't init the thread list if
1127 we already debugging other inferiors.
1128 * darwin-nat.c (darwin_attach): Set the new inferior's program and
1129 address spaces.
1130 * gnu-nat.c (gnu_attach): Ditto.
1131 * go32-nat.c (go32_create_inferior): Ditto.
1132 * inf-ttrace.c (inf_ttrace_follow_fork, inf_ttrace_attach): Ditto.
1133 * monitor.c (monitor_open): Ditto.
1134 * nto-procfs.c (procfs_attach, procfs_create_inferior): Ditto.
1135 * procfs.c (do_attach): Ditto.
1136 * windows-nat.c (do_initial_windows_stuff): Ditto.
1137
1138 * inflow.c (inferior_process_group)
1139 (terminal_init_inferior_with_pgrp, terminal_inferior,
1140 (terminal_ours_1, inflow_inferior_exit, copy_terminal_info)
1141 (child_terminal_info, new_tty_postfork, set_sigint_trap): Adjust
1142 to use per-inferior data instead of inferior->terminal_info.
1143 (inflow_inferior_data): New.
1144 (inflow_new_inferior): Delete.
1145 (inflow_inferior_data_cleanup): New.
1146 (get_inflow_inferior_data): New.
1147
1148 * mi/mi-interp.c (mi_new_inferior): Rename to...
1149 (mi_inferior_appeared): ... this.
1150 (mi_interpreter_init): Adjust.
1151
1152 * tui/tui-disasm.c: Include "progspace.h".
1153 (tui_set_disassem_content): Pass an address space to
1154 breakpoint_here_p.
1155
1156 * NEWS: Mention multi-program debugging support. Mention new
1157 commands "add-inferior", "clone-inferior", "remove-inferior",
1158 "maint info program-spaces", and new option "set
1159 follow-exec-mode".
1160
8dcb1aa7
DL
11612009-10-19 Don Lee <don.lee@sunplusct.com>
1162
1163 * score-tdep.c: Delete dead codes.
1164
44389f9b
MS
11652009-10-15 Michael Snyder <msnyder@vmware.com>
1166
1167 * record.c (struct record_reg_entry): Replace ptr with union
1168 of ptr and buf.
1169 (struct record_mem_entry): Ditto.
1170 (record_reg_alloc): Don't alloc ptr if reg will fit into buf.
1171 (record_mem_alloc): Ditto.
1172 (record_reg_release): Don't free ptr if reg was stored in buf.
1173 (record_mem_release): Ditto.
1174 (record_get_loc): New function. Return a pointer to where the
1175 value (mem or reg) is to be stored.
1176 (record_arch_list_add_reg): Call record_get_loc instead of using ptr.
1177 (record_arch_list_add_mem): Ditto.
1178 (record_wait): Ditto.
1179
6254b3e3
ME
11802009-10-16 Michael Eager <eager@eagercon.com>
1181
1182 * microblaze-linux-tdep.c:
1183 microblaze_linux_memory_remove_breakpoint(): Add gdbarch to param,
1184 replace frame_pc_unwind with get_frame_address_in_block.
1185 * microblaze-tdep.c: Remove MICROBLAZE_REGISTER_SIZE.
1186 * microblaze-tdep.h: Add MICROBLAZE_REGISTER_SIZE.
1187
5d583aa8 11882008-10-15 Steven G. Kargl <kargl@gcc.gnu.org> (tiny patch)
1f596238
JB
1189
1190 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
1191 support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.
1192
2d1c1221
ME
11932009-10-15 Michael Eager <eager@eagercon.com>
1194
1195 * config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
1196 elf32-microblaze.c, microblaze-rom.c, microblaze-linux-tdep.c,
1197 microblaze-tdep.h, microblaze-tdep.c, microblaze-opc.h,
1198 microblaze-opcm.h, microblaze-dis.c, microblaze-dis.h, sim/microblaze,
1199 microblaze.h, and microblaze.isa.
1200 * configure.tgt: Add targets microblaze*-linux-*, microblaze*-xilinx-*.
1201 * Makefile.in: Build microblaze-tdep.o, microblaze-linux-tdep.o.
1202 HFILES_NO_SRCDIR: Add microblaze-tdep.h.
1203 * microblaze-linux-tdep.c: New.
1204 * microblaze-tdep.c: New.
1205 * microblaze-tdep.h: New.
1206 * NEWS: Announce Xilinx MicroBlaze support.
1207
dacc9cb2
PP
12082009-10-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1209
58ad35c4 1210 PR gdb/10757
dacc9cb2
PP
1211 * linux-nat.c (linux_nat_post_attach_wait): Adjust assert.
1212 (lin_lwp_attach_lwp, linux_nat_attach): Handle disappearing LWP.
1213
191e1813
MS
12142009-10-15 Michael Snyder <msnyder@vmware.com>
1215
1216 * record.c (record_insn_max_num): Make unsigned.
1217 (_initialize_record): Use uinteger instead of zinteger for
1218 set command, so that it will report "unlimited" for zero.
1219
61f75dd8
MS
12202009-10-15 Michael Snyder <msnyder@vmware.com>
1221
1222 * record.c (record_reg_alloc): New function.
1223 (record_reg_release): New function.
1224 (record_mem_alloc): New function.
1225 (record_mem_release): New function.
1226 (record_end_alloc): New function.
1227 (record_end_release): New function.
1228 (record_entry_release): New function.
1229 (record_list_release): Simplify, call record_entry_release.
1230 (record_list_release_next): Rename to record_list_release_following.
1231 Simplify and call record_entry_release.
1232 (record_list_release_first): Simplify, comment, and use
1233 record_entry_release.
1234 (record_arch_list_add_reg): Simplify, call record_reg_alloc.
1235 (record_arch_list_add_mem): Simplify, call record_mem_alloc.
1236 (record_arch_list_add_end): Simplify, call record_end_alloc.
1237
12382009-10-14 Michael Snyder <msnyder@vmware.com>
265aad34
MS
1239
1240 * record.c (record_list_release_first): Do not decrement
1241 record_insn_num.
1242 (set_insn_num_max): Remove printf.
1243 Decrement record_insn_num in the loop.
1244
1256eeda
CC
12452009-10-14 Cary Coutant <ccoutant@google.com>
1246
1247 * dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
1248
72f2769e
KS
12492009-10-14 Keith Seitz <keiths@redhat.com>
1250
1251 * dwarf2read.c (dwarf2_const_value): Fix order of arguments to
1252 store_unsigned_integer.
1253
e23525a0
PA
12542009-10-14 Pedro Alves <pedro@codesourcery.com>
1255
e23525a0
PA
1256 * configure.ac (build_warnings): Add -Wunused-value.
1257 * configure: Regenerate.
1258
70d4c673
TG
12592009-10-14 Tristan Gingold <gingold@adacore.com>
1260
1261 * solib-darwin.c: Remove trailing whitespaces.
1262 (darwin_dyld_version_ok): Fix typo.
1263
46e8a76b
AS
12642009-10-14 Andrew Stubbs <ams@codesourcery.com>
1265
1266 * sh-tdep.c (sh_gdbarch_init): Add show_regs settings for
1267 bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu,
1268 bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu,
1269 and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu.
1270 Move bfd_mach_sh2a_or_sh4 to use the same configuration as
1271 bfd_mach_sh4.
1272
9dca5578
DJ
12732009-10-13 Daniel Jacobowitz <dan@codesourcery.com>
1274
1275 * arm-tdep.c (arm_push_dummy_call): Set the low bit of LR for
1276 a Thumb entry point.
1277 (thumb_get_next_pc): Handle Thumb-2 and ARM v6 instructions. Refuse
1278 to single step into IT blocks.
1279
88e3b899
PA
12802009-10-13 Pedro Alves <pedro@codesourcery.com>
1281
1282 * infcall.c (call_function_by_hand): Formatting.
1283
066d7383
TG
12842009-10-13 Tristan Gingold <gingold@adacore.com>
1285
1286 * solib-darwin.c: Add an empty line after comment for functions.
1287 (struct gdb_dyld_all_image_infos): Improve comment.
1288 (DYLD_VERSION): Removed and replaced by ...
1289 (DYLD_VERSION_MAX, DYLD_VERSION_MIN): ... New macros.
1290 (darwin_dyld_version_ok): New function.
1291 (darwin_load_image_infos): Call darwin_dyld_version_ok.
1292 (darwin_current_sos): Ditto.
1293 (darwin_solib_create_inferior_hook): Ditto.
1294
f192ea96
TG
12952009-10-13 Tristan Gingold <gingold@adacore.com>
1296
1297 * machoread.c: Add an empty line after comment for functions.
1298 (oso_el_compare_name): New function.
1299 (macho_add_oso_symfile): New function.
1300 (macho_oso_symfile): Use macho_add_oso_symfile. Sort the oso
1301 and optimize accesses to libraries.
1302
e361b228
TG
13032009-10-13 Tristan Gingold <gingold@adacore.com>
1304
1305 * objfiles.c (objfile_has_symbols): New function.
1306 * objfiles.h (objfile_has_symbols): Add prototype.
1307 * symfile.c (symbol_file_add_with_addrs_or_offsets): Call
1308 objfile_has_symbols.
1309 (reread_symbols): Ditto.
1310
3800e645
MS
13112009-10-12 Jiang Jilin <freephp@gmail.com>
1312
1313 * i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
1314 instructions support.
1315
8903eff6
PA
13162009-10-11 Pedro Alves <pedro@codesourcery.com>
1317
1318 * procfs.c (procfs_make_note_section): Go back to only outputing
1319 an NT_PSTATUS note when UNIXWARE is defined.
1320
9108f110
DJ
13212009-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1322
1323 * features/xinclude.dtd: Correct EMPTY typo.
1324
7afee700
MS
13252009-10-10 Michael Snyder <msnyder@vmware.com>
1326
1327 * i386-tdep.c (i386_process_record): Or-equals, not not-equals.
1328
d6fd4674
PA
13292009-10-10 Pedro Alves <pedro@codesourcery.com>
1330
1331 * mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
1332 Put "break" statements on their own line.
1333
28736962
PA
13342009-10-09 Pedro Alves <pedro@codesourcery.com>
1335
1336 * linux-nat.c (linux_nat_wait_1): Bail out, if TARGET_WNOHANG and
1337 we found no event while waiting for a specific LWP.
1338 * infrun.c (handle_inferior_event): Handle TARGET_WAITKIND_IGNORE
1339 before anything else.
1340
651c8d2d
PA
13412009-10-09 Pedro Alves <pedro@codesourcery.com>
1342
1343 * procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
1344 note when NEW_PROC_API is defined.
1345
3cdd9356
PA
13462009-10-09 Pedro Alves <pedro@codesourcery.com>
1347
1348 * corelow.c (core_has_fake_pid): New.
1349 (core_close): Clear it.
1350 (add_to_thread_list): Fake a pid if one is not found on a Solaris
1351 core. Add the inferior here. Always add the thread, don't use
1352 thread_change_ptid.
1353 (core_open): Don't add the main thread or the inferior here unless
1354 we find that the core had no .reg/NN sections.
1355 (get_core_register_section): Handle Solaris cores with fake pids.
1356
62f33d08
PA
1357 * corelow.c (add_to_thread_list): Fix typo.
1358
1800f484
PP
13592009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
1360
1361 PR gdb/10457
1362 * elfread.c (elf_symtab_read): Don't use alloca in a loop.
1363
fc5abaae
JK
13642009-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1365
1366 * i386-nat.c (i386_stopped_by_hwbp): Remove.
1367
13682009-10-07 Joel Brobecker <brobecker@adacore.com>
abc7453d
JB
1369
1370 * NEWS: Update following the GDB 7.0 release.
1371
905e0470
PM
13722009-10-07 Pierre Muller <muller@ics.u-strasbg.fr>
1373
1374 ARI fix: OP eol rule.
1375 * doublest.c (floatformat_from_length): Avoid operator at end of line.
1376 * dwarf2-frame.c (dwarf2_build_frame_info): Idem.
1377 * dwarf2read.c (read_array_order, dwarf_decode_macros): Idem.
1378 * eval.c (evaluate_subexp_standard): Idem.
1379 * event-loop.c (create_timer, handle_timer_event): Idem.
1380 * expprint.c (print_subexp_standard): Idem.
1381 * f-exp.y (variable): Idem.
1382 * f-typeprint.c (f_print_type): Idem.
1383
5aafa1cc
PM
13842009-10-06 Pierre Muller <muller@ics.u-strasbg.fr>
1385
1386 ARI fix: OP eol rule.
1387 * blockframe.c (find_pc_partial_function): Avoid operator at end of
1388 line.
1389 * buildsym.c (find_symbol_in_list): Idem.
1390 (start_subfile, patch_subfile_names): Idem.
1391 * c-exp.y (variable, yylex): Idem.
1392 * c-typeprint.c (c_print_type, c_type_print_base): Idem.
1393 * c-valprint.c (c_val_print): Idem.
1394 * coffread.c (patch_opaque_types, process_coff_symbol): Idem.
1395 * corelow.c (core_open): Idem.
1396 * cris-tdep.c (move_reg_to_mem_movem_op): Idem.
1397 * cli/cli-decode.c (help_cmd_list, find_command_name_length): Idem.
1398
f8bf5763
PM
13992009-10-06 Pierre Muller <muller@ics.u-strasbg.fr>
1400
1401 ARI fix: OP eol rule.
1402 * ada-exp.y (block_lookup): Avoid operator at end of line.
1403 * aix-thread.c (pd_enable): Idem.
1404 * alpha-tdep.c (alpha_next_pc): Idem.
1405 * arm-tdep.c (arm_skip_prologue, arm_scan_prologue): Idem.
1406 (condition_true, coff_sym_is_thumb): Idem.
1407
0969f4e9 14082009-10-06 Joel Brobecker <brobecker@adacore.com>
1409
1410 GDB 7.0 released.
1411
67e5d36c
PM
14122009-10-06 Pierre Muller <muller@ics.u-strasbg.fr>
1413
37e5cb2b
JB
1414 ARI fix: "%p" rule.
1415 * target.c (debug_to_thread_architecture): Replace %p by %s using
67e5d36c
PM
1416 host_address_to_string function.
1417
15c19d39
TG
14182009-10-06 Tristan Gingold <gingold@adacore.com>
1419
1420 * darwin-nat.c: Add __TEXT __info_plist content.
1421 (darwin_attach_pid): Update error message.
1422
3e6b0399
JB
14232009-10-06 Joel Brobecker <brobecker@adacore.com>
1424
1425 * MAINTAINERS: Add Tristan Gingold as Maintainer of the Darwin port.
1426
606139a1
JB
14272009-10-06 Joel Brobecker <brobecker@adacore.com>
1428
1429 * MAINTAINERS: Add Jan Kratochvil as Maintainer of the ia64 target.
1430
5b564bb7
PA
14312009-10-05 Pedro Alves <pedro@codesourcery.com>
1432
1433 Revert:
1434 2009-10-04 Pedro Alves <pedro@codesourcery.com>
1435 * gdbinit.in: Set data-directory to @srcdir@.
1436
11ade57a
PA
14372009-10-04 Pedro Alves <pedro@codesourcery.com>
1438
1439 * NEWS: Mention non-stop mode.
1440
d166c213
PA
14412009-10-04 Pedro Alves <pedro@codesourcery.com>
1442
1443 * gdbinit.in: Set data-directory to @srcdir@.
1444
ca2163eb
PA
14452009-10-02 Pedro Alves <pedro@codesourcery.com>
1446
1447 * linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
1448 (SYSCALL_SIGTRAP): New.
1449 (status_to_str): Adjust.
1450 (get_pending_status): Pending events in lp->waitstatus don't map
1451 to any signal. Simplify.
1452 (linux_handle_syscall_trap): New.
1453 (linux_handle_extended_wait): When handling PTRACE_EVENT_CLONE
1454 events, use linux_ops->to_resume instead of direct ptrace with
1455 PTRACE_CONT. Remove all TRAP_IS_SYSCALL handling.
1456 (wait_lwp): Handle syscall traps with linux_handle_syscall_trap,
1457 and clear the sysgood bit.
1458 (status_callback): Make it clearer and add comments.
1459 (cancel_breakpoints_callback): Ignore if LP has waitstatus set.
1460 (linux_nat_filter_event): Handle syscall traps with
1461 linux_handle_syscall_trap, and clear the sysgood bit. Move the
1462 check for storing siginfo to after handling extended statuses and
1463 syscall traps. Store status in the lwp object.
1464 (linux_wait_1): Don't swap the pending status out of the lwp
1465 object until after deciding we found an lwp with an interesting
1466 event. Requeue a new pending signal if we find one while getting
1467 rid or a pending SIGSTOP we sent ourselves. Don't clear the
1468 sysgood bit here.
1469
1470 * infrun.c (deal_with_syscall_event): Rename to ...
1471 (handle_syscall_event): ... this. Always context switch and set
1472 stop_pc, even if not catching the syscall. If not catching the
1473 syscall, always resume with keep_going.
1474 (handle_inferior_event): Adjust.
1475
a71e0887
JK
14762009-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 Fix compatibility of --with-system-readline and readline-6.0+.
1479 * configure.ac <--with-system-readline> (for readline_echoing_p): New
1480 test.
1481 * config.in: Regenerate.
1482 * configure: Regenerate.
1483
c838b516
JB
14842009-10-01 Joel Brobecker <brobecker@adacore.com>
1485
1486 * MAINTAINERS: Move Don Lee to the correct section (Write After
1487 Approval).
1488
2f2da8f6
PM
14892009-10-01 Phil Muldoon <pmuldoon@redhat.com>
1490
1491 * infcall.c (call_function_by_hand): Add a new cleanup branch for
1492 std::terminate breakpoints.
1493
e453266f
JK
14942009-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): New variable buf.
1497 Check first the descriptor memory is readable.
1498
31158f0e
TT
14992009-09-29 Tom Tromey <tromey@redhat.com>
1500
1501 * python/py-value.c (valpy_string): NULL-terminate 'keywords'.
1502
beaabab2
UW
15032009-09-29 Ulrich Weigand <uweigand@de.ibm.com>
1504
1505 * s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
1506 instead of CORE_ADDR for "amode".
1507
ca8b5032
JB
15082009-09-29 Joel Brobecker <brobecker@adacore.com>
1509
1510 * ia64-tdep.c: Update the comments on how we insert/remove
1511 breakpoints for L-X instructions.
1512 (ia64_memory_insert_breakpoint, ia64_memory_remove_breakpoint):
1513 Update the comments inside these functions.
1514
99e40580
UW
15152009-09-28 Ulrich Weigand <uweigand@de.ibm.com>
1516
1517 * gdbarch.sh (displaced_step_hw_singlestep): New callback.
1518 * gdbarch.c, gdbarch.h: Regenerate.
1519 * arch-utils.c (default_displaced_step_hw_singlestep): New function.
1520 * arch-utils.h (default_displaced_step_hw_singlestep): Add prototype.
1521
1522 * ppc-linux-tdep.c (ppc_displaced_step_hw_singlestep): New function.
1523 (rs6000_gdbarch_init): Install it.
1524
1525 * infrun.c (displaced_step_fixup): Use new callback to determine
1526 whether to "step" or "continue" displaced copy.
1527 (resume): Likewise. Do not call maybe_software_singlestep
1528 for displaced stepping.
1529 (maybe_software_singlestep): Do not handle displaced stepping.
1530
69368a60
UW
15312009-09-28 Ulrich Weigand <uweigand@de.ibm.com>
1532
1533 * eval.c (evaluate_subexp_standard) [OP_OBJC_MSGCALL]: Support
1534 platforms that use function descriptors. Prefer to use function
1535 pointer types instead of function types.
1536 * linespec.c (decode_objc): Support function descriptors. Fully
1537 initialize SAL result.
1538 * objc-lang.c (find_methods): Support function descriptors.
1539 Do not require function symbol to point to text section.
1540
1541 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): When calling
1542 via a function pointer, use the descriptor it points to.
1543
73a9714c
JB
15442009-09-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1545
1546 Fix ia64 breakpoints in the L-X slot.
1547 * ia64-tdep.c (ia64_memory_insert_breakpoint): Extend the comment.
1548 New variable shadow_slotnum, use it appropriately instead of slotnum.
1549 Move shadow_len initialization before SLOTNUM adjustment, cover now the
1550 whole remaining bundle. Error now on breakpoints requested for the
1551 slot 2 of L-X bundles. Better sanity check the requested slot 1 of L-X
1552 bundles.
1553 (ia64_memory_remove_breakpoint): New variable shadow_slotnum, use it
1554 appropriately instead of slotnum. Warn now on breakpoints requested
1555 for the slot 2 of L-X bundles. Better sanity check the requested slot
1556 1 of L-X bundles. Update the assertio check of PLACED_SIZE.
1557 (ia64_breakpoint_from_pc): New variable shadow_slotnum, use it
1558 appropriately instead of slotnum. Move *lenptr initialization before
1559 SLOTNUM adjustment, cover now the whole remaining bundle. Error now
1560 on breakpoints requested for the slot 2 of L-X bundles. Better sanity
1561 check the requested slot 1 of L-X bundles. Simplify the returned
1562 expression.
1563
35ec2a3e
JB
15642009-09-28 Joel Brobecker <brobecker@adacore.com>
1565
1566 * ia64-tdep.c (ia64_memory_insert_breakpoint): Check the slotnum
1567 and the type of instruction before deciding which slot to save
1568 in the breakpoint shadown contents.
1569
206aa767
DE
15702009-09-28 Doug Evans <dje@google.com>
1571
1572 * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.
66d990c7
DE
1573 (TRAP_REMOVE_SYSCALL_FLAG): New macro.
1574 (linux_nat_wait_1): Mask off is-syscall bit in wait status for
1575 TRAP_IS_SYSCALL before passing value to caller.
206aa767 1576
2d88202a
UW
15772009-09-28 Ulrich Weigand <uweigand@de.ibm.com>
1578
1579 * valops.c (value_assign): Respect parent offset when
1580 assigning to a bitfield.
1581
926569ae
HZ
15822009-09-28 Hui Zhu <teawater@gmail.com>
1583
1584 * i386-tdep.c (i386_process_record): Remove "0x" that
1585 don't need.
1586
1db4e8a0
UW
15872009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1588
1589 * s390-tdep.c (op_bctr, op_bctgr, op_bct, op1_bctg, op2_bctg,
1590 op_bxh, op1_bxhg, op2_bxhg, op_bxle, op1_bxleg, op2_bxleg,
1591 op1_brct, op2_brct, op1_brctg, op2_brctg, op_brxh, op1_brxhg,
1592 op2_brxhg, op_brxle, op1_brxlg, op2_brxlg): New enum values.
1593 (is_rsi, is_rie): New insn format decoder routines.
1594 (s390_displaced_step_fixup): New function.
1595 (s390_gdbarch_init): Install displaced stepping routines.
1596
1ba3a4f4
UW
15972009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1598
1599 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*):
1600 Add linux-tdep.o to gdb_target_obs.
1601 (s390*-*-*): Likewise.
1602
5b6912fb
DL
16032009-09-27 Don Lee <don.lee@sunplusct.com>
1604
1605 * score-tdep.c: Comment out some simulator dependent codes.
1606 * score-tdep.h: Delete some simulator dependent macro definitions.
1607
5d40bb85
HZ
16082009-09-27 Hui Zhu <teawater@gmail.com>
1609
1610 * record.c (record_open): Change "query" to "error".
1611 (cmd_record_stop): Change "query" to "printf_unfiltered".
1612
087b74b2
PM
16132009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1614
1615 * i386-nat.c (i386_stopped_data_address): Also check that
1616 hitted watch register is not vacant.
1617
96c07c5b
TT
16182009-09-25 Tom Tromey <tromey@redhat.com>
1619
1620 PR python/10664:
1621 * language.h (struct language_defn) <la_get_string>: Add
1622 'char_type' argument.
1623 (LA_GET_STRING): Likewise.
1624 (default_get_string, c_get_string): Update.
1625 * language.c (default_get_string): Add 'char_type' argument.
1626 * c-valprint.c (c_textual_element_type): Rename from
1627 textual_element_type. No longer static. Update callers.
1628 * c-lang.h (c_textual_element_type): Declare.
1629 * c-lang.c (c_get_string): Add 'char_type' argument.
1630
b8899f2b
TT
16312009-09-25 Tom Tromey <tromey@redhat.com>
1632
1633 * charset.c (iconv_open): Use UTF-16 and UTF-32, not UCS-2 and
1634 UCS-4.
1635 (iconv): Rename 'ucs_flag'.
1636 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
1637 * c-lang.c (charset_for_string_type): Use UTF-16 and UTF-32, not
1638 UCS-2 and UCS-4.
1639 (convert_ucn): Use UTF-32.
1640
b7c31329
NR
16412009-09-25 Nick Roberts <nickrob@snap.net.nz>
1642
1643 * mi/gdb-mi.el: Remove file.
1644
604ad007
JB
16452009-09-23 Joel Brobecker <brobecker@adacore.com>
1646
1647 * record.c (record_open, record_store_registers, record_xfer_partial):
1648 Replace calls to nquery by calls to query.
1649
20bb6bc8
TT
16502009-09-23 John Wright <john.wright@hp.com>
1651
1652 PR gdb/10684:
1653 * event-top.c (command_line_handler): Terminate linebuffer before
1654 xstrdup.
1655
69e2bf17
JB
16562009-09-22 Joel Brobecker <brobecker@adacore.com>
1657
1658 * solib.c (solib_bfd_open): Relax a bit the compatibility check.
1659
c4e86dd4
DJ
16602009-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1661
1662 * source.c (forget_cached_source_info): Clear last_source_visited.
1663 (init_last_source_visited): Delete.
1664 (directory_command): Do not clear last_source_visited. Call
1665 forget_cached_source_info only if required.
1666 (unset_substitute_path_command, set_substitute_path_command): Call
1667 forget_cached_source_info.
1668 * mi/mi-cmd-env.c (mi_cmd_env_dir): Do not call
1669 init_last_source_visited.
1670 * defs.h (init_last_source_visited): Delete declaration.
1671
89fa5381
TT
16722009-09-22 Tom Tromey <tromey@redhat.com>
1673
1674 PR gdb/10583:
1675 * python/py-value.c (valpy_int): Use PyLong_FromLongLong.
1676 (valpy_long): Likewise.
1677
329719ec
TT
16782009-09-22 Tom Tromey <tromey@redhat.com>
1679
1680 PR python/10680:
1681 * eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
1682 functions in EVAL_AVOID_SIDE_EFFECTS case.
1683
a13d7b90
JZ
16842009-09-22 Jie Zhang <jie.zhang@analog.com>
1685
1686 * MAINTAINERS: Add myself under Write After Approval.
1687
bb0613a5
PM
16882009-09-22 Pierre Muller <muller@ics.u-strasbg.fr>
1689
1690 * windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
1691
12907978
KS
16922009-09-18 Keith Seitz <keiths@redhat.com>
1693
1694 * cp-support.h (cp_validate_operator): Declare new function.
1695 * cp-support.c (cp_validate_operator): New function.
1696 * linespec.c (decode_compound): For C++ check for a valid operator.
1697
e8269d5f
KS
16982009-09-21 Keith Seitz <keiths@redhat.com>
1699
1700 * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
1701 that a type is not an aggregate type.
1702
ce0420dc
TT
17032009-09-21 Jason Orendorff <jason.orendorff@gmail.com>
1704
1705 PR python/10666:
1706 * python/py-function.c (fnpy_init): Use xstrdup.
1707
4f412fd0
JZ
17082009-09-21 Jie Zhang <jie.zhang@analog.com>
1709
1710 * doc/gdb.texinfo: Escape "{" and "}".
1711
7a9fe101
PM
17122009-09-21 Phil Muldoon <pmuldoon@redhat.com>
1713
1714 PR python/10633
1715
1716 * c-lang.c (c_printstr): Do not loop past options->print_max when
1717 iterating with wchar_iterate.
1718
2e4d963f
PM
17192009-09-21 Phil Muldoon <pmuldoon@redhat.com>
1720
1721 * python/py-value.c (valpy_getitem): Test value before allowing
1722 subscript operation.
1723
cdfbdf30
HZ
17242009-09-21 Hui Zhu <teawater@gmail.com>
1725 Michael Snyder <msnyder@vmware.com>
1726
1727 * amd64-linux-tdep.c (amd64_all_but_ip_registers_record): New
1728 function.
1729 (amd64_linux_syscall_record): Call
1730 amd64_all_but_ip_registers_record if syscall is
1731 sys_rt_sigreturn.
1732 (AMD64_LINUX_redzone, AMD64_LINUX_xstate,
1733 AMD64_LINUX_frame_size): New macros.
1734 (amd64_linux_record_signal): New function.
1735 (amd64_linux_init_abi): Call set_gdbarch_process_record_signal.
1736
8a2e0e28
HZ
17372009-09-21 Hui Zhu <teawater@gmail.com>
1738 Michael Snyder <msnyder@vmware.com>
1739
1740 * i386-linux-tdep.c (i386_all_but_ip_registers_record): New
1741 function.
1742 (i386_linux_intx80_sysenter_record): Call
1743 i386_all_but_ip_registers_record if syscall is sys_sigreturn
1744 or sys_rt_sigreturn.
1745 (I386_LINUX_xstate, I386_LINUX_frame_size): New macros.
1746 (i386_linux_record_signal): New function.
1747 (i386_linux_init_abi): Call set_gdbarch_process_record_signal.
1748
8b739a96
HZ
17492009-09-21 Hui Zhu <teawater@gmail.com>
1750 Michael Snyder <msnyder@vmware.com>
1751
1752 * record.c (record_end_entry): New struct.
1753 (record_type): Add end.
1754 (record_arch_list_add_end): Set rec->u.end.sigval to
1755 TARGET_SIGNAL_0.
1756 (record_message_args): New struct.
1757 (record_message): Call gdbarch_process_record_signal.
1758 (do_record_message): Add argument "signal".
1759 (record_resume): Ditto.
1760 (record_wait): Ditto. Check record_list->u.end.sigval
1761 in replay mode.
1762
3846b520
HZ
17632009-09-21 Hui Zhu <teawater@gmail.com>
1764 Michael Snyder <msnyder@vmware.com>
1765
1766 * gdbarch.sh (process_record_signal): New interface.
1767
26f9bcee
JB
17682009-09-19 Matt Rice <ratmice@gmail.com> (tiny change)
1769
1770 Checked in by Joel Brobecker <brobecker@gnat.com>
1771 * varobj.c (varobj_update): Initialize children_changed.
1772
654e7c1f
VP
17732009-09-19 Vladimir Prus <vladimir@codesourcery.com>
1774
1775 * mi/mi-cmd-stack.c (list_args_or_locals): Workaround
1776 gcc warning.
1777
daf3c977
VP
17782009-09-19 Vladimir Prus <vladimir@codesourcery.com>
1779
1780 * mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare.
1781 * mi/mi-cmds.c (mi_cmds): Register -stack-list-variables.
1782 * mi/mi-cmd-stack.c (enum what_to_list): New.
1783 (list_args_or_locals): Accept what_to_list parameter.
1784 Use 'variables' as output name of all are requested.
1785 (mi_cmd_stack_list_variables): New.
1786 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Adjust.
1787
3145548f
EZ
17882009-09-19 Eli Zaretskii <eliz@gnu.org>
1789
1790 * config/djgpp/fnchange.lst: Add missing edits.
1791
8179e739
MG
17922009-09-18 Maxim Grigoriev <maxim2405@gmail.com>
1793
1794 * xtensa-tdep.c (call0_analyze_prologue): Replace INT_MAX by UNIT_MAX.
1795
adb7f338
JK
17962009-09-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1797
1798 * objfiles.c (free_objfile): Clear SYMFILE_OBJFILE if it is OBJFILE.
1799 * rs6000-nat.c (vmap_ldinfo): Only assertion check SYMFILE_OBJFILE now.
1800 * symfile.c (syms_from_objfile, symbol_file_clear): Likewise.
1801
18022009-09-18 Ulrich Weigand <uweigand@de.ibm.com>
db9f5df8
UW
1803
1804 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add v2_double
1805 union member.
1806
01dedca2
JB
18072009-09-17 Joel Brobecker <brobecker@adacore.com>
1808
1809 Fix a build failure on pa-hpux:
1810 * gdb_ptrace.h (PT_SYSCALL): Define here if not already defined.
1811 * inf-ttrace.c (inf_ttrace_wait): Fix compilation failure
1812 introduced after field syscall_id inside struct target_waitstatus
1813 has been renamed into syscall_number.
1814
11e6390e
L
18152009-09-16 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 PR gdb/10649
1818 * Makefile.in (GDB_DATADIR_PATH): Renamed to ...
1819 (GDB_DATADIR): This.
1820 (xml-syscall-install): Updated.
1821
191cfd08 18222009-09-16 Joel Brobecker <brobecker@adacore.com>
1823
1824 GDB 7.0 branch created (branch timestamp: 2009-09-16 19:00 UTC)
1825 * version.in: Bump version to 7.0.50.20090916-cvs.
1826
0cc7d26f
TT
18272009-09-15 Tom Tromey <tromey@redhat.com>
1828
1829 * varobj.h (varobj_update_result_t) <new>: New field.
1830 (varobj_get_child_range, varobj_set_child_range): Declare.
1831 (varobj_list_children): Update.
1832 (varobj_enable_pretty_printing, varobj_has_more)
1833 (varobj_pretty_printed_p): Declare.
1834 * varobj.c (pretty_printing): New global.
1835 (varobj_enable_pretty_printing): New function.
1836 (struct varobj_root) <from, to, constructor, child_iter,
1837 saved_item>: New fields.
1838 (varobj_create): Don't call install_default_visualizer.
1839 (instantiate_pretty_printer): Don't use value_copy.
1840 (varobj_has_more): New function.
1841 (restrict_range): New function.
1842 (install_dynamic_child): Likewise.
1843 (dynamic_varobj_has_child_method): Likewise.
1844 (update_dynamic_varobj_children): Remove 'new_and_unchanged'
1845 argument; add 'new', 'unchanged', 'from', and 'to' arguments.
1846 Rewrite.
1847 (varobj_get_num_children): Call update_dynamic_varobj_children.
1848 (varobj_list_children): Add 'from' and 'to' arguments. Ignore
1849 result of update_dynamic_varobj_children. Don't call
1850 install_default_visualizer. Restrict result range.
1851 (varobj_add_child): Don't call install_default_visualizer.
1852 (varobj_pretty_printed_p): New function.
1853 (install_visualizer): Rewrite. Move earlier in file.
1854 (install_default_visualizer): Likewise.
1855 (construct_visualizer): New function.
1856 (install_new_value_visualizer): Likewise.
1857 (install_new_value): Don't call release_value. Special case
1858 pretty-printed objects. Use value_incref. Rearrange "changed"
1859 logic.
1860 (varobj_get_child_range): New function.
1861 (varobj_set_child_range): Likewise.
1862 (varobj_set_visualizer): Rewrite.
1863 (varobj_update): Rewrite pretty-printing logic.
1864 (new_variable): Initialize new fields.
1865 (free_variable): Destroy new fields.
1866 (value_of_root): Copy 'from' and 'to'.
1867 (my_value_of_variable): Handle pretty-printers.
1868 (value_get_print_value): Rework pretty-printing logic.
1869 (cplus_describe_child): Don't use release_value.
1870 * mi/mi-cmds.h (mi_cmd_enable_pretty_printing)
1871 (mi_cmd_var_set_update_range): Declare.
1872 * mi/mi-cmds.c (mi_cmds): Add enable-pretty-printing and
1873 var-set-update-range.
1874 * mi/mi-cmd-var.c (print_varobj): Update. Emit "dynamic"
1875 attribute.
1876 (mi_cmd_var_create): Emit "has_more" attribute.
1877 (mi_cmd_var_set_format): Plug memory leak.
1878 (mi_print_value_p): Replace 'type' argument with 'var'. Handle
1879 pretty-printed varobjs.
1880 (mi_cmd_var_list_children): Accept 'from' and 'to' arguments.
1881 Emit "has_more" attribute.
1882 (mi_cmd_var_evaluate_expression): Plug memory leak.
1883 (mi_cmd_var_assign): Likewise.
1884 (varobj_update_one): Likewise. Emit "dynamic", "has_more", and
1885 "new_children" attributes.
1886 (mi_cmd_enable_pretty_printing): New function.
1887 (mi_cmd_var_set_update_range): Likewise.
1888
7d4f32d3
DE
18892009-09-15 Doug Evans <dje@google.com>
1890
44353522
DE
1891 * dwarf2expr.h (dwarf_value_location): Add more comments describing
1892 enum values.
1893 (struct dwarf_stack_value): New struct.
1894 (struct dwarf_expr_context): Change type of `stack' from CORE_ADDR*
1895 to struct dwarf_stack_value*.
1896 (struct dwarf_expr_piece): Move `v.value' into its own struct, v.expr,
1897 all uses updated. Add v.expr.in_stack_memory.
1898 (dwarf_expr_push): Update declaration.
1899 (dwarf_expr_fetch_in_stack_memory): Declare.
1900 * dwarf2expr.c (dwarf_expr_grow_stack): Update calculation of
1901 size of stack value.
1902 (dwarf_expr_push): New arg in_stack_memory, all callers updated.
1903 (dwarf_expr_fetch_in_stack_memory): New function.
1904 (add_piece): Set in_stack_memory for non-literal values.
1905 (execute_stack_op): Allow ops to specify whether the value is on the
1906 program's stack.
1907 (execute_stack_op, case DW_OP_fbreg): Mark value as in stack memory.
1908 (execute_stack_op, case DW_OP_call_frame_cfa): Ditto.
1909 (execute_stack_op, case DW_OP_dup): Copy in_stack_memory flag.
1910 (execute_stack_op, cases DW_OP_pick, DW_OP_over): Ditto.
1911 (execute_stack_op, cases DW_OP_swap, DW_OP_rot): Update type of
1912 dwarf stack value.
1913 * dwarf2loc.c (read_pieced_value): Call read_stack for values known
1914 to be on the program's stack.
1915 (dwarf2_evaluate_loc_desc, case DWARF_VALUE_MEMORY): Call
1916 set_value_stack only for objects known to be in stack memory.
1917 * dwarf2-frame.c (execute_stack_op): New arg initial_in_stack_memory,
1918 all callers updated.
1919
7d4f32d3
DE
1920 * target.c (memory_xfer_partial): Pass correct length to dcache_update.
1921
8285870a
JK
19222009-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1923
1924 Fix gcc-4.5 HEAD warnings for enum ada_operator.
1925 * Makefile.in (HFILES_NO_SRCDIR): Add ada-operator.inc.
1926 * ada-lang.h (enum ada_operator): Move it to ...
1927 * ada-operator.inc: ... a new file.
1928 * expression.h (enum exp_opcode): Include ada-operator.inc.
1929 New element OP_UNUSED_LAST. Update comment for OP_EXTENDED0.
1930
1931 Fix gcc-4.5 HEAD warnings for GDB_FORM_cached_string.
1932 * dwarf2read.c (GDB_FORM_cached_string)
1933 (dwarf_form_name <GDB_FORM_cached_string>): Remove.
1934 (struct attribute <dwarf_form>): Reduce the bit width.
1935 (struct attribute <string_is_canonical>, DW_STRING_IS_CANONICAL): New.
1936 (read_attribute_value <DW_FORM_string>)
1937 (read_attribute_value <DW_FORM_strp>): Initialize
1938 DW_STRING_IS_CANONICAL.
1939 (dwarf2_name, dump_die_shallow <DW_FORM_string>)
1940 (dump_die_shallow <DW_FORM_strp>): Update the code using former
1941 GDB_FORM_cached_string.
1942
a96d9b2e
SDJ
19432009-09-14 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1944
1945 * amd64-linux-tdep.c: Include xml-syscall.h header, define the XML
1946 syscall name for the architecture.
1947 (amd64_linux_get_syscall_number): New function.
1948 (amd64_linux_init_abi): Register the correct functions for syscall
1949 catchpoint; set the correct syscall file name.
1950 * breakpoint.c: New include: xml-syscall.h.
1951 (set_raw_breakpoint_without_location): Setting the parameters
1952 for the catch syscall feature.
1953 (insert_catch_syscall): New.
1954 (remove_catch_syscall): New.
1955 (breakpoint_hit_catch_syscall): New.
1956 (print_it_catch_syscall): New.
1957 (print_one_catch_syscall): New.
1958 (print_mention_catch_syscall): New.
1959 (catch_syscall_breakpoint_ops): New.
1960 (syscall_catchpoint_p): New.
1961 (create_catchpoint_without_mention): New.
1962 (create_catchpoint): Modified in order to use
1963 create_catchpoint_without_mention.
1964 (create_syscall_event_catchpoint): New.
1965 (clean_up_filters): New.
1966 (catch_syscall_split_args): New.
1967 (catch_syscall_command_1): New.
1968 (delete_breakpoint): Add cleanup for catch syscall.
1969 (is_syscall_catchpoint_enabled): New.
1970 (catch_syscall_enabled): New.
1971 (catching_syscall_number): New.
1972 (catch_syscall_completer): New completer function.
1973 (add_catch_command): Add the completer function for catchpoints.
1974 * breakpoint.h (syscalls_to_be_caught): New vector.
1975 (catch_syscall_enabled): New.
1976 (catching_syscall_number): New.
1977 * gdbarch.c: Regenerated.
1978 * gdbarch.h: Regenerated.
1979 * gdbarch.sh: Add syscall catchpoint functions and structures.
1980 (get_syscall_number): New.
1981 (UNKNOWN_SYSCALL): New definition.
1982 * i386-linux-nat.c (i386_linux_resume): Select the proper request
1983 to be made for ptrace() considering if we are catching syscalls
1984 or not.
1985 * i386-linux-tdep.c: Include xml-syscall.h header, define the XML
1986 syscall name for the architecture.
1987 (i386_linux_get_syscall_number): New.
1988 (i386_linux_init_abi): Register the correct functions for syscall
1989 catchpoint; set the correct syscall file name.
1990 * inf-child.c (inf_child_set_syscall_catchpoint): New.
1991 (inf_child_target): Assign default values to target_ops.
1992 * inf-ptrace.c (inf_ptrace_resume): Select the proper request
1993 to be made for ptrace() considering if we are catching syscalls
1994 or not.
1995 * inferior.h (struct inferior): Included new variables
1996 any_syscall_count, syscalls_counts and total_syscalls_count,
1997 used to keep track of requested syscall catchpoints.
1998 * infrun.c (resume): Add syscall catchpoint.
1999 (deal_with_syscall_event): New.
2000 (handle_inferior_event): Add syscall entry/return events.
2001 (inferior_has_called_syscall): New.
2002 * linux-nat.c: Define some helpful variables to track wether we have
2003 support for the needed ptrace option.
2004 (linux_test_for_tracesysgood): New.
2005 (linux_supports_tracesysgood): New.
2006 (linux_enable_tracesysgood): New.
2007 (linux_enable_event_reporting): Save the current used ptrace
2008 options.
2009 (linux_child_post_attach): Calling linux_enable_tracesysgood.
2010 (linux_child_post_startup_inferior): Likewise.
2011 (linux_child_set_syscall_catchpoint): New function.
2012 (linux_handle_extended_wait): Handle the case which the inferior stops
2013 because it has called or returned from a syscall.
2014 (linux_target_install_ops): Install the necessary functions to handle
2015 syscall catchpoints.
2016 * linux-nat.h (struct lwp_info): Include syscall_state into the
2017 structure, which indicates if we are in a syscall entry or return.
2018 * ppc-linux-tdep.c: Include xml-syscall.h header, define the XML
2019 syscall filename for the arch.
2020 (ppc_linux_get_syscall_number): New.
2021 (ppc_linux_init_abi): Register the correct functions for syscall
2022 catchpoint; setting the correct name for the XML syscall file.
2023 * target.c (update_current_target): Update/copy functions related to
2024 syscall catchpoint.
2025 (target_waitstatus_to_string): Add syscall catchpoint entry/return
2026 events.
2027 * target.h (struct target_waitstatus): Add syscall number.
2028 (struct syscall): New struct to hold information about syscalls
2029 in the system.
2030 (struct target_ops): Add ops for syscall catchpoint.
2031 (inferior_has_called_syscall): New.
2032 (target_set_syscall_catchpoint): New.
2033 * xml-support.c (xml_fetch_content_from_file): New function,
2034 transferred from xml-tdesc.c.
2035 * xml-support.h (xml_fetch_content_from_file): New.
2036 * xml-tdesc.c (fetch_xml_from_file): Function removed;
2037 transferred to xml-support.c.
2038 (file_read_description_xml): Updated to use the new
2039 xml_fetch_content_from_file function.
2040 * syscalls/gdb-syscalls.dtd: New definition file for syscall's XML
2041 support.
2042 * syscalls/amd64-linux.xml: New file containing information about
2043 syscalls for GNU/Linux systems that use amd64 architecture.
2044 * syscalls/i386-linux.xml: New file containing information about
2045 syscalls for GNU/Linux systems that use i386 architecture.
2046 * syscalls/ppc-linux.xml: New file containing information about
2047 syscalls for GNU/Linux systems that use PPC architecture.
2048 * syscalls/ppc64-linux.xml: New file containing information about
2049 syscalls for GNU/Linux systems that use PPC64 architecture.
2050 * xml-syscall.c: New file containing functions for manipulating
2051 syscall's XML files.
2052 * xml-syscall.h: New file, exporting the functions above mentioned.
2053 * Makefile.in: Support for relocatable GDB datadir and XML
2054 syscall.
2055 * NEWS: Added information about the catch syscall feature.
2056
41dcd03f
DE
20572009-09-14 Doug Evans <dje@google.com>
2058
2059 * target.c (memory_xfer_partial): Only update dcache after we know
2060 the write succeeded.
2061
00878c6e
PP
20622009-09-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2063
2064 *minsyms.c (lookup_minimal_symbol_by_pc_section_1): Assert non-NULL
2065 section.
2066 (lookup_minimal_symbol_by_pc_section): Check for NULL section.
2067 (lookup_minimal_symbol_by_pc): Adjust.
2068
6fbf07cd
PP
20692009-09-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2070
2071 * objfiles.c (qsort_cmp): Remove asserts.
2072 (insert_section_p, filter_debuginfo_sections): New function.
2073 (filter_overlapping_sections): Likewise.
2074 (update_section_map): Adjust.
00878c6e 2075
005ca36a
JB
20762009-09-13 Daniel Jacobowitz <dan@codesourcery.com>
2077
2078 * frame.c (get_frame_id): Default to outer_frame_id if the this_id
2079 method does not supply an ID. Assert that the result is not
2080 null_frame_id.
2081 (outer_frame_id): New.
2082 (frame_id_p): Accept outer_frame_id.
2083 (frame_id_eq): Allow outer_frame_id to be equal to itself.
2084 (frame_find_by_id): Revert previous local workarounds.
2085 (get_prev_frame_1): Adjust end-of-stack check to test outer_frame_id.
2086 * frame.h (null_frame_id, frame_id_p): Update comments.
2087 (outer_frame_id): Declare.
2088 * infrun.c (handle_inferior_event): Do not treat all steps from the
2089 outermost frame as subroutine calls.
2090
2091 * libunwind-frame.c (libunwind_frame_this_id): Do not clear THIS_ID.
2092 * hppa-tdep.c (hppa_stub_frame_this_id): Likewise.
2093 * ia64-tdep.c (ia64_frame_this_id): Likewise.
2094 (ia64_libunwind_frame_this_id, ia64_libunwind_sigtramp_frame_this_id):
2095 Use outer_frame_id instead of null_frame_id.
2096 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Use outer_frame_id.
2097 * i386obsd-tdep.c (i386obsd_trapframe_cache): Likewise.
2098 * inline-frame.c (inline_frame_this_id): Refuse outer_frame_id.
2099 * thread.c (restore_selected_frame): Update comment and remove
2100 frame_id_p check.
2101
c1bd65d0
DE
21022009-09-11 Doug Evans <dje@google.com>
2103
411c71a8
DE
2104 * dwarf2expr.c (execute_stack_op, case DW_OP_piece): Delete unused
2105 local addr_or_regnum.
2106
c1bd65d0
DE
2107 * objfiles.c (struct objfile_data): Delete member cleanup and replace
2108 with save, free.
2109 (register_objfile_data_with_cleanup): Delete arg cleanup and replace
2110 with save, free. All callers updated.
2111 (clear_objfile_data): Replace cleanup loop with separate save and
2112 free loops.
2113 * objfiles.h (register_objfile_data_with_cleanup): Update.
2114 * arm-tdep.c (arm_objfile_data_free): Renamed from
2115 arm_objfile_data_cleanup, all callers updated.
2116 * dwarf2read.c (dwarf2_per_objfile_free): Renamed from
2117 dwarf2_per_objfile_cleanup, all callers updated.
2118 * python/py-objfile.c (py_free_objfile): Renamed from clean_up_objfile,
2119 all callers updated.
2120 * python/py-type.c (save_objfile_types): Renamed from
2121 clean_up_objfile_types, all callers updated.
2122
cec03d70
TT
21232009-09-11 Tom Tromey <tromey@redhat.com>
2124
2125 * dwarf2loc.c (struct piece_closure) <arch>: New field.
2126 (dwarf2_evaluate_loc_desc): Update.
2127 (dwarf2_loc_desc_needs_frame): Likewise.
2128 (allocate_piece_closure): Initialize new field.
2129 (read_pieced_value): Update.
2130 (write_pieced_value): Update.
2131 (copy_pieced_value_closure): Update.
2132 * dwarf2expr.h (enum dwarf_value_location): New.
2133 (struct dwarf_expr_context) <in_reg>: Remove.
2134 <location, len, data>: New fields.
2135 (struct dwarf_expr_piece) <in_reg, value>: Remove.
2136 <location, v>: New fields.
2137 * dwarf2expr.c (add_piece): Remove in_reg, value arguments.
2138 Update.
2139 (require_composition): New function.
2140 (execute_stack_op): Update.
2141 <DW_OP_implicit_value, DW_OP_stack_value>: New cases.
2142 <DW_OP_reg0>: Set location, not in_reg.
2143 <DW_OP_regx>: Likewise. Use require_composition.
2144 <DW_OP_fbreg>: Update.
2145 <DW_OP_piece>: Likewise.
2146 * dwarf2-frame.c (execute_stack_op): Update.
2147
ce0bf488
AG
21482009-09-10 Anthony Green <green@moxielogic.com>
2149
2150 * moxie-tdep.c (moxie_analyze_prologue): Recognize new prologue
2151 sequences.
2152
40ab02ce
MS
21532009-09-10 Michael Snyder <msnyder@vmware.com>
2154
2155 * remote.c (PACKET_bc, PACKET_bs): New enums.
2156 (remote_protocol_features): Add ReverseStep, ReverseContinue.
2157 (remote_resume): Check for reverse capability.
2158 (_initialize_remote): Add packet config for "bs" and "bc" packets.
2159 * NEWS (new options): Mention set/show for "bs" and "bc" packets.
2160
910c5da8
JB
21612009-09-10 Joel Brobecker <brobecker@adacore.com>
2162
2163 * top.c (interactive_mode): New static variable.
2164 (show_interactive_mode): New function.
2165 (input_from_terminal_p): If interactive_mode is not auto, then
2166 use that rather than checking the stdin settings.
2167 (init_main): Add "set/show interactive-mode" command.
2168 * NEWS: Add entry for new "set/show interactive-mode" command.
2169
2c9e3c69
JB
21702009-09-10 Joel Brobecker <brobecker@adacore.com>
2171
2172 * configure.ac: Fix the names of the python source and object files
2173 following the renaming done in an earlier change.
2174 * configure: Regenerate.
2175
397dbc8b
JB
21762009-09-08 Joel Brobecker <brobecker@adacore.com>
2177
2178 Fix a build failure on AIX.
2179 * rs6000-nat.c (vmap_exec): Rewrite using target_get_section_table
2180 instead of relying on the to_sections/to_section_end target_ops
2181 field, since the latter have been removed in a previous patch.
2182
5172aecb
JB
21832009-09-08 Thiago Jung Bauermann <thiago.bauermann@gmail.com>
2184
2185 * Makefile.in (py-cmd.o): Renamed from python-cmd.o. Updated
2186 references.
2187 (py-frame.o): Renamed from python-frame.o. Updated references.
2188 (py-function.o): Renamed from python-function.o. Updated references.
2189 (py-objfile.o): Renamed from python-objfile.o. Updated references.
2190 (py-prettyprint.o): Renamed from python-prettyprint.o. Updated
2191 references.
2192 (py-type.o): Renamed from python-type.o. Updated references.
2193 (py-utils.o): Renamed from python-utils.o. Updated references.
2194 (py-value.o): Renamed from python-value.o. Updated references.
2195 * py-cmd.c: Renamed from python-cmd.c.
2196 * py-frame.c: Renamed from python-frame.c.
2197 * py-function.c: Renamed from python-function.c.
2198 * py-objfile.c: Renamed from python-objfile.c.
2199 * py-prettyprint.c: Renamed from python-prettyprint.c.
2200 * py-type.c: Renamed from python-type.c.
2201 * py-utils.c: Renamed from python-utils.c.
2202 * py-value.c: Renamed from python-value.c.
2203
b83e9eb7
JB
22042009-09-08 Joel Brobecker <brobecker@adacore.com>
2205
2206 Avoid quadratic behavior when computing the value of a register.
2207 * frame.c (frame_stash): New static constant.
2208 (frame_stash_add, frame_stash_find, frame_stash_invalidate):
2209 New functions.
2210 (get_frame_id): Minor reformatting. Add the frame to the frame stash.
2211 (frame_find_by_id): Search the frame stash first before walking all
2212 frames starting from te current_frame.
2213 (reinit_frame_stash): Add call to frame_stash_invalidate ();
2214
49e794ac
JB
22152009-09-08 Joel Brobecker <brobecker@adacore.com>
2216
2217 * block.c (contained_in): Return zero for nested functions.
2218 * blockframe.c (block_innermost_frame): Delete unreferenced local
2219 variable.
2220
9cf1b572
DE
22212009-09-08 Doug Evans <dje@google.com>
2222
2223 * target.c (initialize_targets): Fix thinko in stack_cache_enabled_p.
2224
13b6d1d4
MS
22252009-09-08 Michael Snyder <msnyder@vmware.com>
2226
2227 * amd64-linux-tdep.h (enum amd64_syscall): New enum consts,
2228 to replace literal consts used in amd64-linux-tdep.c
2229 * linux-record.h (enum gdb_syscall): New enum consts, to replace
2230 literal consts used in amd64-linux-tdep.c and linux-record.c.
2231 * amd64-linux-tdep.c (amd64_canonicalize_syscall): New function,
2232 translate from native amd64 Linux syscall id to internal gdb id.
2233 (amd64_linux_syscall_record): Switch statement abstracted out
2234 and replaced with a call to amd64_canonicalize_syscall.
2235 * linux-record.c (record_linux_system_call): Replace literal
2236 consts with enum consts.
2237 * i386-linux-tdep.c (i386_canonicalize_syscall): New function,
2238 trivially translate from native i386 Linux syscalls to gdb syscalls.
2239 (i386_linux_intx80_sysenter_record):
2240
a5bbabf3
RW
22412009-09-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2242
2243 * gdb/Makefile.in (check//%): Parse 'config.status --version'
2244 output to recreate the configuration from the testsuite directory,
2245 rather than running 'config.status --recheck' from a different
2246 build directory. Let configure do the recursion rather than
2247 doing it manually.
2248
a58162c2
JK
22492009-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 * ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups
2252 before a return.
2253
fbfaaae5
JK
22542009-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 * ia64-tdep.c (ia64_memory_insert_breakpoint)
2257 (ia64_memory_remove_breakpoint): Return immediately if any of memory
2258 reads fail. Do not combine the VAL values.
2259
b554e4bd
JK
22602009-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2261
2262 Fix ia64 shadowing of breakpoints in multiple slots of a single bundle.
2263 * ia64-tdep.c (ia64_memory_insert_breakpoint): New call
2264 of make_show_memory_breakpoints_cleanup with parameter 0. Move the
2265 reading of SHADOW_CONTENTS to this memory state point of code. Update
2266 comment for the memory re-read.
2267
fda458ee
MS
22682009-09-07 Michael Snyder <msnyder@vmware.com>
2269
2270 * record.c: Minor comment and white space fix-ups.
2271
1390fcc2
JK
22722009-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2273
2274 * m68k-tdep.c (m68k_gdbarch_init): Allocate TDEP as cleared.
2275 * sparc-tdep.c (sparc32_gdbarch_init): Allocate TDEP as cleared.
2276 Remove explicit clearing of TDEP fields.
2277
d7877f7e
HZ
22782009-09-06 Hui Zhu <teawater@gmail.com>
2279
2280 * i386-tdep.c (i386_record_check_override): Deleted.
2281 (i386_record_lea_modrm): Ditto.
2282 (i386_process_record): Ditto.
2283
348e86d9
EZ
22842009-09-05 Eli Zaretskii <eliz@gnu.org>
2285
2286 * config/djgpp/djconfig.sh: Fix for Autoconf 2.64.
2287 * config/djgpp/config.sed: Fix for Autoconf 2.64.
2288
df61f520
HZ
22892009-09-05 Hui Zhu <teawater@gmail.com>
2290
2291 * i386-tdep.c (i386_record_s): Add orig_addr.
2292 (i386_record_check_override): New function.
2293 (i386_record_lea_modrm): Call i386_record_check_override.
2294 (i386_process_record): Ditto.
2295
052b9502
NF
22962009-09-03 Nathan Froyd <froydnj@codesourcery.com>
2297
2298 * dwarf2loc.c (struct piece_closure): New.
2299 (allocate_piece_closure): New function.
2300 (read_pieced_value): New function.
2301 (write_pieced_value): New function.
2302 (copy_pieced_value_closure): New function.
2303 (free_pieced_value_closure): New function.
2304 (pieced_value_funcs): Define.
2305 (dwarf2_evaluate_loc_desc): Return a computed value for a variable
2306 described with pieces.
2307
97b9747c
JB
23082009-09-03 Pierre Muller <muller@ics.u-strasbg.fr>
2309 Richard Earnshaw <rearnsha@arm.com>
2310
2311 * arm-tdep.c (displaced_write_reg): Replace call to abort by call
2312 to internal_error.
2313
e7802207
TT
23142009-09-02 Tom Tromey <tromey@redhat.com>
2315
2316 * frame.h (frame_unwinder_is): Declare.
2317 * frame.c (frame_unwinder_is): New function.
2318 * dwarf2loc.c: Include dwarf2-frame.h.
2319 (dwarf_expr_frame_cfa): New function.
2320 (dwarf2_evaluate_loc_desc): Use it.
2321 (needs_frame_frame_cfa): New function.
2322 (dwarf2_loc_desc_needs_frame): Use it.
2323 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_cfa>: New
2324 field.
2325 * dwarf2expr.c (execute_stack_op) <DW_OP_call_frame_cfa>: New
2326 case.
2327 * dwarf2-frame.h (dwarf2_frame_cfa): Declare.
2328 * dwarf2-frame.c (no_get_frame_cfa): New function.
2329 (execute_stack_op): Use it.
2330 (dwarf2_frame_cfa): New function.
2331
c9e78e0c
HZ
23322009-09-02 Hui Zhu <teawater@gmail.com>
2333
2334 * record.c (record_resume): Change "signal" to "siggnal".
2335
14c6ee20
HZ
23362009-09-01 Hui Zhu <teawater@gmail.com>
2337
2338 * record.c (record_resume): Change "siggnal" to "signal".
2339
88fef440
HZ
23402009-09-01 Hui Zhu <teawater@gmail.com>
2341
2342 * record.c (record_resume_siggnal): Deleted.
2343 (record_resume): Ditto.
2344 (record_wait): Change record_resume_siggnal to
2345 TARGET_SIGNAL_0.
2346
4e5d721f
DE
23472009-08-31 Jacob Potter <jdpotter@google.com>
2348 Doug Evans <dje@google.com>
2349
2350 Implement TARGET_OBJECT_STACK_MEMORY.
2351 * NEWS: Add note on new "set stack-cache" option.
2352 * corefile.c (read_stack): New function.
2353 * dcache.c (dcache_struct): New member ptid.
2354 (dcache_enable_p): Mark as obsolete.
2355 (show_dcache_enabled_p): Flag option as deprecated.
2356 (dcache_invalidate): Update ptid.
2357 (dcache_invalidate_line): New function.
2358 (dcache_read_line): No longer check cacheable attribute, stack
2359 accesses get cached despite attribute.
2360 (dcache_init): Set ptid.
2361 (dcache_xfer_memory): Flush cache if from different ptid than before.
2362 Update cache after write.
2363 (dcache_update): New function.
2364 (dcache_info): Report ptid.
2365 (_initialize_dcache): Update text for `remotecache' to indicate it
2366 is obsolete.
2367 * dcache.h (dcache_update): Declare.
2368 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Mark values on stack with
2369 set_value_stack.
2370 * frame-unwind.c (frame_unwind_got_memory): Ditto.
2371 * gdbcore.h (read_stack): Declare.
2372 * memattr.c (mem_enable_command): Call target_dcache_invalidate
2373 instead of dcache_invalidate.
2374 (mem_disable_command, mem_delete_command): Ditto.
2375 * target.c (stack_cache_enabled_p_1): New static global.
2376 (stack_cache_enabled_p): New static global.
2377 (set_stack_cache_enabled_p): New function.
2378 (show_stack_cache_enabled_p): New function.
2379 (target_dcache): Make static.
2380 (target_dcache_invalidate): New function.
2381 (target_load, target_resume): Call target_dcache_invalidate
2382 instead of dcache_invalidate.
2383 (memory_xfer_partial): New arg object, all callers updated.
2384 Check for existing inferior before calling dcache routines.
2385 When writing non-TARGET_OBJECT_STACK_MEMORY, notify dcache.
2386 (target_xfer_partial): Call memory_xfer_partial for
2387 TARGET_OBJECT_STACK_MEMORY.
2388 (target_read_stack): New function.
2389 (initialize_targets): Install new option `stack-cache'.
2390 * target.h: Remove #include of dcache.h.
2391 (enum target_object): New value TARGET_OBJECT_STACK_MEMORY.
2392 (target_dcache): Delete.
2393 (target_dcache_invalidate): Declare.
2394 (target_read_stack): Declare.
2395 * top.c (prepare_execute_command): New function.
2396 (execute_command): Call prepare_execute_command
2397 instead of free_all_values.
2398 * top.h (prepare_execute_command): Declare.
2399 * valops.c (get_value_at): New function.
2400 (value_at): Guts moved to get_value_at.
2401 (value_at_lazy): Similarly.
2402 (value_fetch_lazy): Call read_stack for stack values.
2403 * value.c (struct value): New member `stack'.
2404 (value_stack, set_value_stack): New functions.
2405 * value.h (value_stack, set_value_stack): Declare.
2406 * mi/mi-main.c (mi_cmd_execute): Call prepare_execute_command
2407 instead of free_all_values.
2408
77d7dc92
HZ
24092009-08-29 Hui Zhu <teawater@gmail.com>
2410
2411 * i386-tdep.c (i386_process_record): Fix the error of string
2412 ops instructions's handler.
2413
648bf667
DE
24142009-08-28 Doug Evans <dje@google.com>
2415
2416 * top.c (execute_command): Remove redundant comment.
2417
4a76eae5
DJ
24182009-08-28 Daniel Jacobowitz <dan@codesourcery.com>
2419
2420 PR gdb/10565
2421
2422 * value.c (value_primitive_field): Do not save value_offset for
2423 bitfields.
2424 (unpack_bits_as_long): Do not read an entire ULONGEST.
2425
d4b96c9a
JK
24262009-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2427
2428 Support constant DW_AT_data_member_location by GCC PR debug/40659.
2429 * dwarf2read.c
2430 (dwarf2_add_field <DW_TAG_member> <DW_AT_data_member_location>):
2431 Initialize BYTE_OFFSET to 0 by default. Explicitly check if
2432 attr_form_is_block.
2433 (dwarf2_add_field <DW_TAG_inheritance> <DW_AT_data_member_location>)
2434 (read_common_block <DW_AT_data_member_location>): New variable
2435 byte_offset. Fix crash on non-DW_BLOCK ATTR values.
2436
12b1a979
HZ
24372009-08-28 Hui Zhu <teawater@gmail.com>
2438
2439 * record.c (record_list_release_next): Change the first
2440 record_reg to record_end.
2441
55333a84
DE
24422009-08-27 Doug Evans <dje@google.com>
2443
725e88af
DE
2444 * value.c (free_all_values): Tweak comment.
2445
55333a84
DE
2446 * NEWS: Add note on "info sharedlibrary".
2447 Remove note on "set print symbol-loading".
2448 * main.c (captured_main): Pass !batch for from_tty when calling
2449 symbol_file_add_main.
2450 * objfiles.h (objfile_has_partial_symbols): Declare.
2451 (objfile_has_full_symbols): Declare.
2452 * objfiles.c (objfile_has_partial_symbols): New function.
2453 (have_partial_symbols): Use it.
2454 (objfile_has_full_symbols): New function.
2455 (have_full_symbols): Use it.
2456 * solib.c: Include interps.h.
2457 (solib_read_symbols): Back out patch of 2008-07-10.
2458 Add test for info_verbose for symbol loading messages for
2459 consistency with symfile.c.
2460 (info_sharedlibrary_command): Handle optional parameter of regex of
2461 libraries to list. Inform user of libraries without debugging info.
2462 Rewrite to use ui_out routines to format output.
2463 * symfile.c (print_symbol_loading): Delete.
2464 (symbol_file_add_with_addrs_or_offsets): Back out patch of 2008-07-10.
2465 Print "no debugging symbols found" only if from_tty || info_verbose;
2466 and only check file being loaded, not all files.
2467 (reread_symbols): Test file being loaded for whether it has symbols,
2468 not all files.
2469 (__initialize_symfile): Delete `set print symbol-loading'.
2470 * symfile.h (print_symbol_loading): Delete.
2471
4e22772d
JK
24722009-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2473
2474 * varobj.c (varobj_create): Error if the specified frame was not found
2475 and it is needed.
2476
d691bec7
MS
24772009-08-26 Michael Snyder <msnyder@vmware.com>
2478
2479 * i386-tdep.c (i386_process_record): Break out of prefix loop
2480 if not amd64. Otherwise inc/dec instructions are lost.
2481
ec7f2efe
KS
24822009-08-25 Keith Seitz <keiths@redhat.com>
2483
2484 * c-exp.y (yylex): Add cxx_only check for tokentab2 and tokentab3
2485 searches.
2486 (tokentab3): Add cxx_only for DOT_STAR.
2487
3a1ff0b6
PA
24882009-08-25 Pedro Alves <pedro@codesourcery.com>
2489
2490 * inferior.c (print_inferior): Align columns left. Remove header
2491 for the the "current" column. Rename column "Id" to "Num".
2492 Rename column "PID" to "Description". Print if there's no selected
2493 inferior.
2494
924d6a4f
JK
24952009-08-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2496
2497 Fix ia64 start crash when GDB built with -lmcheck.
2498 * ia64-tdep.c (ia64_gdbarch_init): Allocate TDEP as cleared. Remove
2499 specific clearing of TDEP SIGCONTEXT_REGISTER_ADDRESS and
2500 PC_IN_SIGTRAMP.
2501
c1af96a0
KS
25022009-08-24 Keith Seitz <keiths@redhat.com>
2503
2504 * c-exp.y (tokentab3): Add new token, ARROW_STAR. Changed all users.
2505 (tokentab2): Add new token, DOT_STAR. Changed all users.
2506
95699ff0
KS
25072009-08-24 Keith Seitz <keiths@redhat.com>
2508
2509 * symtab.c (default_make_symbol_completion_list): Keep
2510 ':', too, so that we can limit searches in namespaces
2511 and classes.
2512
f02779d8
TT
25132009-08-24 Tom Tromey <tromey@redhat.com>
2514
2515 * python/python-value.c (valpy_richcompare): Don't return from
2516 inside a TRY_CATCH.
2517
c462b41b
RW
25182009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2519
af542c2e
RW
2520 * CONTRIBUTE: Bump documented Autoconf version.
2521 * configure.ac: Do not substitute datarootdir, htmldir,
2522 pdfdir, docdir. Do not process --with-datarootdir,
2523 --with-htmldir, --with-pdfdir, --with-docdir.
2524 * configure: Regenerate.
2525
81ecdfbb
RW
2526 * aclocal.m4: Regenerate.
2527 * config.in: Likewise.
2528 * configure: Likewise.
2529 * gnulib/Makefile.in: Likewise.
2530
c462b41b
RW
2531 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of
2532 AC_GNU_SOURCE, AC_AIX, AC_ISC_POSIX.
2533
f93ea91d
PP
25342009-08-21 Paul Pluzhnikov <ppluzhnikov@google.com>
2535
2536 * objfiles.h (gdb_bfd_ref): New prototype.
2537 * objfiles.c (gdb_bfd_ref): New function.
2538 (allocate_objfile): Call it.
2539 (gdb_bfd_unref): Adjust assertion.
2540 * solib.c (solib_map_sections): Add reference.
2541 (symbol_add_stub): Don't add reference here.
2542 * symfile.c (reread_symbols): Add reference.
2543
dfdbc9b4
DE
25442009-08-21 Ken Werner <ken@linux.vnet.ibm.com>
2545 Doug Evans <dje@google.com>
2546
2547 * jit.c (jit_event_handler): Use paddress to print target addresses.
2548 Wrap printf string in _().
2549
0756c555
DE
25502009-08-21 Doug Evans <dje@google.com>
2551
2552 * jit.c (jit_read_descriptor): New arg gdbarch, all callers updated.
2553 (jit_read_code_entry, jit_register_code): Ditto.
2554 (jit_event_handler): Ditto.
2555 (jit_inferior_init): Renamed from previous jit_inferior_created_hook.
2556 (jit_inferior_created_hook, jit_breakpoint_re_set): New functions.
2557 (jit_inferior_created_observer): Renamed from
2558 jit_inferior_created_hook1, all callers updated.
2559 * jit.h (jit_breakpoint_re_set): Declare.
2560 (jit_event_handler): Update prototype.
2561 * breakpoint.c (breakpoint_re_set): Call jit_breakpoint_re_set instead
2562 of jit_inferior_created_hook.
2563
90092760
HZ
25642009-08-21 Hui Zhu <teawater@gmail.com>
2565
2566 * record.c (record_wait): Change the argument of
2567 record_beneath_to_wait to options.
2568
25f122dc
DE
25692009-08-20 Jacob Potter <jdpotter@google.com>
2570
2571 Replace dcache with splay tree.
2572 Remove partially implemented writeback support.
2573 * dcache.c: Include splay-tree.h.
2574 (LINE_SIZE_POWER): Change from 5 to 6.
2575 (DCACHE_SIZE): Change from 64 to 4096.
2576 (ENTRY_INVALID, ENTRY_VALID, ENTRY_DIRTY): Delete.
2577 (state_chars): Delete.
2578 (struct dcache_block): Clean up; remove state and anydirty fields.
2579 (struct dcache_struct): Redefine as a splay tree and linked list.
2580 (last_cache): Make static.
2581 (dcache_invalidate, dcache_hit): Rewrite for new cache structure.
2582 (dcache_read_line, dcache_alloc): Rewrite for new cache structure.
2583 (dcache_write_line): Delete.
2584 (dcache_writeback): Delete.
2585 (dcache_peek_byte): Clean up; remove "invalid" state check.
2586 (dcache_poke_byte): Rewrite for new cache structure; clarify comment.
2587 (dcache_splay_tree_compare): New function.
2588 (dcache_init, dcache_free): Rewrite for new cache structure.
2589 (dcache_xfer_memory): Rewrite for new write-through cache structure.
2590 (dcache_print_line): New function.
2591 (dcache_info): Rewrite for new cache structure.
2592 (_initialize_dcache): Update "info dcache" help text.
2593 * dcache.h (dcache_xfer_memory): Update declaration.
2594 * target.c (memory_xfer_partial): Update calls to dcache_xfer_memory.
2595
25962009-08-19 Reid Kleckner <reid@kleckner.net>
4efc6507
DE
2597
2598 Add interface for JIT code generation.
2599 * NEWS: Announce JIT interface.
2600 * Makefile.in (SFILES): Add jit.c.
2601 (HFILES_NO_SRCDIR): Add jit.h.
2602 (COMMON_OBS): Add jit.o.
2603 * jit.c: New file.
2604 * jit.h: New file.
2605 * breakpoint.h (enum bptype): Add bp_jit_event to enum.
2606 * breakpoint.c:
2607 (update_breakpoints_after_exec): Delete jit breakpoints after exec.
2608 (bpstat_what): Update event table for bp_jit_event.
2609 (print_it_typical): Added case for bp_jit_event.
2610 (print_one_breakpoint_location): Added case for bp_jit_event.
2611 (allocate_bp_location): Added case for bp_jit_event.
2612 (mention): Added case for bp_jit_event.
2613 (delete_command): Added case for bp_jit_event.
2614 (breakpoint_re_set_one): Added case for bp_jit_event.
2615 (breakpoint_re_set): Added call to jit_inferior_created_hook.
2616 (create_jit_event_breakpoint): New.
2617 * infrun.c (handle_inferior_event): Add handler for jit event.
2618 (follow_exec): Add call to jit_inferior_created_hook.
2619
cab0c772
UW
26202009-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2621
2622 * value.c (enum internalvar_kind): Replace INTERNALVAR_SCALAR by
2623 INTERNALVAR_INTEGER and INTERNALVAR_POINTER.
2624 (union internalvar_data): Replace "scalar" member by "integer"
2625 and "pointer".
2626 (value_of_internalvar): Handle INTERNALVAR_INTEGER and
2627 INTERNALVAR_POINTER instead of INTERNALVAR_SCALAR.
2628 (get_internalvar_integer): Likewise.
2629 (set_internalvar): Likewise.
2630 (set_internalvar_integer): Likewise.
2631 (preserve_one_internalvar): Likewise.
2632 (value_from_pointer): Handle typedef'd pointer types.
2633
1eefb858
TT
26342009-08-18 Tom Tromey <tromey@redhat.com>
2635
2636 * utils.c (add_internal_problem_command): Free set_doc and
2637 show_doc.
2638 * remote.c (add_packet_config_cmd): Free set_doc and show_doc.
2639 * language.c (add_language): Free language_set_doc.
2640
a8d1234e
TT
26412009-08-18 Tom Tromey <tromey@redhat.com>
2642
2643 * Makefile.in (ALL_TARGET_OBS): Remove prologue-value.o, solib.o.
2644
ff3536bc
UW
26452009-08-17 Ulrich Weigand <uweigand@de.ibm.com>
2646
2647 * symfile.c (reread_symbols): Call objfiles_changed *before*
2648 calling clear_symtab_users.
2649
872761f4
MS
26502009-08-17 Michael Snyder <msnyder@vmware.com>
2651
2652 * amd64-tdep.c: Add a frame unwinder for function epilogues.
2653 (amd64_in_function_epilogue_p): New function.
2654 (amd64_epilogue_frame_sniffer): New function.
2655 (amd64_epilogue_frame_cache): New function.
2656 (amd64_epilogue_frame_this_id): New function.
2657 (amd64_epilogue_frame_unwind): New struct frame_unwind.
2658 (amd64_init_abi): Hook the new unwinder.
2659
2660 * amd64-linux-tdep.c (amd64_linux_init_abi): Set gdbarch to use
2661 SVR4 method for skip_trampoline_code.
2662
f1f2b5f4
PA
26632009-08-17 Pedro Alves <pedro@codesourcery.com>>
2664
2665 * objfiles.c (objfile_relocate): Relocate the entry point before
2666 relocating the section offsets. Flush the section map before
2667 resetting breakpoints.
2668
7e960b20
DE
26692009-08-14 Doug Evans <dje@google.com>
2670
2671 * symfile.c (find_separate_debug_file): Remove double free of
2672 canon_name.
2673
b8fa0bfa
PA
26742009-08-14 Pedro Alves <pedro@codesourcery.com>
2675
2676 * top.c (any_thread_of): Delete.
2677 (kill_or_detach): Use any_thread_of_process.
2678 * top.c (print_inferior_quit_action): New.
2679 (quit_confirm): Rewrite to print info about all inferiors.
2680 * target.c (dispose_inferior): New.
2681 (target_preopen): Use it.
2682
759ef836
PA
26832009-08-14 Pedro Alves <pedro@codesourcery.com>
2684
2685 * ui-file.h (ui_file_xstrdup): Mention that the length argument
2686 may be NULL.
2687 * ui-file.c (ui_file_xstrdup): Don't dereference LENGTH if it is
2688 NULL.
2689 * aix-thread.c (aix_thread_extra_thread_info): Pass NULL as length
2690 parameter to ui_file_xstrdup.
2691 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2692 * infrun.c (print_target_wait_results): Ditto.
2693 * language.c (add_language): Ditto.
2694 * linespec.c (cplusplus_error): Ditto.
2695 * remote.c (escape_buffer): Ditto.
2696 * typeprint.c (type_to_string): Ditto.
2697 * utils.c (error_stream): Ditto.
2698 * varobj.c (value_get_print_value): Ditto.
2699 * xtensa-tdep.c (xtensa_verify_config): Replace `dummy' local with
2700 `length' local. Pass it to ui_file_xstrdup, and avoid an strlen
2701 call.
2702 * gdbarch.sh (verify_gdbarch): Ditto.
2703 * gdbarch.c: Regenerate.
2704 * cli/cli-setshow.c (do_setshow_command): Pass NULL as length
2705 parameter to ui_file_xstrdup.
2706 * python/python-frame.c (frapy_str): Ditto.
2707 * python/python-type.c (typy_str): Use the length local instead of
2708 calling strlen.
2709 * python/python-value.c (valpy_str): Pass NULL as length parameter
2710 to ui_file_xstrdup.
2711
6e0a4fbc
DE
27122009-08-13 Doug Evans <dje@google.com>
2713
2714 * utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
2715 instead of unsigned long.
2716
4e7a5ef5
TT
27172009-08-13 Tom Tromey <tromey@redhat.com>
2718
2719 * varobj.c (update_dynamic_varobj_children): Don't use
2720 value_copy.
2721 * value.h: (preserve_one_value): Declare.
2722 (value_prepend_to_list, value_remove_from_list): Remove.
2723 * value.c (preserve_one_value): No longer static.
2724 (preserve_values): Call preserve_python_values.
2725 (value_prepend_to_list): Remove.
2726 (value_remove_from_list): Remove.
2727 * python/python.h (values_in_python): Don't declare.
2728 (preserve_python_values): Declare.
2729 * python/python-value.c (values_in_python): Change type. Move
2730 lower. Now static.
2731 (struct value_object): Add struct tag.
2732 <next, prev>: New fields.
2733 (valpy_dealloc): Update.
2734 (note_value): New function.
2735 (valpy_new): Use value_incref, note_value.
2736 (preserve_python_values): New function.
2737 (valpy_positive): Don't use value_copy.
2738 (value_to_value_object): Use value_incref, note_value.
2739 (convert_value_from_python): Update comment.
2740
ecd0ada5
PA
27412009-08-13 Pedro Alves <pedro@codesourcery.com>
2742
2743 * remote.c (remote_pid_to_str): If printing a process id and we
2744 don't know what the remote pid could be, output "Remote target";
2745 otherwise, use normal_pid_to_str.
2746
078bc676
TT
27472009-08-13 Tom Tromey <tromey@redhat.com>
2748
2749 * language.h (longest_raw_hex_string): Remove unused declaration.
2750
b84aa90a
PA
27512009-08-13 Pedro Alves <pedro@codesourcery.com>
2752
2753 PR gdb/8869:
2754
2755 * language.c (language, type, range, case_sensitive): Make const.
2756 (show_language_command): Don't call deprecated_show_value_hack.
2757 Special case "auto".
2758 (set_language_command): An unrecognized language is now an
2759 internal error instead of a user error. Don't call set_lang_str.
2760 (show_type_command): Don't call deprecated_show_value_hack.
2761 Special case "auto". Use warning.
2762 (set_type_command): An unrecognized type is now an internal error
2763 instead of a user error. Output type check mismatch with language
2764 here. Don't call set_type_str.
2765 (show_range_command): Don't call deprecated_show_value_hack.
2766 Special case "auto". Use warning.
2767 (set_range_command): An unrecognized range check is now an
2768 internal error instead of a warning. Output range check mismatch
2769 with language here. Don't call set_range_str.
2770 (show_case_command): Don't call deprecated_show_value_hack.
2771 Special case "auto". Use warning.
2772 (set_case_command): Don't call set_case_str. An unrecognized case
2773 check is now an internal error instead of a warning. Output range
2774 check mismatch with language here. Don't call set_case_str.
2775 (set_type_range_case): Don't call set_type_str, set_range_str or
2776 set_case_str here.
2777 (set_lang_str, set_type_str, set_range_str, set_case_str): Delete.
2778 (add_language): Install or reinstall the "set language" command
2779 here, and make it an enum command. Build the enumeration and the
2780 help string from the current list of known languages.
2781 (_initialize_language): Don't install "set language" here. Make
2782 "set check type", "set check range" and "set case-sensitive" enum
2783 commands. Register the "auto" "local" and "unknown" languages in
2784 that order.
2785
5efd5804
PA
27862009-08-13 Pedro Alves <pedro@codesourcery.com>
2787
2788 Revert 2009-08-07 changes for PR gdb/8869:
2789
2790 * language.c (set_language_command): Strip whitespace.
2791 (set_type_command): Likewise.
2792 (set_range_command): Likewise.
2793
2794 * language.c (language_completer): New function.
2795 (range_or_type_completer): New function.
2796 (case_completer): New function.
2797 (_initialize_language): Set completers.
2798 * cli/cli-decode.c (add_setshow_string_cmd): Return the "set"
2799 command.
2800 (add_setshow_string_noescape_cmd): Likewise.
2801 (add_setshow_integer_cmd): Likewise.
2802 (add_setshow_uinteger_cmd): Likewise.
2803 (add_setshow_zinteger_cmd): Likewise.
2804 (add_setshow_zuinteger_cmd): Likewise.
2805 * command.h (add_setshow_string_cmd,
2806 add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd,
2807 add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
2808
cea39f65
MS
28092009-08-12 Michael Snyder <msnyder@vmware.com>
2810
2811 * remote.c (remote_add_inferior): Remove unused local.
2812 (remote_add_thread): Ditto.
2813 (read_ptid): Ditto.
2814 (remote_current_thread): Ditto.
2815 (remote_stop_ns): Ditto.
2816 (remote_parse_stop_reply): Ditto.
2817 (remote_get_pending_stop_replies): Ditto.
2818 (remote_wait_ns): Ditto.
2819 (remote_wait_as): Ditto.
2820 (send_g_packet): Ditto.
2821 (remote_fetch_registers): Ditto.
2822 (store_register_using_P): Ditto.
2823 (remote_store_registers): Ditto.
2824 (remote_remove_breakpoint): Ditto.
2825 (remote_write_qxfer): Ditto.
2826 (remote_read_qxfer): Ditto.
2827
4a227398
TT
28282009-08-11 Tom Tromey <tromey@redhat.com>
2829
2830 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make a cleanup.
2831 (dwarf2_loc_desc_needs_frame): Likewise.
2832 * dwarf2expr.h (make_cleanup_free_dwarf_expr_context): Declare.
2833 * dwarf2expr.c (free_dwarf_expr_context_cleanup): New function.
2834 (make_cleanup_free_dwarf_expr_context): Likewise.
2835 * dwarf2-frame.c (execute_stack_op): Make a cleanup.
2836
4f6f9936
JK
28372009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2838
2839 * objfiles.c (gdb_bfd_unref): Use the bfd_usrdata accessor.
2840 * solib.c (symbol_add_stub): Likewise.
2841 * symfile.c (symfile_bfd_open): Assert BFD_USRDATA is NULL.
2842
3aad21cf
PP
28432009-08-10 Paul Pluzhnikov <ppluzhnikov@google.com>
2844
2845 * objfiles.c (qsort_cmp): Remove assert.
2846 (preferred_obj_section): New function.
2847 (update_section_map): Filter duplicates.
2848
023e4e81
TG
28492009-08-10 Tristan Gingold <gingold@adacore.com>
2850
2851 * solib-darwin.c (find_program_interpreter): Simplify the code by
2852 looking up for the load_dylinker command instead of reading the
2853 corresponding (but deprecated) section.
2854 (darwin_solib_create_inferior_hook): Adjust: do not free the
2855 interpreter path.
2856
48f09bc0
TG
28572009-08-10 Tristan Gingold <gingold@adacore.com>
2858
2859 * i386-darwin-tdep.c (i386_m128_p): New function.
2860 (i386_darwin_arg_type_alignment): Ditto.
2861 (i386_darwin_push_dummy_call): Ditto.
2862 (i386_darwin_init_abi): Define Darwin specific push_dummy_call.
2863 Adjust long_double size. Adjust pc offset in setjump buffer.
2864
952b2d63
HZ
28652009-08-10 Hui Zhu <teawater@gmail.com>
2866
2867 Add Linux AMD64 process record support.
2868
2869 * amd64-linux-tdep.c (amd64_linux_record_tdep): New variable.
2870 This struct has the argument for the function
2871 "record_linux_system_call".
2872 (amd64_linux_syscall_record): New function. Parse the
2873 system call instruction and call function
2874 "record_linux_system_call" to record execute log.
2875 (i386_linux_init_abi): Initialize "amd64_linux_record_tdep".
2876 Set "amd64_linux_syscall_record" to "i386_syscall_record".
2877
2c543fc4
HZ
28782009-08-10 Hui Zhu <teawater@gmail.com>
2879
2880 Add process record Linux system call 64 bits support.
2881
2882 * linux-record.h (linux_record_tdep): Add size_pointer,
2883 size_size_t, size_iovec and arg6. Change the values of
2884 size_int, size_long and size_ulong to
2885 gdbarch_int_bit (gdbarch) / TARGET_CHAR_BIT,
2886 gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT,
2887 gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT.
2888 * i386-linux-tdep.c (i386_linux_init_abi): Ditto.
2889 (i386_linux_intx80_sysenter_record): Add a check for system
2890 call number.
2891 * linux-record.c (record_linux_system_call): Make this
2892 function support 64 bits.
2893
cf648174
HZ
28942009-08-10 Hui Zhu <teawater@gmail.com>
2895
2896 Add AMD64 process record instruction set support.
2897
2898 * i386-tdep.h (gdbarch_tdep): Add record_regmap for registers
2899 because the AMD64's registers order in GDB is not same with
2900 I386 instructions.
2901 Add i386_syscall_record to be the syscall function handle
2902 interface.
2903 (record_i386_regnum): Number for record_regmap.
2904 * i386-tdep.c (OT_QUAD): For 64 bits.
2905 (i386_record_s): Add rex_x, rex_b, rip_offset and
2906 popl_esp_hack for AMD64 instruction set. And regmap for
2907 record_regmap.
2908 (i386_record_lea_modrm_addr): Support AMD64 instruction set
2909 64 bits lea.
2910 (i386_record_lea_modrm): Ditto.
2911 (i386_record_push): New function. Record the execution log
2912 of push.
2913 (I386_RECORD_ARCH_LIST_ADD_REG): New macro to record the
2914 register.
2915 (i386_process_record): Support AMD64 instruction set.
2916 * amd64-tdep.c (amd64_record_regmap): For record_regmap.
2917 (amd64_init_abi): Set amd64_record_regmap to record_regmap.
2918
891e7584
PA
29192009-08-08 Pedro Alves <pedro@codesourcery.com>
2920
2921 * bfd-target.c (struct target_bfd_data): New.
2922 (target_bfd_xfer_partial): Adjust to get at the section table from
2923 the new structure.
2924 (target_bfd_get_section_table): Ditto.
2925 (target_bfd_xclose): Ditto. Get the bfd pointer from the
2926 target_bfd_data structure, from the section table.
2927 (target_bfd_reopen): Store a struct target_bfd_data in the
2928 target_ops to_data field, instead of a target_section_table.
2929
280d8011
HZ
29302009-08-08 Aleksandar Ristovski <aristovski@qnx.com>
2931 Hui Zhu <teawater@gmail.com>
2932
2933 * record.c (record_store_registers): Remove unused variable.
2934
bda180e0
TT
29352009-08-07 Tom Tromey <tromey@redhat.com>
2936
2937 * language.c (set_language_command): Strip whitespace.
2938 (set_type_command): Likewise.
2939 (set_range_command): Likewise.
2940
6cc0b256
TT
29412009-08-07 Tom Tromey <tromey@redhat.com>
2942
2943 PR gdb/8869:
2944 * language.c (language_completer): New function.
2945 (range_or_type_completer): New function.
2946 (case_completer): New function.
2947 (_initialize_language): Set completers.
2948 * cli/cli-decode.c (add_setshow_string_cmd): Return the "set"
2949 command.
2950 (add_setshow_string_noescape_cmd): Likewise.
2951 (add_setshow_integer_cmd): Likewise.
2952 (add_setshow_uinteger_cmd): Likewise.
2953 (add_setshow_zinteger_cmd): Likewise.
2954 (add_setshow_zuinteger_cmd): Likewise.
2955 * command.h (add_setshow_string_cmd,
2956 add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd,
2957 add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
2958
e5af178f
PP
29592009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2960
2961 gold/10400
2962 * dwarf2-frame.c (qsort_fde_cmp): Use stable sort.
2963
b01c8410
PP
29642009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2965
2966 * dwarf2-frame.c (struct dwarf2_cie): Remove 'next'.
2967 (struct dwarf2_cie_table): New.
2968 (struct dwarf2_fde): Remove 'next'.
2969 (struct dwarf2_fde_table): New.
2970 (struct comp_unit): Remove 'cie'.
2971 (bsearch_cie_cmp, bsearch_fde_cmp): New function.
2972 (find_cie, dwarf2_frame_find_fde): Use bsearch.
2973 (add_cie, add_fde): Use array instead of linked list.
2974 (decode_frame_entry, decode_frame_entry_1): New parameters.
2975 (qsort_fde_cmp): New function.
2976 (dwarf2_build_frame_info): Adjust.
2977
5f814c3b
DL
29782009-08-06 Don Lee <don.lee@sunplusct.com>
2979
2980 * score-tdep.c: Support a new Sunplus CT S+core variant, S+core 3.
2981 * score-tdep.h: Ditto.
2982 * NEWS: Ditto.
2983 * configure.tgt: Test do we have a simulator.
2984 * MAINTAINERS: Add myself under target score
2985
78ad01c1
NR
29862009-08-06 Nick Roberts <nickrob@snap.net.nz>
2987
2988 * utils.c (defaulted_query): Don't ask for confirmation if server
2989 prefix is used.
2990
768f0929
TT
29912009-08-05 Tom Tromey <tromey@redhat.com>
2992
2993 * spu-tdep.h (SPUADDR_SPU): Cast result to int.
2994
e3c69974
PP
29952009-08-04 Paul Pluzhnikov <ppluzhnikov@google.com>
2996
2997 * objfiles.h (OBJF_KEEPBFD): Delete.
2998 (gdb_bfd_unref): New prototype.
2999 * objfiles.c (gdb_bfd_unref): New function.
3000 (free_objfile): Call gdb_bfd_unref.
3001 * solib.c (free_so): Likewise.
3002 (symbol_add_stub): Set refcount.
78ad01c1 3003
afd0cd3f
MS
30042009-08-04 Hui Zhu <teawater@gmail.com>
3005 Michael Snyder <msnyder@vmware.com>
3006
3007 * record.c (record_mem_entry): New field 'mem_entry_not_accessible'.
3008 (record_arch_list_add_mem): Initialize 'mem_entry_not_accessible'.
3009 (record_wait): Set 'mem_entry_not_accessible' flag if target
3010 memory not readable. Don't try to change target memory if
3011 'mem_entry_not_accessible' is set.
3012
1ffa32ee
JK
30132009-08-03 Richard Guenther <rguenther@suse.de>
3014 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 Fix memory corruption on reread of file through a symbolic link.
3017 * symfile.c (find_separate_debug_file): Initialize CANON_NAME earlier.
3018 Allocate DEBUGFILE with length based on CANON_NAME. Free CANON_NAME on
3019 all the return paths.
3020
48cb2d85
VP
30212009-08-03 Jim Ingham <jingham@apple.com>
3022 Vladimir Prus <vladimir@codesourcery.com>
3023
3024 Implement -break-commands
3025
3026 * breakpoint.c (get_breakpoint, breakpoint_set_commands): New.
3027 (commands_command): Use breakpoint_set_commands.
3028 * breakpoint.h (get_breakpoint, breakpoint_set_commands): Declare.
3029
3030 * mi/mi-cmds.h (mi_cmd_break_commands): New.
3031 * mi/mi-cmds.c: Register -break-commands.
3032 * mi/mi-cmd-break.c (mi_cmd_break_commands, mi_read_next_line)
3033 (mi_command_line_array, mi_command_line_array_cnt)
3034 (mi_command_line_array_ptr): New.
3035
3c1179ff
VP
30362009-08-03 Jim Ingham <jingham@apple.com>
3037 Vladimir Prus <vladimir@codesourcery.com>
3038
3039 Refactor reading of commands
3040
3041 * defs.h (read_command_lines_1): Declare.
3042 * cli/cli-script.c (read_next_line): Only return string,
3043 do not process.
3044 (process_next_line): New, extracted from read_next_line.
3045 (recurse_read_control_structure): Take a function pointer to the
3046 read function.
3047 (get_command_line) Pass the read_next_line as reader function
3048 into recurse_read_control_structure.
3049 (read_command_lines_1): New, extracted from...
3050 (read_command_lines): ...here.
3051
73930d4d
KH
30522009-07-31 Kazu Hirata <kazu@codesourcery.com>
3053
3054 * procfs.c (proc_set_current_signal): Populate mysinfo before
3055 copying it to arg.
3056 (proc_clear_current_signal): Likewise.
3057 (proc_set_watchpoint): Populate pwatch before copying it to arg.
3058
1f4437a4
MS
30592009-07-31 Michael Snyder <msnyder@vmware.com>
3060
3061 * remote.c (store_register_using_P): Call putpkt and getpkt
3062 directly instead of calling remote_send.
27a9c0bf
MS
3063 (store_registers_using_G): Ditto.
3064 (fetch_register_using_p): Ditto.
3065
3066 * remote.c (store_register_using_P): Make error msg more verbose.
3067 (store_registers_using_G): Ditto.
1f4437a4
MS
3068 (fetch_register_using_p): Ditto.
3069
ff1a52c6
UW
30702009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3071
3072 * spu-tdep.c: Include "infcall.h".
3073 (spu_address_class_type_flags): New function.
3074 (spu_address_class_type_flags_to_name): Likewise.
3075 (spu_address_class_name_to_type_flags): Likewise.
3076 (spu_pointer_to_address): Handle __ea pointers.
3077 (spu_auto_flush_cache_p): New static variable.
3078 (spu_objfile_from_frame): New function.
3079 (flush_ea_cache, spu_attach_normal_stop): Likewise.
3080 (show_spu_auto_flush_cache): Likewise.
3081 (spu_gdbarch_init): Install address class handlers.
3082 (_initialize_spu_tdep): Attach to normal_stop observer.
3083 Install "set spu auto-flush-cache" / "show spu auto-flush-cache"
3084 commands.
3085
3086 * NEWS: Mention "set/show spu auto-flush-cache" commands.
3087
3285f3fe
UW
30882009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3089
3090 * spu-tdep.c: Include "block.h".
3091 (setspucmdlist, showspucmdlist): New static variables.
3092 (spu_stop_on_load_p): Likewise.
3093 (spu_catch_start): New function.
3094 (show_spu_command, set_spu_command): New functions.
3095 (show_spu_stop_on_load): Likewise.
3096 (_initialize_spu_tdep): Attach spu_catch_start to new_objfile observer.
3097 Install "set spu" / "show spu" prefix command handler.
3098 Install "set spu stop-on-load" / "show spu stop-on-load" command.
3099
3100 * NEWS: Mention "set/show spu stop-on-load" commands.
3101
cc5f0d61
UW
31022009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3103
3104 * ppc-linux-tdep.c: Include "solib.h", "solist.h", "exceptions.h",
3105 "arch-utils.h", and "spu-tdep.h".
3106 (spu_context_objfile, spe_context_lm_addr, spe_context_offset):
3107 New static variables.
3108 (spe_context_cache_ptid, spe_context_cache_address): Likewise.
3109 (ppc_linux_spe_context_lookup): New function.
3110 (ppc_linux_spe_context_inferior_created): Likewise.
3111 (ppc_linux_spe_context_solib_loaded): Likewise.
3112 (ppc_linux_spe_context_solib_unloaded): Likewise.
3113 (ppc_linux_spe_context): Likewise.
3114 (struct ppu2spu_cache, struct ppu2spu_data): New data types.
3115 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register,
3116 ppu2spu_unwind_register, ppu2spu_sniffer,
3117 ppu2spu_dealloc_cache): New functions.
3118 (ppu2spu_unwind): New static variable.
3119 (ppc_linux_init_abi): Install cross-architecture unwinder.
3120 (_initialize_ppc_linux_tdep): Attach to observers.
3121
3122 * spu-tdep.c (struct spu2ppu_cache): New data type.
3123 (spu2ppu_prev_arch, spu2ppu_this_id, spu2ppu_prev_register,
3124 spu2ppu_sniffer, spu2ppu_dealloc_cache): New functions.
3125 (spu2ppu_unwind): New static variable.
3126 (spu_gdbarch_init): Install cross-architecture unwinder.
3127
85e747d2
UW
31282009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3129
3130 * target.h (enum strata): New value arch_stratum.
3131 * target.c (target_require_runnable): Skip arch_stratum targets.
3132
3133 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
3134 solib-spu.o and spu-multiarch.o to gdb_target_obs.
3135 * Makefile.in (ALL_TARGET_OBS): Add solib-spu.o and spu-multiarch.o.
3136 (ALLDEPFILES): Add solib-spu.c and spu-multiarch.c.
3137
3138 * solib-spu.c: New file.
3139 * solib-spu.h: New file.
3140 * spu-multiarch.c: New file.
3141
3142 * spu-tdep.h (SPUADDR, SPUADDR_SPU, SPUADDR_ADDR): New macros.
3143
3144 * spu-tdep.c (struct gdbarch_tdep): New member id.
3145 (spu_gdbarch_id): New function.
3146 (spu_lslr): New function.
3147
3148 (spu_address_to_pointer): New function.
3149 (spu_pointer_to_address): Support SPU ID address encoding. Use
3150 spu_gdbarch_id and spu_lslr.
3151 (spu_integer_to_address): Likewise.
3152 (spu_frame_unwind_cache): Update for encoded addresses.
3153 (spu_unwind_pc, spu_unwind_sp): Likewise.
3154 (spu_read_pc, spu_write_pc): Likewise.
3155 (spu_push_dummy_call): Likewise.
3156 (spu_software_single_step): Likewise.
3157 (spu_get_longjmp_target): Likewise.
3158 (spu_overlay_update_osect): Likewise.
3159
3160 (spu_dis_asm_print_address): New function.
3161 (gdb_print_insn_spu): Likewise.
3162
3163 (spu_gdbarch_init): Store SPU ID in tdep structure.
3164 Install spu_address_to_pointer and gdb_print_insn_spu.
3165
3166 * ppc-linux-tdep.c: Include "observer.h", "auxv.h", "elf/common.h"
3167 and "solib-spu.h".
3168 (ppc_linux_entry_point_addr): New static variable.
3169 (ppc_linux_inferior_created): New function.
3170 (ppc_linux_displaced_step_location): Likewise.
3171 (ppc_linux_init_abi): Enable Cell/B.E. support if supported
3172 by the target.
3173 (_initialize_ppc_linux_tdep): Attach to inferior_created observer.
3174
3175 * NEWS: Mention multi-architecture and Cell/B.E. debugging
3176 capabilities.
3177
efcbbd14
UW
31782009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3179
3180 * linux-nat.c: Include <sys/vfs.h>.
3181 (SPUFS_MAGIC): Define.
3182 (spu_enumerate_spu_ids): New function.
3183 (linux_proc_xfer_spu): New function.
3184 (linux_xfer_partial): Handle TARGET_OBJECT_SPU.
3185
3186 (iterate_over_spus): New function.
3187 (struct linux_spu_corefile_data): New data type.
3188 (linux_spu_corefile_callback): New function.
3189 (linux_spu_make_corefile_notes): New function.
3190 (linux_nat_make_corefile_notes): Call it.
3191
3192 * corelow.c (struct spuid_list): New data type.
3193 (add_to_spuid_list): New function.
3194 (core_xfer_partial): Handle TARGET_OBJECT_SPU.
3195
f4d9bade
UW
31962009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3197
3198 * features/Makefile: Allow sub-platform specific expedite settings.
3199 (WHICH): Add rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3200 (rs6000/powerpc-cell32l-expedite): Define.
3201 (rs6000/powerpc-cell64l-expedite): Likewise.
3202 * features/rs6000/powerpc-cell32l.xml: New file.
3203 * features/rs6000/powerpc-cell64l.xml: New file.
3204 * features/rs6000/powerpc-cell32l.c: New generated file.
3205 * features/rs6000/powerpc-cell64l.c: New generated file.
3206
3207 * regformats/rs6000/powerpc-cell32l.dat: New generated file.
3208 * regformats/rs6000/powerpc-cell64l.dat: New generated file.
3209
3210 * config/djgpp/fnchange.lst: Add mappings for new files.
3211
3212 * ppc-linux-tdep.h (tdesc_powerpc_cell32l): Add prototype.
3213 (tdesc_powerpc_cell64l): Likewise.
3214 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-cell32l.c"
3215 and "features/rs6000/powerpc-cell64l.c".
3216 (_initialize_ppc_linux_tdep): Initialize target descriptions.
3217 (ppc_linux_spu_section): New function.
3218 (ppc_linux_core_read_description): Detect Cell/B.E. core files.
3219 * ppc-linux-nat.c (PPC_FEATURE_CELL): Define.
3220 (ppc_linux_read_description): Detect Cell/B.E. architecture.
3221
3222 * rs6000-tdep.c (rs6000_gdbarch_init): Do not trust BFD wordsize
3223 if exec file is not PowerPC architecture.
3224
e35359c5
UW
32252009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3226
3227 * features/gdb-target.dtd (target): Accept optional
3228 <compatible> elements.
3229 (compatible): Define element.
3230
3231 * target-descriptions.h (tdesc_compatible_p): New.
3232 (tdesc_add_compatible): New.
3233 * target-descriptions.c (arch_p): New VEC_P type.
3234 (struct target_desc): New member compatible.
3235 (free_target_description): Handle it.
3236 (maint_print_c_tdesc_cmd): Likewise.
3237 (tdesc_compatible_p): New function.
3238 (tdesc_add_compatible): New function.
3239
3240 * xml-tdesc.c (tdesc_end_compatible): New function.
3241 (target_children): Handle <compatible> element.
3242
3243 * arch-utils.c (choose_architecture_for_target): Accept target
3244 description instead of BFD architecture as input. Query target
3245 description for compatible architectures.
3246 (gdbarch_info_fill): Update call.
3247
3248 * NEWS: Mention <compatible> element of target descriptions.
3249
3a1bae8e
UW
32502009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3251
3252 * breakpoint.c (remove_breakpoints): If removing one breakpoint
3253 location fails, still continue to remove other locations.
3254 (remove_hw_watchpoints): Likewise.
3255 (detach_breakpoints): Likewise.
3256
8bea4e01
UW
32572009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3258
3259 * breakpoint.h (enum enable_state): Add bp_startup_disabled.
3260 (disable_breakpoints_before_startup): Add prototype.
3261 (enable_breakpoints_after_startup): Likewise.
3262
3263 * breakpoint.c (executing_startup): New static variable.
3264 (describe_other_breakpoints): Handle bp_startup_disabled.
3265 (check_duplicates_for): Likewise.
3266 (disable_breakpoints_before_startup): New function.
3267 (enable_breakpoints_after_startup): New function.
3268 (create_breakpoint): Mark new breakpoints as bp_startup_disabled
3269 if executing_startup flag is true.
3270 (break_command_really): Likewise.
3271 (breakpoint_re_set_one): Skip bp_startup_disabled breakpoints.
3272
cca44b1b
JB
32732009-07-31 Julian Brown <julian@codesourcery.com>
3274
3275 * arm-linux-tdep.c (arch-utils.h, inferior.h, gdbthread.h, symfile.h):
3276 Include files.
3277 (arm_linux_cleanup_svc, arm_linux_copy_svc): New.
3278 (cleanup_kernel_helper_return, arm_catch_kernel_helper_return): New.
3279 (arm_linux_displaced_step_copy_insn): New.
3280 (arm_linux_init_abi): Initialise displaced stepping callbacks.
3281 * arm-tdep.c (DISPLACED_STEPPING_ARCH_VERSION): New macro.
3282 (ARM_NOP): New.
3283 (displaced_read_reg, displaced_in_arm_mode, branch_write_pc)
3284 (bx_write_pc, load_write_pc, alu_write_pc, displaced_write_reg)
3285 (insn_references_pc, copy_unmodified, cleanup_preload, copy_preload)
3286 (copy_preload_reg, cleanup_copro_load_store, copy_copro_load_store)
3287 (cleanup_branch, copy_b_bl_blx, copy_bx_blx_reg, cleanup_alu_imm)
3288 (copy_alu_imm, cleanup_alu_reg, copy_alu_reg)
3289 (cleanup_alu_shifted_reg, copy_alu_shifted_reg, cleanup_load)
3290 (cleanup_store, copy_extra_ld_st, copy_ldr_str_ldrb_strb)
3291 (cleanup_block_load_all, cleanup_block_store_pc)
3292 (cleanup_block_load_pc, copy_block_xfer, cleanup_svc, copy_svc)
3293 (copy_undef, copy_unpred): New.
3294 (decode_misc_memhint_neon, decode_unconditional)
3295 (decode_miscellaneous, decode_dp_misc, decode_ld_st_word_ubyte)
3296 (decode_media, decode_b_bl_ldmstm, decode_ext_reg_ld_st)
3297 (decode_svc_copro, arm_process_displaced_insn)
3298 (arm_displaced_init_closure, arm_displaced_step_copy_insn)
3299 (arm_displaced_step_fixup): New.
3300 (arm_gdbarch_init): Initialise max insn length field.
3301 * arm-tdep.h (DISPLACED_TEMPS, DISPLACED_MODIFIED_INSNS): New
3302 macros.
3303 (displaced_step_closure, pc_write_style): New.
3304 (arm_displaced_init_closure, displaced_read_reg)
3305 (arm_process_displaced_insn, arm_displaced_init_closure)
3306 (displaced_read_reg, displaced_write_reg, arm_displaced_step_copy_insn)
3307 (arm_displaced_step_fixup): Add prototypes.
3308
929dfd4f
JB
33092009-07-31 Pedro Alves <pedro@codesourcery.com>
3310 Julian Brown <julian@codesourcery.com>
3311
3312 * infrun.c (displaced_step_fixup): If this is a software
3313 single-stepping arch, don't tell the target to single-step.
3314 (maybe_software_singlestep): Return 0 if we're using displaced
3315 stepping.
3316 (resume): If this is a software single-stepping arch, and
3317 displaced-stepping is enabled, use it for all single-step
3318 requests.
3319
1983cb9a
RW
33202009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3321
3322 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
3323 (AUTOCONF, configure_deps, AUTOHEADER): New variables.
3324 ($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
3325 (am--refresh): New rules.
3326 (stamp-h, config.status): List config.in and configure including
3327 $(srcdir)/ prefix.
3328 * aclocal.m4: Regenerate.
3329 * configure: Regenerate.
3330
fe79276f
TS
33312009-07-30 Thomas Schwinge <tschwinge@gnu.org>
3332
3333 * gnu-nat.c (add_task_commands) <stopped>: Register the correct
3334 callback function.
3335
2edfe795
L
33362009-07-30 H.J. Lu <hongjiu.lu@intel.com>
3337
3338 * ia64-tdep.c (ia64_access_reg): Correct paddress.
3339
54333c3b
JK
33402009-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 Replace public function varobj_list by all_root_varobjs iterator.
3343 * mi/mi-cmd-var.c (struct mi_cmd_var_update, mi_cmd_var_update_iter):
3344 New.
3345 (mi_cmd_var_update): Replace the varobj_list call by all_root_varobjs.
3346 Remove the variables rootlist, cr. New variable data.
3347 * varobj.c (rootcount, varobj_list): Remove.
3348 (install_variable, uninstall_variable): Remove the rootcount updates.
3349 (all_root_varobjs): New function.
3350 (varobj_invalidate): Use the all_root_varobjs call. Move the code to...
3351 (varobj_invalidate_iter): ... a new function.
3352 * varobj.h (varobj_list): Remove the prototype.
3353 (all_root_varobjs): New prototype.
3354
60f25dfd
PP
33552009-07-29 Paul Pluzhnikov <ppluzhnikov@google.com>
3356
3357 PR gdb/6817
3358 * dbxread.c (read_dbx_symtab): Reduce stack use.
3359
e23cce45
JK
33602009-07-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3361
3362 Fix gcc-4.5 HEAD warnings.
3363 * cp-name-parser.y (%union <typed_val_int>, %token GLOBAL)
3364 (GLOBAL_CONSTRUCTORS, GLOBAL_DESTRUCTORS, demangler_special <GLOBAL>):
3365 Remove.
3366 (yylex <"global constructors keyed to ">)
3367 (yylex <"global destructors keyed to ">): Base it on DEMANGLER_SPECIAL.
3368 (cp_comp_to_string): Remove variables str, prefix and buf. Remove the
3369 GLOBAL_DESTRUCTORS and GLOBAL_CONSTRUCTORS handling.
3370 (cp_print): Remove the GLOBAL_DESTRUCTORS and GLOBAL_CONSTRUCTORS
3371 handling.
3372
58d6951d
DJ
33732009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3374
3375 * NEWS: Mention ARM VFP support.
3376 * target-descriptions.c (tdesc_register_type): Make public.
3377 (tdesc_unnumbered_register): New function.
3378 (tdesc_register_reggroup_p): Allow missing
3379 pseudo_register_reggroup_p.
3380 * target-descriptions.h (tdesc_register_type): Declare.
3381 (tdesc_unnumbered_register): Declare.
3382 * arm-tdep.c (arm_neon_quad_read, arm_neon_quad_write): New functions.
3383 (arm_push_dummy_call): Use arm_neon_quad_write.
3384 (arm_neon_double_type, arm_neon_quad_type): New functions.
3385 (arm_register_type): Handle VFP and NEON registers. Override the
3386 types of double-precision registers for NEON. Disable FPA registers
3387 if they are not present.
3388 (arm_dwarf_reg_to_regnum): Add current VFP and NEON register numbers.
3389 (arm_return_value): Use arm_neon_quad_write and arm_neon_quad_read.
3390 (arm_register_name): Handle VFP single and NEON quad registers.
3391 (arm_pseudo_read, arm_pseudo_write): New functions.
3392 (arm_gdbarch_init): Check for VFP and NEON in the target description.
3393 Assign numbers to double-precision registers. Register VFP and NEON
3394 pseudo registers. Remove a shadowed "i" variable.
3395 * arm-tdep.h (enum gdb_regnum): Add ARM_D0_REGNUM and
3396 ARM_D31_REGNUM.
3397 (struct gdbarch_tdep): Add have_neon_pseudos, have_neon,
3398 have_vfp_registers, have_vfp_pseudos, neon_double_type,
3399 and neon_quad_type.
3400
3401 * features/Makefile: Make expedite settings only architecture
3402 specific.
3403 (WHICH): Add new ARM descriptions.
3404 * features/arm-with-neon.xml, features/arm-with-vfpv2.c,
3405 features/arm-with-vfpv3.c, features/arm-vfpv2.xml,
3406 features/arm-vfpv3.xml, features/arm-with-vfpv2.xml,
3407 features/arm-with-vfpv3.xml, features/arm-with-neon.c: New files.
3408 * regformats/arm-with-neon.dat, regformats/arm-with-vfpv2.dat,
3409 regformats/arm-with-vfpv3.dat: Generate.
3410
79626f8a
DJ
34112009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3412
3413 * infrun.c (handle_inferior_event): Clear trap_expected after
3414 stepping past a single-step breakpoint.
3415
90445bd3
DJ
34162009-07-28 Joseph Myers <joseph@codesourcery.com>
3417
3418 * arm-tdep.c (enum arm_vfp_cprc_base_type,
3419 arm_vfp_cprc_unit_length, arm_vfp_cprc_reg_char,
3420 arm_vfp_cprc_sub_candidate, arm_vfp_call_candidate,
3421 arm_vfp_abi_for_function): New.
3422 (arm_push_dummy_call): Handle VFP ABI.
3423 (arm_extract_return_value, arm_store_return_value): Handle
3424 ARM_FLOAT_VFP case.
3425 (arm_return_value): Handle VFP ABI.
3426 (arm_gdbarch_init): Default fp_model based on Tag_ABI_VFP_args for
3427 EABI binaries.
3428
3612b192
DJ
34292009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3430
3431 * arch-utils.c (displaced_step_at_entry_point): Do not call
3432 gdbarch_convert_from_func_ptr_addr.
3433 * cris-tdep.c: Remove outdated comment.
3434 * infcall.c (call_function_by_hand): Do not call
3435 gdbarch_convert_from_func_ptr_addr after entry_point_address.
3436 * objfiles.c (entry_point_address): Call both
3437 gdbarch_convert_from_func_ptr_addr and
3438 gdbarch_addr_bits_remove.
3439
745a434e
AR
34402009-07-28 Aleksandar Ristovski <aristovski@qnx.com>
3441
3442 * nto-tdep.c (nto_thread_state_str): New array.
3443 (nto_extra_thread_info): New function definition.
3444 * nto-tdep.h (gdbthread.h): New include.
3445 (private_thread_info): New struct.
3446 (nto_extra_thread_info): New declaration.
3447 * nto-procfs.c (procfs_thread_alive): Properly check if
3448 thread is still alive.
3449 (update_thread_private_data_name, update_thread_private_data): New
3450 function definition.
3451 (procfs_find_new_threads): Fetch thread private data.
3452 (init_procfs_ops): Register to_extra_thread_info.
3453
46106157
PA
34542009-07-25 Pedro Alves <pedro@codesourcery.com>
3455
3456 * stack.c (backtrace_command_1): Remove dead check of NULL current
3457 frame.
3458
e681b284
KS
34592009-07-23 Keith Seitz <keiths@redhat.com>
3460
3461 * source.c (forward_search_command): Don't fclose the stream,
3462 just run the cleanups.
3463 (reverse_search_command): Likewise.
3464
89295b4d
PP
34652009-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3466
3467 * symtab.c (search_symbols): Add QUIT.
3468
8caee43b
PP
34692009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
3470
3471 * symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.
3472
bb272892
PP
34732009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
3474
3475 * objfiles.h (objfiles_changed): New prototype.
3476 * objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p.
3477 (allocate_objfile, free_objfile): Must rebuild section map.
3478 (objfile_relocate): Likewise.
3479 (update_section_map, find_pc_section): Adjust.
3480 (set_objfiles_updated_on_exe_change): Remove.
3481 (set_objfiles_updated_on_solib_activity): Remove.
3482 (_initialize_objfiles): Remove.
3483 (objfiles_changed): New function.
3484 * symfile.c (reread_symbols): Call objfiles_changed.
3485
9a9dc473
HZ
34862009-07-22 Hui Zhu <teawater@gmail.com>
3487
3488 * record.c (record_xfer_partial): Call error When nquery
3489 return "n".
3490
a845f5cb
PP
34912009-07-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3492
3493 * objfiles.c (objfiles_updated_p): New variable.
3494 (qsort_cmp, bsearch_cmp, update_section_map): New function.
3495 (find_pc_section): Use bsearch.
3496 (set_objfiles_updated_on_exe_change): New function.
3497 (set_objfiles_updated_on_solib_activity): New function.
3498 (_initialize_objfiles): New function.
3499
c761c4ee 35002009-07-21 Michael Eager <eager@eagercon.com>
4d09ffea
MS
3501
3502 * features/rs6000/powerpc-405.xml: New.
3503 * rs6000-tdep.c: Add include & initialize for
3504 powerpc-405.c, add 405 to variants.
3505 * features/rs6000/powerpc-405.c: Generate.
3506
26bb68be
PP
35072009-07-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3508
25f77bfa 3509 * utils.c (internal_vproblem): Always print failure message.
26bb68be 3510
4ea48cc1
DJ
35112009-07-21 Daniel Jacobowitz <dan@codesourcery.com>
3512 Vladimir Prus <vladimir@codesourcery.com>
3513
3514 * valops.c (value_fetch_lazy): Handle bitfields explicitly.
3515 (value_assign): Remove unnecessary FIXME. Honor the container
3516 type of bitfields if possible.
3517 * value.c (struct value): Add parent field.
3518 (value_parent): New function.
3519 (value_free): Free the parent also.
3520 (value_copy): Copy the parent also.
3521 (value_primitive_field): Do not read the contents of a lazy
3522 value to create a child bitfield value. Set bitpos and offset
3523 according to the container type if possible.
3524 (unpack_bits_as_long): Rename from unpack_field_as_long. Take
3525 field_type, bitpos, and bitsize instead of type and fieldno.
3526 (unpack_field_as_long): Use unpack_bits_as_long.
3527 * value.h (value_parent, unpack_bits_as_long): New prototypes.
3528
828d3400
DJ
35292009-07-21 Daniel Jacobowitz <dan@codesourcery.com>
3530
3531 * value.c (struct value): Add reference_count field.
3532 (allocate_value_lazy): Initialize reference_count.
3533 (value_incref): New function.
3534 (value_free): Check the reference count.
3535 * value.h (value_incref): New prototype.
3536
7a01c6e0
MK
35372009-07-20 Marc Khouzam <marc.khouzam@ericsson.com>
3538
3539 * utils.c (defaulted_query): Update comment and remove dead code.
3540
348e048f
DE
35412009-07-20 Doug Evans <dje@google.com>
3542
3543 Add support for "comdat types" from DWARF4.
3544 * dwarf2read.c (dwarf2_per_objfile): New member types,
3545 signatured_types.
3546 (TYPES_SECTION): New macro.
3547 (dwarf2_per_cu_data): Change size of length field from 30 bits
3548 to 29 bits. New member from_debug_types.
3549 (signatured_type): New struct.
3550 (struct attribute): New union member signatured_type.
3551 (DW_SIGNATURED_TYPE): New macro.
3552 (dwarf2_attr_no_follow): New function.
3553 (read_type_unit_scope): New function.
3554 (follow_die_ref_or_sig, follow_die_sig): New functions.
3555 (dwarf2_locate_sectoins): Handle .debug_types.
3556 (dwarf2_build_psymtabs): Read .debug_types.
3557 (read_type_comp_unit_head): New function.
3558 (hash_type_signature, eq_type_signature): New functions.
3559 (create_debug_types_hash_table): New function.
3560 (lookup_signatured_type): New function.
3561 (process_psymtab_comp_unit): Handle type units too.
3562 (process_type_comp_unit, build_type_psymtabs): New functions.
3563 (dwarf2_build_psymtabs_hard): Call build_type_psymtabs.
3564 (load_partial_comp_unit): Assert not called for a type unit.
3565 (skip_one_die): Handle DW_FORM_sig8.
3566 (queue_comp_unit): Don't call load_full_comp_unit here, or
3567 update read_in_chain.
3568 (psymtab_to_symtab_1): Call read_signatured_type_at_offset for
3569 type units, or load_full_comp_unit for comp units after
3570 queue_comp_unit returns.
3571 (load_full_comp_unit): Assert not called for type units.
3572 (load_full_comp_unit): Update read_in_chain here.
3573 (process_die): Handle DW_TAG_type_unit.
3574 (read_structure_type): Look for signatured types.
3575 (read_enumeration_type): Ditto.
3576 (init_cu_die_reader): Handle .debug_types.
3577 (read_comp_unit): Assert hash not computed yet.
3578 (read_die_and_children): Expand debugging printf to handle .debug_types.
3579 (read_partial_die): Handle DW_TAG_type_unit:
3580 (find_patial_die): Handle .debug_types.
3581 (read_attribute_value): Handle DW_FORM_sig8.
3582 (die_type): Call follow_die_ref_or_sig instead of follow_die_ref.
3583 (die_containing_type): Ditto.
3584 (dwarf_tag_name): Handle DW_TAG_type_unit.
3585 (dwarf_attr_name): Handle DW_AT_signature.
3586 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
3587 DW_FORM_flag_present, DW_FORM_sig8.
3588 (dump_die_shallow): Handlel DW_FORM_sig8.
3589 (maybe_queue_comp_unit): Change return type to int from void.
3590 All callers updated.
3591 (follow_die_ref): Handle .debug_types.
3592 (lookup_signatured_type_at_offset): New function.
3593 (read_signatured_type_at_offset): New function.
3594 (read_signatured_type): New function.
3595
f4290e2a
UW
35962009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
3597
3598 * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
3599 if the macro is defined.
3600
08d16641
PA
36012009-07-20 Pedro Alves <pedro@codesourcery.com>
3602
3603 * features/gdb-target.dtd (target): Accept an optional 'osabi'
3604 element.
3605 (osabi): Define element.
3606 * features/mips-linux.xml (target): Add an osabi subelement set to
3607 GNU/Linux.
3608 * regformats/regdat.sh (xmlarch, xmlosabi): New variables. Don't
3609 write the architecture into $xmltarget. Store it in $xmlarch.
3610 Handle the 'osabi' type. Handle outputting the osabi element of
3611 the target description.
3612 * regformats/reg-x86-64-linux.dat (osabi): Set to GNU/Linux.
3613 * regformats/reg-i386-linux.dat (osabi): Set to GNU/Linux.
3614
3615 * target-descriptions.h (tdesc_osabi, set_tdesc_osabi): Declare.
3616 * target-descriptions.c (struct target_desc) <osabi>: New field.
3617 (tdesc_osabi): New function.
3618 (set_tdesc_osabi): New function.
3619 * xml-tdesc.c: Include osabi.h.
3620 (tdesc_end_osabi): New.
3621 (target_children): Parse "osabi" elements.
3622 * arch-utils.c (gdbarch_info_fill): Try to get the osabi from the
3623 target description if the user didn't override it or it is not
3624 extractable from the bfd. If that still fails, fallback to the
3625 configured in default.
3626 * osabi.h (osabi_from_tdesc_string): Declare.
3627 * osabi.c (osabi_from_tdesc_string): New.
3628 (gdbarch_lookup_osabi): Return GDB_OSABI_UNKNOWN instead of
3629 GDB_OSABI_DEFAULT.
3630
3631 * NEWS: Mention that target descriptions can now describe the
3632 target OS ABI.
3633
a156a290
MF
36342009-07-20 Mike Frysinger <vapier@gentoo.org>
3635
3636 * configure.ac (AC_CHECK_FUNCS): Check for pipe.
3637 * config.in, configure: Regenerate.
3638 * tui/tui-io.c (TUI_USE_PIPE_FOR_READLINE): Define if HAVE_PIPE.
3639
b4d1e8c7
PA
36402009-07-20 Pedro Alves <pedro@codesourcery.com>
3641
3642 * gnu-nat.c: Include "inf-child.h".
3643 (gnu_mourn_inferior): Use the passed in target_ops
3644 instead of the gnu_ops global.
3645 (gnu_create_inferior): Inline `attach_to_child', use the passed in
3646 target_ops instead of the gnu_ops global.
3647 (gnu_can_run): Delete.
3648 (gnu_attach): Use the passed in target_ops instead of the gnu_ops
3649 global.
3650 (gnu_detach): Ditto.
3651 (gnu_prepare_to_store, gnu_open): Delete.
3652 (gnu_store_registers, gnu_fetch_registers): Delete declarations.
3653 (gnu_ops): Delete.
3654 (init_gnu_ops): Delete.
3655 (gnu_target): New.
3656 (_initialize_gnu_nat): Don't call init_gnu_ops or add_target here.
3657 * gnu-nat.h (gnu_target): Declare.
3658 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Make
3659 static.
3660 (_initialize_i386gnu_nat): New.
3661
b5758fe4
UW
36622009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
3663
3664 * dwarf2loc.c (find_location_expression): Retrieve beginning and
3665 ending address offsets in location list entries as integers,
3666 not as addresses.
3667
ec9499be
UW
36682009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
3669
3670 * infrun.c (wait_for_inferior): Invalidate registers and overlay
3671 cache every time before calling target_wait.
3672 (handle_inferior_event): Make static. Always reset waiton_ptid.
3673 Never call registers_changed.
3674 (prepare_to_wait): Do not invaliate registers or overlay cache
3675 (moved to wait_for_inferior). Do not reset waiton_ptid (moved
3676 to handle_inferior_event).
3677 (fetch_inferior_event): Remove check for always-true condition.
3678
85a772a5
TS
36792009-07-20 Thomas Schwinge <tschwinge@gnu.org>
3680
3681 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Adjust to
3682 2009-02-23 target_ops changes.
3683
fdd654f3
MS
36842009-07-18 Michael Snyder <msnyder@vmware.com>
3685
3686 * infrun.c (handle_inferior_event): Remove an execution_direction
3687 check in the "check for subroutine calls" test, and add some
3688 additional handling for reverse-stepping through shared libraries.
3689
99f75275
AG
36902009-07-18 Anthony Green <green@moxielogic.com>
3691
3692 * moxie-tdep.c (moxie_analyze_prologue): Take gdbarch as last
3693 parameter instead of frame_info.
3694 (moxie_frame_cache): Call moxie_analyze_prologue with different
3695 args.
3696
831a0c44
UW
36972009-07-17 Ulrich Weigand <uweigand@de.ibm.com>
3698
3699 * solib.c (solib_bfd_open): Do not call ops->bfd_open.
3700 (solib_map_sections): Call ops->bfd_open instead of solib_bfd_open.
3701 * solib-frv.c (_initialize_frv_solib): Initialize bfd_open member.
3702 * solib-irix.c (_initialize_irix_solib): Likewise.
3703 * solib-null.c (_initialize_null_solib): Likewise.
3704 * solib-osf.c (_initialize_osf_solib): Likewise.
3705 * solib-pa64.c (_initialize_pa64_solib): Likewise.
3706 * solib-som.c (_initialize_som_solib): Likewise.
3707 * solib-sunos.c (_initialize_sunos_solib): Likewise.
3708 * solib-svr4.c (_initialize_svr4_solib): Likewise.
3709 * solib-target.c (_initialize_solib_target): Likewise.
3710
328d0145
UW
37112009-07-17 Ulrich Weigand <uweigand@de.ibm.com>
3712
3713 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
3714
099cb4fb
DE
37152009-07-16 Doug Evans <dje@google.com>
3716
3717 * linux-thread.db.c (try_thread_db_load_1): Tweak comment.
3718
456b0e24
PP
37192007-07-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3720
3721 * linux-thread-db.c (thread_db_find_new_threads_silently):
3722 New function.
3723 (try_thread_db_load_1): Call it.
099cb4fb 3724
93311388
DE
37252009-07-15 Doug Evans <dje@google.com>
3726
3727 Code reorg in preparation for adding comdat types support.
3728 * dwarf2read.c (struct die_reader_specs): New struct.
3729 (locate_pdi_sibling): New arg buffer. All callers updated.
3730 (load_partial_dies, read_partial_die): Ditto.
3731 (read_8_bytes): Change return type to ULONGEST.
3732 (read_comp_unit): Delete arg abfd. All callers updated.
3733 (read_die_and_children_1): Delete args abfd, cu. New arg reader.
3734 All callers updated.
3735 (read_die_and_children, read_die_and_siblings): Ditto.
3736 (read_full_die): Ditto. Move closer to callers.
3737 (skip_one_die): New arg buffer. All callers updated.
3738 (load_full_comp_unit): Change return type to void. All callers
3739 updated.
3740 (partial_read_comp_unit_head): New args buffer, buffer_size.
3741 All callers updated.
3742 (process_psymtab_comp_unit): New function, split out from
3743 dwarf2_build_psymtabs_hard.
3744 (dwarf2_build_psymtabs_hard): Call it.
3745 (load_partial_comp_unit): Renamed from load_comp_unit.
3746 All callers updated.
3747 (skip_children): New arg buffer. All callers updated.
3748 (init_cu_die_reader): New function.
3749 (is_ref_attr): New function.
3750 (dwarf2_get_ref_die_offset): Call it.
3751 (alloc_one_comp_unit): New function.
3752
bf0d7e9c
SS
37532009-07-14 Stan Shebs <stan@codesourcery.com>
3754
3755 * MAINTAINERS (Global Maintainers): Add Doug Evans.
3756
782b2b07
SS
37572009-07-14 Stan Shebs <stan@codesourcery.com>
3758
3759 Conditional tracepoints.
3760 * ax-gdb.h (gen_eval_for_expr): Declare.
3761 * ax-gdb.c (gen_expr): Generate bytecodes for BINOP_EQUAL
3762 and other comparisons.
3763 (gen_eval_for_expr): New function.
3764 (agent_eval_command): New maintenance command.
3765 (_initialize_ax_gdb): Define the command.
3766 * remote.c (struct remote_state): New field cond_tracepoints.
3767 (PACKET_ConditionalTracepoints): New packet config type.
3768 (remote_cond_tracepoint_feature): New function.
3769 (remote_protocol_features): Add ConditionalTracepoints.
3770 (remote_supports_cond_tracepoints): New function.
3771 (_initialize_remote): Add ConditionalTracepoints.
3772 * tracepoint.c (download_tracepoint): Add conditional.
3773 * NEWS: Mention conditional tracepoints.
3774
b101f7a1
UW
37752009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3776
3777 * objfiles.c (objfile_relocate): Do not relocate the same
3778 BLOCKVECTOR_MAP address map multiple times.
3779
217f1f79
UW
37802009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
3781
3782 * remote.c (process_stop_reply): Access expedited target registers
3783 in target_gdbarch.
3784
8f313923
JK
37852009-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 Fix memory access from signed 32bit inferior registers on 64bit GDB.
3788 * linux-nat.c (linux_xfer_partial <TARGET_OBJECT_MEMORY>): New variable
3789 addr_bit. Mask OFFSET by the ADDR_BIT width.
3790
451fa05e
AG
37912009-07-13 Anthony Green <green@moxielogic.com>
3792
3793 * moxie-tdep.c (moxie_gdbarch_init): Call
3794 set_gdbarch_process_record.
3795 (moxie_process_record): New.
3796 (moxie_process_readu): New.
3797
06da04c6
MS
37982009-07-12 Michael Snyder <msnyder@vmware.com>
3799
3800 * i386-tdep.c: Add a frame unwinder for function epilogues.
3801 (i386_in_function_epilogue_p): New function.
3802 (i386_epilogue_frame_sniffer): New function.
3803 (i386_epilogue_frame_cache): New function.
3804 (i386_epilogue_frame_this_id): New function.
3805 (i386_epilogue_frame_unwind): New struct frame_unwind.
3806 (i386_gdbarch_init): Hook the new unwinder.
3807
e6158f16
HZ
38082009-07-11 Hui Zhu <teawater@gmail.com>
3809
3810 * cli/cli-cmds.c (disassemble_command): Add a new modifier /r
3811 to "disassemble" command to print the raw instructions in hex as
3812 well as in symbolic form.
3813 (init_cli_cmds): Ditto.
3814 (print_disassembly): Change "mixed" to "flags" to translate
3815 the behavior of disassemble.
3816 (disassemble_current_function): Ditto.
3817 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
3818 * stack.c (gdb_disassembly_stub): Ditto.
3819 * disasm.c (do_mixed_source_and_assembly): Ditto.
3820 (do_mixed_source_and_assembly): Ditto.
3821 (do_assembly_only): Ditto.
3822 (gdb_disassembly): Ditto.
3823 (dump_insns): print the raw instructions in hex as well as in
3824 symbolic form if DISASSEMBLY_RAW_INSN and flags is true.
3825 * disasm.h (DISASSEMBLY_SOURCE): Include source code with the
3826 assembly if it and flags is true.
3827 (DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with
3828 the assembly if it and flags is true.
3829 (gdb_disassembly): Update extern.
3830 * NEWS: Document disassemble/r support.
3831
fa8f86ff
TT
38322009-07-10 Tom Tromey <tromey@redhat.com>
3833
3834 * dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
3835 * dwarf2expr.c: Likewise.
3836 * dwarf2loc.c: Likewise.
3837 * dwarf2read.c: Likewise.
3838 * sh-tdep.c: Likewise.
3839 * xtensa-tdep.c: Likewise.
3840
6e9ef2a8
JK
38412009-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3842
3843 Tidy up the code.
3844 * mi/mi-cmd-var.c (mi_cmd_var_update): Remove variable nv. Move
3845 variables var, rootlist and cr to their local sub-block. Move the
3846 make_cleanup_ui_out_tuple_begin_end, make_cleanup_ui_out_list_begin_end
3847 and do_cleanups calls to the common base block. Remove the zero NV
3848 check.
3849
fbb8f299
PM
38502009-07-10 Phil Muldoon <pmuldoon@redhat.com>
3851
3852 * python/python-internal.h (apply_varobj_pretty_printer): Update
3853 definition.
3854 (python_string_to_target_python_string): Add definition.
3855 * python/python-utils.c (unicode_to_encoded_python_string)
3856 (unicode_to_target_python_string)
3857 (python_string_to_target_python_string): New Functions.
3858 * python/python-prettyprint.c (pretty_print_one_value): Likewise.
3859 (print_string_repr): Refactor to logic to account for PyObject
3860 returned strings.
3861 (apply_varobj_pretty_printer): Likewise.
3862 * python/python-value.c (valpy_string): Parse length keyword. Use
3863 length keyword in LA_GET_STRING.
3864 * varobj.c (value_get_print_value): Refactor logic to account for
3865 PyObject returned strings.
3866 * c-lang.c (c_get_string): If the length parameter is specified,
3867 use that. Return value in characters. Update comments.
3868 * language.h: Update c_get_string prototype comments.
3869
b75f0b83
DE
38702009-07-09 Doug Evans <dje@google.com>
3871
3872 * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
3873 to read_memory_unsigned_integer.
3874
c0ac0ec7
JK
38752009-07-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3876
3877 Report error on inaccessible memory.
3878 * cli/cli-dump.c: Include gdbcore.h.
3879 (dump_memory_to_file): Call read_memory instead of target_read_memory.
3880
378d2b72
HZ
38812009-07-09 Hui Zhu <teawater@gmail.com>
3882
3883 * solib.c (solib_bfd_open): Output a warning if solib's
3884 architecture is not compatible with inferior's architecture.
3885
3a8f7b07
JK
38862009-07-09 Ulrich Weigand <uweigand@de.ibm.com>
3887 Jan Kratochvil <jan.kratochvil@redhat.com>
3888
3889 * target.h (struct target_ops <to_thread_architecture>): Describe it.
3890 (target_thread_architecture): Refer to to_thread_architecture.
3891
a177aad3
PM
38922009-07-08 Pierre Muller <muller@ics.u-strasbg.fr>
3893
3894 * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.
3895
2d5f09f0
UW
38962009-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3897
3898 * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
3899
63c252f8
PM
39002009-07-07 Pierre Muller <muller@ics.u-strasbg.fr>
3901
3902 * breakpoint.c (set_raw_breakpoint): Remove static modifier.
3903
30b66ecc
TT
39042009-07-07 Tom Tromey <tromey@redhat.com>
3905
3906 * c-lang.c (convert_octal): Only allow 3 octal digits.
3907 (print_wchar): Prefer 3-digit octal form. Fall back to hex if
3908 needed.
3909 * c-exp.y (c_parse_escape): Only allow 3 octal digits.
3910
06878dd2
PP
39112009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
3912
3913 * python/python-value.c (valpy_getitem): Remove incorrect assert.
3914
570e2b1a
PP
39152009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
3916
3917 * python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
3918
8c902bb1
SW
39192009-07-07 Sami Wagiaalla <swagiaal@redhat.com>
3920
3921 * cp-support.h (struct using_direct): Rename members inner and
3922 outer to import_src, and import_dest respectively.
3923 * cp-namespace.c (cp_add_using_directive): Update.
3924 (cp_add_using): Update.
3925 (cp_copy_usings): Update.
3926 (cp_lookup_symbol_namespace): Update.
3927 (cp_scan_for_anonymous_namespaces): Update.
3928 * cp-support.c (make_symbol_overload_list_using): Update.
3929 * cp-support.h (cp_add_using_directive, cp_add_using): Rename
3930 arguments from inner and outer to src and dest respectively.
3931 * cp-namespace.c (cp_add_using_directive): Ditto.
3932 (cp_add_using): Ditto.
3933
fd115a4b
JK
39342009-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 * mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop.
3937 * varobj.c (varobj_invalidate): Replace a while loop by for loop.
3938
60d32970
VP
39392009-07-07 Vladimir Prus <vladimir@codesourcery.com>
3940
3941 Fix hang in floating varobjs.
3942
c0ac0ec7 3943 * varobj.c (varobj_invalidate): Advance to next
60d32970
VP
3944 element when processing floating varobj.
3945
9a139cba
VP
39462009-07-07 Vladimir Prus <vladimir@codesourcery.com>
3947
3948 * varobj.c: Remove unnecessary include.
3949
02b96ddc
TG
39502009-07-07 Tristan Gingold <gingold@adacore.com>
3951
3952 * config/i386/darwin.mh (NATDEPFILES): Remove excServer.o.
3953 Remove excServer.c target. Remove _all target.
3954 * darwin.defs: Removed.
3955
7f86f499
AR
39562009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
3957
3958 * configure.tgt (i[34567]86-*-nto*): Add build_gdbserver=yes.
3959
e2357892
JK
39602009-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3961
3962 * source.c (find_and_open_source): Remove the `objfile' parameter.
3963 Update the function comment.
3964 (open_source_file, symtab_to_fullname, psymtab_to_fullname): Update the
3965 find_and_open_source callers.
3966
5e13bd89
PA
39672009-07-05 Pedro Alves <pedro@codesourcery.com>
3968
3969 * coff-pe-read.c (read_pe_exported_syms): Recognize
3970 "pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE
3971 targets.
3972
d7117c03
PA
39732009-07-05 Pedro Alves <pedro@codesourcery.com>
3974
3975 * arm-wince-tdep.c (arm_wince_skip_main_prologue): New.
3976 (arm_wince_init_abi): Register it as gdbarch_skip_main_prologue
3977 callback.
3978
5cd226f2
TG
39792009-06-29 Tristan Gingold <gingold@adacore.com>
3980
3981 * i386-darwin-tdep.c (amd64_darwin_thread_state_reg_offset)
3982 (amd64_darwin_thread_state_num_regs)
3983 (amd64_darwin_sigcontext_addr, x86_darwin_init_abi_64): Moved to
3984 amd64-darwin-tdep.c
3985 (_initialize_i386_darwin_tdep): Remove 64 bits parts.
3986 (darwin_dwarf_signal_frame_p): Make public.
3987 * amd64-darwin-tdep.c: New file with most chunks from
3988 i386-darwin-tdep.c
3989 * i386-darwin-tdep.h: Add a prototype for darwin_dwarf_signal_frame_p.
3990 (amd64_darwin_thread_state_reg_offset)
3991 (amd64_darwin_thread_state_num_regs): Moved to amd64-darwin-tdep.h
3992 * amd64-darwin-tdep.h: New file.
3993 * i386-darwin-nat.c: Only includes amd64-nat.h and amd64-darwin-tdep.h
3994 if BFD64 is defined.
3995 (i386_darwin_fetch_inferior_registers): Add #ifdef BFD64/#endif around
3996 64 bits parts.
3997 (i386_darwin_store_inferior_registers): Ditto.
3998 (darwin_set_sstep): Ditto.
3999 (darwin_complete_target): Ditto.
4000 (amd64_darwin_sstep_at_sigreturn): Ditto.
4001 * configure.tgt: Create a separate entry for x86_64-*-darwin.
4002 Add 64 bits support for i386-*-darwin if --enable-64-bit-bfd.
4003 * Makefile.in (ALLDEPFILES): Add amd64-darwin-tdep.c, darwin-nat.c,
4004 i386-darwin-tdep.c i386-darwin-nat.c
4005 (ALL_64_TARGET_OBS): Add amd64-darwin-tdep.o
4006
3cb5bea9
PA
40072009-07-02 Pedro Alves <pedro@codesourcery.com>
4008
4009 * linux-fork.c (forks_exist_p): Drop unnecessary extern.
4010 (add_fork, linux_fork_killall, linux_fork_mourn_inferior)
4011 (linux_fork_detach): Ditto.
4012 (delete_fork_command): Rename to ...
4013 (delete_checkpoint_command): ... this.
4014 (detach_fork_command): Rename to ...
4015 (detach_checkpoint_command): ... this.
4016 (info_forks_command): Rename to ...
4017 (info_checkpoints_command): ... this.
4018 (_initialize_linux_fork): Remove stale comments. Adjust.
4019
2277426b
PA
40202009-07-02 Pedro Alves <pedro@codesourcery.com>
4021
4022 * linux-nat.c (linux_child_follow_fork): If we're staying attached
4023 to the child process, enable event reporting on it. Don't handle
4024 checkpoints here. Instead, add the child fork to the lwp thread
4025 and inferior lists without clobbering the previous inferior. Let
4026 the thread_db layer learn about a new child process, even if
4027 following the parent.
4028 (linux_nat_switch_fork): Delete lwps of the current inferior only,
4029 instead of clearing the whole list. Use thread_change_ptid to
4030 give the core the illusion the new checkpoint is still the same
4031 inferior. Clear the register cache.
4032 (linux_handle_extended_wait): Handle checkpoints here.
4033 (linux_multi_process): Turn on.
4034 * linux-fork.c (struct fork_info) <pc>: Remove field.
4035 (init_fork_list): Do not delete the checkpoint from the inferior
4036 list (it is not there).
4037 (fork_load_infrun_state): Don't switch inferior_ptid here. Pass
4038 the new checkpoint's ptid to linux_nat_switch_fork.
4039 (fork_save_infrun_state): Make static. Don't stop the pc field of
4040 fork_info, it's gone.
4041 (linux_fork_mourn_inferior): Don't delete the checkpoint from the
4042 inferior list, it's not there.
4043 (linux_fork_detach): Ditto.
4044 (delete_fork_command): Replace mention of fork/checkpoint by
4045 checkpoint only.
4046 (detach_fork_command): Likewise. Don't delete the checkpoint from
4047 the inferior list.
4048 (info_forks_command): Adjust.
4049 (restore_detach_fork): Delete.
4050 (checkpointing_pid): New.
4051 (linux_fork_checkpointing_p): New.
4052 (save_detach_fork): Delete.
4053 (checkpoint_command): Delete temp_detach_fork. Don't remove
4054 breakpoints, that's a nop. Store the pid of the process we're
4055 checkpointing, and use make_cleanup_restore_integer to restore it.
4056 Don't reinsert breakpoints here.
4057 (process_command, fork_command): Delete.
4058 (restart_command): Update comments to only mention checkpoints,
4059 not forks.
4060 (_initialize_linux_fork): Delete "fork", "process", "info forks"
4061 commands.
4062 * linux-fork.h (fork_save_infrun_state, fork_list): Delete
4063 declarations.
4064 (linux_fork_checkpointing_p): Declare.
4065 * cli/cli-cmds.c (killlist): New.
4066 * cli/cli-cmds.h (killlist): Declare.
4067 * gdbcmd.h (killlist): Declare.
4068 * inferior.c: Include "gdbthread.h".
4069 (detach_inferior_command, kill_inferior_command)
4070 (inferior_command): New.
4071 (info_inferiors_command): Allow specifying a specific inferior id.
4072 (_initialize_inferiors): Register "inferior", "kill inferior" and
4073 "detach inferior" commands.
4074 * infcmd.c (_initialize_infcmd): Make "kill" a prefix command.
4075 * gdbthread.h (any_thread_of_process): Declare.
4076 * thread.c (any_thread_of_process): New.
4077
4078 * NEWS: Mention multi-inferior debugging. Mention 'info
4079 inferiors', 'inferior', 'detach inferior' and 'kill inferior' as
4080 new commands.
4081 (Removed commands): New section, mentioning that 'info forks',
4082 'fork', 'process', 'delete fork' and 'detach fork' are now gone.
4083
59837fe0
UW
40842009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
4085
4086 * gdbarch.sh (current_gdbarch): Remove global variable.
4087 (find_arch_by_info): Remove, inline into ...
4088 (gdbarch_find_by_info): ... this. Remove current_gdbarch swapping.
4089 (deprecated_current_gdbarch_select_hack): Rename to ...
4090 (deprecated_target_gdbarch_select_hack): ... this. Do not set
4091 or access current_gdbarch.
4092 * gdbarch.c, gdbarch.h: Regenerate.
4093
4094 * arch-utils.c (gdbarch_update_p): Update call.
4095 (set_gdbarch_from_file): Likewise.
4096
e17a4113
UW
40972009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
4098
4099 * defs.h (extract_signed_integer, extract_unsigned_integer,
4100 extract_long_unsigned_integer, store_signed_integer,
4101 store_unsigned_integer): Add BYTE_ORDER parameter.
4102 * findvar.c (extract_signed_integer, extract_unsigned_integer,
4103 extract_long_unsigned_integer, store_signed_integer,
4104 store_unsigned_integer): Add BYTE_ORDER parameter. Use it
4105 instead of current_gdbarch.
4106
4107 * gdbcore.h (read_memory_integer, safe_read_memory_integer,
4108 read_memory_unsigned_integer, write_memory_signed_integer,
4109 write_memory_unsigned_integer): Add BYTE_ORDER parameter.
4110 * corefile.c (struct captured_read_memory_integer_arguments): Add
4111 BYTE_ORDER member.
4112 (safe_read_memory_integer): Add BYTE_ORDER parameter. Store it into
4113 struct captured_read_memory_integer_arguments.
4114 (do_captured_read_memory_integer): Pass it to read_memory_integer.
4115 (read_memory_integer): Add BYTE_ORDER parameter. Pass it to
4116 extract_signed_integer.
4117 (read_memory_unsigned_integer): Add BYTE_ORDER parameter. Pass it to
4118 extract_unsigned_integer.
4119 (write_memory_signed_integer): Add BYTE_ORDER parameter. Pass it
4120 to store_signed_integer.
4121 (write_memory_unsigned_integer): Add BYTE_ORDER parameter. Pass it
4122 to store_unsigned_integer.
4123
4124 * target.h (get_target_memory_unsigned): Add BYTE_ORDER parameter.
4125 * target.c (get_target_memory_unsigned): Add BYTE_ORDER parameter.
4126 Pass it to extract_unsigned_integer.
4127
4128
4129 Update calls to extract_signed_integer, extract_unsigned_integer,
4130 extract_long_unsigned_integer, store_signed_integer,
4131 store_unsigned_integer, read_memory_integer,
4132 read_memory_unsigned_integer, safe_read_memory_integer,
4133 write_memory_signed_integer, write_memory_unsigned_integer, and
4134 get_target_memory_unsigned to pass byte order:
4135 * ada-lang.c (ada_value_binop): Update.
4136 * ada-valprint.c (char_at): Update.
4137 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Update.
4138 * alpha-tdep.c (alpha_lds, alpha_sts, alpha_push_dummy_call,
4139 alpha_extract_return_value, alpha_read_insn,
4140 alpha_get_longjmp_target): Update.
4141 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Update.
4142 * amd64obsd-tdep.c (amd64obsd_supply_uthread,
4143 amd64obsd_collect_uthread, amd64obsd_trapframe_cache): Update.
4144 * amd64-tdep.c (amd64_push_dummy_call, amd64_analyze_prologue,
4145 amd64_frame_cache, amd64_sigtramp_frame_cache, fixup_riprel,
4146 amd64_displaced_step_fixup): Update.
4147 * arm-linux-tdep.c (arm_linux_sigreturn_init,
4148 arm_linux_rt_sigreturn_init, arm_linux_supply_gregset): Update.
4149 * arm-tdep.c (thumb_analyze_prologue, arm_skip_prologue,
4150 arm_scan_prologue, arm_push_dummy_call, thumb_get_next_pc,
4151 arm_get_next_pc, arm_extract_return_value, arm_store_return_value,
4152 arm_return_value): Update.
4153 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4154 * auxv.c (default_auxv_parse): Update.
4155 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address,
4156 avr_scan_prologue, avr_extract_return_value,
4157 avr_frame_prev_register, avr_push_dummy_call): Update.
4158 * bsd-uthread.c (bsd_uthread_check_magic, bsd_uthread_lookup_offset,
4159 bsd_uthread_wait, bsd_uthread_thread_alive,
4160 bsd_uthread_extra_thread_info): Update.
4161 * c-lang.c (c_printstr, print_wchar): Update.
4162 * cp-valprint.c (cp_print_class_member): Update.
4163 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache,
4164 cris_push_dummy_call, cris_scan_prologue, cris_store_return_value,
4165 cris_extract_return_value, find_step_target, dip_prefix,
4166 sixteen_bit_offset_branch_op, none_reg_mode_jump_op,
4167 move_mem_to_reg_movem_op, get_data_from_address): Update.
4168 * dwarf2expr.c (dwarf2_read_address, execute_stack_op): Update.
4169 * dwarf2-frame.c (execute_cfa_program): Update.
4170 * dwarf2loc.c (find_location_expression): Update.
4171 * dwarf2read.c (dwarf2_const_value): Update.
4172 * expprint.c (print_subexp_standard): Update.
4173 * findvar.c (unsigned_pointer_to_address, signed_pointer_to_address,
4174 unsigned_address_to_pointer, address_to_signed_pointer,
4175 read_var_value): Update.
4176 * frame.c (frame_unwind_register_signed,
4177 frame_unwind_register_unsigned, get_frame_memory_signed,
4178 get_frame_memory_unsigned): Update.
4179 * frame-unwind.c (frame_unwind_got_constant): Update.
4180 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp,
4181 frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
4182 Update.
4183 * frv-tdep.c (frv_analyze_prologue, frv_skip_main_prologue,
4184 frv_extract_return_value, find_func_descr,
4185 frv_convert_from_func_ptr_addr, frv_push_dummy_call): Update.
4186 * f-valprint.c (f_val_print): Update.
4187 * gnu-v3-abi.c (gnuv3_decode_method_ptr, gnuv3_make_method_ptr):
4188 Update.
4189 * h8300-tdep.c (h8300_is_argument_spill, h8300_analyze_prologue,
4190 h8300_push_dummy_call, h8300_extract_return_value,
4191 h8300h_extract_return_value, h8300_store_return_value,
4192 h8300h_store_return_value): Update.
4193 * hppabsd-tdep.c (hppabsd_find_global_pointer): Update.
4194 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register):
4195 Update.
4196 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline,
4197 hppa64_hpux_in_solib_call_trampoline,
4198 hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code,
4199 hppa_hpux_sigtramp_frame_unwind_cache,
4200 hppa_hpux_sigtramp_unwind_sniffer, hppa32_hpux_find_global_pointer,
4201 hppa64_hpux_find_global_pointer, hppa_hpux_search_pattern,
4202 hppa32_hpux_search_dummy_call_sequence,
4203 hppa64_hpux_search_dummy_call_sequence, hppa_hpux_supply_save_state,
4204 hppa_hpux_unwind_adjust_stub): Update.
4205 * hppa-linux-tdep.c (insns_match_pattern,
4206 hppa_linux_find_global_pointer): Update.
4207 * hppa-tdep.c (hppa_in_function_epilogue_p, hppa32_push_dummy_call,
4208 hppa64_convert_code_addr_to_fptr, hppa64_push_dummy_call,
4209 skip_prologue_hard_way, hppa_frame_cache, hppa_fallback_frame_cache,
4210 hppa_pseudo_register_read, hppa_frame_prev_register_helper,
4211 hppa_match_insns): Update.
4212 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4213 * i386-tdep.c (i386bsd_sigcontext_addr): Update.
4214 * i386-cygwin-tdep.c (core_process_module_section): Update.
4215 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn,
4216 amd64_darwin_sstep_at_sigreturn): Update.
4217 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr,
4218 amd64_darwin_sigcontext_addr): Likewise.
4219 * i386-linux-nat.c (i386_linux_sigcontext_addr): Update.
4220 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Update.
4221 * i386-nto-tdep.c (i386nto_sigcontext_addr): Update.
4222 * i386obsd-nat.c (i386obsd_supply_pcb): Update.
4223 * i386obsd-tdep.c (i386obsd_supply_uthread, i386obsd_collect_uthread,
4224 i386obsd_trapframe_cache): Update.
4225 * i386-tdep.c (i386_displaced_step_fixup, i386_follow_jump,
4226 i386_analyze_frame_setup, i386_analyze_prologue,
4227 i386_skip_main_prologue, i386_frame_cache, i386_sigtramp_frame_cache,
4228 i386_get_longjmp_target, i386_push_dummy_call,
4229 i386_pe_skip_trampoline_code, i386_svr4_sigcontext_addr,
4230 i386_fetch_pointer_argument): Update.
4231 * i387-tdep.c (i387_supply_fsave): Update.
4232 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Update.
4233 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write,
4234 examine_prologue, ia64_frame_cache, ia64_frame_prev_register,
4235 ia64_sigtramp_frame_cache, ia64_sigtramp_frame_prev_register,
4236 ia64_access_reg, ia64_access_rse_reg, ia64_libunwind_frame_this_id,
4237 ia64_libunwind_frame_prev_register,
4238 ia64_libunwind_sigtramp_frame_this_id,
4239 ia64_libunwind_sigtramp_frame_prev_register, ia64_find_global_pointer,
4240 find_extant_func_descr, find_func_descr,
4241 ia64_convert_from_func_ptr_addr, ia64_push_dummy_call, ia64_dummy_id,
4242 ia64_unwind_pc): Update.
4243 * iq2000-tdep.c (iq2000_pointer_to_address, iq2000_address_to_pointer,
4244 iq2000_scan_prologue, iq2000_extract_return_value,
4245 iq2000_push_dummy_call): Update.
4246 * irix5nat.c (fill_gregset): Update.
4247 * jv-lang.c (evaluate_subexp_java): Update.
4248 * jv-valprint.c (java_value_print): Update.
4249 * lm32-tdep.c (lm32_analyze_prologue, lm32_push_dummy_call,
4250 lm32_extract_return_value, lm32_store_return_value): Update.
4251 * m32c-tdep.c (m32c_push_dummy_call, m32c_return_value,
4252 m32c_skip_trampoline_code, m32c_m16c_address_to_pointer,
4253 m32c_m16c_pointer_to_address): Update.
4254 * m32r-tdep.c (m32r_store_return_value, decode_prologue,
4255 m32r_skip_prologue, m32r_push_dummy_call, m32r_extract_return_value):
4256 Update.
4257 * m68hc11-tdep.c (m68hc11_pseudo_register_read,
4258 m68hc11_pseudo_register_write, m68hc11_analyze_instruction,
4259 m68hc11_push_dummy_call): Update.
4260 * m68linux-tdep.c (m68k_linux_pc_in_sigtramp,
4261 m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
4262 Update.
4263 * m68k-tdep.c (m68k_push_dummy_call, m68k_analyze_frame_setup,
4264 m68k_analyze_register_saves, m68k_analyze_prologue, m68k_frame_cache,
4265 m68k_get_longjmp_target): Update.
4266 * m88k-tdep.c (m88k_fetch_instruction): Update.
4267 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_csr_write,
4268 mep_pseudo_cr32_write, mep_get_insn, mep_push_dummy_call): Update.
4269 * mi/mi-main.c (mi_cmd_data_write_memory): Update.
4270 * mips-linux-tdep.c (mips_linux_get_longjmp_target, supply_32bit_reg,
4271 mips64_linux_get_longjmp_target, mips64_fill_gregset,
4272 mips64_fill_fpregset, mips_linux_in_dynsym_stub): Update.
4273 * mipsnbdsd-tdep.c (mipsnbsd_get_longjmp_target): Update.
4274 * mips-tdep.c (mips_fetch_instruction, fetch_mips_16,
4275 mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call,
4276 mips_o32_push_dummy_call, mips_o64_push_dummy_call,
4277 mips_single_step_through_delay, mips_skip_pic_trampoline_code,
4278 mips_integer_to_address): Update.
4279 * mn10300-tdep.c (mn10300_analyze_prologue, mn10300_push_dummy_call):
4280 Update.
4281 * monitor.c (monitor_supply_register, monitor_write_memory,
4282 monitor_read_memory_single): Update.
4283 * moxie-tdep.c (moxie_store_return_value, moxie_extract_return_value,
4284 moxie_analyze_prologue): Update.
4285 * mt-tdep.c (mt_return_value, mt_skip_prologue, mt_select_coprocessor,
4286 mt_pseudo_register_read, mt_pseudo_register_write, mt_registers_info,
4287 mt_push_dummy_call): Update.
4288 * objc-lang.c (read_objc_method, read_objc_methlist_nmethods,
4289 read_objc_methlist_method, read_objc_object, read_objc_super,
4290 read_objc_class, find_implementation_from_class): Update.
4291 * ppc64-linux-tdep.c (ppc64_desc_entry_point,
4292 ppc64_linux_convert_from_func_ptr_addr, ppc_linux_sigtramp_cache):
4293 Update.
4294 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_sniffer,
4295 ppcobsd_sigtramp_frame_cache): Update.
4296 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4297 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4298 ppc64_sysv_abi_return_value): Update.
4299 * ppc-linux-nat.c (ppc_linux_auxv_parse): Update.
4300 * procfs.c (procfs_auxv_parse): Update.
4301 * p-valprint.c (pascal_val_print): Update.
4302 * regcache.c (regcache_raw_read_signed, regcache_raw_read_unsigned,
4303 regcache_raw_write_signed, regcache_raw_write_unsigned,
4304 regcache_cooked_read_signed, regcache_cooked_read_unsigned,
4305 regcache_cooked_write_signed, regcache_cooked_write_unsigned): Update.
4306 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4307 * remote-mips.c (mips_wait, mips_fetch_registers, mips_xfer_memory):
4308 Update.
4309 * rs6000-aix-tdep.c (rs6000_push_dummy_call, rs6000_return_value,
4310 rs6000_convert_from_func_ptr_addr, branch_dest,
4311 rs6000_software_single_step): Update.
4312 * rs6000-tdep.c (rs6000_in_function_epilogue_p,
4313 ppc_displaced_step_fixup, ppc_deal_with_atomic_sequence,
4314 bl_to_blrl_insn_p, rs6000_fetch_instruction, skip_prologue,
4315 rs6000_skip_main_prologue, rs6000_skip_trampoline_code,
4316 rs6000_frame_cache): Update.
4317 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write,
4318 s390x_pseudo_register_read, s390x_pseudo_register_write, s390_load,
4319 s390_backchain_frame_unwind_cache, s390_sigtramp_frame_unwind_cache,
4320 extend_simple_arg, s390_push_dummy_call, s390_return_value): Update.
4321 * scm-exp.c (scm_lreadr): Update.
4322 * scm-lang.c (scm_get_field, scm_unpack): Update.
4323 * scm-valprint.c (scm_val_print): Update.
4324 * score-tdep.c (score_breakpoint_from_pc, score_push_dummy_call,
4325 score_fetch_inst): Update.
4326 * sh64-tdep.c (look_for_args_moves, sh64_skip_prologue_hard_way,
4327 sh64_analyze_prologue, sh64_push_dummy_call, sh64_extract_return_value,
4328 sh64_pseudo_register_read, sh64_pseudo_register_write,
4329 sh64_frame_prev_register): Update:
4330 * sh-tdep.c (sh_analyze_prologue, sh_push_dummy_call_fpu,
4331 sh_push_dummy_call_nofpu, sh_extract_return_value_nofpu,
4332 sh_store_return_value_nofpu, sh_in_function_epilogue_p): Update.
4333 * solib-darwin.c (darwin_load_image_infos): Update.
4334 * solib-frv.c (fetch_loadmap, lm_base, frv_current_sos, enable_break2,
4335 find_canonical_descriptor_in_load_object): Update.
4336 * solib-irix.c (extract_mips_address, fetch_lm_info, irix_current_sos,
4337 irix_open_symbol_file_object): Update.
4338 * solib-som.c (som_solib_create_inferior_hook, link_map_start,
4339 som_current_sos, som_open_symbol_file_object): Update.
4340 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS, LM_ADDR, LM_NEXT, LM_NAME):
4341 Update.
4342 * solib-svr4.c (read_program_header, scan_dyntag_auxv,
4343 solib_svr4_r_ldsomap): Update.
4344 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Update.
4345 * sparc64obsd-tdep.c (sparc64obsd_supply_uthread,
4346 sparc64obsd_collect_uthread): Update.
4347 * sparc64-tdep.c (sparc64_pseudo_register_read,
4348 sparc64_pseudo_register_write, sparc64_supply_gregset,
4349 sparc64_collect_gregset): Update.
4350 * sparc-linux-tdep.c (sparc32_linux_step_trap): Update.
4351 * sparcobsd-tdep.c (sparc32obsd_supply_uthread,
4352 sparc32obsd_collect_uthread): Update.
4353 * sparc-tdep.c (sparc_fetch_wcookie, sparc32_push_dummy_code,
4354 sparc32_store_arguments, sparc32_return_value, sparc_supply_rwindow,
4355 sparc_collect_rwindow): Update.
4356 * spu-linux-nat.c (parse_spufs_run): Update.
4357 * spu-tdep.c (spu_pseudo_register_read_spu,
4358 spu_pseudo_register_write_spu, spu_pointer_to_address,
4359 spu_analyze_prologue, spu_in_function_epilogue_p,
4360 spu_frame_unwind_cache, spu_push_dummy_call, spu_software_single_step,
4361 spu_get_longjmp_target, spu_get_overlay_table, spu_overlay_update_osect,
4362 info_spu_signal_command, info_spu_mailbox_list, info_spu_dma_cmdlist,
4363 info_spu_dma_command, info_spu_proxydma_command): Update.
4364 * stack.c (print_frame_nameless_args, frame_info): Update.
4365 * symfile.c (read_target_long_array, simple_read_overlay_table,
4366 simple_read_overlay_region_table): Update.
4367 * target.c (debug_print_register): Update.
4368 * tramp-frame.c (tramp_frame_start): Update.
4369 * v850-tdep.c (v850_analyze_prologue, v850_push_dummy_call,
4370 v850_extract_return_value, v850_store_return_value,
4371 * valarith.c (value_binop, value_bit_index): Update.
4372 * valops.c (value_cast): Update.
4373 * valprint.c (val_print_type_code_int, val_print_string,
4374 read_string): Update.
4375 * value.c (unpack_long, unpack_double, unpack_field_as_long,
4376 modify_field, pack_long): Update.
4377 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call,
4378 vax_skip_prologue): Update.
4379 * xstormy16-tdep.c (xstormy16_push_dummy_call,
4380 xstormy16_analyze_prologue, xstormy16_in_function_epilogue_p,
4381 xstormy16_resolve_jmp_table_entry, xstormy16_find_jmp_table_entry,
4382 xstormy16_pointer_to_address, xstormy16_address_to_pointer): Update.
4383 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read,
4384 xtensa_pseudo_register_write, xtensa_frame_cache,
4385 xtensa_push_dummy_call, call0_track_op, call0_frame_cache): Update.
4386
4387
4388 * dfp.h (decimal_to_string, decimal_from_string, decimal_from_integral,
4389 decimal_from_floating, decimal_to_doublest, decimal_is_zero): Add
4390 BYTE_ORDER parameter.
4391 (decimal_binop): Add BYTE_ORDER_X, BYTE_ORDER_Y, and BYTE_ORDER_RESULT
4392 parameters.
4393 (decimal_compare): Add BYTE_ORDER_X and BYTE_ORDER_Y parameters.
4394 (decimal_convert): Add BYTE_ORDER_FROM and BYTE_ORDER_TO parameters.
4395 * dfp.c (match_endianness): Add BYTE_ORDER parameter. Use it
4396 instead of current_gdbarch.
4397 (decimal_to_string, decimal_from_integral, decimal_from_floating,
4398 decimal_to_doublest, decimal_is_zero): Add BYTE_ORDER parameter.
4399 Pass it to match_endianness.
4400 (decimal_binop): Add BYTE_ORDER_X, BYTE_ORDER_Y, and BYTE_ORDER_RESULT
4401 parameters. Pass them to match_endianness.
4402 (decimal_compare): Add BYTE_ORDER_X and BYTE_ORDER_Y parameters.
4403 Pass them to match_endianness.
4404 (decimal_convert): Add BYTE_ORDER_FROM and BYTE_ORDER_TO parameters.
4405 Pass them to match_endianness.
4406 * valarith.c (value_args_as_decimal): Add BYTE_ORDER_X and
4407 BYTE_ORDER_Y output parameters.
4408 (value_binop): Update call to value_args_as_decimal.
4409
4410 Update calls to decimal_to_string, decimal_from_string,
4411 decimal_from_integral, decimal_from_floating, decimal_to_doublest,
4412 decimal_is_zero, decimal_binop, decimal_compare and decimal_convert
4413 to pass/receive byte order:
4414 * c-exp.y (parse_number): Update.
4415 * printcmd.c (printf_command): Update.
4416 * valarith.c (value_args_as_decimal, value_binop, value_logical_not,
4417 value_equal, value_less): Update.
4418 * valops.c (value_cast, value_one): Update.
4419 * valprint.c (print_decimal_floating): Update.
4420 * value.c (unpack_long, unpack_double): Update.
4421 * python/python-value.c (valpy_nonzero): Update.
4422
4423
4424 * ada-valprint.c (char_at): Add BYTE_ORDER parameter.
4425 (printstr): Update calls to char_at.
4426 (ada_val_print_array): Likewise.
4427 * valprint.c (read_string): Add BYTE_ORDER parameter.
4428 (val_print_string): Update call to read_string.
4429 * c-lang.c (c_get_string): Likewise.
4430 * charset.h (target_wide_charset): Add BYTE_ORDER parameter.
4431 * charset.c (target_wide_charset): Add BYTE_ORDER parameter.
4432 Use it instead of current_gdbarch.
4433 * printcmd.c (printf_command): Update calls to target_wide_charset.
4434 * c-lang.c (charset_for_string_type): Add BYTE_ORDER parameter.
4435 Pass to target_wide_charset. Use it instead of current_gdbarch.
4436 (classify_type): Add BYTE_ORDER parameter. Pass to
4437 charset_for_string_type. Allow NULL encoding pointer.
4438 (print_wchar): Add BYTE_ORDER parameter.
4439 (c_emit_char): Update calls to classify_type and print_wchar.
4440 (c_printchar, c_printstr): Likewise.
4441
4442
4443 * gdbarch.sh (in_solib_return_trampoline): Convert to type "m".
4444 * gdbarch.c, gdbarch.h: Regenerate.
4445 * arch-utils.h (generic_in_solib_return_trampoline): Add GDBARCH
4446 parameter.
4447 * arch-utils.c (generic_in_solib_return_trampoline): Likewise.
4448 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Likewise.
4449 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise.
4450 (rs6000_skip_trampoline_code): Update call.
4451
4452 * alpha-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter to
4453 dynamic_sigtramp_offset and pc_in_sigtramp callbacks.
4454 (alpha_read_insn): Add GDBARCH parameter.
4455 * alpha-tdep.c (alpha_lds, alpha_sts): Add GDBARCH parameter.
4456 (alpha_register_to_value): Pass architecture to alpha_sts.
4457 (alpha_extract_return_value): Likewise.
4458 (alpha_value_to_register): Pass architecture to alpha_lds.
4459 (alpha_store_return_value): Likewise.
4460 (alpha_read_insn): Add GDBARCH parameter.
4461 (alpha_skip_prologue): Pass architecture to alpha_read_insn.
4462 (alpha_heuristic_proc_start): Likewise.
4463 (alpha_heuristic_frame_unwind_cache): Likewise.
4464 (alpha_next_pc): Likewise.
4465 (alpha_sigtramp_frame_this_id): Pass architecture to
4466 tdep->dynamic_sigtramp_offset callback.
4467 (alpha_sigtramp_frame_sniffer): Pass architecture to
4468 tdep->pc_in_sigtramp callback.
4469 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): Add GDBARCH parameter.
4470 (alphafbsd_sigtramp_offset): Likewise.
4471 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): Add GDBARCH
4472 parameter. Pass to alpha_read_insn.
4473 (alpha_linux_sigtramp_offset): Add GDBARCH parameter. Pass to
4474 alpha_linux_sigtramp_offset_1.
4475 (alpha_linux_pc_in_sigtramp): Add GDBARCH parameter. Pass to
4476 alpha_linux_sigtramp_offset.
4477 (alpha_linux_sigcontext_addr): Pass architecture to alpha_read_insn
4478 and alpha_linux_sigtramp_offset.
4479 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Add GDBARCH parameter.
4480 (alphanbsd_pc_in_sigtramp): Add GDBARCH parameter. Pass to
4481 alphanbsd_sigtramp_offset.
4482 * alphaobsd-tdep.c (alphaobsd_sigtramp_offset): Add GDBARCH parameter.
4483 (alphaobsd_pc_in_sigtramp): Add GDBARCH parameter. Pass to
4484 alpha_read_insn.
4485 (alphaobsd_sigcontext_addr): Pass architecture to
4486 alphaobsd_sigtramp_offset.
4487 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): Add GDBARCH
4488 parameter.
4489
4490 * amd64-tdep.c (amd64_analyze_prologue): Add GDBARCH parameter.
4491 (amd64_skip_prologue): Pass architecture to amd64_analyze_prologue.
4492 (amd64_frame_cache): Likewise.
4493
4494 * arm-tdep.c (SWAP_SHORT, SWAP_INT): Remove.
4495 (thumb_analyze_prologue, arm_skip_prologue, arm_scan_prologue,
4496 thumb_get_next_pc, arm_get_next_pc): Do not use SWAP_ macros.
4497 * arm-wince-tdep.c: Include "frame.h".
4498
4499 * avr-tdep.c (EXTRACT_INSN): Remove.
4500 (avr_scan_prologue): Add GDBARCH argument, inline EXTRACT_INSN.
4501 (avr_skip_prologue): Pass architecture to avr_scan_prologue.
4502 (avr_frame_unwind_cache): Likewise.
4503
4504 * cris-tdep.c (struct instruction_environment): Add BYTE_ORDER member.
4505 (find_step_target): Initialize it.
4506 (get_data_from_address): Add BYTE_ORDER parameter.
4507 (bdap_prefix): Pass byte order to get_data_from_address.
4508 (handle_prefix_assign_mode_for_aritm_op): Likewise.
4509 (three_operand_add_sub_cmp_and_or_op): Likewise.
4510 (handle_inc_and_index_mode_for_aritm_op): Likewise.
4511
4512 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Add GDBARCH parameter.
4513 (frv_linux_sigcontext_reg_addr): Pass architecture to
4514 frv_linux_pc_in_sigtramp.
4515 (frv_linux_sigtramp_frame_sniffer): Likewise.
4516
4517 * h8300-tdep.c (h8300_is_argument_spill): Add GDBARCH parameter.
4518 (h8300_analyze_prologue): Add GDBARCH parameter. Pass to
4519 h8300_is_argument_spill.
4520 (h8300_frame_cache, h8300_skip_prologue): Pass architecture
4521 to h8300_analyze_prologue.
4522
4523 * hppa-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter to
4524 in_solib_call_trampoline callback.
4525 (hppa_in_solib_call_trampoline): Add GDBARCH parameter.
4526 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Add GDBARCH
4527 parameter.
4528 (hppa64_push_dummy_call): Pass architecture to
4529 hppa64_convert_code_addr_to_fptr.
4530 (hppa_match_insns): Add GDBARCH parameter.
4531 (hppa_match_insns_relaxed): Add GDBARCH parameter. Pass to
4532 hppa_match_insns.
4533 (hppa_skip_trampoline_code): Pass architecture to hppa_match_insns.
4534 (hppa_in_solib_call_trampoline): Add GDBARCH parameter. Pass to
4535 hppa_match_insns_relaxed.
4536 (hppa_stub_unwind_sniffer): Pass architecture to
4537 tdep->in_solib_call_trampoline callback.
4538 * hppa-hpux-tdep.c (hppa_hpux_search_pattern): Add GDBARCH parameter.
4539 (hppa32_hpux_search_dummy_call_sequence): Pass architecture to
4540 hppa_hpux_search_pattern.
4541 * hppa-linux-tdep.c (insns_match_pattern): Add GDBARCH parameter.
4542 (hppa_linux_sigtramp_find_sigcontext): Add GDBARCH parameter.
4543 Pass to insns_match_pattern.
4544 (hppa_linux_sigtramp_frame_unwind_cache): Pass architecture to
4545 hppa_linux_sigtramp_find_sigcontext.
4546 (hppa_linux_sigtramp_frame_sniffer): Likewise.
4547 (hppa32_hpux_in_solib_call_trampoline): Add GDBARCH parameter.
4548 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4549
4550 * i386-tdep.c (i386_follow_jump): Add GDBARCH parameter.
4551 (i386_analyze_frame_setup): Add GDBARCH parameter.
4552 (i386_analyze_prologue): Add GDBARCH parameter. Pass to
4553 i386_follow_jump and i386_analyze_frame_setup.
4554 (i386_skip_prologue): Pass architecture to i386_analyze_prologue
4555 and i386_follow_jump.
4556 (i386_frame_cache): Pass architecture to i386_analyze_prologue.
4557 (i386_pe_skip_trampoline_code): Add FRAME parameter.
4558 * i386-tdep.h (i386_pe_skip_trampoline_code): Add FRAME parameter.
4559 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Pass
4560 frame to i386_pe_skip_trampoline_code.
4561
4562 * ia64-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter
4563 to sigcontext_register_address callback.
4564 * ia64-tdep.c (ia64_find_global_pointer): Add GDBARCH parameter.
4565 (ia64_find_unwind_table): Pass architecture to
4566 ia64_find_global_pointer.
4567 (find_extant_func_descr): Add GDBARCH parameter.
4568 (find_func_descr): Pass architecture to find_extant_func_descr
4569 and ia64_find_global_pointer.
4570 (ia64_sigtramp_frame_init_saved_regs): Pass architecture to
4571 tdep->sigcontext_register_address callback.
4572 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Add
4573 GDBARCH parameter.
4574
4575 * iq2000-tdep.c (iq2000_scan_prologue): Add GDBARCH parameter.
4576 (iq2000_frame_cache): Pass architecture to iq2000_scan_prologue.
4577
4578 * lm32-tdep.c (lm32_analyze_prologue): Add GDBARCH parameter.
4579 (lm32_skip_prologue, lm32_frame_cache): Pass architecture to
4580 lm32_analyze_prologue.
4581
4582 * m32r-tdep.c (decode_prologue): Add GDBARCH parameter.
4583 (m32r_skip_prologue): Pass architecture to decode_prologue.
4584
4585 * m68hc11-tdep.c (m68hc11_analyze_instruction): Add GDBARCH parameter.
4586 (m68hc11_scan_prologue): Pass architecture to
4587 m68hc11_analyze_instruction.
4588
4589 * m68k-tdep.c (m68k_analyze_frame_setup): Add GDBARCH parameter.
4590 (m68k_analyze_prologue): Pass architecture to
4591 m68k_analyze_frame_setup.
4592
4593 * m88k-tdep.c (m88k_fetch_instruction): Add BYTE_ORDER parameter.
4594 (m88k_analyze_prologue): Add GDBARCH parameter. Pass byte order
4595 to m88k_fetch_instruction.
4596 (m88k_skip_prologue): Pass architecture to m88k_analyze_prologue.
4597 (m88k_frame_cache): Likewise.
4598
4599 * mep-tdep.c (mep_get_insn): Add GDBARCH parameter.
4600 (mep_analyze_prologue): Pass architecture to mep_get_insn.
4601
4602 * mips-tdep.c (mips_fetch_instruction): Add GDBARCH parameter.
4603 (mips32_next_pc): Pass architecture to mips_fetch_instruction.
4604 (deal_with_atomic_sequence): Likewise.
4605 (unpack_mips16): Add GDBARCH parameter, pass to mips_fetch_instruction.
4606 (mips16_scan_prologue): Likewise.
4607 (mips32_scan_prologue): Likewise.
4608 (mips16_in_function_epilogue_p): Likewise.
4609 (mips32_in_function_epilogue_p): Likewise.
4610 (mips_about_to_return): Likewise.
4611 (mips_insn16_frame_cache): Pass architecture to mips16_scan_prologue.
4612 (mips_insn32_frame_cache): Pass architecture to mips32_scan_prologue.
4613 (mips_skip_prologue): Pass architecture to mips16_scan_prologue
4614 and mips32_scan_prologue.
4615 (mips_in_function_epilogue_p): Pass architecture to
4616 mips16_in_function_epilogue_p and
4617 mips32_in_function_epilogue_p.
4618 (heuristic_proc_start): Pass architecture to mips_fetch_instruction
4619 and mips_about_to_return.
4620 (mips_skip_mips16_trampoline_code): Pass architecture to
4621 mips_fetch_instruction.
4622 (fetch_mips_16): Add GDBARCH parameter.
4623 (mips16_next_pc): Pass architecture to fetch_mips_16.
4624 (extended_mips16_next_pc): Pass architecture to unpack_mips16 and
4625 fetch_mips_16.
4626
4627 * objc-lang.c (read_objc_method, read_objc_methlist_nmethods,
4628 read_objc_methlist_method, read_objc_object, read_objc_super,
4629 read_objc_class): Add GDBARCH parameter.
4630 (find_implementation_from_class): Add GDBARCH parameter, pass
4631 to read_objc_class, read_objc_methlist_nmethods, and
4632 read_objc_methlist_method.
4633 (find_implementation): Add GDBARCH parameter, pass to
4634 read_objc_object and find_implementation_from_class.
4635 (resolve_msgsend, resolve_msgsend_stret): Pass architecture
4636 to find_implementation.
4637 (resolve_msgsend_super, resolve_msgsend_super_stret): Pass
4638 architecture to read_objc_super and find_implementation_from_class.
4639
4640 * ppc64-linux-tdep.c (ppc64_desc_entry_point): Add GDBARCH parameter.
4641 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target,
4642 ppc64_standard_linkage3_target): Pass architecture to
4643 ppc64_desc_entry_point.
4644 * rs6000-tdep.c (bl_to_blrl_insn_p): Add BYTE_ORDER parameter.
4645 (skip_prologue): Pass byte order to bl_to_blrl_insn_p.
4646 (rs6000_fetch_instruction): Add GDBARCH parameter.
4647 (rs6000_skip_stack_check): Add GDBARCH parameter, pass to
4648 rs6000_fetch_instruction.
4649 (skip_prologue): Pass architecture to rs6000_fetch_instruction.
4650
4651 * remote-mips.c (mips_store_word): Return old_contents as host
4652 integer value instead of target bytes.
4653
4654 * s390-tdep.c (struct s390_prologue_data): Add BYTE_ORDER member.
4655 (s390_analyze_prologue): Initialize it.
4656 (extend_simple_arg): Add GDBARCH parameter.
4657 (s390_push_dummy_call): Pass architecture to extend_simple_arg.
4658
4659 * scm-lang.c (scm_get_field): Add BYTE_ORDER parameter.
4660 * scm-lang.h (scm_get_field): Add BYTE_ORDER parameter.
4661 (SCM_CAR, SCM_CDR): Pass SCM_BYTE_ORDER to scm_get_field.
4662 * scm-valprint.c (scm_scmval_print): Likewise.
4663 (scm_scmlist_print, scm_ipruk, scm_scmval_print): Define
4664 SCM_BYTE_ORDER.
4665
4666 * sh64-tdep.c (look_for_args_moves): Add GDBARCH parameter.
4667 (sh64_skip_prologue_hard_way): Add GDBARCH parameter, pass to
4668 look_for_args_moves.
4669 (sh64_skip_prologue): Pass architecture to
4670 sh64_skip_prologue_hard_way.
4671 * sh-tdep.c (sh_analyze_prologue): Add GDBARCH parameter.
4672 (sh_skip_prologue): Pass architecture to sh_analyze_prologue.
4673 (sh_frame_cache): Likewise.
4674
4675 * solib-irix.c (extract_mips_address): Add GDBARCH parameter.
4676 (fetch_lm_info, irix_current_sos, irix_open_symbol_file_object):
4677 Pass architecture to extract_mips_address.
4678
4679 * sparc-tdep.h (sparc_fetch_wcookie): Add GDBARCH parameter.
4680 * sparc-tdep.c (sparc_fetch_wcookie): Add GDBARCH parameter.
4681 (sparc_supply_rwindow, sparc_collect_rwindow): Pass architecture
4682 to sparc_fetch_wcookie.
4683 (sparc32_frame_prev_register): Likewise.
4684 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4685 * sparc32nbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4686 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4687
4688 * spu-tdep.c (spu_analyze_prologue): Add GDBARCH parameter.
4689 (spu_skip_prologue): Pass architecture to spu_analyze_prologue.
4690 (spu_virtual_frame_pointer): Likewise.
4691 (spu_frame_unwind_cache): Likewise.
4692 (info_spu_mailbox_list): Add BYTE_ORER parameter.
4693 (info_spu_mailbox_command): Pass byte order to info_spu_mailbox_list.
4694 (info_spu_dma_cmdlist): Add BYTE_ORER parameter.
4695 (info_spu_dma_command, info_spu_proxydma_command): Pass byte order
4696 to info_spu_dma_cmdlist.
4697
4698 * symfile.c (read_target_long_array): Add GDBARCH parameter.
4699 (simple_read_overlay_table, simple_read_overlay_region_table,
4700 simple_overlay_update_1): Pass architecture to read_target_long_array.
4701
4702 * v850-tdep.c (v850_analyze_prologue): Add GDBARCH parameter.
4703 (v850_frame_cache): Pass architecture to v850_analyze_prologue.
4704
4705 * xstormy16-tdep.c (xstormy16_analyze_prologue): Add GDBARCH
4706 parameter.
4707 (xstormy16_skip_prologue, xstormy16_frame_cache): Pass architecture
4708 to xstormy16_analyze_prologue.
4709 (xstormy16_resolve_jmp_table_entry): Add GDBARCH parameter.
4710 (xstormy16_find_jmp_table_entry): Likewise.
4711 (xstormy16_skip_trampoline_code): Pass architecture to
4712 xstormy16_resolve_jmp_table_entry.
4713 (xstormy16_pointer_to_address): Likewise.
4714 (xstormy16_address_to_pointer): Pass architecture to
4715 xstormy16_find_jmp_table_entry.
4716
4717 * xtensa-tdep.c (call0_track_op): Add GDBARCH parameter.
4718 (call0_analyze_prologue): Add GDBARCH parameter, pass to
4719 call0_track_op.
4720 (call0_frame_cache): Pass architecture to call0_analyze_prologue.
4721 (xtensa_skip_prologue): Likewise.
4722
5af949e3
UW
47232009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
4724
4725 * defs.h (strlen_paddr, paddr, paddr_nz): Remove.
4726 (paddress): Add GDBARCH parameter.
4727 * utils.c (strlen_paddr, paddr, paddr_nz): Remove.
4728 (paddress): Add GDBARCH parameter, use it instead of current_gdbarch.
4729 * ui-out.h (ui_out_field_core_addr): Add GDBARCH parameter.
4730 * ui-out.c (ui_out_field_core_addr): Add GDBARCH parameter,
4731 use it instead of current_gdbarch.
4732
4733 Update calls to ui_out_field_core_addr to pass architecture:
4734 * ada-lang.c (print_one_exception): Update.
4735 * breakpoint.c (print_one_breakpoint_location,
4736 print_one_exception_catchpoint): Update.
4737 * disasm.c (dump_insns): Update.
4738 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4739 * mi/mi-main.c (mi_cmd_data_read_memory): Update.
4740 * mi/mi-symbol-cmds.c: Include "objfiles.h".
4741 (mi_cmd_symbol_list_lines): Update.
4742 * stack.c (print_frame_info, print_frame): Update.
4743
4744 Update callers of paddress to pass architecture:
4745 * ada-tasks.c (info_task): Update.
4746 * ada-valprint.c (ada_val_print_1): Update.
4747 * annotate.c (annotate_source, annotate_frame_begin): Update.
4748 * breakpoint.c (insert_bp_location, describe_other_breakpoints,
4749 mention): Update.
4750 * cli/cli-cmds.c (edit_command, list_command, print_disassembly):
4751 Update.
4752 * corefile.c (memory_error): Update.
4753 * c-valprint.c (print_function_pointer_address, c_val_print): Update.
4754 * disasm.c (dis_asm_print_address): Update.
4755 * exec.c (print_section_info): Update.
4756 * f-valprint.c (f_val_print): Update.
4757 * infcmd.c: Include "arch-utils.h".
4758 (jump_command, program_info): Update.
4759 * linux-fork.c: Include "arch-utils.h".
4760 (info_forks_command): Update.
4761 * m2-valprint.c (print_function_pointer_address,
4762 print_unpacked_pointer, print_variable_at_address,
4763 m2_val_print): Update.
4764 * m32r-rom.c (m32r_load_section, m32r_load, m32r_upload_command):
4765 Update.
4766 * printcmd.c (print_address, print_address_demangle, address_info):
4767 Update.
4768 * p-valprint.c (pascal_val_print): Update.
4769 * source.c: Include "arch-utils.h".
4770 (line_info): Update.
4771 * stack.c (frame_info, print_block_frame_labels): Update.
4772 * symfile.c (add_symbol_file_command, list_overlays_command): Update.
4773 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1,
4774 print_symbol, print_partial_symbols, maintenance_info_psymtabs,
4775 maintenance_check_symtabs): Update.
4776 * symtab.c (find_pc_sect_symtab): Update.
4777 * target.c (deprecated_debug_xfer_memory): Update.
4778 * tracepoint.c (scope_info): Update.
4779 * tui/tui-stack.c (tui_make_status_line): Update.
4780 * valprint.c (val_print_string): Update.
4781
4782 Update callers of paddr_nz to use paddress instead (keeping
4783 user-visible output identical):
4784 * alpha-tdep.c (alpha_heuristic_proc_start): Update.
4785 * amd64-tdep.c (fixup_riprel, amd64_displaced_step_copy_insn,
4786 amd64_displaced_step_fixup): Update.
4787 * arch-utils.c (simple_displaced_step_copy_insn): Update.
4788 * auxv.c (fprint_target_auxv): Update.
4789 * breakpoint.c (insert_single_step_breakpoint): Update.
4790 * buildsym.c (finish_block): Update.
4791 * cli/cli-dump.c (restore_section_callback): Update.
4792 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4793 * frame.c (frame_unwind_register_value): Update.
4794 * gcore.c (gcore_create_callback): Update.
4795 * hppa-tdep.c (hppa_frame_cache, hppa_skip_trampoline_code): Update.
4796 * i386-tdep.c (i386_displaced_step_fixup, i386_record_modrm,
4797 i386_record_lea_modrm_addr, i386_record_lea_modrm,
4798 i386_process_record): Update.
4799 * ia64-tdep.c (ia64_frame_this_id, ia64_sigtramp_frame_this_id,
4800 ia64_libunwind_frame_this_id, ia64_libunwind_sigtramp_frame_this_id,
4801 ia64_dummy_id, ia64_access_reg, ia64_access_rse_reg): Update.
4802 * infrun.c (displaced_step_prepare, displaced_step_fixup,
4803 handle_inferior_event, insert_step_resume_breakpoint_at_sal,
4804 insert_longjmp_resume_breakpoint): Update.
4805 * linux-nat.c (linux_nat_find_memory_regions): Update.
4806 * linux-record.c (record_linux_system_call): Update.
4807 * mips-tdep.c (heuristic_proc_start, mips_eabi_push_dummy_call,
4808 mips_n32n64_push_dummy_call, mips_o32_push_dummy_call,
4809 mips_o64_push_dummy_call): Update.
4810 * monitor.c (monitor_error, monitor_remove_breakpoint): Update.
4811 * record.c (record_arch_list_add_mem, record_wait,
4812 record_xfer_partial): Update.
4813 * remote-mips.c (mips_fetch_word, mips_check_lsi_error,
4814 mips_common_breakpoint): Update.
4815 * remote-sim.c (gdbsim_xfer_inferior_memory): Update.
4816 * rs6000-tdep.c (ppc_displaced_step_fixup): Update.
4817 * solib-som.c (som_current_sos): Update.
4818 * symfile.c (load_progress, generic_load): Update.
4819 * symfile-mem.c (add_vsyscall_page): Update.
4820 * valops.c (value_fetch_lazy): Update.
4821 * windows-tdep.c (windows_xfer_shared_library): Update.
4822
4823 Update callers of paddr_nz to use paddress instead (changing
4824 user-visible output to make it more correct):
4825 * dwarf2loc.c (locexpr_describe_location): Update.
4826 * ia64-tdep.c (ia64_memory_insert_breakpoint,
4827 ia64_memory_remove_breakpoint): Update.
4828 * jv-valprint.c (java_value_print): Update.
4829 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
4830 * monitor.c (monitor_read_memory): Update.
4831
4832 Update callers of paddr to use paddress instead (changing
4833 user-visible output to make it more correct):
4834 * arm-tdep.c (arm_push_dummy_call): Update.
4835 * breakpoint.c (insert_bp_location, create_thread_event_breakpoint,
4836 create_breakpoint): Update.
4837 * darwin-nat-info.c (darwin_debug_regions): Update.
4838 * dcache.c (dcache_info): Update.
4839 * dsrec.c (load_srec, make_srec): Update.
4840 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program,
4841 dwarf2_frame_cache): Update.
4842 * gcore.c (gcore_copy_callback): Update.
4843 * gnu-nat.c (gnu_xfer_memory): Update.
4844 * mips-linux-nat.c (mips_show_dr): Update.
4845 * monitor.c (monitor_write_memory, monitor_insert_breakpoint,
4846 monitor_remove_breakpoint): Update.
4847 * remote.c (compare_sections_command): Update.
4848 * remote-m32r-sdi.c (m32r_xfer_memory, m32r_insert_breakpoint,
4849 m32r_remove_breakpoint, m32r_insert_watchpoint,
4850 m32r_remove_watchpoint): Update.
4851 * sol-thread.c (info_cb): Update.
4852 * symfile.c (load_progress): Update.
4853
4854 Update callers of paddress or paddr_nz to use hex_string instead
4855 (changes output of internal/error/debug messages only):
4856 * dwarf2read.c (dump_die_shallow): Update.
4857 * frame.c (fprint_field, fprint_frame, frame_pc_unwind,
4858 get_frame_func, create_new_frame): Update.
4859 * hppa-tdep.c (find_unwind_entry, unwind_command): Update.
4860 * ia64-tdep.c (get_kernel_table, ia64_find_proc_info_x,
4861 ia64_get_dyn_info_list): Update.
4862 * maint.c (maintenance_translate_address): Update.
4863 * mi/mi-cmd-var.c (mi_cmd_var_create): Update.
4864 * target.c (target_flash_erase): Update.
4865
4866 Update callers of paddr/paddr_nz to use phex/phex_nz instead,
4867 using an appropriate address size. Remove use of strlen_paddr.
4868 * exec.c (exec_files_info): Update.
4869 * i386-nat.c (i386_show_dr): Update.
4870 * remote.c (remote_flash_erase): Update.
4871 * m32r-rom.c (m32r_load_section): Update.
4872 * monitor.c (monitor_vsprintf, monitor_store_register): Update.
4873 * remote.c (remote_check_symbols, remote_search_memory): Update.
4874 * remote-mips.c (mips_request, mips_common_breakpoint): Update.
4875 * scm-valprint.c (scm_ipruk, scm_scmval_print): Update.
4876 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Update.
4877 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs,
4878 sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs,
4879 sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4880 sh_dsp_show_regs): Update.
4881 * xcoffsolib.c (sharedlibrary_command): Update.
4882
4883
4884 * maint.c (maint_print_section_info): Add ADDR_SIZE parameter.
4885 Use hex_string_custom instead of paddr.
4886 (print_bfd_section_info): Pass address size.
4887 (print_objfile_section_info): Likewise.
4888
4889 * annotate.h (annotate_source): Add GDBARCH parameter.
4890 (annotate_frame_begin): Likewise.
4891 * annotate.c (annotate_source): Add GDBARCH parameter.
4892 (annotate_frame_begin): Likewise.
4893 * source.c (identify_source_line): Update call to annotate_source.
4894 * stack.c (print_frame_info, print_frame): Update call to
4895 annotate_frame_begin.
4896
4897 * breakpoint.c (describe_other_breakpoints): Add GDBARCH parameter.
4898 (create_breakpoint, create_ada_exception_breakpoint): Update call.
4899
4900 * stack.c (print_block_frame_labels): Add GDBARCH parameter.
4901 (print_frame_label_vars): Update call.
4902
4903 * symmisc.c (print_partial_symbols): Add GDBARCH parameter.
4904 (dump_psymtab): Update call to print_partial_symbols.
4905 (struct print_symbol_args): Add GDBARCH member.
4906 (dump_symtab_1): Set print_symbol_args architecture member.
4907 (print_symbol): Use it.
4908
4909 * windows-tdep.h (windows_xfer_shared_library): Add GDBARCH
4910 parameter.
4911 * windows-tdep.c (windows_xfer_shared_library): Likewise.
4912 * i386-cygwin-tdep.c (struct cpms_data): Add GDBARCH member.
4913 (core_process_module_section): Pass architecture from cpms_data to
4914 windows_xfer_shared_library.
4915 (windows_core_xfer_shared_libraries): Initialize cmps_data
4916 architecture member.
4917 * windows-nat.c (windows_xfer_shared_libraries): Pass architecture
4918 to windows_xfer_shared_library.
4919
4920 * defs.h (print_address): Add GDBARCH parameter.
4921 * printcmd.c (print_address): Add GDBARCH parameter.
4922 (print_scalar_formatted, do_examine): Update call.
4923 * findcmd.c (find_command): Update call.
4924 * tracepoint.c: Include "arch-utils.h".
4925 (trace_find_line_command): Update call.
4926 * tui/tui-disasm.c (tui_disassemble): Update call.
4927
4928 * value.h (print_address_demangle): Add GDBARCH parameter.
4929 * printcmd.c (print_address_demangle): Add GDBARCH parameter.
4930 * c-valprint.c (print_function_pointer_address, c_val_print):
4931 Update call.
4932 * f-valprint.c (f_val_print): Update call.
4933 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update call.
4934 * jv-valprint.c (java_val_print): Update call.
4935 * m2-valprint.c (print_function_pointer_address, m2_val_print):
4936 Update call.
4937 * p-valprint.c (pascal_val_print): Update call.
4938
4939 * disasm.c (gdb_disassemble_info): Install architecture into
4940 di.application_data field.
4941
13274fc3
UW
49422009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
4943
4944 * disasm.h (gdb_disassembly): Add GDBARCH parameter.
4945 (gdb_print_insn): Likewise.
4946 * disasm.c (dump_insns): Add GDBARCH parameter. Use it instead
4947 of current_gdbarch.
4948 (do_mixed_source_and_assembly): Add GDBARCH parameter. Pass to
4949 dump_insns.
4950 (do_assembly_only): Likewise.
4951 (gdb_disassembly): Add GDBARCH parameter. Use it instead of
4952 current_gdbarch. Pass to subroutines.
4953 (gdb_print_insn): Add GDBARCH parameter. Use it instead of
4954 current_gdbarch.
4955
4956 * stack.c (struct gdb_disassembly_stub_args): Add GDBARCH member.
4957 (gdb_disassembly_stub): Pass architecture to gdb_disassembly.
4958 (do_gdb_disassembly): Add GDBARCH argument. Store into args.
4959 (print_frame_info): Pass architecture to do_gdb_disassembly.
4960
4961 * printcmd.c (print_formatted): Pass architecture to gdb_print_insn.
4962
4963 * mi/mi-cmd-disas.c: Include "arch-utils.h"
4964 (mi_cmd_disassemble): Pass architecture to gdb_disassembly.
4965
4966 * cli/cli-cmds.c: Include "arch-utils.h".
4967 (print_disassembly): Add GDBARCH parameter. Pass to gdb_disassembly
4968 and tui_show_assembly.
4969 (disassemble_current_function): Pass architecture to
4970 tui_get_low_disassembly_address and print_disassembly.
4971 (disassemble_command): Pass architecture to
4972 tui_get_low_disassembly_address and print_disassembly.
4973
4974 * tui/tui.c (tui_show_assembly): Add GDBARCH parameter. Pass to
4975 tui_update_source_windows_with_addr.
4976
4977 * tui/tui-data.h (struct tui_locator_element): Add GDBARCH member.
4978 (struct tui_source_info): Likewise.
4979 * tui/tui-data.c (tui_clear_win_detail): Clear source_info.gdbarch.
4980
4981 * tui/tui-disasm.c (tui_disassemble): Add GDBARCH parameter.
4982 Pass to gdb_print_insn.
4983 (tui_find_disassembly_address): Add GDBARCH parameter. Pass to
4984 tui_disassemble.
4985 (tui_set_disassem_content): Add GDBARCH parameter. Install into
4986 source_info.gdbarch. Pass to tui_disassemble.
4987 (tui_show_disassem): Add GDBARCH parameter. Pass to
4988 tui_update_source_window.
4989 (tui_show_disassem_and_update_source): Add GDBARCH parameter. Pass to
4990 tui_show_disassem and tui_update_source_window.
4991
4992 (tui_get_begin_asm_address): Return locator architecture in addition
4993 to locator PC value.
4994
4995 (tui_get_low_disassembly_address): Add GDBARCH parameter. Pass to
4996 tui_get_low_disassembly_address.
4997
4998 (tui_vertical_disassem_scroll): Pass architecture to subroutines.
4999
5000 * tui/tui-disasm.h (tui_set_disassem_content): Add GDBARCH parameter.
5001 (tui_show_disassem): Likewise.
5002 (tui_show_disassem_and_update_source): Likewise.
5003 (tui_get_begin_asm_address): Return architecture and PC value.
5004
5005 * tui/tui.h (tui_get_low_disassembly_address): Add GDBARCH parameter.
5006 (tui_show_assembly): Add GDBARCH parameter.
5007
5008 * tui/tui-layout.c (extract_display_start_addr): Return current window
5009 architecture in addition to current PC value.
5010
5011 (tui_set_layout): Update calls to tui_get_low_disassembly_address and
5012 extract_display_start_addr. Pass architecture to
5013 tui_update_source_windows_with_addr.
5014
5015 * tui/tui-source.c: Include "objfiles.h".
5016 (tui_set_source_content): Initialize window architecture.
5017 (tui_show_symtab_source): Add GDBARCH parameter. Pass to
5018 tui_update_source_window_as_is
5019
5020 * tui/tui-source.h (tui_show_symtab_source): Add GDBARCH parameter.
5021
5022 * tui/tui-stack.c (tui_set_locator_info): Add GDBARCH parameter.
5023 Install locator architecture.
5024 (tui_set_locator_filename): Update call.
5025 (tui_show_frame_info): Pass architecture to tui_set_locator_info
5026 and subroutines.
5027
5028 * tui/tui-win.c (make_visible_with_new_height): Pass architecture
5029 to tui_update_source_window.
5030
5031 * tui/tui-winsource.c: Include "objfiles.h".
5032 (tui_display_main): Update call to tui_get_begin_asm_address.
5033 Pass architecture to tui_update_source_windows_with_addr.
5034 (tui_update_source_window): Add GDBARCH parameter. Pass to
5035 tui_update_source_window_as_is.
5036 (tui_update_source_window_as_is): Add GDBARCH parameter.
5037 Pass to tui_set_disassem_content.
5038 (tui_update_source_windows_with_addr): Add GDBARCH parameter.
5039 Pass to subroutines.
5040 (tui_update_source_windows_with_line): Pass objfile architecture
5041 to subroutines.
5042 (tui_horizontal_source_scroll): Pass architecture to
5043 tui_update_source_window_as_is.
5044
5045 * tui/tui-winsource.h (tui_update_source_window): Add GDBARCH
5046 parameter.
5047 (tui_update_source_window_as_is): Likewise.
5048 (tui_update_source_windows_with_addr): Likewise.
5049
a6d9a66e
UW
50502009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5051
5052 * breakpoint.h (struct breakpoint): New member GDBARCH.
5053 * breakpoint.c: Include "arch-utils.h".
5054 (set_raw_breakpoint_without_location): Add GDBARCH parameter.
5055 Use it to set breakpoint architecture.
5056 (set_raw_breakpoint): Add GDBARCH parameter.
5057 (create_internal_breakpoint): Likewise.
5058 (create_catchpoint): Likewise.
5059 (create_fork_vfork_event_catchpoint): Likewise.
5060 (create_breakpoint): Likewise.
5061 (create_breakpoints): Likewise.
5062 (break_command_really): Likewise.
5063 (create_ada_exception_breakpoint): Likewise.
5064 Update local callers to pass architecture:
5065 (create_internal_breakpoint): Update.
5066 (create_overlay_event_breakpoint): Update.
5067 (create_longjmp_master_breakpoint): Update.
5068 (create_thread_event_breakpoint): Update.
5069 (create_solib_event_breakpoint): Update.
5070 (create_catchpoint): Update.
5071 (create_fork_vfork_event_catchpoint): Update.
5072 (set_momentary_breakpoint): Update.
5073 (clone_momentary_breakpoint): Update.
5074 (create_breakpoint): Update.
5075 (create_breakpoints): Update.
5076 (break_command_really): Update.
5077 (break_command_1): Update.
5078 (set_breakpoint): Update.
5079 (watch_command_1): Update.
5080 (catch_fork_command_1): Update.
5081 (catch_exec_commnd_1): Update.
5082 (handle_gnu_v3_exceptions): Update.
5083 (create_ada_exception_breakpoint): Update.
5084 (catch_ada_exception_command): Update.
5085 (catch_assert_command): Update.
5086 (trace_command): Update.
5087
5088 * breakpoint.h (struct bp_location): New member GDBARCH.
5089 * breakpoint.c (get_sal_arch): New function.
5090 (set_raw_breakpoint): Set location architecture.
5091 (add_location_to_breakpoint): Likewise.
5092 (clone_momentary_breakpoint): Likewise.
5093 (watch_command_1): Likewise.
5094 (update_watchpoint): Likewise.
5095 (bp_loc_is_permanent): Use location architecture instead of
5096 current_gdbarch.
5097 (adjust_breakpoint_address): Add GDBARCH parameter; use it
5098 instead of current_gdbarch.
5099 Update callers of adjust_breakpoint_address to pass
5100 breakpoint location architecture:
5101 (set_raw_breakpoint): Update.
5102 (watch_command_1): Update.
5103
5104 * tracepoint.c: (collect_symbol): Add GDBARCH parameter, use instead
5105 of current_gdbarch.
5106 (add_local_symbols): Add GDBARCH parameter. Pass to collect_symbol.
5107 (encode_actions): Pass tracepoint architecture to add_local_symbols
5108 (encode_actions): Use tracepoint architecture instead of
5109 current_gdbarch. Pass it to add_local_symbols and collect_symbol.
5110
5111 * breakpoint.h (struct breakpoint_ops): Replace last_addr parameter
5112 of print_one callback with last_loc.
5113 * breakpoint.c (print_one_breakpoint_location): Replace last_addr
5114 parameter with last_loc.
5115 (print_one_breakpoint): Likewise.
5116 (do_captured_breakpoint_query): Update call.
5117 (breakpoint_1): Pass last_loc instead of last_addr to
5118 print_one_breakpoint. Pass last location architecture instead of
5119 current_gdbarch to set_next_address.
5120 Update all implementations of the print_one callback:
5121 * breakpoint.c (print_one_catch_fork): Update.
5122 (print_one_catch_vfork): Update.
5123 (print_one_catch_exec): Update.
5124 (print_one_exception_catchpoint): Update.
5125 * ada-lang.c (print_one_exception): Update.
5126 (print_one_catch_exception): Update.
5127 (print_one_catch_exception_unhandled): Update.
5128 (print_one_catch_assert): Update.
5129
5130 * breakpoint.c (print_one_breakpoint_location): Add PRINT_ADDRESS_BITS
5131 parameter. Use it instead of gdbarch_addr_bit (current_gdbarch).
5132 (print_one_breakpoint): Add PRINT_ADDRESS_BITS parameter and pass it
5133 to print_one_breakpoint_location.
5134 (breakpoint_address_bits): New function.
5135 (do_captured_breakpoint_query): Compute number of address bits to print
5136 and pass it to print_one_breakpoint.
5137 (breakpoint_1): Likewise. Use it instead of current_gdbarch.
5138
5139 * breakpoint.h (create_thread_event_breakpoint): Add GDBARCH.
5140 * breakpoint.c (create_thread_event_breakpoint): Likewise.
5141 Update callers to create_thread_event_breakpoint:
5142 * aix-thread.c (pd_enable): Update.
5143 * linux-thread-db.c (enable_thread_event): Update.
5144
5145 * breakpoint.h (create_solib_event_breakpoint): Add GDBARCH.
5146 * breakpoint.c (create_solib_event_breakpoint): Likewise.
5147 Update callers to create_solib_event_breakpoint:
5148 * solib-frv.c (enable_break, enable_break2): Update.
5149 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
5150 * solib-som.c (som_solib_create_inferior_hook): Update.
5151 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
5152 * solib-svr4.c (enable_break): Update.
5153
5154 * breakpoint.h (insert_single_step_breakpoint): Add GDBARCH.
5155 * breakpoint.c (insert_single_step_breakpoint): Likewise.
5156 Update callers to insert_single_step_breakpoint:
5157 * alpha-tdep.c (alpha_software_single_step): Update.
5158 * arm-linux-tdep.c (arm_linux_software_single_step): Update.
5159 * arm-tdep.c (arm_software_single_step): Update.
5160 * cris-tdep.c (cris_software_single_step): Update.
5161 * rs6000-aix-tdep.c (rs6000_software_single_step): Update.
5162 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Update.
5163 * sparc-tdep.c (sparc_software_single_step): Update.
5164 * spu-tdep.c (spu_software_single_step): Update.
5165 * mips-tdep.c (deal_with_atomic_sequence): Add GDBARCH parameter.
5166 Pass it to insert_single_step_breakpoint.
5167 (mips_software_single_step): Pass architecture to
5168 deal_with_atomic_sequence and insert_single_step_breakpoint.
5169
5170 * breakpoint.h (deprecated_insert_raw_breakpoint): Add GDBARCH.
5171 (deprecated_remove_raw_breakpoint): Likewise.
5172 * breakpoint.c (deprecated_insert_raw_breakpoint): Add GDBARCH.
5173 (deprecated_remove_raw_breakpoint): Likewise.
5174 Update callers to deprecated_insert_raw_breakpoint and
5175 deprecated_remove_raw_breakpoint:
5176 * breakpoint.c (single_step_gdbarch): New static variable.
5177 (insert_single_step_breakpoint): Pass GDBARCH parameter to
5178 deprecated_insert_raw_breakpoint. Store it in single_step_gdbarch.
5179 (remove_single_step_breakpoints): Pass architecture stored in
5180 single_step_gdbarch to deprecated_remove_raw_breakpoint.
5181 * rs6000-nat.c (exec_one_dummy_insn): Update.
5182 * solib-irix.c (enable_break, disable_break): Update.
5183 * procfs.c (procfs_mourn_inferior): Update.
5184 (remove_dbx_link_breakpoint): Update.
5185
5186 * breakpoint.h (set_breakpoint): Add GDBARCH parameter.
5187 (set_momentary_breakpoint, set_momentary_breakpoint_at_pc): Likewise.
5188 * breakpoint.c (set_breakpoint): Add GDBARCH parameter.
5189 (set_momentary_breakpoint, set_momentary_breakpoint_at_pc): Likewise.
5190 Update callers to set_breakpoint, set_momentary_breakpoint and
5191 set_momentary_breakpoint_at_pc:
5192 * breakpoint.c (set_momentary_breakpoint_at_pc): Update.
5193 (until_break_command): Update.
5194 * infcall.c (call_function_by_hand): Update.
5195 * infcmd.c (finish_backward, finish_forward): Update.
5196 * infrun.c (insert_step_resume_breakpoint_at_sal): Add GDBARCH
5197 parameter. Pass it to set_momentary_breakpoint.
5198 (insert_longjmp_resume_breakpoint): Add GDBARCH parameter.
5199 Pass it to set_momentary_breakpoint_at_pc.
5200 (handle_inferior_event): Update.
5201 (insert_step_resume_breakpoint_at_frame): Update.
5202 (insert_step_resume_breakpoint_at_caller): Update..
5203 * mi/mi-cmd-break.c: Include "arch-utils.h".
5204 (mi_cmd_break_insert): Update.
5205
5206 * target.h (struct target_ops): Add GDBARCH parameter to
5207 to_insert_breakpoint, to_remove_breakpoint, to_insert_hw_breakpoint,
5208 and to_remove_hw_breakpoint members.
5209 (target_insert_breakpoint, target_remove_breakpoint,
5210 target_insert_hw_breakpoint, target_remove_hw_breakpoint): Add GDBARCH
5211 parameter, pass to target routine.
5212 (memory_remove_breakpoint, memory_insert_breakpoint): Add GDBARCH
5213 parameter.
5214 * target.c (debug_to_insert_breakpoint, debug_to_remove_breakpoint,
5215 debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint): Add
5216 GDBARCH parameter, pass to target routine.
5217 (update_current_target): Update function signature.
5218 * breakpoint.c (insert_bp_location, remove_breakpoint,
5219 deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint):
5220 Pass architecture to target_ routines.
5221 Update all implementations of the target breakpoint routines to take
5222 GDBARCH parameter and use it instead of GDBARCH as appropriate:
5223 * corelow.c (ignore): Update.
5224 * exec.c (ignore): Update.
5225 * mem-break.c (memory_insert_breakpoint): Update.
5226 (memory_remove_breakpoint): Update.
5227 * monitor.c (monitor_insert_breakpoint): Update.
5228 (monitor_remove_breakpoint): Update.
5229 * record.c (record_insert_breakpoint): Update.
5230 (record_beneath_to_insert_breakpoint): Update.
5231 (record_remove_breakpoint): Update.
5232 (record_beneath_to_remove_breakpoint): Update.
5233 * remote.c (remote_insert_breakpoint): Update.
5234 (remote_remove_breakpoint): Update.
5235 (remote_insert_hw_breakpoint): Update.
5236 (remote_remove_hw_breakpoint): Update.
5237 * remote-m32r-sdi.c (m32r_insert_breakpoint): Update.
5238 (m32r_remove_breakpoint): Update.
5239 * remote-mips.c (mips_insert_breakpoint): Update.
5240 (mips_remove_breakpoint): Update.
5241 * i386-nat.c (i386_insert_hw_breakpoint): Update.
5242 (i386_remove_hw_breakpoint): Update.
5243 * nto-procfs.c (procfs_insert_breakpoint): Update.
5244 (procfs_remove_breakpoint): Update.
5245 (procfs_insert_hw_breakpoint): Update.
5246 (procfs_remove_hw_breakpoint): Update.
5247
36f15f55
UW
52482009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5249
5250 * frame.h (frame_unwind_arch): New.
5251 (frame_unwind_caller_arch): Likewise.
5252 * frame-unwind.h (frame_prev_arch_ftype): New type.
5253 (struct frame_unwind): New member prev_arch.
5254 * frame.c (struct frame_info): New member prev_arch.
5255 (frame_unwind_arch): New function.
5256 (frame_unwind_caller_arch): Likewise..
5257 (get_frame_arch): Reimplement in terms of frame_unwind_arch.
5258 * sentinel-frame.c (sentinel_frame_prev_arch): New function.
5259 (sentinel_frame_unwinder): Install it.
5260
5261 * frame.c (frame_pc_unwind): Use frame_unwind_arch instead
5262 of get_frame_arch.
5263 (frame_unwind_register_value): Likewise.
5264 (frame_unwind_register_signed): Likewise.
5265 (frame_unwind_register_unsigned): Likewise.
5266 * frame-unwind.c (frame_unwind_got_optimized): Likewise.
5267 (frame_unwind_got_register): Likewise.
5268 (frame_unwind_got_constant): Likewise.
5269 (frame_unwind_got_bytes): Likewise.
5270 (frame_unwind_got_address): Likewise.
5271
5272 * frame.h (enum frame_type): New value ARCH_FRAME.
5273 * frame.c (fprint_frame_type): Handle ARCH_FRAME.
5274 * stack.c (print_frame_info): Likewise.
5275
c2250ad1
UW
52762009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5277
5278 * target.h (struct target_ops): New member to_thread_architecture.
5279 (target_thread_architecture): New macro.
5280 * target.c (update_current_target): Inherit to_thread_architecture.
5281 (default_thread_architecture): New function.
5282 (debug_to_thread_architecture): New function.
5283 (setup_target_debug): Handle to_thread_architecture.
5284
5285 * regcache.h (get_thread_arch_regcache): New.
5286 * regcache.c (struct regcache_list): New data type.
5287 (current_regcache): Hold regcache list instead of single regcache.
5288 (current_thread_ptid, current_thread_arch): New static variables.
5289 (get_thread_arch_regcache): New function.
5290 (get_thread_regcache): Use it. Call target_thread_architecture.
5291 (regcache_thread_ptid_changed): Update to current_regcache changes.
5292 (registers_changed): Likewise. Reset current_thread_arch and
5293 current_thread_ptid.
5294
5295 * remote.c (remote_wait): Access target registers in target_gdbarch.
5296 * linux-nat.c (linux_nat_do_thread_registers): Likewise.
5297 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5298 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5299 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5300 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5301 * solib-svr4.c (enable_break): Likewise.
5302 (svr4_relocate_main_executable): Likewise.
5303
d452c4bc
UW
53042009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5305
5306 * python/python-internal.h (struct language_defn): Declare.
5307 (python_gdbarch, python_language): Likewise.
5308 (ensure_python_env): Add prototype.
5309 (make_cleanup_py_restore_gil): Remove prototype.
5310
5311 * python/python.c: Include "arch-utils.h", "value.h" and "language.h".
5312 (python_gdbarch, python_language): New global variables.
5313 (struct python_env): New data type.
5314 (ensure_python_env, restore_python_env): New functions.
5315 (eval_python_from_control_command): Call ensure_python_env to
5316 install current architecture and language.
5317 (python_command, gdbpy_new_objfile): Likewise.
5318 * python/python-cmd.c: Include "arch-utils.h" and "language.h".
5319 (cmdpy_destroyer, cmdpy_function, cmdpy_completer): Call
5320 ensure_python_env.
5321 * python/python-type.c (clean_up_objfile_types): Likewise.
5322 * python/python-objfile.c: Include "language.h".
5323 (clean_up_objfile): Call ensure_python_env.
5324 * python/python-prettyprint.c (apply_val_pretty_printer): Likewise.
5325 (apply_varobj_pretty_printer): Do not call PyGILState_Ensure.
5326 * varobj.c (varobj_ensure_python_env): New helper function.
5327 (varobj_get_display_hint, update_dynamic_varobj_children,
5328 install_default_visualizer, varobj_set_visualizer, free_variable,
5329 value_get_print_value): Call it.
5330 (value_get_print_value): Add varobj argument instead of pretty
5331 printer argument. Update all callers.
5332
5333 * python/python-utils.c (py_gil_restore, make_cleanup_py_restore_gil):
5334 Remove.
5335
5336 * value.h (internal_function_fn): Add GDBARCH and LANGUAGE argument.
5337 (call_internal_function): Likewise.
5338 * value.c (call_internal_function): Likewise. Pass to handler.
5339 * eval.c (evaluate_subexp_standard): Update call.
5340 * python/python-function.c: Include "language.h".
5341 (fnpy_call): Add GDBARCH and LANGAUAGE arguments and call
5342 make_cleanup_python_env.
5343
5344 * python/python-value.c (builtin_type_pyint, builtin_type_pyfloat,
5345 builtin_type_pylong, builtin_type_pybool, builtin_type_pychar,
5346 valpy_str): Use python_gdbarch and python_language instead of
5347 current_gdbarch and current_language.
5348 * python/python-type.c (typy_lookup_typename): Likewise.
5349
e17c207e
UW
53502009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5351
5352 * arch-utils.c (selected_byte_order): Return target_byte_order_user.
5353 (show_endian): Use target_byte_order_user if specified; otherwise
5354 use get_current_arch () instead of current_gdbarch.
5355 (show_architecture): Use set_architecture_string if specified;
5356 otherwise use get_current_arch () instead of current_gdbarch.
5357 (get_current_arch): New function.
5358 * arch-utils.h (get_current_arch): Add prototype.
5359
5360 * osabi.c (show_osabi): Use get_current_arch () instead of
5361 current_gdbarch.
5362
5363 * findcmd.c: Include "arch-utils.h".
5364 (parse_find_args): Add BIG_P argument. Use it instead of byte order
5365 of current_gdbarch.
5366 (find_command): Use get_current_arch () instead of current_gdbarch.
5367 Pass byte order to parse_find_args.
5368
5369 * maint.c: Include "arch-utils.h".
5370 (maintenance_print_architecture): Use get_current_arch () instead
5371 of current_gdbarch.
5372
5373 * reggroups.c: Include "arch-utils.h".
5374 (maintenance_print_reggroups): Use get_current_arch () instead
5375 of current_gdbarch.
5376
5377 * symfile.c: Include "arch-utils.h".
5378 (overlay_load_command): Use get_current_arch () instead of
5379 current_gdbarch.
5380
5381 * value.c: Include "arch-utils.h".
5382 (show_convenience): Use get_current_arch () instead of
5383 current_gdbarch.
5384
5385 * tui/tui-regs.c: Include "arch-utils.h".
5386 (tui_reg_next_command): Use get_current_arch () instead of
5387 current_gdbarch.
5388
5389 * mi/mi-main.c: Include "arch-utils.h".
5390 (mi_cmd_data_read_memory): Use get_current_arch () instead of
5391 current_gdbarch.
5392
5393 * parse.c: Include "arch-utils.h".
5394 (parse_exp_in_context): Use get_current_arch () instead of
5395 current_gdbarch.
5396
50810684
UW
53972009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5398
5399 * gdbtypes.c (make_pointer_type, make_reference_type,
5400 smash_to_memberptr_type, lookup_array_range_type, check_stub_method):
5401 Use type architecture instead of current_gdbarch.
5402
5403 * gdbtypes.h (address_space_name_to_int, address_space_int_to_name):
5404 Add GDBARCH paramter.
5405 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name):
5406 Add GDBARCH parameter. Use it instead of current_gdbarch.
5407 * c-typeprint.c (c_type_print_modifier): Update call.
5408 * parse.c (push_type_address_space): Likewise.
5409
5410 * findvar.c (extract_typed_address, store_typed_address): Use type
5411 architecture instead of current_gdbarch.
5412
5413 * value.c (value_as_address, unpack_field_as_long): Use type architecture
5414 instead of current_gdbarch.
5415
5416 * doublest.c (floatformat_from_length): Add GDBARCH argument. Use it
5417 instead of current_gdbarch.
5418 (floatformat_from_type): Pass type architecture.
5419
5420 * infcall.c (find_function_addr): Use type architecture instead
5421 of current_gdbarch.
5422
5423 * valarith.c (value_bitstring_subscript, value_x_binop, value_neg,
5424 value_bit_index): Use type architecture instead of current_gdbarch.
5425 * valops.c (value_cast, value_slice): Likewise.
5426
5427 * value.h (modify_field): Add TYPE argument.
5428 * value.c (modify_field): Add TYPE argument. Use type architecture
5429 instead of current_gdbarch.
5430 (set_internalvar_component): Likewise.
5431 * eval.c (evaluate_struct_tuple): Update call.
5432 * valops.c (value_assign): Likewise.
5433 * ada-lang.c (modify_general_field): Likewise. Add TYPE argument.
5434 (make_array_descriptor): Update calls.
5435 (move_bits): Add BITS_BIG_ENDIAN_P argument. Use it instead of
5436 current_gdbarch.
5437 (ada_value_assign, value_assign_to_component): Update calls.
5438 (decode_packed_array, ada_value_primitive_packed_val, ada_value_assign,
5439 value_assign_to_component): Use type arch instead of current_gdbarch.
5440
5441 * printcmd.c (float_type_from_length): Remove GDBARCH argument,
5442 use type architecture instead.
5443 (print_scalar_formatted, printf_command): Update calls. Use type
5444 architecture instead of current_gdbarch.
5445 * valprint.c (val_print_type_code_int): Use type architecture
5446 instead of current_gdbarch.
5447 * varobj.c (value_get_print_value): Likewise.
5448 * python/python-prettyprint.c (print_string_repr): Add GDBARCH
5449 argument. Use it instead of current_gdbarch.
5450 (apply_val_pretty_printer): Update call.
5451
5452 * ada-valprint.c (ada_val_print_1): Use type architecture instead
5453 of current_gdbarch.
5454 * c-valprint.c (print_function_pointer_address): Add GDBARCH argument.
5455 Use it instead of current_gdbarch.
5456 (c_val_print): Update calls passing type architecture.
5457 * f-valprint.c (f_val_print): Use type architecture instead of
5458 current_gdbarch.
5459 * jv-valprint (java_value_print): Likewise.
5460 * m2-valprint.c (print_function_pointer_address): Add GDBARCH argument.
5461 Use it instead of current_gdbarch.
5462 (print_unpacked_pointer): Update calls passing type architecture.
5463 * scm-valprint.c (scm_scmval_print): Use type architecture instead of
5464 current_gdbarch.
5465
5466 * gnu-v3-abi.c (get_class_arch): Remove.
5467 (gnuv3_rtti_type): Use get_type_arch instead of get_class_arch. Remove
5468 special-case check for Java classes.
5469 (gnuv3_virtual_fn_field, gnuv3_baseclass_offset, gnuv3_print_method_ptr,
5470 gnuv3_method_ptr_size, gnuv3_make_method_ptr, gnuv3_method_ptr_to_value):
5471 Use get_type_arch instead of get_class_arch.
5472
e9bb382b
UW
54732009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5474
5475 * gdbtypes.h (TYPE_OBJFILE_OWNED, TYPE_OWNER): New macros.
5476 (TYPE_OBJFILE, TYPE_ALLOC, TYPE_ZALLOC): Reimplement.
5477 (alloc_type_arch): Add prototype.
5478 (alloc_type_copy): Likewise.
5479 (get_type_arch): Likewise.
5480 (arch_type): Likewise.
5481 (arch_integer_type): Likewise.
5482 (arch_character_type): Likewise.
5483 (arch_boolean_type): Likewise.
5484 (init_float_type): Remove, replace by ...
5485 (arch_float_type): ... this.
5486 (init_complex_type): Remove, replace by ...
5487 (arch_complex_type): ... this.
5488 (init_flags_type): Remove, replace by ...
5489 (arch_flags_type): ... this.
5490 (init_composite_type): Remove, replace by ...
5491 (arch_composite_type): ... this.
5492
5493 * gdbtypes.c (alloc_type): No longer support NULL objfile.
5494 (init_type): Likewise.
5495 (alloc_type_arch): New function.
5496 (alloc_type_copy): New function.
5497 (get_type_arch): New function.
5498
5499 (smash_type): Preserve type ownership information.
5500 (make_pointer_type, make_reference_type, make_function_type,
5501 smash_to_memberptr_type, smash_to_method_type): No longer
5502 preserve OBJFILE across smash_type calls.
5503 (make_pointer_type, make_reference_type, make_function_type,
5504 lookup_memberptr_type, lookup_methodptr_type, allocate_stub_method,
5505 create_range_type, create_array_type, create_set_type, copy_type):
5506 Use alloc_type_copy when allocating types.
5507 (check_typedef): Use alloc_type_arch.
5508 (copy_type_recursive): Likewise. Preserve type ownership data
5509 after copying type.
5510 (recursive_dump_type): Dump type ownership data.
5511 (alloc_type_instance): Update type ownership check.
5512 (copy_type, copy_type_recursive): Likewise.
5513
5514 (arch_type): New function.
5515 (arch_integer_type): Likewise.
5516 (arch_character_type): Likewise.
5517 (arch_boolean_type): Likewise.
5518 (init_float_type): Remove, replace by ...
5519 (arch_float_type): ... this.
5520 (init_complex_type): Remove, replace by ...
5521 (arch_complex_type): ... this.
5522 (init_flags_type): Remove, replace by ...
5523 (arch_flags_type): ... this.
5524 (append_flags_type_flag): Move down.
5525 (init_composite_type): Remove, replace by ...
5526 (arch_composite_type): ... this.
5527 (append_composite_type_field_aligned,
5528 append_composite_type_field): Move down.
5529
5530 * gdbarch.c (gdbtypes_post_init): Allocate all types
5531 using per-architecture routines.
5532 * ada-lang.c (ada_language_arch_info): Likewise.
5533 * f-lang.c (build_fortran_types): Likewise.
5534 * jv-lang.c (build_java_types): Likewise.
5535 * m2-lang.c (build_m2_types): Likewise.
5536 * scm-lang.c (build_scm_types): Likewise.
5537
5538 * ada-lang.c (ada_type_of_array): Use alloc_type_copy.
5539 (packed_array_type): Likewise.
5540 (ada_template_to_fixed_record_type_1): Likewise.
5541 (template_to_static_fixed_type): Likewise.
5542 (to_record_with_fixed_variant_part): Likewise.
5543 (to_fixed_variant_branch_type): Likewise.
5544 (to_fixed_array_type): Likewise.
5545 (to_fixed_range_type): Likewise.
5546 (empty_record): Use type instead of objfile argument.
5547 Use alloc_type_copy.
5548 (to_fixed_variant_branch_type): Update call to empty_record.
5549 * jv-lang.c (type_from_class): Use alloc_type_arch.
5550
5551 * arm-tdep.c (arm_ext_type): Allocate per-architecture type.
5552 * i386-tdep.c (i386_eflags_type, i386_mxcsr_type, i387_ext_type,
5553 i386_mmx_type, i386_sse_type): Likewise.
5554 * ia64-tdep.c (ia64_ext_type): Likewise.
5555 * m32c-tdep.c (make_types): Likewise.
5556 * m68k-tdep.c (m68k_ps_type, m68881_ext_type): Likewise.
5557 * rs6000-tdep.c (rs6000_builtin_type_vec64,
5558 rs6000_builtin_type_vec128): Likewise.
5559 * sparc-tdep.c (sparc_psr_type, sparc_fsr_type): Likewise.
5560 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type,
5561 sparc64_fprs_type): Likewise.
5562 * spu-tdep.c (spu_builtin_type_vec128): Likewise.
5563 * xtensa-tdep.c (xtensa_register_type): Likewise.
5564 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5565 * target-descriptions.c (tdesc_gdb_type): Likewise.
5566 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5567
209bd28e
UW
55682009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5569
5570 * i386-tdep.h (struct gdbarch_tdep): Add i386_eflags_type and
5571 i386_mxcsr_type members.
5572 (i386_eflags_type): Make into function.
5573 (i386_mxcsr_type): Likewise.
5574 * i386-tdep.c (i386_eflags_type): Make into function.
5575 (i386_mxcsr_type): Likewise.
5576 (i386_register_type): Update uses.
5577 (i386_init_types): Remove.
5578 (_initialize_i386_tdep): Do not call it.
5579 * amd64-tdep.c (amd64_register_type): Update uses.
5580
5581 * m68k-tdep.h (struct gdbarch_tdep): Add m68k_ps_type member.
5582 * m68k-tdep.c (m68k_ps_type): Make into function.
5583 (m68k_register_type): Update use.
5584 (m68k_init_types): Remove.
5585 (_initialize_m68k_tdep): Do not call it.
5586
5587 * sparc-tdep.h (struct gdbarch_tdep): Add sparc_psr_type,
5588 sparc_fsr_type, sparc64_pstate_type, sparc64_fsr_type, and
5589 sparc64_fprs_type members.
5590 * sparc-tdep.c (sparc_psr_type): Make into function.
5591 (sparc_fsr_type): Likewise.
5592 (sparc32_register_type): Update uses.
5593 (sparc_init_types): Remove.
5594 (_initialize_sparc_tdep): Do not call it.
5595 * sparc64-tdep.c (sparc64_pstate_type): Make into function.
5596 (sparc64_fsr_type): Likewise.
5597 (sparc64_fprs_type): Likewise.
5598 (sparc64_register_type): Update uses.
5599 (sparc64_init_types): Remove.
5600 (_initialize_sparc64_tdep): Likewise.
5601
27067745
UW
56022009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5603
5604 * gdbtypes.h (builtin_type_ieee_single, builtin_type_ieee_double,
5605 builtin_type_i387_ext, builtin_type_m68881_ext, builtin_type_arm_ext,
5606 builtin_type_ia64_spill, builtin_type_ia64_quad): Remove.
5607 (init_float_type, init_complex_type): Add prototypes.
5608 * gdbtypes.c (builtin_type_ieee_single, builtin_type_ieee_double,
5609 builtin_type_i387_ext, builtin_type_m68881_ext, builtin_type_arm_ext,
5610 builtin_type_ia64_spill, builtin_type_ia64_quad): Remove.
5611 (_initialize_gdbtypes): Do not initialize them.
5612 (build_flt): Rename to ...
5613 (init_float_type): ... this. Make global.
5614 (build_complex): Rename to ...
5615 (init_complex_type): ... this. Make global. Remove BIT argument.
5616 (gdbtypes_post_init): Update calls.
5617
5618 * ada-lang.c (ada_language_arch_info): Use init_float_type.
5619 * jv-lang.c (build_java_types): Likewise.
5620 * m2-lang.c (build_m2_types): Likewise.
5621 * f-lang.c (build_fortran_types): Use init_float_type and
5622 init_complex_type.
5623
5624 * target-descriptions.c (tdesc_gdb_type): Call init_float_type instead
5625 of using builtin_type_ieee_single, builtin_type_ieee_double, or
5626 builtin_type_arm_ext.
5627
5628 * ia64-tdep.h (struct gdbarch_tdep): Add ia64_ext_type member.
5629 * ia64-tdep.c (builtin_type_ia64_ext): Remove.
5630 (_initialize_ia64_tdep): Do not initialize it.
5631 (floatformat_valid, floatformat_ia64_ext, floatformats_ia64_ext):
5632 Move up.
5633 (ia64_ext_type): New function.
5634 (ia64_register_reggroup_p, ia64_convert_register_p,
5635 ia64_register_to_value, ia64_value_to_register,
5636 ia64_extract_return_value, ia64_store_return_value): Use ia64_ext_type
5637 instead of builtin_type_ia64_ext.
5638
5639 * i386-tdep.h (struct gdbarch_tdep): Add i387_ext_type member.
5640 (i387_ext_type): Add prototype.
5641 * i386-tdep.c (i387_ext_type): New function.
5642 (i386_extract_return_value, i386_store_return_value,
5643 i386_register_type): Use it instead of builtin_type_i387_ext.
5644 * amd64-tdep.c (amd64_register_type): Likewise.
5645 * i387-tdep.c (print_i387_value, i387_register_to_value,
5646 i387_value_to_register): Likewise.
5647 (print_i387_value, print_i387_ext): Add GDBARCH argument.
5648 (print_i387_ext, i387_print_float_info): Pass to subroutines.
5649
5650 * m68k-tdep.h (struct gdbarch_tdep): Add m68881_ext_type member.
5651 * m68k-tdep.c (m68881_ext_type): New function.
5652 (m68k_register_type, m68k_convert_register_p): Use it instead
5653 of builtin_type_m68881_ext.
5654
5655 * arm-tdep.h (struct gdbarch_tdep): Add arm_ext_type member.
5656 * arm-tdep.c (arm_ext_type): New function.
5657 (arm_register_type): Use it instead of builtin_type_arm_ext.
5658
5659 * alpha-tdep.c (alpha_register_type): Use builtin types
5660 instead of builtin_type_ieee_double.
5661
5662 * mips-tdep.c (mips_float_register_type, mips_double_register_type):
5663 Remove.
5664 (mips_register_type): Use builtin types instead of
5665 builtin_type_ieee_single and builtin_type_ieee_double.
5666 (mips_print_fp_register): Use builtin types instead of
5667 mips_float_register_type and mips_double_register_type.
5668
5669 * hppa-tdep.c (hppa32_register_type, hppa64_register_type):
5670 Use builtin types instead of builtin_type_ieee_single and
5671 builtin_type_ieee_double.
5672
df4df182
UW
56732009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5674
5675 * gdbtypes.h (builtin_type_int0, builtin_type_int8, builtin_type_uint8,
5676 builtin_type_int16, builtin_type_uint16, builtin_type_int32,
5677 builtin_type_uint32, builtin_type_int64, builtin_type_uint64,
5678 builtin_type_int128, builtin_type_uint128): Remove.
5679 (struct builtin_type): New members builtin_int0, builtin_int8,
5680 builtin_uint8, builtin_int16, builtin_uint16, builtin_int32,
5681 builtin_uint32, builtin_int64, builtin_uint64, builtin_int128,
5682 and builtin_uint128.
5683 * gdbtypes.c (builtin_type_int0, builtin_type_int8, builtin_type_uint8,
5684 builtin_type_int16, builtin_type_uint16, builtin_type_int32,
5685 builtin_type_uint32, builtin_type_int64, builtin_type_uint64,
5686 builtin_type_int128, builtin_type_uint128): Remove.
5687 (_initialize_gdbtypes): Do not initialize them.
5688 (gdbtypes_post_init): Initialize fixed-size integer types.
5689
5690 * dwarf2expr.c (unsigned_address_type, signed_address_type): Add
5691 GDBARCH argument. Return platform-specific type.
5692 (dwarf2_read_address, execute_stack_op): Update calls.
5693
5694 * target-descriptions.c (tdesc_gdb_type): Use platform-specific types
5695 instead of global builtin_int_... variables.
5696 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5697 * printcmd.c (do_examine): Likewise.
5698 * jv-exp.y (parse_number): Likewise.
5699
5700 * alpha-tdep.c (alpha_register_type, alpha_push_dummy_call,
5701 alpha_store_return_value): Likewise.
5702 * amd64-linux-tdep.c (amd64_linux_register_type): Likewise.
5703 * amd64-tdep.c (amd64_register_type): Likewise.
5704 * arm-tdep.c (arm_register_type): Likewise.
5705 * avr-tdep.c (avr_register_type): Likewise.
5706 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
5707 * frv-tdep.c (frv_register_type): Likewise.
5708 * h8300-tdep.c h8300_register_type): Likewise.
5709 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_register_type,
5710 hppa64_register_type): Likewise.
5711 * i386-tdep.c (i386_mmx_type, i386_sse_type): Likewise.
5712 * iq2000-tdep.c (iq2000_register_type): Likewise.
5713 * lm32-tdep.c (lm32_register_type, lm32_push_dummy_call): Likewise.
5714 * m32r-tdep.c (m32r_register_type): Likewise.
5715 * m68hc11-tdep.c (m68hc11_register_type, m68hc11_pseudo_register_read,
5716 m68hc11_pseudo_register_write): Likewise.
5717 * m68k-tdep.c (m68k_register_type): Likewise.
5718 * m88k-tdep.c (m88k_register_type, m88k_store_arguments): Likewise.
5719 * mep-tdep.c (mep_register_type): Likewise.
5720 * mips-tdep.c (mips_register_type, mips_pseudo_register_type,
5721 mips_print_fp_register): Likewise.
5722 * moxie-tdep.c (moxie_register_type): Likewise.
5723 * mt-tdep.c (mt_copro_register_type, mt_register_type): Likewise.
5724 * rs6000-tdep.c (rs6000_builtin_type_vec64,
5725 rs6000_builtin_type_vec128): Likewise.
5726 * score-tdep.c (score_register_type): Likewise.
5727 * sparc-tdep.c (sparc32_register_type, sparc32_store_arguments):
5728 Likewise.
5729 * sparc64-tdep.c (sparc64_register_type, sparc64_store_arguments):
5730 Likewise.
5731 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
5732 * v850-tdep.c (v850_register_type): Likewise.
5733 * xstormy16-tdep.c (xstormy16_register_type): Likewise.
5734 * xtensa-tdep.c (xtensa_register_type): Likewise.
5735
5736 * mt-tdep.c (struct gdbarch_tdep): New data structure.
5737 (mt_gdbarch_init): Alloc TDEP structures.
5738 (mt_register_type): Cache coprocessor type in TDEP instead of
5739 static global variable.
5740
5741 * xtensa-tdep.h (struct gdbarch_tdep): Add type_entries member.
5742 * xtensa-tdep.c (type_entries): Remove.
5743 (xtensa_register_type): Cache fixed-size types in TDEP instead
5744 of in global variable.
5745
69feb676
UW
57462009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5747
5748 * gdbtypes.h (builtin_type_true_char): Remove.
5749 (builtin_type_true_unsigned_char): Likewise.
5750 (struct builtin_type): Add builtin_true_char and
5751 builtin_true_unsigned_char members.
5752 * gdbtypes.c (builtin_type_true_char): Remove.
5753 (builtin_type_true_unsigned_char): Likewise.
5754 (_initialize_gdbtypes): Do not initialize them.
5755 (gdbtypes_post_init): Initialize builtin_true_char and
5756 builtin_true_unsigned_char members of builtin_type.
5757
5758 * printcmd.c (print_scalar_formatted): Use builtin_type
5759 members instead of builtin_type_true_char and
5760 builtin_type_true_unsigned_char.
5761 * ada-valprint.c (ada_val_print_1): Likewise.
5762
48319d1f
UW
57632009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5764
5765 * gdbtypes.h (builtin_type_void): Remove.
5766 * gdbtypes.c (builtin_type_void): Remove.
5767 (_initialize_gdbtypes): Do not initialize it.
5768
5769 (safe_parse_type): Add GDBARCH argument. Use it to construct
5770 void return type.
5771 (check_stub_method): Update call.
5772
5773 * infcall.c (call_function_by_hand): Use platform-specific type
5774 instead of builtin_type_void.
5775 * valops.c (value_cast): Use input void type instead of
5776 builtin_type_void.
5777
22601c15
UW
57782009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5779
5780 * ada-lang.c (assign_component): Use platform-specific integer type
5781 instead of builtin_type_int32 type.
5782 (ada_evaluate_subexp) [OP_ATR_SIZE]: Likewise.
5783
5784 * ax-gdb.c (gen_expr) [UNOP_NEG]: Use platform-specific integer type
5785 instead of builtin_type_int8 type.
5786 * valarith.c (value_x_unop): Likewise.
5787 * python/python-value.c (valpy_absolute): Avoid reference to
5788 builtin_type_int8 type.
5789
5790 * eval.c (evaluate_subexp_standard): Use platform-specific integer
5791 type instead of builtin_type_int8 as EVAL_SKIP return value type.
5792 * ada-lang.c (ada_evaluate_subexp): Likewise.
5793 * jv-lang.c (evaluate_subexp_java): Likewise.
5794 * m2-lang.c (evaluate_subexp_modula2): Likewise.
5795 * scm-lang.c (evaluate_exp): Likewise.
5796
5797 * value.h (value_bitstring): Add INDEX_TYPE argument.
5798 * valops.c (value_bitstring): Add INDEX_TYPE argument, use it instead
5799 of builtin_type_int32 as base range type.
5800 * eval.c (evaluate_subexp_standard): Update value_bitstring call.
5801
e3506a9f
UW
58022009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5803
5804 * gdbtypes.c (lookup_array_range_type): Add prototype.
5805 (lookup_string_range_type): Likewise.
5806 * gdbtypes.c (lookup_array_range_type): New function.
5807 (lookup_string_range_type): Likewise.
5808
5809 * ax-gdb.c (gen_repeat): Use lookup_array_range_type.
5810 * parse.c (follow_types): Likewise.
5811 * jv-lang.c (java_array_type): Likewise.
5812 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5813 * mt-tdep.c (mt_register_type): Likewise.
5814 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
5815 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
5816 * value.c (allocate_repeat_value): Likewise.
5817 * valops.c (value_array, value_cstring): Likewise.
5818 * valops.c (value_string): Use lookup_string_range_type.
5819
d5c831bd
UW
58202009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5821
5822 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Remove
5823 redundant check for NULL TYPE_TARGET_TYPE.
5824 * m2-valprint.c (m2_print_long_set): Likewise.
5825 * p-valprint.c (pascal_type_print_base): Likewise.
5826
5d3729b5
UW
58272009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5828
5829 * printcmd.c (next_gdbarch): New static variable.
5830 (set_next_address, do_examine, x_command): Set it.
5831 (decode_format): Use 'a' size to indicate width of an address.
5832 (do_examine): Add GDBARCH argument. Handle 'a' size.
5833 (x_command): Pass architecture to do_examine.
5834 Error if called without argument the first time.
5835 (do_one_display): Pass architecture to do_examine.
5836
5837 (examine_i_type, examine_b_type, examine_h_type, examine_w_type,
5838 examine_g_type): Remove.
5839 (_initialize_printcmd): Do not initialize them.
5840 (do_examine): Use builin_type_int... instead of examine_..._type.
5841
78267919
UW
58422009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5843
5844 * gdbtypes.h (struct builtin_type): Add internal_fn member.
5845 * gdbtypes.c (gdbtypes_post_init): Initialize it.
5846 * value.c (internal_fn_type): Remove.
5847 (_initialize_values): Do not initialize it.
5848
5849 * value.c (struct internalvar): Add enum internalvar_kind type and
5850 kind member. Restructure union internalvar_data type. Remove type,
5851 canonical, and make_value members.
5852 (init_if_undefined_command): Update for data structure changes.
5853 (create_internalvar): Likewise.
5854 (create_internalvar_type_lazy): Likewise.
5855 (get_internalvar_integer): Likewise.
5856 (get_internalvar_function): Likewise.
5857 (set_internalvar_component): Likewise.
5858 (set_internalvar): Likewise.
5859 (set_internalvar_integer): Likewise.
5860 (set_internalvar_function): Likewise.
5861 (clear_internalvar): Likewise.
5862 (add_internal_function): Likewise.
5863 (preserve_one_internalvar): New function.
5864 (preserve_values): Call it.
5865
5866 * value.h (value_of_internalvar): Add GDBARCH parameter.
5867 (internalvar_make_value): Likewise.
5868 * value.c (value_of_internalvar): Add GDBARCH parameter. Pass it to
5869 make_value callback. Use it to generate per-architecture result value
5870 types for internal variables with no pre-defined type. Update for data
5871 structure changes.
5872 (show_convenience): Pass architecture to value_of_internalvar.
5873 * eval.c (evaluate_subexp_standard): Likewise.
5874 * infrun.c (siginfo_make_value): Add GDBARCH parameter. Use it
5875 instead of current frame architecture. Return per-architecture type.
5876
5877 * value.h (set_internalvar_string): Add prototype.
5878 * value.c (set_internalvar_string): New function.
5879 * tracepoint.c (set_traceframe_context): Use it.
5880
0daa2b63
UW
58812009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
5882
5883 * jv-lang.h (java_int_type, java_byte_type, java_short_type,
5884 java_long_type, java_boolean_type, java_char_type, java_float_type,
5885 java_double_type, java_void_type): Remove.
5886 (struct builtin_java_type): New data type.
5887 (builtin_java_type): Add prototype.
5888 (java_primitive_type): Add GDBARCH argument.
5889 (java_primitive_type_from_name): Likewise.
5890 (type_from_class): Likewise.
5891
5892 * jv-lang.c (java_int_type, java_byte_type, java_short_type,
5893 java_long_type, java_boolean_type, java_char_type, java_float_type,
5894 java_double_type, java_void_type): Remove.
5895
5896 (build_java_types, builtin_java_type): New functions.
5897 (java_type_data): New static variable.
5898 (_initialize_java_language): Initialize it. No longer initialize
5899 global types.
5900 (java_language_arch_info): Use per-architecture types.
5901
5902 (java_primitive_type): Add GDBARCH argument. Return per-architecture
5903 type instead of refering to global variable.
5904 (java_primitive_type_from_name): Add GDBARCH argument.
5905 (java_primitive_type_name): New function.
5906 (java_demangled_signature_length): Use it instead of
5907 java_primitive_type_from_name.
5908 (java_demangled_signature_copy): Likewise.
5909
5910 (type_from_class): Add GDBARCH argument. Pass to java_link_class_type,
5911 java_primitive_type, and recursive type_from_class call.
5912 (java_link_class_type): Add GDBARCH argument. Pass to type_from_class
5913 calls. Use per-architecture types instead of global types.
5914
5915 * jv-exp.y (parse_java_type): New define.
5916 Use per-architecture types instead of global types througout.
5917
5918 * jv-valprint.c (java_value_print): Pass architecture to
5919 type_from_class and java_primitive_type_from_name. Use per-
5920 architecture types instead of global types.
5921
d70e31dd
DE
59222009-07-01 Doug Evans <dje@google.com>
5923
5924 * NEWS: Mention biarch amd64-linux gdbserver and hardware watchpoint
5925 support for i386-linux, amd64-linux, and i386-win32 builds of
5926 gdbserver.
5927
b565e757 59282009-07-01 Nick Roberts <nickrob@snap.net.nz>
7371bfdc
NR
5929
5930 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for deleted files.
5931
59dd3af6
JK
59322009-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5933
5934 * Makefile.in (TARGET_FLAGS_TO_PASS): Include also FORCE_PARALLEL.
5935 (check//%): Construct FORCE_PARALLEL for the sub-make. Extend the
5936 comment for it.
5937
2fd481e1
PP
59382009-06-30 Paul Pluzhnikov <ppluzhnikov@google.com>
5939
5940 gdb/10275
5941 * dwarf2-frame.c (dwarf2_frame_state): Move cfa_offset, cfa_reg,
5942 cfa_how and cfa_exp into regs and adjust users.
5943
c38f313d
DJ
59442009-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5945
5946 * dwarf2read.c (inherit_abstract_dies): Work around GCC PR 40573.
5947
8b777f02
VP
59482009-06-30 Vladimir Prus <vladimir@codesourcery.com>
5949
5950 * mi/mi-cmd-stack.c (parse_print_values): New.
5951 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Use the above.
5952
1a4300e9
VP
59532009-06-30 Vladimir Prus <vladimir@codesourcery.com>
5954
5955 * varobj.c (varobj_get_type): Use type_to_string.
5956
173853dc
PA
59572009-06-29 Pedro Alves <pedro@codesourcery.com>
5958
5959 * infrun.c (handle_inferior_event): Context switch to the new
5960 thread when resuming for a new_thread_event.
5961
4a399546
UW
59622009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
5963
5964 * ada-lang.h (ada_convert_actual): Add GDBARCH argument.
5965 * ada-lang.c (convert_actual): Remove stale prototype.
5966 (ensure_lval, make_array_descriptor, ada_convert_actual):
5967 Add GDBARCH argument and pass through to subroutine calls.
5968 (ensure_lval): Use GDBARCH instead of current_gdbarch.
5969 * infcall.c (value_arg_coerce): Update ada_convert_actual call.
5970
30b15541
UW
59712009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
5972
5973 * ada-lang.c (resolve): Use per-architecture void type instead
5974 of platform-independent one.
5975 (ada_evaluate_subexp) [STRUCTOP_STRUCT]: Likewise.
5976 (ada_resolve_function): Reimplement fallback logic to avoid
5977 explicit reference to builtin_type_void.
5978
7c964f07
UW
59792009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
5980
5981 * ada-valprint.c (ada_print_scalar): Accept NULL type argument
5982 to indicate scalar should be printed as default integer.
5983 (print_optional_low_bound): Pass NULL to ada_print_scalar to
5984 indicate default integer output.
5985 * ada-typeprint.c (print_range, print_range_bound): Likewise.
5986 (print_choices): Likewise. Thus, accept NULL as val_type.
5987 * ada-lang.c (ada_variant_discrim_type): Return NULL when failed
5988 to look up controlling discriminant name.
5989
1ce677a4
UW
59902009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
5991
5992 * ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
5993 Fall back to orig_type as index type if symbol lookup fails.
5994 Allocate result types from ORIG_TYPE's objfile.
5995 (ada_array_bound_from_type, to_fixed_array_type,
5996 ada_evaluate_subexp): Pass original index type to
5997 to_fixed_range_type. Do not pass objfile.
5998
5999 * ada-typeprint.c (print_range_type_named): Add ORIG_TYPE argument.
6000 Fall back to orig_type as index type if symbol lookup fails.
6001 (print_array_type, ada_print_type): Pass original index type
6002 to print_range_type_named.
6003
dd19d49e
UW
60042009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6005
6006 * ada-lang.c (ada_index_type): Update comment.
6007
1eea4ebd
UW
60082009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6009
6010 * ada-lang.c (ada_index_type): Make static. Add NAME argument.
6011 Throw error on invalid input arguments. Return NULL if unable
6012 to determine index type.
6013
6014 (ada_array_bound_from_type): Remove TYPEP argument.
6015 (ada_array_bound): Make static. Return LONGEST instead of value.
6016 Update for ada_array_bound_from_type change.
6017 (ada_array_length): Return LONGEST instead of value.
6018 Update for ada_array_bound_from_type change.
6019 (make_array_descriptor): Update for ada_array_bound change.
6020
6021 (ada_evaluate_subexp) [OP_ATR_RANGE, OP_ATR_FIRST, OP_ATR_LAST,
6022 OP_ATR_LENGTH]: Update for ada_array_bound_from_type,
6023 ada_array_bound, ada_array_length, ada_index_type changes.
6024 Always use ada_index_type to compute result type; fall back
6025 to architecture-specific integer type if ada_index_type fails.
6026
6027 * ada-lang.h (ada_index_type): Remove prototype.
6028 (ada_array_bound): Likewise.
6029
578933ab
PA
60302009-06-29 Pedro Alves <pedro@codesourcery.com>
6031
6032 * dbxread.c (read_dbx_symtab): Clear has_line_numbers when ending
6033 a psymtab.
6034
6bc80edc
TT
60352009-06-29 Tom Tromey <tromey@redhat.com>
6036
6037 * README: Mention parallel check.
6038
794684b6
SW
60392009-06-29 Sami Wagiaalla <swagiaal@redhat.com>
6040
6041 * dwarf2read.c (read_import_statement): Properly set import location
6042 and destination.
6043 * cp-support.h (cp_add_using, cp_add_using_directive): Now take char*
6044 inner, char* outer arguments. Updated callers.
6045
2497b498
UW
60462009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6047
6048 * value.h (value_subscript, value_subscripted_rvalue,
6049 value_bitstring_subscript, value_ptradd): Use LONGEST instead
6050 of value as type of the index argument.
6051 (value_ptrsub): Remove.
6052 * valarith.c (value_subscript, value_subscripted_rvalue,
6053 value_bitstring_subscript, value_ptradd): Use LONGEST instead
6054 of value as type of the index argument.
6055 (value_ptrsub): Remove.
6056
6057 * wrapper.h (gdb_value_subscript): Use LONGEST instead of
6058 value as type of the index argument.
6059 * wrapper.c (gdb_value_subscript): Likewise.
6060
6061 Update calls to gdb_value_subscript, value_subscript,
6062 value_subscripted_rvalue, value_bitstring_subscript and
6063 value_ptradd to use LONGEST instead of value as index
6064 argument type. Use value_ptradd instead of value_ptrsub.
6065 * ada-lang.c (ada_value_subscript, ada_value_ptr_subscript,
6066 ada_tag_name_2): Update.
6067 * ada-tasks.c (read_atcb): Update.
6068 * eval.c (evaluate_subexp_standard): Update.
6069 * valarith.c (value_subscript): Update.
6070 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Update.
6071 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
6072 gnuv3_method_ptr_to_value): Update.
6073 * jv-lang.c (evaluate_subexp_java): Update.
6074 * m2-lang.c (evaluate_subexp_modula2): Update.
6075 * python/python-value.c (valpy_getitem, valpy_binop): Update.
6076 * wrapper.c (gdb_value_subscript): Update.
6077 * varobj.c (c_describe_child): Update.
6078
0c8b41f1
UW
60792009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6080
6081 * gdbtypes.h (make_function_type): Remove OBJFILE parameter.
6082 * gdbtypes.c (make_function_type): Remove OBJFILE parameter.
6083 (lookup_function_type): Update call.
6084 * stabsread.c (read_type): Likewise.
6085 * dwarf2read.c (read_subroutine_type): Use lookup_function_type
6086 instead of make_function_type.
6087 * jv-lang.c (type_from_class): Likewise. Do not allocate types
6088 on the fake "dynamics" obstack.
6089
46bf5051
UW
60902009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6091
6092 * gdbtypes.h (struct builtin_type): Remove builtin_core_addr,
6093 nodebug_text_symbol, nodebug_data_symbol, nodebug_unknown_symbol,
6094 and nodebug_tls_symbol members.
6095 (struct objfile_type): New data structure.
6096 (objfile_type): Add prototype.
6097 * gdbtypes.c (gdbtypes_post_init): Remove initialization code
6098 for types no longer in struct builtin_type.
6099 (objfile_type_data): New static variable.
6100 (_initialize_gdbtypes): Initialize it.
6101 (objfile_type): New function.
6102
6103 * gdbtypes.h (builtin_type_error): Remove.
6104 * gdbtypes.c (build_complex): Do not use builtin_type_error.
6105 * symtab.c (builtin_type_error): Remove.
6106 (_initialize_symtab): Remove initialization.
6107
6108 * stabsread.c (dbx_lookup_type, define_symbol, error_type,
6109 rs6000_builtin_type, read_range_type): Use per-objfile types
6110 instead of global or per-architecture builtin types.
6111 * coffread.c (decode_type): Likewise.
6112 * dwarf2read.c (read_array_type, read_tag_string_type,
6113 new_symbol, die_type): Likewise.
6114 * mdebugread.c (parse_symbol, basic_type, upgrade_type,
6115 parse_procedure, psymtab_to_symtab_1): Likewise.
6116 * xcoffread.c (process_xcoff_symbol): Likewise.
6117 * parse.c (write_exp_msymbol): Likewise.
6118
6119 * stabsread.c (rs6000_builtin_type_data): New static variable.
6120 (_initialize_stabsread): Initialize it.
6121 (rs6000_builtin_type): Add OBJFILE argument. Allocate builtin
6122 types per-objfile instead of globally.
6123
6124 * stabsread.c (dbx_lookup_type): Add OBJFILE argument. Use it
6125 instead of current_objfile; pass it to rs6000_builtin_type.
6126 (dbx_alloc_type, read_type, read_range_type): Update calls.
6127 (cleanup_undefined_types_noname): Add OBJFILE argument and
6128 pass it to dbx_lookup_type.
6129 (cleanup_undefined_types): Add OBJFILE argument and pass it
6130 to cleanup_undefined_types_noname.
6131 * stabsread.h (cleanup_undefined_types): Add OBJFILE argument.
6132 * buildsym.c (end_symtab): Update call.
6133
b08f1e8d
UW
61342009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6135
6136 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6137 target_gdbarch instead of current_gdbarch.
6138
6d10c194
UW
61392009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
6140
6141 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-windows-tdep.o.
6142 (ALL_TARGET_OBS): Add moxie-tdep.o, i386-darwin-tdep.o, and
6143 solib-darwin.o.
6144
6145 * configure.tgt: Add comment.
6146
9901a55b
PP
61472009-06-28 Paul Pluzhnikov <ppluzhnikov@google.com>
6148
6149 * mi/mi-cmds.c (mi_cmds): Remove unimplemented entries.
6150
edb3359d
DJ
61512009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
6152 Jan Kratochvil <jan.kratochvil@redhat.com>
6153
6154 * NEWS: Document inlined function support.
6155 * Makefile.in (SFILES): Add inline-frame.c.
6156 (COMMON_OBS): Add inline-frame.o.
6157 * block.c (contained_in): Rewrite to use lexical nesting.
6158 (block_linkage_function): Skip inlined function blocks.
6159 (block_inlined_p): New.
6160 * block.h (struct block): Update comment.
6161 (block_inlined_p): New prototype.
6162 * blockframe.c (get_frame_block): Handle inlined functions.
6163 (get_frame_function): Do not use block_linkage_function.
6164 (block_innermost_frame): Use get_frame_block and contained_in.
6165 * breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
6166 Skip over inlined functions. Simplify epilogue check.
6167 (bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
6168 Update comments.
6169 (set_momentary_breakpoint): Only accept non-inlined frames.
6170 (watch_command_1): Use frame_unwind_caller_pc and
6171 frame_unwind_caller_id instead of get_prev_frame.
6172 (until_break_command): Likewise. Use get_stack_frame_id.
6173 * buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
6174 * dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
6175 * dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
6176 (read_func_scope, new_symbol): Likewise. Handle arguments specially
6177 for inlined functions without call site information.
6178 (inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
6179 (die_specification): Treat DW_AT_abstract_origin as a specification.
6180 (read_type_die): Handle DW_TAG_inlined_subroutine.
6181 * frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
6182 * frame.c (fprint_frame_id): Print inline depth.
6183 (fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
6184 (skip_inlined_frames, get_stack_frame_id): New.
6185 (frame_unwind_caller_id): Use skip_inlined_frames.
6186 (frame_id_inlined_p): New.
6187 (frame_id_eq): Make the logic match the comments. Add inline_depth
6188 check.
6189 (frame_id_inner): Handle inlined functions.
6190 (frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
6191 (frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
6192 (get_prev_frame_1): Check for inline frames. Split out frame
6193 allocation to get_prev_frame_raw.
6194 (get_prev_frame_raw): New function.
6195 (get_prev_frame): Handle inline frames.
6196 (get_frame_pc): Use frame_unwind_pc.
6197 (get_frame_address_in_block): Skip inlined frames on both sides.
6198 (pc_notcurrent): Delete.
6199 (find_frame_sal): Rewrite to handle inline call sites. Use
6200 get_frame_address_in_block.
6201 (deprecated_update_frame_pc_hack): Make static.
6202 * frame.h: Update comments.
6203 (struct frame_id): Add inline_depth.
6204 (enum frame_type): Add INLINE_FRAME.
6205 (frame_id_inlined_p, get_stack_frame_id): New prototypes.
6206 * gdbthread.h (struct thread_info): Add step_stack_frame_id field.
6207 * infcmd.c (set_step_frame): New function.
6208 (step_once): Use set_step_frame. Handle inlined functions.
6209 (until_next_command): Use set_step_frame.
6210 (finish_backward), finish_forward): Use get_stack_frame_id.
6211 (finish_command): Support inlined functions.
6212 * inferior.h (set_step_info): New prototype.
6213 * infrun.c (RESUME_ALL): Use minus_one_ptid.
6214 (clear_proceed_status): Clear step_stack_frame_id.
6215 (init_wait_for_inferior): Call clear_inline_frame_state.
6216 (init_execution_control_state): Make static.
6217 (set_step_info): New function.
6218 (init_thread_stepping_state): Do not set the symtab or line here.
6219 (stepped_in_from): New function.
6220 (handle_inferior_event): Handle inlined functions. Use set_step_info.
6221 (insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
6222 (struct inferior_status): Add step_stack_frame_id.
6223 (save_inferior_status, restore_inferior_status): Save and restore
6224 step_stack_frame_id.
6225 * inline-frame.c, inline-frame.h: New files.
6226 * minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
6227 * regcache.c (regcache_write_pc): Call reinit_frame_cache.
6228 * s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
6229 * stack.c (frame_show_address): New.
6230 (print_frame_info, print_frame): Use it.
6231 (find_frame_funname): Use get_frame_function. Handle inlined blocks.
6232 (frame_info): Mark inlined functions.
6233 (backtrace_command_1): Use get_current_user_frame.
6234 (print_frame_local_vars, print_frame_label_vars): Update comments.
6235 (return_command): Refuse inlined functions.
6236 * symtab.c (lookup_symbol_aux_local): Stop at inlined function
6237 boundaries.
6238 (find_function_start_sal): Avoid inlined functions.
6239 (completion_list_add_fields): New function.
6240 (default_make_symbol_completion_list): Use it. Use block_static_block
6241 and block_global_block. Check for inlined functions.
6242 (skip_prologue_using_sal): Avoid line number comparison across
6243 inlining.
6244 * symtab.h (struct symbol): Add is_inlined.
6245 (SYMBOL_INLINED): New.
6246 * target.c (target_resume): Call clear_inline_frame_state.
6247 * valops.c (value_of_variable): Check block_inlined_p.
6248
c7ce8faa
DJ
62492009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
6250
6251 * frame.c (frame_unwind_id): Renamed to ...
6252 (frame_unwind_caller_id): ... this. All callers updated.
6253 (frame_pc_unwind): Renamed to ...
6254 (frame_unwind_caller_pc): ... this. All callers updated.
6255 * frame.h: Document frame_unwind_caller_WHAT functions.
6256 (frame_unwind_id): Renamed to ...
6257 (frame_unwind_caller_id): ... this.
6258 (frame_pc_unwind): Renamed to ...
6259 (frame_unwind_caller_pc): ... this.
6260 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
6261 * stack.c (parse_frame_specification_1): Do not rely on
6262 frame_unwind_id.
6263
388a8562
MS
62642009-06-27 Michael Snyder <msnyder@vmware.com>
6265
6266 * infrun.c (handle_inferior_event): Improve handling of
6267 reverse-stepping into and over shared library functions.
6268
f3a5f1de
KO
62692009-06-25 Karen Osmond <karen.osmond@gmail.com>
6270
6271 * linespec.c (find_method): Add new not_found_ptr parameter to
6272 bring in line with symtab_from_filename, decode_variable.
6273 (decode_compound): Likewise. Also propagate not_found_ptr to
6274 find_method.
6275 (decode_line_1): Propagate not_found_ptr to decode_compound.
6276 (cplusplus_error): Now throws NOT_FOUND_ERROR.
6277
123e3958
KO
62782009-06-25 Karen Osmond <karen.osmond@gmail.com>
6279
6280 * MAINTAINERS (Write After Approval): Add self.
6281
4e608b4f
UW
62822009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
6283
6284 * valops.c (value_one): Reimplement broken decimal-float case.
6285
34e13b5b
UW
62862009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
6287
6288 * eval.c (evaluate_subexp_standard): Use expression architecture
6289 instead of current_gdbarch.
6290
6291 * infrun.c (handle_inferior_event): Avoid unncessary reference
6292 to current_gdbarch and get_current_frame ().
6293
0fd8e87f
UW
62942009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
6295
6296 * breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
6297 (enum bptype): Add bp_longjmp_master.
6298
6299 * breakpoint.c (create_longjmp_master_breakpoint): New function.
6300 (update_breakpoints_after_exec): Handle bp_longjmp_master
6301 breakpoints. Call create_longjmp_master_breakpoint.
6302 (print_it_typical, bpstat_stop_status, bpstat_what,
6303 print_one_breakpoint_location, allocate_bp_location, mention,
6304 delete_command, breakpoint_re_set_one): Handle bp_longjmp_master.
6305 (breakpoint_re_set): Call create_longjmp_master_breakpoint.
6306 (create_longjmp_breakpoint): Delete.
6307 (set_longjmp_breakpoint): Add THREAD argument. Reimplement
6308 to install momentary clones of bp_longjmp_master breakpoints.
6309
6310 * infcmd.c (step_1): Pass thread to set_longjmp_breakpoint.
6311
ca5f395d
CC
63122009-06-23 Cary Coutant <ccoutant@google.com>
6313
6314 * dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
6315 Set basic_block to 0 after a special opcode.
6316
5b2ab461
JK
63172009-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6318
6319 Fix a regression by the mmap patch from 2009-06-16.
6320 * symfile.c (reread_symbols): Move sym_finish and clear_objfile_data
6321 calls before deleting the OBJFILE obstack. Extend the comment.
6322
45d5d5ca
UW
63232009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
6324
6325 * jv-lang.h (JAVA_OBJECT_SIZE): Remove.
6326 (get_java_object_header_size): Add GDBARCH parameter.
6327 * jv-lang.c (get_java_object_header_size): Add GDBARCH parameter.
6328 Use it instead of current_gdbarch.
6329 (evaluate_subexp_java): Replace JAVA_OBJECT_SIZE with call to
6330 get_java_object_header_size.
6331 * jv-valprint.c (java_value_print): Likewise.
6332
27aa8d6a
SW
63332009-06-23 Sami Wagiaalla <swagiaal@redhat.com>
6334
01fc9d36
TG
6335 * dwarf2read.c (process_die): Handle import statements
6336 (DW_TAG_imported_declaration, case DW_TAG_imported_module)
6337 (read_import_statement): New.
6338 (read_func_scope): Update using_directives to point to current context
6339 (read_lexical_block_scope): Ditto.
6340 * cp-support.h: Added prototype for cp_add_using.
6341 * cp-namespace.c: Removed local context_stack.
6342 (cp_initialize_namespace): Deleted.
6343 (cp_finalize_namespace): Deleted.
6344 (cp_add_using_directive): Use using_directives instead of using_list.
6345 (cp_add_using): No longer static.
6346 * buildsym.h: Created global using_direct variable.
6347 Created using_direct variable in context_stack.
6348 * buildsym.c (finish_block): Set using directives for the block under
6349 construction.
6350 (start_symtab): Removed call to cp_initialize_namespace().
6351 (end_symtab): Removed call to cp_finalize_namespace().
6352 (push_context): Save and reset using_directives.
6353 * block.c (block_using): Return using directives for given
6354 block instead of static block.
27aa8d6a 6355
ad068eab
UW
63562009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
6357
6358 * target-descriptions.h (struct type): Do not declare.
6359 (struct tdesc_type): Declare.
6360 (tdesc_named_type): Change return type to struct tdesc_type *.
6361 (tdesc_record_type): Remove.
6362 (tdesc_create_vector): Add prototype.
6363 (tdesc_create_union): Likewise.
6364 (tdesc_add_field): Likewise.
6365
6366 * target-descriptions.c (struct tdesc_reg): Replace gdb_type
6367 member by tdesc_type member.
6368 (struct tdesc_type_field, tdesc_type_field): Add type and vector def.
6369 (struct tdesc_type, tdesc_type_p): Likewise.
6370 (struct tdesc_arch_reg, tdesc_arch_reg): Likewise.
6371 (struct tdesc_feature): Change type of "types" to VEC(tdesc_type_p).
6372 (struct tdesc_arch_data): Replace registers member by arch_regs.
6373
6374 (tdesc_predefined_types): Change to array of pre-defined
6375 struct tdesc_type structures. Add "code_ptr" and "data_ptr".
6376 (tdesc_named_type): Return struct tdesc_type * instead of GDB type.
6377 (tdesc_gdb_type): New function.
6378
6379 (target_find_description): Update for data structure changes.
6380 (tdesc_data_cleanup): Likewise.
6381 (tdesc_numbered_register): Likewise.
6382 (tdesc_use_registers): Likewise.
6383 (tdesc_create_reg): Likewise.
6384
6385 (tdesc_find_arch_register): New function.
6386 (tdesc_find_register): Use it.
6387 (tdesc_register_type): Use tdesc_gdb_type to generate GDB type from
6388 tdesc_type on demand; cache generated types in tdesc_arch_reg.
6389
6390 (tdesc_free_type): New function.
6391 (tdesc_free_feature): Call it.
6392
6393 (tdesc_create_vector): New function.
6394 (tdesc_create_union): Likewise.
6395 (tdesc_add_field): Likewise.
6396 (tdesc_record_type): Remove.
6397
6398 (tdesc_type_id): Remove.
6399 (maint_print_c_tdesc_cmd): Update for data structure changes. Update
6400 generated code to create tdesc_type structures instead of GDB types.
6401
6402 * xml-tdesc.c: Do not include "gdbtypes.h".
6403 (struct tdesc_parsing_data): Change type of current_union to
6404 struct tdesc_type *.
6405 (tdesc_start_reg): Do not special-case "code_ptr" or "data_ptr".
6406 (tdesc_start_union): Call tdesc_create_union.
6407 (tdesc_start_field): Call tdesc_add_field.
6408 (tdesc_start_vector): Call tdesc_create_vector.
6409 (tdesc_end_union): Remove.
6410 (feature_children): Remove reference to tdesc_end_union.
6411
6412 * features/arm-with-iwmmxt.c: Regenerate.
6413 * features/mips-linux.c: Regenerate.
6414 * features/mips64-linux.c: Regenerate.
6415 * features/rs6000/powerpc-32.c: Regenerate.
6416 * features/rs6000/powerpc-32l.c: Regenerate.
6417 * features/rs6000/powerpc-403.c: Regenerate.
6418 * features/rs6000/powerpc-403gc.c: Regenerate.
6419 * features/rs6000/powerpc-505.c: Regenerate.
6420 * features/rs6000/powerpc-601.c: Regenerate.
6421 * features/rs6000/powerpc-602.c: Regenerate.
6422 * features/rs6000/powerpc-603.c: Regenerate.
6423 * features/rs6000/powerpc-604.c: Regenerate.
6424 * features/rs6000/powerpc-64.c: Regenerate.
6425 * features/rs6000/powerpc-64l.c: Regenerate.
6426 * features/rs6000/powerpc-7400.c: Regenerate.
6427 * features/rs6000/powerpc-750.c: Regenerate.
6428 * features/rs6000/powerpc-860.c: Regenerate.
6429 * features/rs6000/powerpc-altivec32.c: Regenerate.
6430 * features/rs6000/powerpc-altivec32l.c: Regenerate.
6431 * features/rs6000/powerpc-altivec64.c: Regenerate.
6432 * features/rs6000/powerpc-altivec64l.c: Regenerate.
6433 * features/rs6000/powerpc-e500.c: Regenerate.
6434 * features/rs6000/powerpc-e500l.c: Regenerate.
6435 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
6436 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
6437 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
6438 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
6439 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
6440 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
6441 * features/rs6000/powerpc-vsx32.c: Regenerate.
6442 * features/rs6000/powerpc-vsx32l.c: Regenerate.
6443 * features/rs6000/powerpc-vsx64.c: Regenerate.
6444 * features/rs6000/powerpc-vsx64l.c: Regenerate.
6445 * features/rs6000/rs6000.c: Regenerate.
6446
284614f0
JB
64472009-06-23 Joel Brobecker <brobecker@adacore.com>
6448
6449 * ada-lang.c (decode_packed_array): If the value is a pointer to
6450 an array, then use value_ind to dereference it, not ada_value_ind.
6451 (ada_template_to_fixed_record_type_1): Handle the case where a
6452 dynamic field is an aligner type.
6453 (to_fixed_array_type): Add handling for packed array types.
6454 (ada_get_base_type): Do not follow the XVS type if the type is
6455 an aligner type.
6456 (ada_evaluate_subexp): Split a few statements up for clarity
6457 and debuggability.
6458 <OP_FUNCALL>: Add handling of the case of a packed array that
6459 has already been fixed.
6460
4b27a620
JB
64612009-06-23 Joel Brobecker <brobecker@adacore.com>
6462
6463 * ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
6464 (evaluate_subexp_type): Reimplement using evaluate_subexp.
6465 * value.h (evaluate_subexp): Add declaration.
6466 * eval.c (evaluate_subexp): Make non-static.
6467 * objc-lang.c (print_object_command): Use evaluate_subexp.
6468
69de3c6a
PP
64692009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
6470
6471 Revert 2009-05-14 breakpoint commit (no longer needed).
6472 * breakpoint.h (breakpoint_re_set_objfile): Remove
6473 * breakpoint.c (breakpoint_re_set_objfile): Likewise
6474 (create_overlay_event_breakpoint): Remove objfile parameter,
6475 iterate over all objfiles.
6476 * objfiles.c (objfile_relocate): Update.
6477 * symfile.c (new_symfile_objfile): Likewise.
6478
85e306ed
TT
64792009-06-23 Tom Tromey <tromey@redhat.com>
6480
6481 PR gdb/10309:
6482 * c-lang.c (classify_type): Iterate over typedefs.
6483 * c-valprint.c (textual_element_type): Iterate over typedefs.
6484
7bd06e87
TG
64852009-06-22 Tristan Gingold <gingold@adacore.com>
6486
6487 * darwin-nat.c (darwin_xfer_partial): Use host_address_to_string
6488 instead of "%p".
6489
07e7f39f
JK
64902009-06-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6491
6492 PR gdb/9988:
6493 * buildsym.c (block_compar): New function.
6494 (end_symtab): Replace the bubble sort by a qsort based code.
6495
64962009-06-22 Sami Wagiaalla <swagiaal@redhat.com>
f667014e
SW
6497
6498 * MAINTAINERS (Write After Approval): Add self.
6499
6e3f70d7
UW
65002009-06-22 Ulrich Weigand <uweigand@de.ibm.com>
6501
6502 * spu-tdep.c (spu_get_longjmp_target): New function.
6503 (spu_gdbarch_init): Install it.
6504
df4b58fe
L
65052009-06-22 H.J. Lu <hongjiu.lu@intel.com>
6506
6507 PR server/10306
6508 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
6509
a49f981f
MS
65102009-06-21 Michael Snyder <msnyder@vmware.com>
6511
6512 * inferior.h: Update ancient comment.
6513
0763ab81
PA
65142009-06-20 Aleksandar Ristovski <aristovski@qnx.com>
6515 Pedro Alves <pedro@codesourcery.com>
6516
6517 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Avoid dereferencing
6518 NULL pointer.
6519 (scan_dyntag): Skip if input bfd isn't elf flavoured.
6520 (locate_base): Call elf_locate_base even without an exec_bfd.
6521
5d2c29b8
TT
65222009-06-19 Samuel Bronson <naesten@gmail.com>
6523
121e16b5 6524 PR cli/9903:
5d2c29b8
TT
6525 * cli/cli-decode.c (apropos_cmd): Skip traversing abbreviations
6526 for prefix commands to avoid duplicates in the output.
6527
4a98be19
TT
65282009-06-19 Samuel Bronson <naesten@gmail.com>
6529
121e16b5 6530 PR cli/9903:
4a98be19
TT
6531 * cli/cli-decode.c (apropos_cmd): Fix avoidance of double
6532 printing.
6533
3daf8fe5
JG
65342009-06-19 Jerome Guitton <guitton@adacore.com>
6535
6536 * breakpoint.c (expand_line_sal_maybe): When explicit_line,
6537 skip prologue on each sals.
6538 (skip_prologue_sal): Return explicit_line and explicit_pc
6539 unmodified.
6540
bb00b29d
TG
65412009-06-19 Tristan Gingold <gingold@adacore.com>
6542
8e54f210
TG
6543 * darwin-nat.c (_initialize_darwin_inferior): Remove commented-out
6544 line.
6545
65462009-06-19 Tristan Gingold <gingold@adacore.com>
bb00b29d
TG
6547 * machoread.c (macho_symtab_read): Adjust for bfd changes.
6548 * darwin-nat.h (struct darwin_exception_msg): New type to describe
6549 a mach exception.
6550 (struct private_thread_info): New type to describe the state of the
6551 thread.
6552 (DEF_VEC_I thread_t): Removed, replaced by ...
6553 (DEF_VEC_O darwin_thread_t): ... this new type.
6554 (struct darwin_inferior): Renamed to ...
6555 (struct private_inferior): ... this type. Fields added.
6556 (darwin_not_port): Moved into the private inferior structure.
6557 * darwin-nat.c: Add includes, improve comments.
6558 Rewrite to handle multiple threads and processes.
6559 (darwin_resume_to): New function and protype.
6560 (darwin_resume, darwin_wait_to, darwin_wait): Ditto.
6561 (darwin_kill_inferior): Add ops argument.
6562 (darwin_pid_to_str): New function.
6563 (darwin_thread_alive): Ditto.
6564 (darwin_inf, darwin_not_port): Removed.
6565 (darwin_inf_fake_stop): New variable.
6566 (msgin, msgout, msg_state, exc_msg): Removed.
6567 (mach_check_error): Use warning instead of error.
6568 (darwin_ptrace): Adjust debug level.
6569 (cmp_thread_t): Fix names (typo).
6570 (darwin_check_new_threads): Argument is now an inferior,
6571 adjust for new structures, add no change check, ignore dead ports,
6572 handle first thread case.
6573 (find_inferior_task_it): New function.
6574 (find_inferior_notify_it): Ditto.
6575 (darwin_find_inferior_by_task): Ditto.
6576 (darwin_find_inferior_by_notify): Ditto.
6577 (darwin_find_thread): Ditto.
6578 (darwin_suspend_inferior): Ditto.
6579 (darwin_resume_inferior): Ditto.
6580 (catch_exception_raise_state): Removed.
6581 (catch_exception_raise_state_identity): Removed.
6582 (darwin_suspend_inferior_it): New function.
6583 (darwin_resume_inferior_it): Ditto.
6584 (darwin_dump_message): New function, extracted from darwin_wait.
6585 (darwin_decode_exception_message): New function.
6586 (darwin_encode_reply): New function.
6587 (catch_exception_raise): Removed.
6588 (darwin_send_reply): New function, extracted from darwin_resume.
6589 (darwin_resume_thread): New function, extracted from darwin_resume.
6590 (struct resume_inferior_threads_param): New type.
6591 (darwin_resume_inferior_threads_it): New function.
6592 (darwin_resume_inferior_threads): New function.
6593 (darwin_suspend_inferior_threads): New function.
6594 (darwin_resume): Mostly rewritten to handle multiple threads and
6595 some corner cases.
6596 (darwin_decode_message): New function extracted from darwin_wait.
6597 (cancel_breakpoint): New function.
6598 (darwin_wait): Mostly rewritten. Handle multiple threads.
6599 (darwin_mourn_inferior): Adjust for per process structures.
6600 (darwin_reply_to_all_pending_messages): New function.
6601 (darwin_stop_inferior): Adjust for per inferior structures.
6602 (darwin_attach_pid): Ditto.
6603 (darwin_init_thread_list): Ditto.
6604 (darwin_attach): Ditto.
6605 (darwin_detach): Ditto.
6606 (darwin_files_info): Now empty.
6607 (darwin_pid_to_str): Adjust returns string to match one expected by
6608 the testsuite.
6609 (darwin_read_write_inferior): Rename err variable to match other uses.
6610 Adjust debug message. Handle submaps.
6611 (darwin_xfer_memory): Adjust for per inferior structures.
6612 (set_enable_mach_exceptions): Ditto.
6613 (darwin_pid_to_exec_file): New function.
6614 (darwin_get_ada_task_ptid): Ditto.
6615 (darwin_supports_multi_process): Ditto.
6616 (_initialize_darwin_inferior): Remove useless assertion, adjust for
6617 per inferior structures. Add new target operations.
6618
31410e84
MS
66192009-06-18 Hui Zhu <teawater@gmail.com>
6620 Michael Snyder <msnyder@vmware.com>
6621
6622 * infrun.c (handle_inferior_event): Improve reverse stepping
6623 through function epilogue.
6624
6373d119
MS
6625 * infrun.c (handle_inferior_event): Reverse-next through
6626 trampoline.
6627
c098b58b
PP
66282009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6629
6630 * dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
6631 dwarf_frame_size.
6632
affddf13
TT
66332009-06-17 Tom Tromey <tromey@redhat.com>
6634
6635 * dwarf2read.c (zlib_decompress_section): Use a cleanup.
6636
9898f801
UW
66372009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6638
6639 * gdbarch.sh (pointer_to_address): Change to type 'm'.
6640 (address_to_pointer): Likewise.
6641 * gdbarch.c, gdbarch.h: Regenerate.
6642
6643 * inferior.h (unsigned_pointer_to_address): Add GDBARCH argument.
6644 (signed_pointer_to_address): Likewise.
6645 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
6646 * findvar.c (unsigned_pointer_to_address): Likewise.
6647 (signed_pointer_to_address): Likewise.
6648 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
6649
6650 * avr-tdep.c (avr_address_to_pointer): Likewise.
6651 (avr_pointer_to_address): Likewise.
6652 * iq2000-tdep.c (iq2000_pointer_to_address): Likewise.
6653 (iq2000_address_to_pointer): Likewise.
6654 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
6655 (m32c_m16c_pointer_to_address): Likewise.
6656 * spu-tdep.c (spu_pointer_to_address): Likewise.
6657 * xstormy16-tdep.c (xstormy16_pointer_to_address): Likewise.
6658 (xstormy16_address_to_pointer): Likewise.
6659
1fac167a
UW
66602009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6661
6662 * printcmd.c (print_scalar_formatted): Always truncate
6663 unsigned data types.
6664
6665 * cli-dump.c (struct callback_data): Change type of load_offset
6666 to CORE_ADDR.
6667 (restore_binary_file): Update type casts.
6668 (restore_command): Parse load_offset as address, not long.
6669
6670 * utils.c (string_to_core_addr): Do not sign-extend value.
6671 * varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
6672 before comparing against requested frame address.
6673
a78c2d62
UW
66742009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6675
6676 * gdbarch.sh (gcore_bfd_target): New gdbarch callback.
6677 * gdbarch.h, gdbarch.c: Regenerate.
6678
6679 * gcore.c (default_gcore_target): Make return value const.
6680 Call gdbarch_gcore_bfd_target if present.
6681 (default_gcore_arch, default_gcore_mach): Use target_gdbarch.
6682
6683 * corelow.c (core_read_description): Call gdbarch_core_read_description
6684 on core_gdbarch instead of current_gdbarch.
6685
6686 * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
6687
3b7538c0
UW
66882009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6689
6690 * gdbtypes.c (create_string_type): Receive character type as argument.
6691 * gdbtypes.h (create_string_type): Add character type argument.
6692 * dwarf2read.c (read_tag_string_type): Pass character type to
6693 create_string_type.
6694
6695 * value.h (value_string): Add character type argument.
6696 * valops.c (value_string): Add character type argument. Pass it to
6697 create_string_type. Do not allocate space in inferior.
6698 * valarith.c (value_concat): Pass character type to value_string.
6699
6700 * value.h (value_typed_string): Rename to ...
6701 (value_cstring): ... this.
6702 * valops.c (value_typed_string): Rename to ...
6703 (value_cstring): ... this.
6704 * c-lang.c (evaluate_subexp_c): Update.
6705
6706 * python/python-value.c (builtin_type_pychar): New define.
6707 (convert_value_from_python): Call value_cstring instead
6708 of value_from_string.
6709 * value.c (value_from_string): Remove.
6710 * value.h (value_from_string): Remove.
6711
6712 * eval.c (evaluate_subexp_standard): Pass character type to
6713 value_string. Pass expression architecture to value_nsstring
6714 and lookup_child_selector.
6715 * objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
6716 (lookup_child_selector): Likewise.
6717 (value_nsstring): Likewise.
6718 * objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
6719 Pass character type to value_string..
6720 (lookup_child_selector): Likewise.
6721 (value_nsstring): Add GDBARCH parameter, use it instead of
6722 objfile architecture. Pass architecture to lookup_objc_class
6723 and lookup_child_selector. Pass character type to value_string.
6724 (end_msglist): Pass architecture to lookup_objc_class.
6725 * objc-exp.y: Pass architecture to lookup_objc_class.
6726
e6c014f2
UW
67272009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6728
6729 * gdbtypes.h (struct language_defn): Add forward declaration.
6730 (lookup_typename): Add LANGUAGE and GDBARCH parameters.
6731 (lookup_unsigned_typename): Likewise.
6732 (lookup_signed_typename): Likewise.
6733 * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
6734 Use them instead of current_language and current_gdbarch.
6735 (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
6736 Pass them to lookup_typename.
6737 (lookup_signed_typename): Likewise.
6738
6739 * c-exp.y: Pass parse_language and parse_gdbarch to
6740 lookup_unsigned_typename and lookup_signed_typename.
6741 * objc-exp.y: Likewise.
6742 * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
6743
6744 * c-lang.c (evaluate_subexp_c): Pass expression language and
6745 gdbarch to lookup_typename.
6746 * printcmd.c (printf_command): Pass current language and
6747 gdbarch to lookup_typename.
6748 * python/python-type.c (typy_lookup_typename): Likewise.
6749 Include "language.h".
6750
ec22ec34
UW
67512009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6752
6753 * sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
6754 Use it instead of current_gdbarch. Pass architecture to
6755 sparc32_gregset_supplies_p.
6756 (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead
6757 of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p.
6758 * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p,
6759 sparc64nbsd_fpregset_supplies_p): Likewise.
6760 * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p):
6761 Add GDBARCH parameter.
6762 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
6763 (sparc_fetch_inferior_registers): Pass regcache architecture to
6764 sparc_gregset_supplies_p and sparc_fpregset_supplies_p.
6765 (sparc_store_inferior_registers): Likewise.
6766 * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p:
6767 Add GDBARCH parameter.
6768 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
6769
a97b0ac8
UW
67702009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6771
6772 * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
6773 of current_gdbarch.
6774 * aix-thread.c (pd_enable): Likewise.
6775 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
6776 * bsd-uthread.c (bsd_uthread_activate): Likewise.
6777 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
6778 * linux-thread-db.c (enable_thread_event): Likewise.
6779 * monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
6780 * nto-procfs.c (procfs_open): Likewise.
6781 * procfs.c (invalidate_cache, procfs_insert_watchpoint,
6782 info_proc_mappings, info_mappings_callback): Likewise.
6783 * record.c (record_open): Likewise.
6784 * rs6000-nat.c (ARCH64): Likewise.
6785 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
6786 (darwin_bfd_open): Likewise.
6787 * memattr.c (mem_info_command): Likewise.
6788
6789 * windows-nat.c (win32_resume): Use current regcache architecture
6790 instead of current_gdbarch.
6791
6792 * dbug-rom.c (dbug_regname): Remove check against number of
6793 registers in current_gdbarch.
6794 * solib-pa64.c (read_dynamic_info): Remove unused variable.
6795
d80b854b
UW
67962009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6797
6798 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,
6799 use it instead of current_gdbarch.
6800 * frame.h (deprecated_pc_in_call_dummy): Add GDBARCH parameter.
6801 * arm-tdep.c (arm_skip_prologue): Pass architecture to
6802 deprecated_pc_in_call_dummy.
6803
6804 * symtab.c (skip_prologue_using_sal): Add GDBARCH parameter.
6805 Use it instead of current_gdbarch.
6806 * symtab.h (skip_prologue_using_sal): Add GDBARCH parameter.
6807 * breakpoint.c (expand_line_sal_maybe): Pass architecture to
6808 skip_prologue_using_sal.
6809 * arm-tdep.c (skip_prologue_using_sal): Likewise.
6810 * lm32-tdep.c (lm32_skip_prologue): Likewise.
6811 * m32-tdep.c (m32c_skip_prologue): Likewise.
6812 * mips-tdep.c (mips_skip_prologue): Likewise.
6813 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6814 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
6815 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6816 * frv-tdep.c (frv_analyze_prologue): Add GDBARCH parameter, pass
6817 it to skip_prologue_using_sal. Update call sites ...
6818 (frv_skip_prologue, frv_frame_unwind_cache): ... here.
6819
6820 * mn10300-tdep.c (struct mn10300_prologue): Add GDBARCH member.
6821 (check_for_saved): Use it instead of current_gdbarch.
6822 (mn10300_analyze_prologue): Set it.
6823
6824 * value.c (using_struct_return): Add GDBARCH parameter. Use it
6825 instead of current_gdbarch.
6826 * value.h (using_struct_return): Add GDBARCH parameter.
6827 * eval.c (evaluate_subexp_standard): Pass architecture to
6828 using_struct_return.
6829 * infcall.c (call_function_by_hand): Likewise.
6830 * stack.c (return_command): Likewise.
6831 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
6832
6833 * symtab.c (in_prologue): Add GDBARCH parameter. Use it instead of
6834 current_gdbarch.
6835 * symtab.h (in_prologue): Add GDBARCH parameter.
6836 * infrun.c (handle_inferior_event): Pass architecture to in_prologue.
6837
6838 * eval.c (evaluate_subexp_standard): Use expression architecture
6839 instead of current_gdbarch.
6840
6841 * c-lang.c (evaluate_subexp_c): Use expression architecture and
6842 language instead of current_gdbarch and current_language.
6843
6844 * printcmd.c (do_one_display): Use expression architecture instead
6845 of current_gdbarch.
6846
6847 * infcmd.c (print_return_value): Use architecture of stop_regcache
6848 instead of current_gdbarch.
6849 (print_vector_info, print_float_info): Remove GDBARCH argument,
6850 use frame architecture instead.
6851 (vector_info, float_info): Update calls.
6852
6853 * objc-lang.c (objc_skip_trampoline): Use frame architecture
6854 instead of current_gdbarch.
6855
6856 * parse.c (write_dollar_variable): Use parse architecture instead
6857 of current_gdbarch.
6858
6859 * source.c (line_info): Use objfile architecture instead of
6860 current_gdbarch.
6861
6862 * symtab.c (find_function_start_sal): Use gdbarch instead of
6863 current_gdbarch.
6864 (print_msymbol_info): Use objfile architecture instead of
6865 current_gdbarch.
6866
6867 * valops.c (value_assign): Use frame architecture instead of
6868 current_gdbarch.
6869
fbf65064
UW
68702009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6871
6872 * buildsym.c (record_line): Remove call to gdbarch_addr_bits_remove.
6873
6874 * coffread.c (coff_symtab_read): Call gdbarch_addr_bits_remove before
6875 calling record_line.
6876 (enter_linenos): Likewise.
6877 * dbxread.c (process_one_symbol): Likewise.
6878 * dwarf2read.c (dwarf_decode_lines): Likewise.
6879 * mdebugread.c (psymtab_to_symtab_1): Likewise.
6880 * xcoffread.c (enter_line_range): Likewise.
6881
505e835d
UW
68822009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6883
6884 * ax-gdb.c (gen_bitfield_ref): Add EXP argument, use expression
6885 architecture instead of current_gdbarch.
6886 (gen_struct_ref): Add EXP argument, pass to get_bitfield_ref.
6887 (gen_expr): Pass expression to get_struct_ref.
6888
6889 * symtab.h (struct symbol_ops): Add GDBARCH parameter to
6890 tracepoint_var_ref callback.
6891 * ax-gdb.c (gen_var_ref): Pass architecture to tracepoint_var_ref
6892 symbol operation callback.
6893 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Add GDBARCH parameter.
6894 Use it instead of current_gdbarch.
6895 (locexpr_tracepoint_var_ref): Add GDBARCH parameter. Pass it to
6896 dwarf2_tracepoint_var_ref.
6897 (loclist_tracepoint_var_ref): Likewise.
6898
55f960e1
UW
68992009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6900
6901 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
6902 Use it instead of address bits of current_gdbarch.
6903 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
6904 * arm-tdep.c (thumb_analyze_prologue): Pass address bits to
6905 make_pv_area.
6906 (arm_scan_prologue): Likewise.
6907 * m32c-tdep.c (m32c_analyze_prologue): Likewise.
6908 * mep-tdep.c (mep_analyze_prologue): Likewise.
6909 * mn10300-tdep.c (mn10300_analyze_prologue): Likewise.
6910 * s390-tdep.c (s390_analyze_prologue): Likewise.
6911
7ccb0be9
UW
69122009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6913
6914 * mi/mi-main.c (mi_cmd_data_list_register_names): Use selected
6915 frame architecture instead of current_gdbarch.
6916 (mi_cmd_data_list_changed_registers): Likewise.
6917 (mi_cmd_data_list_register_values): Likewise. Pass selected
6918 frame to get_register.
6919 (get_register): Add FRAME argument, use it as frame to retrieve
6920 registers from (instead of selected frame). Use frame architecture
6921 instead of current_gdbarch.
6922 (mi_cmd_data_write_register_values): Use current regcache
6923 architecture instead of current_gdbarch.
6924
5eccfcc2
UW
69252009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6926
6927 * tui/tui-regs.c (tui_show_register_group): Remove GDBARCH parameter;
6928 use frame architecture instead. Replace current_gdbarch uses.
6929 (tui_show_registers): Update call.
6930 (tui_get_register): Remove GDBARCH parameter; use frame architecture
6931 instead.
6932 (tui_show_register_group): Update call.
6933 (tui_check_register_values): Likewise.
6934 (tui_register_format): Remove GDBARCH parameter; use frame
6935 architecture instead. Replace current_gdbarch uses.
6936 (tui_get_register): Update call.
6937
bd57a748
UW
69382009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6939
6940 * gdbarch.sh (construct_inferior_arguments): Remove.
6941 * gdbarch.c, gdbarch.h: Regenerate.
6942 * infcmd.c (get_inferior_args): Call construct_inferior_arguments
6943 directly instead of gdbarch_construct_inferior_arguments.
6944 (construct_inferior_arguments): Remove GDBARCH argument.
6945 * inferior.h (construct_inferior_arguments): Likewise.
6946
9216df95
UW
69472009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6948
6949 * symfile.c (section_is_mapped): Use objfile architecture instead
6950 of current_gdbarch.
6951 (TARGET_LONG_BYTES): Remove.
6952 (read_target_long_array): Add SIZE argument. Use it instead of
6953 TARGET_LONG_BYTES.
6954 (simple_read_overlay_table): Retrieve long size from objfile
6955 architecture; pass it to read_target_long_array.
6956 (simple_read_overlay_region_table): Likewise.
6957 (simple_overlay_update_1): Likewise.
6958
9f5a595d
UW
69592009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6960
6961 * infrun.c (cleanup_displaced_step_closure): Remove.
6962 (displaced_step_clear_cleanup): Move to before displaced_step_prepare.
6963 (displaced_step_prepare): Use displaced_step_clear_cleanup instead
6964 of cleanup_displaced_step_closure.
6965 (handle_inferior_event, keep_going): Use thread architecture instead
6966 of current_gdbarch.
6967
568d6575
UW
69682009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
6969
6970 * infrun.c (handle_inferior_event): Use current frame architecture
6971 or thread architecture instead of current_gdbarch. Pass to
6972 handle_step_into_function and handle_step_into_function_backward.
6973 (handle_step_into_function): Add GDBARCH parameter. Use it instead
6974 of current_gdbarch.
6975 (handle_step_into_function_backward): Likewise.
6976 (insert_step_resume_breakpoint_at_frame): Use frame architecture
6977 instead of current_gdbarch.
6978 (insert_step_resume_breakpoint_at_caller): Likewise.
6979
ea5d7a99
PM
69802009-06-17 Pierre Muller <muller@ics.u-strasbg.fr>
6981 Pedro Alves <pedro@codesourcery.com>
6982
6983 * infcmd.c (post_create_inferior): Call breakpoint_re_set after target
6984 is pushed for watchpoint promotion to hardware watchpoint.
6985
dce234bc
PP
69862009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
6987
6988 * dwarf2read.c (dwarf_info_section, dwarf_abbrev_section)
6989 (dwarf_line_section, dwarf_pubnames_section, dwarf_aranges_section)
6990 (dwarf_loc_section, dwarf_macinfo_section, dwarf_str_section)
6991 (dwarf_ranges_section, dwarf_frame_section)
6992 (dwarf_eh_frame_section): Removed.
6993 (dwarf2_resize_section): Likewise.
6994 (dwarf2_read_section): Now static, use bfd_mmap() if possible.
6995 (dwarf2_get_section_info): New function.
6996 (munmap_section_buffer): Likewise.
6997 (dwarf2_per_objfile_cleanup): Likewise.
6998 (section_is_p): Signature change.
6999 * dwarf2-frame.c (dwarf2_build_frame_info): Use
7000 dwarf2_get_section_info instead of dwarf2_read_section.
7001
7eedccfa
PP
70022009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7003
7004 * solib.c (symbol_add_stub): New FLAGS parameter.
7005 (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub
7006 directly.
7007 (solib_add): Defer breakpoint_re_set until after all solibs.
7008 * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust.
7009 * rs6000-nat.c (objfile_symbol_add): Adjust.
7010 * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS.
7011 (new_symfile_objfile): Likewise.
7012 (symbol_file_add_with_addrs_or_offsets): Likewise.
7013 (symbol_file_add_from_bfd): Likewise.
7014 (symbol_file_add): Likewise.
7015 * symfile.h (enum symfile_add_flags): New. Adjust prototypes.
7016 * symfile-mem.c (symbol_file_add_from_memory): Adjust.
7017 * windows-nat.c (safe_symbol_file_add_stub): Adjust.
7018 * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
7019
19ef5c71
KS
70202009-06-16 Keith Seitz <keiths@redhat.com>
7021
7022 * linespec.c (collect_methods): Delete.
7023 (add_matching_methods): Reove destructor special case.
7024 (find_method): Call find_methods directly instead of
7025 collect_methods.
7026 * valops.c (value_struct_elt): Remove destructor
7027 special cases.
7028 (check_field): Likewise.
7029 (value_struct_elt_for_reference): Likewise.
7030 (destructor_name_p): Remove misleading comment about dtors
7031 being "special cases".
7032 * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed.
7033 * gdbtypes.c (get_destructor_fn_field): Likewise.
7034
a4261689
PA
70352009-06-16 Pedro Alves <pedro@codesourcery.com>
7036
7037 * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
7038 TARGET_OJECT_MEMORY reads to the topmost target, not to the
7039 flattened current_target.
7040
4e99ad69
TG
70412009-06-16 Tristan Gingold <gingold@adacore.com>
7042
7043 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
7044 call_length field.
7045 (avr_register_name): Add const to register_names.
7046 (avr_scan_arg_moves): Move inside avr_scan_prologue.
7047 (avr_scan_prologue): Add pc_end argument.
7048 Only read prologue bytes that can be read.
7049 Limit the scan to the known prologue length.
7050 Makes pattern variables static and const.
7051 Fix indentation.
7052 (avr_skip_prologue): Pass func_end argument to avr_scan_prologue.
7053 Fix indentation.
7054 (avr_breakpoint_from_pc): Constify avr_break_insn.
7055 (avr_extract_return_value): Fix function comment.
7056 (avr_frame_unwind_cache): Fix GNU style violations.
7057 Pass current_pc argument to avr_scan_prologue to stop prologue
7058 analysis to the current pc. This fixes the bug with the 'next'
7059 command.
7060 Correctly set the SP register of the previous frame (use call_length).
7061 (avr_frame_prev_register): Fix indentation.
7062 Correctly read PC from the stack on avr6 architectures.
7063 (avr_push_dummy_call): Fix indentation.
7064 (avr_gdbarch_init): Set call_length according to the architecture.
7065
7cd1089b
PM
70662009-06-15 Phil Muldoon <pmuldoon@redhat.com>
7067
7068 * infcall.c (show_unwind_on_terminating_exception_p): New
7069 function.
7070 (call_function_by_hand): Create breakpoint and clean-up call for
7071 std::terminate.breakpoint. Add unwind_on_terminating_exception_p
7072 gate. Pop frame on breakpoint hit.
7073 (_initialize_infcall): Add add_setshow_boolean_cmd for
7074 unwind-on-terminating-exception.
7075
b2ab525c
KB
70762009-06-12 Kevin Buettner <kevinb@redhat.com>
7077
7078 * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
7079 `has_section_at_zero' flag from stripped objfile to separate,
7080 debug info only, objfile.
7081
4b477ade
PA
70822009-06-12 Pedro Alves <pedro@codesourcery.com>
7083
7084 * exec.h (section_table_xfer_memory_partial): Improve description,
7085 mention SECTION_NAME.
7086 * exec.c (section_table_xfer_memory_partial): Remove stale
7087 description.
7088
c59fcb4c
AR
70892009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
7090
7091 * nto-tdep.h (nto_generic_supply_gpregset)
7092 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
7093 * nto-tdep.c (nto_generic_supply_gpregset)
7094 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
7095
19a934d8
AR
70962009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
7097
7098 * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
7099 (i386nto_sigcontext_addr): Change the way context address is calculated.
7100 (i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
7101 sc_sp_offset and set sc_reg_offset and sc_num_regs.
7102
80b1849c
AR
71032009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
7104
7105 * i386-nto-tdep.c (i386_nto_target): Remove definition.
7106 (init_i386nto_ops): Use macros to set fields to global
7107 current_nto_target directly.
7108 (i386nto_init_abi): Remove unused nto_set_target call.
7109 * nto-tdep.h (nto_set_target): Remove unused declaration.
7110 * nto-tdep.c (nto_set_target): Remove unused function.
7111
80c99de1
PA
71122009-06-11 Pedro Alves <pedro@codesourcery.com>
7113
7114 * breakpoint.c (break_command_really): Rename local variable
7115 breakpoint_chain to bkpt_chain.
7116
dbfb31a4
AR
71172009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
7118
7119 Add support for XMM registers.
7120 * i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
7121 (i386nto_register_area): Correctly calculate offsets and sizes for
7122 all supported registers.
7123
17dd65ce
TT
71242009-06-11 Tom Tromey <tromey@redhat.com>
7125
7126 * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
7127 'static' from local variable definitions.
7128
828cd292
PA
71292009-06-11 Pedro Alves <pedro@codesourcery.com>
7130
7131 * symtab.c (append_expanded_sal): Remove unused local variables.
7132
d4db2f36
PA
71332009-06-11 Pedro Alves <pedro@codesourcery.com>
7134
7135 * infrun.c (sched_multi): New global.
7136 (resume): If sched_multi is set, resume only threads of the
7137 current inferior.
7138 (prepare_to_proceed): Don't switch over to wait_ptid if we're
7139 resuming a different inferior, and sched_multi is off.
7140 (show_schedule_multiple): New.
7141 (_initialize_infrun): Register new "set schedule-multiple" command.
7142 * inferior.h (sched_multi): Declare.
7143 * NEWS: Mention new "schedule-multiple" setting.
7144
e21458b2
PA
71452009-06-11 Pedro Alves <pedro@codesourcery.com>
7146
7147 * varobj.c (varobj_create): Properly restore the selected frame.
7148
8bb318c6
TT
71492009-06-05 Tom Tromey <tromey@redhat.com>
7150
7151 * inferior.c (print_inferior): Make a table, not a list. Emit
7152 table headers.
7153
bbb29520
PA
71542009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
7155
7156 * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
7157 darwin_wait (blocking wait).
7158 (darwin_kill_inferior): Likewise.
7159
66852e9c
PA
71602009-06-10 Pedro Alves <pedro@codesourcery.com>
7161
7162 * infrun.c (handle_inferior_event): Update comment around trying
7163 to revert back to a stepping thread that has exited.
7164
d0c6ba3d
CC
71652009-06-10 Cary Coutant <ccoutant@google.com>
7166
7167 * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
7168 DW_LNE_set_discriminator.
7169
059fb39f
PM
71702009-06-10 Pierre Muller <muller@ics.u-strasbg.fr>
7171
7172 * breakpoint.c: ARI fixes.
7173 (create_overlay_event_breakpoint): Avoid assignment inside if statement.
7174 (print_one_breakpoint_location): Likewise.
7175 (create_longjmp_breakpoint): Likewise.
7176 (tracepoint_save_command): Likewise
7177 (bpstat_find_step_resume_breakpoint): No operator at end of line.
7178 (bpstat_stop_status): Likewise.
7179 (describe_other_breakpoints): Likewise.
7180 (hw_watchpoint_used_count): Likewise.
7181 (expand_line_sal_maybe): Likewise.
7182 (break_command_really): Likewise.
7183 (delete_command): Likewise.
7184 (do_enable_breakpoint): Likewise.
7185 (delete_trace_command): Likewise.
7186 (catch_exception_command_1): Likewise and remove extra parentheses.
7187
7681d515
PM
71882009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
7189
7190 * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
7191 "ubreak" command that does not exist.
7192
300d0284
PM
71932009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
7194
7195 * cli/cli-decode.c (add_alias_cmd): Correct assertion.
7196
72753510
PA
71972009-06-07 Pedro Alves <pedro@codesourcery.com>
7198
7199 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
7200
d1a7880c
PA
72012009-06-07 Pedro Alves <pedro@codesourcery.com>
7202
7203 * procfs.h: New.
7204 * proc-utils.h (procfs_first_available): Don't declare here.
7205 * sol-thread.c: Include procfs.h instead of sys/procfs.h and
7206 proc-utils.h.
7207 * procfs.c: Include procfs.h.
7208 (procfs_target): Make it public. Don't register
7209 procfs_can_use_hw_breakpoint here.
7210 (proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
7211 defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
7212 (procfs_can_use_hw_breakpoint): Remove check of
7213 TARGET_HAS_HARDWARE_WATCHPOINTS.
7214 (procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
7215 here.
7216 (_initialize_procfs): Don't add the procfs target here.
7217
7218 * i386-sol2-nat.c: Include target.h and procfs.h.
7219 (_initialize_amd64_sol2_nat): Install the procfs target here,
7220 customized with watchpoints support.
7221 * irix5-nat.c: Include target.h.
7222 (_initialize_core_irix5): Rename to ...
7223 (_initialize_irix5_nat): ... this. Install the procfs target
7224 here, customized with watchpoints support.
7225 * alpha-nat.c: Include procfs.h.
7226 (_initialize_core_alpha): Rename to...
7227 (_initialize_alpha_nat): ... this. Install the procfs target
7228 here, customized with watchpoints support.
7229 * sparc-sol2-nat.c: Include target.h and procfs.h.
7230 (_initialize_sparc_sol2_nat): New.
7231
7232 * config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
7233 * config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
7234 * config/mips/irix5.mh (NAT_FILE): Delete.
7235 * config/mips/irix6.mh (NAT_FILE): Delete.
7236 * config/mips/nm-irix5.h: Delete.
7237
81b92222
PA
723820009-06-07 Pedro Alves <pedro@codesourcery.com>
7239
7240 * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
7241 to enum target_object. Cleanup comments.
7242 * auxv.h: Include "target.h". Cleanup comments to not mention
7243 NATIVE_XFER_AUXV anymore.
7244
cc35222d
PA
72452009-06-07 Pedro Alves <pedro@codesourcery.com>
7246
7247 * inferior.h (procfs_first_available): Move declaration to...
7248 * proc-utils.h: ... here.
7249 * sol-thread.c: Include procfs.h and proc-utils.h.
7250
09d3bde9
PA
72512009-06-07 Pedro Alves <pedro@codesourcery.com>
7252
7253 * inferior.h (proc_iterate_over_mappings): Delete declaration.
7254 * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
7255 * procfs.c (proc_iterate_over_mappings): Delete.
7256
c35b1492
PA
72572009-06-07 Pedro Alves <pedro@codesourcery.com>
7258
7259 * target.h (struct target_ops): Make to_has_all_memory,
7260 to_has_memory, to_has_stack, to_has_registers and to_has_execution
7261 methods instead of variables.
7262 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
7263 (target_has_registers_1, target_has_execution_1): Declare
7264 functions.
7265 (target_has_all_memory): Rewrite to call target_has_all_memory_1.
7266 (target_has_memory): Rewrite to call target_has_memory_1.
7267 (target_has_stack): Rewrite to call target_has_all_stack_1.
7268 (target_has_registers): Rewrite to call target_has_registers_1.
7269 (target_has_execution): Rewrite to call target_has_execution_1.
7270 (default_child_has_all_memory, default_child_has_memory)
7271 (default_child_has_stack, default_child_has_registers)
7272 (default_child_has_execution): Declare.
7273 (target_mark_running, target_mark_exited): Delete declarations.
7274 * target.c (default_child_has_all_memory,
7275 default_child_has_memory, default_child_has_stack,
7276 default_child_has_registers, default_child_has_execution): New.
7277 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
7278 target_has_registers_1, target_has_execution_1): New.
7279 (add_target): Default the to_has_all_memory, to_has_all_memory,
7280 to_has_memory, to_has_stack, to_has_registers and to_has_execution
7281 callbacks to return 0.
7282 (update_current_target): Do not inherit to_has_all_memory,
7283 to_has_memory, to_has_stack, to_has_registers or to_has_execution.
7284 (target_mark_running, target_mark_exited): Delete.
7285 (memory_xfer_partial): Adjust.
7286 (target_read_memory, target_write_memory, target_search_memory):
7287 Dispatch to the the top-most target, not the flattened
7288 current_target.
7289 (target_info): Adjust.
7290 (init_dummy_target): Install return_zero as callback for
7291 to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
7292 to_has_execution.
7293 (set_maintenance_target_async_permitted): Use have_live_inferiors
7294 instead of target_has_execution.
7295 * target-memory.c (target_write_memory_blocks): Dispatch memory
7296 writes to the the top-most target, not the flattened
7297 current_target.
7298
7299 * breakpoint.c (insert_breakpoints): Don't check for
7300 target_has_execution here.
7301 (update_global_location_list): Check if there are live inferiors
7302 to debug instead of target_has_execution.
7303 * infcmd.c (kill_command, detach_command): Check if there are
7304 inferiors instead of target_has_execution.
7305 * inferior.h (have_live_inferiors): Declare.
7306 * inferior.c (have_live_inferiors): New.
7307 * infrun.c (normal_stop): Don't check for target_has_execution to
7308 finish the thread states.
7309 * thread.c (is_thread_state, is_stopped, is_exited, is_running)
7310 (any_running, is_executing): Remove checks for
7311 target_has_execution.
7312 * top.c (kill_or_detach): Don't try to kill core inferiors.
7313 (quit_target): Don't check for target_has_execution.
7314
7315 * corelow.c (core_has_memory, core_has_stack, core_has_registers):
7316 New.
7317 (init_core_ops): Install core_has_memory, core_has_stack and
7318 core_has_registers.
7319 * exec.c (exec_has_memory): New.
7320 (init_exec_ops): Install exec_has_memory.
7321 * remote.c (remote_add_inferior): Don't call target_mark_running.
7322 (remote_start_remote): Don't call target_mark_exited or call
7323 target_mark_running.
7324 (remote_open_1): Use have_inferiors instead of
7325 target_has_execution. Don't use target_mark_exited.
7326 (init_remote_ops): Install deafult_child_has_all_memory,
7327 default_child_has_memory, default_child_has_stack,
7328 default_child_has_registers, default_child_has_execution.
7329 * bsd-kvm.c (bsd_kvm_return_one): New.
7330 (bsd_kvm_add_target): Register bsd_kvm_return_one as
7331 to_has_memory, to_has_stack and to_has_registers callbacks.
7332 * remote-m32r-sdi.c (m32r_return_one): New.
7333 (init_m32r_ops): Register it.
7334 * inf-child.c (inf_child_target): Adjust to register
7335 default_child_has_all_memory, default_child_has_memory,
7336 default_child_has_stack, default_child_has_registers,
7337 default_child_has_execution callbacks.
7338 * gnu-nat.c (init_gnu_ops): Likewise.
7339 * go32-nat.c (init_go32_ops): Likewise.
7340 * hpux-thread.c (init_hpux_thread_ops): Likewise.
7341 * monitor.c (init_base_monitor_ops): Likewise.
7342 * nto-procfs.c (init_procfs_ops): Likewise.
7343 * remote-mips.c (_initialize_remote_mips): Likewise.
7344 * windows-nat.c (init_windows_ops): Likewise.
7345 * remote-sim.c (gdbsim_create_inferior): Don't use
7346 target_mark_running or target_mark_exited.
7347 (gdbsim_mourn_inferior): Don't call target_mark_exited.
7348 (init_gdbsim_ops): Adjust to register
7349 default_child_has_all_memory, default_child_has_memory,
7350 default_child_has_stack, default_child_has_registers,
7351 default_child_has_execution callbacks.
7352
7353 * linux-nat.c (linux_nat_xfer_partial): If reading memory, and
7354 there's no inferior selected, defer to a lower stratum.
7355
da1f2771
TT
73562009-06-05 Tom Tromey <tromey@redhat.com>
7357
7358 * varobj.c (update_dynamic_varobj_children): Wrap error text in
7359 _().
7360 (install_visualizer): Likewise.
7361 (varobj_set_visualizer): Likewise.
7362
68c9c314 73632009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
4b459977
VP
7364
7365 * mi/mi-main.c (mi_cmd_exec_continue)
7366 (mi_cmd_exec_interrupt): Adjust parsing of thread group
7367 ids to current reality, where they don't have any 'p' prefix.
7368
b3ed98d2
AR
73692009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
7370
7371 * corelow.c (core_open): Check for core_gdbarch before calling
7372 gdbarch_target_signal_from_host.
7373
68c1b02d
TT
73742009-06-05 Tom Tromey <tromey@redhat.com>
7375
7376 * c-exp.y (parse_number): Don't use K&R definition.
7377 (yylex): Likewise.
7378 (yyerror): Likewise.
7379
0b4bc29a
JK
73802009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7381
7382 * varobj.c (varobj_update): Fix out of scope varobjs to not to change.
7383
768a979c
UW
73842009-06-04 Ulrich Weigand <uweigand@de.ibm.com>
7385
7386 * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
7387 * ax-gdb.c (gen_var_ref): Likewise.
7388 * findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
7389 * printcmd.c (address_info): Likewise.
7390 * dwarf2loc.c (dwarf_expr_frame_base): Likewise.
7391 * dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
7392 * symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
7393 * dwarf2loc.h: Likewise.
7394 * dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.
7395
7396 * symtab.h: (struct symbol_register_ops): New struct definition.
7397 (struct symbol): Make "ops" member a union of symbol_computed_ops and
7398 symbol_register_ops callback pointers.
7399 (SYMBOL_REGISTER_OPS): New macro.
7400 * tracepoint.c: Include "objfiles.h".
7401 (scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
7402 callback to retrieve register numbers.
7403 * ax-gdb.c (gen_var_ref): Likewise.
7404 * findvar.c (read_var_value): Likewise.
7405 * printcmd.c (address_info): Likewise.
7406
7407 * coffread.c (coff_reg_to_regnum): New function.
7408 (coff_register_funcs): New static variable.
7409 (process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
7410 Install SYMBOL_REGISTER_OPS callbacks.
7411 * mdebugread.c (mdebug_reg_to_regnum): New function.
7412 (mdebug_register_funcs): New static variable.
7413 (parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
7414 Install SYMBOL_REGISTER_OPS callbacks.
7415 * stabsread.c (stab_reg_to_regnum): New function.
7416 (stab_register_funcs): New static variable.
7417 (define_symbol): Do not call gdbarch_stab_reg_to_regnum.
7418 Install SYMBOL_REGISTER_OPS callbacks.
7419
930123b7
DE
74202009-06-03 Doug Evans <dje@google.com>
7421
7422 * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
7423 after discarding its contents.
7424
07b82ea5
PA
74252009-06-03 Pedro Alves <pedro@codesourcery.com>
7426
7427 * target.c: Include "exec.h".
7428 (update_current_target): Don't inherit to_sections or
7429 to_sections_end.
7430 (target_get_section_table): New.
7431 (target_section_by_addr): Fetch the section table from the passed
7432 in target.
7433 (memory_xfer_partial): Handle unmapped overlay sections before
7434 anything else. Get the overlay mapped address here. Adjust to
7435 use section_table_xfer_memory_partial.
7436 (get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
7437 instead of TARGET_OBJECT_MEMORY.
7438 (target_resize_to_sections): Delete.
7439 (remove_target_sections): Adjust to remove target sections from
7440 `current_target_sections', and use resize_section_table.
7441 * target.h (struct target_ops) <to_sections, to_sections_end>:
7442 Remove fields.
7443 <to_get_section_table>: New method.
7444 (xfer_memory, print_section_info): Delete declarations.
7445 (struct target_section_table): New type.
7446 (target_get_section_table): Declare.
7447 (target_resize_to_sections): Delete declaration.
7448 (remove_target_sections): Delete declaration.
7449 * bfd-target.c (target_bfd_xfer_partial): Get the section table
7450 from to_data.
7451 (target_bfd_get_section_table): New.
7452 (target_bfd_xclose): Adjust.
7453 (target_bfd_reopen): Store the section table in the to_data field.
7454 * corelow.c (core_data): New.
7455 (core_close): Adjust to release core_data and its sections.
7456 (core_open): Allocate core_data, and build its target sections
7457 table.
7458 (deprecated_core_resize_section_table): New.
7459 (core_files_info): Pass core_data to print_section_info.
7460 (core_xfer_partial): Adjust to use
7461 section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
7462 (init_core_ops): Do not install a deprecated_xfer_memory callback
7463 anymore.
7464 * solib.c (update_solib_list): Add the shared library sections
7465 to the current target sections table.
7466 * exec.c (current_target_sections_1): New global.
7467 (current_target_sections): New global.
7468 (exec_close_1): New function, refactored from exec_close. Remove
7469 the exec_bfd's sections from the current target sections table.
7470 Adjust to not use to_sections.
7471 (exec_close): Remove all target sections. Call exec_close_1.
7472 (exec_file_clear): Use exec_close_1 instead of unpushing the
7473 target.
7474 (exec_file_attach): Likewise. Adjust to not use to_sections. Add
7475 exec_bfd's sections to the current target sections table. Don't
7476 push the exec_ops target here.
7477 (resize_section_table): New.
7478 (add_target_sections): New.
7479 (remove_target_sections): Moved here.
7480 (section_table_xfer_memory): Adjust to implement the xfer_partial
7481 interface, and rename to...
7482 (section_table_xfer_memory_partial): ... this, replacing the
7483 current function of that same name.
7484 (exec_get_section_table): New.
7485 (exec_xfer_partial): New.
7486 (xfer_memory): Delete.
7487 (print_section_info): Replace the target_ops parameter by a
7488 target_section_table parameter.
7489 (exec_files_info, set_section_command, exec_set_section_address):
7490 Adjust to use the current sections table.
7491 (init_exec_ops): Do not register a deprecated_xfer_memory
7492 callback. Register to_xfer_partial and to_get_section_table
7493 callbacks.
7494 * infrun.c (handle_inferior_event): Update comments around
7495 solib_add.
7496 * rs6000-nat.c (xcoff_relocate_core): Adjust to use
7497 deprecated_core_resize_section_table.
7498 * exec.h (resize_section_table): Declare.
7499 (section_table_xfer_memory_partial): Add const char * argument.
7500 (remove_target_sections): Declare here.
7501 (add_target_sections): Declare.
7502 (print_section_info): Declare here.
7503 * gdbcore.h (deprecated_core_resize_section_table): Declare.
7504
4fa62494
UW
75052009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
7506
7507 * value.h (struct internalvar): Remove.
7508 (get_internalvar_integer): Add prototype.
7509 (set_internalvar_integer): Add prototype.
7510 (clear_internalvar): Add prototype.
7511
7512 * value.c (struct internalvar): Move here. Add type member. Remove
7513 endian member. Add union_internalvar member instead of value member.
7514 (init_if_undefined_command): Use intvar->type.
7515 (create_internalvar): Do not initialize value/endian, but type.
7516 (create_internalvar_type_lazy): Call create_internalvar.
7517 (value_of_internalvar): Handle host-side internalvar contents.
7518 (set_internalvar_component): Likewise.
7519 (set_internalvar): Likewise.
7520 (get_internalvar_integer): New function.
7521 (clear_internalvar): Likewise.
7522 (set_internalvar_integer): Likewise.
7523 (preserve_values): Handle host-side internalvar contents.
7524
7525 * breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
7526 set_internalvar_integer instead of set_internalvar.
7527 * findcmd.c (find_command): Likewise.
7528 * infrun.c (handle_inferior_event): Likewise.
7529 * source.c (forward_search_command, reverse_search_command): Likewise.
7530 * tracepoint.c (set_traceframe_num, set_tracepoint_num,
7531 set_traceframe_context): Likewise.
7532
7533 * printcmd.c (x_command): Call clear_internalvar instead of
7534 set_internalvar.
7535 * tracepoint.c (set_traceframe_context): Likewise.
7536
7537 * breakpoint.c (get_number_trailer): Call get_internalvar_integer
7538 instead of value_of_internalvar.
7539 * linespec.c (decode_dollar): Likewise.
7540
7541 * expprint.c (dump_subexp_body_standard): Use internalvar_name
7542 instead of accessing internalvar private elements.
7543 * valops.c (value_assign): Copy from original source instead of
7544 accessing internalvar private elements.
7545
6ceaaae5
UW
75462009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
7547
7548 * scm-lang.c (builtin_type_scm): Remove.
7549 (scm_lookup_name): Add GDBARCH parameter. Use it instead of
7550 objfile architecture. Use per-architecture builtin_scm_type instead
7551 of builtin_type_scm.
7552 (evaluate_exp): Pass expression architecture to scm_lookup_name.
7553
7554 (scm_get_field): Add SIZE parameter. Use it instead of
7555 TYPE_LENGTH (builtin_type_scm).
7556
7557 (build_scm_types): New function.
7558 (scm_type_data): New variable.
7559 (builtin_scm_type): New function.
7560 (_initialize_scheme_language): Do not initialize builtin_type_scm.
7561 Register build_scm_types as post-init function for scm_type_data.
7562
7563 * scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
7564 instead of builtin_type_scm.
7565
7566 * scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
7567 (scm_get_field): Add SIZE paramter.
7568 (scm_scmval_print): Remove prototype.
7569 (builtin_type_scm): Remove.
7570 (struct builtin_scm_type): Add structure definition.
7571 (builtin_scm_type): Add prototype.
7572
7573 * scm-valprint.c (scm_inferior_print): Add TYPE parameter. Use it
7574 instead of builtin_core_addr type; do not use objfile architecture.
7575 (scm_scmlist_print): Add TYPE parameter. Use it to define SCM_SIZE.
7576 Pass type to scm_scmval_print.
7577 (scm_ipruk): Add TYPE parameter. Use it to define SCM_SIZE.
7578 (scm_scmval_print): Make static. Add TYPE parameter. Use it to
7579 define SCM_SIZE. Pass type to scm_ipruk and scm_scmlist_print.
7580 (scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.
7581
0a9d309a
UW
75822009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
7583
7584 * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
7585 mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
7586 mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
7587 mdebug_type_unsigned_char, mdebug_type_unsigned_short,
7588 mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
7589 mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
7590 mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
7591 mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
7592 mdebug_type_complex, mdebug_type_double_complex,
7593 mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
7594 Remove.
7595
7596 (basic_type_data): New global variable.
7597 (basic_type): New function.
7598 (parse_type): Remove static basic type map map_bt. Call basic_type
7599 to get basic types instead of using mdebug_type_ variables.
7600
7601 (parse_symbol): Use builtin types instead of mdebug_type_ variables.
7602 (upgrade_type): Likewise.
7603 (parse_procedure): Likewise.
7604 (psymtab_to_symtab_1): Likewise.
7605
7606 (_initialize_mdebugread): Do not initialize mdebug_type_ variables.
7607 Initialize basic_type_data.
7608
289bd67a
UW
76092009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
7610
7611 * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
7612 * dfp.c (promote_decimal): Remove.
7613 (decimal_binop): Convert LEN_RESULT to input parameter.
7614 Remove call to decimal_binop.
7615 (decimal_compare): Remove call to decimal_binop.
7616
7617 * valarith.c (value_binop): Pass desired result type length
7618 to decimal_binop.
7619
64c9be2e
TG
76202009-06-01 Tristan Gingold <gingold@adacore.com>
7621
7622 * configure.tgt (avr): Set gdb_sim to use the simulator.
7623
5a437975
DE
76242009-05-29 Doug Evans <dje@google.com>
7625
7626 * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
7627 If scheduler-locking is enabled, we're not going to be singlestepping
7628 any other previously stopped thread.
7629
ab730e72
PA
76302009-05-29 Pedro Alves <pedro@codesourcery.com>
7631
7632 * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
7633
3d22076f
EZ
76342009-05-29 Eli Zaretskii <eliz@gnu.org>
7635
7636 * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
7637 for stabs and COFF debug info.
7638
b3444185
PA
76392009-05-28 Pedro Alves <pedro@codesourcery.com>
7640
7641 * infrun.c (handle_inferior_event): When thread hoping, switch
7642 inferior_ptid to the event thread before removing breakpoints from
7643 the target. If not stopping, also try to revert back to a thread
7644 that was doing a "next". Check if that thread still exists before
7645 resuming.
7646 (currently_stepping_thread): Delete and merge with ...
7647 (currently_stepping): ... this.
7648 (currently_stepping_callback): Rename to ...
7649 (currently_stepping_or_nexting_callback): ... this, and also
7650 return true if the thread was stepping over a call (has a
7651 step-resume breakpoint).
7652
8f500870
TT
76532009-05-28 Tom Tromey <tromey@redhat.com>
7654
7655 * python/python.c (gdbpy_parameter): Rename. Fix error message.
7656 (GdbMethods): Change "get_parameter" to "parameter".
7657
6bf0ce2b
PP
76582009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
7659 Paul Pluzhnikov <ppluzhnikov@google.com>
7660
7661 * configure.ac (!have_libpython): Add python-prettyprint source
7662 and object files.
7663 * configure: Regenerate.
7664 * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
7665 python headers.
7666
b6313243
TT
76672009-05-27 Vladimir Prus <vladimir@codesourcery.com>
7668 Tom Tromey <tromey@redhat.com>
7669 Thiago Jung Bauermann <bauerman@br.ibm.com>
7670
7671 * mi/mi-main.c (mi_cmd_list_features): List "python" feature.
7672 * varobj.h (varobj_set_visualizer): Declare.
7673 (varobj_get_display_hint): Likewise.
7674 (varobj_update_result_t) <children_changed, value_installed>: New
7675 fields.
7676 * mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
7677 * mi/mi-cmds.h (mi_cmd_var_set_visualizer,
7678 mi_cmd_var_set_child_range): Declare.
7679 * mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
7680 (mi_cmd_var_list_children): Emit display hint.
7681 (varobj_update_one): Emit display hint. Handle dynamic children.
7682 * python/python.c (GdbMethods): Add "default_visualizer".
7683 * python/python-internal.h (apply_varobj_pretty_printer,
7684 gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
7685 Declare.
7686 (gdbpy_default_visualizer): Likewise.
7687 * varobj.c: Include python.h, python-internal.h.
7688 (PyObject): New typedef.
7689 (struct varobj) <children_requested, pretty_printer>: New fields.
7690 (varobj_create): Call install_default_visualizer.
7691 (instantiate_pretty_printer): New function.
7692 (varobj_set_display_format): Update.
7693 (varobj_get_display_hint): New function.
7694 (update_dynamic_varobj_children): New function.
7695 (varobj_get_num_children): Handle dynamic children.
7696 (varobj_list_children): Likewise.
7697 (install_new_value): Likewise.
7698 (varobj_add_child): New function.
7699 (install_visualizer): Likewise.
7700 (install_default_visualizer): Likewise.
7701 (varobj_set_visualizer): Likewise.
7702 (varobj_update): Handle dynamic children.
7703 (create_child): Use create_child_with_value.
7704 (create_child_with_value): New function.
7705 (value_get_print_value): Call pretty printer. Add value_formatter
7706 argument.
7707 (c_value_of_variable): Update.
7708 (varobj_invalidate): Always free all_rootvarobj.
7709 * python/python-prettyprint.c (apply_varobj_pretty_printer): New
7710 function.
7711 (gdbpy_get_varobj_pretty_printer): Likewise.
7712 (gdbpy_default_visualizer): Likewise.
7713
a6bac58e
TT
77142009-05-27 Tom Tromey <tromey@redhat.com>
7715 Thiago Jung Bauermann <bauerman@br.ibm.com>
7716 Phil Muldoon <pmuldoon@redhat.com>
7717 Paul Pluzhnikov <ppluzhnikov@google.com>
7718 Vladimir Prus <vladimir@codesourcery.com>
7719
7720 * python/python-value.c (value_object_to_value): New function.
7721 * python/python-internal.h: Include frameobject.h.
7722 (gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
7723 Declare.
7724 (value_object_to_value): Declare.
7725 * printcmd.c (struct format_data) <raw>: New field.
7726 (last_format): Default to 0.
7727 (decode_format): Initialize val.raw. Handle /r flag.
7728 (print_command_1): Initialize fmt.raw and opts.raw.
7729 (output_command): Likewise.
7730 (x_command): Fix initialization of fmt.format. Initialize
7731 fmt.raw.
7732 (display_command): Initialize fmt.raw.
7733 (do_one_display): Set opts.raw.
7734 * python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
7735 gdbpy_display_hint_cst): New globals.
7736 (_initialize_python): Initialize them. Set gdb.pretty_printers.
7737 * cp-valprint.c: Include python.h.
7738 (cp_print_value): Call apply_val_pretty_printer.
7739 * python/python.h (apply_val_pretty_printer): Declare.
7740 * stack.c (print_this_frame_argument_p): Remove.
7741 (print_frame_args): Compute summary flag. Don't use
7742 print_this_frame_argument_p.
7743 * valprint.c: Include python.h.
7744 (user_print_options): Initialize new fields.
7745 (scalar_type_p): New function.
7746 (val_print): Handle 'raw' and 'summary' modes. Call
7747 apply_val_pretty_printer.
7748 (value_print): Handle 'raw' mode.
7749 * valprint.h (struct value_print_options) <raw, summary>: New
7750 fields.
7751 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
7752 (SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
7753 (python-prettyprint.o): New target.
7754 * python/python-prettyprint.c: New file.
7755
42ae5230
TT
77562009-05-27 Tom Tromey <tromey@redhat.com>
7757 Paul Pluzhnikov <ppluzhnikov@google.com>
7758
7759 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
7760 value_address.
7761 * cli/cli-dump.c (dump_value_to_file): Use value_address.
7762 * valprint.c (common_val_print): Likewise.
7763 * v850-tdep.c (v850_push_dummy_call): Use value_address.
7764 * tracepoint.c (encode_actions): Use value_address.
7765 * printcmd.c (print_formatted): Use value_address.
7766 (x_command): Likewise.
7767 * p-valprint.c (pascal_object_print_static_field): Use
7768 value_address.
7769 * mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
7770 * mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
7771 * m32r-tdep.c (m32r_push_dummy_call): Use value_address.
7772 * jv-valprint.c (java_value_print): Use value_address.
7773 * infcall.c (find_function_addr): Use value_address.
7774 * gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
7775 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
7776 * frv-tdep.c (frv_push_dummy_call): Use value_address.
7777 * frame.c (frame_register_unwind): Use value_address.
7778 (frame_unwind_register_value): Likewise.
7779 * darwin-nat-info.c (info_mach_region_command): Use
7780 value_address.
7781 * cp-valprint.c (cp_print_static_field): Use value_address.
7782 * c-valprint.c (c_value_print): Use value_address.
7783 * breakpoint.c (update_watchpoint): Use value_address.
7784 (can_use_hardware_watchpoint): Likewise.
7785 * ada-valprint.c (ada_val_print_1): Use value_address.
7786 (ada_value_print): Likewise.
7787 * ada-tasks.c (read_fat_string_value): Use value_address.
7788 * jv-lang.c (java_link_class_type): Use set_value_address.
7789 (java_link_class_type): Likewise.
7790 (get_java_utf8_name): Use value_address.
7791 (type_from_class): Likewise.
7792 (java_link_class_type): Likewise.
7793 * findvar.c (value_of_register): Use set_value_address.
7794 (read_var_value): Likewise.
7795 (read_var_value): Likewise.
7796 * eval.c (evaluate_subexp_standard): Use set_value_address.
7797 (evaluate_subexp_standard): Use value_address.
7798 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
7799 * ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
7800 (ada_value_primitive_packed_val): Likewise.
7801 (ensure_lval): Likewise.
7802 (thin_data_pntr): Use value_address.
7803 (desc_bounds): Likewise.
7804 (ada_value_primitive_packed_val): Likewise.
7805 (value_assign_to_component): Likewise.
7806 (ensure_lval): Likewise.
7807 (make_array_descriptor): Likewise.
7808 (ada_to_fixed_value): Likewise.
7809 (unwrap_value): Likewise.
7810 * value.c (deprecated_value_address_hack): Remove.
7811 (value_address): New function.
7812 (value_raw_address): Likewise.
7813 (set_value_address): Likewise.
7814 (value_fn_field): Use set_value_address.
7815 (value_from_contents_and_address): Likewise.
7816 (value_fn_field): Likewise.
7817 (allocate_value_lazy): Don't use VALUE_ADDRESS.
7818 (value_as_address): Use value_address.
7819 (value_static_field): Likewise.
7820 * valops.c (search_struct_field): Use set_value_address.
7821 (value_at): Likewise.
7822 (value_at_lazy): Likewise.
7823 (value_repeat): Likewise.
7824 (value_cast_structs): Use value_address.
7825 (value_cast): Likewise.
7826 (value_fetch_lazy): Likewise.
7827 (value_assign): Likewise.
7828 (value_repeat): Likewise.
7829 (address_of_variable): Likewise.
7830 (value_coerce_array): Likewise.
7831 (value_coerce_function): Likewise.
7832 (value_addr): Likewise.
7833 (search_struct_field): Likewise.
7834 (search_struct_method): Likewise.
7835 (find_method_list): Likewise.
7836 (value_struct_elt_for_reference): Likewise.
7837 (value_full_object): Likewise.
7838 * jv-valprint.c (java_value_print): Use set_value_address.
7839 * value.h (deprecated_value_address_hack): Remove.
7840 (VALUE_ADDRESS): Remove.
7841 (value_address): Declare.
7842 (value_raw_address): Declare.
7843 (set_value_address): Declare.
7844
2c74e833
TT
78452009-05-27 Tom Tromey <tromey@redhat.com>
7846 Thiago Jung Bauermann <bauerman@br.ibm.com>
7847 Phil Muldoon <pmuldoon@redhat.com>
7848 Paul Pluzhnikov <ppluzhnikov@google.com>
7849
7850 * python/python.c (_initialize_python): Call
7851 gdbpy_initialize_types.
7852 (GdbMethods): Add "lookup_type".
7853 * python/python-value.c (value_object) <type>: New field.
7854 (valpy_dealloc): Decref type.
7855 (valpy_new): Initialize type.
7856 (valpy_get_type): New function.
7857 (value_to_value_object): Initialize type.
7858 (valpy_cast): New function.
7859 (value_object_getset): Add "type".
7860 (value_object_methods): Add "cast".
7861 * python/python-internal.h (type_to_type_object): Declare.
7862 (type_object_to_type): Likewise.
7863 (gdbpy_initialize_types): Likewise.
7864 (gdbpy_lookup_type): Declare.
7865 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
7866 (SUBDIR_PYTHON_SRCS): Add python-type.c.
7867 (python-type.o): New target.
7868 * python/python-type.c: New file.
7869
89c73ade
TT
78702009-05-27 Tom Tromey <tromey@redhat.com>
7871 Thiago Jung Bauermann <bauerman@br.ibm.com>
7872 Phil Muldoon <pmuldoon@redhat.com>
7873
7874 * python/python.c: Include objfiles.h, observer.h.
7875 (gdbpy_auto_load): New global.
7876 (gdbpy_current_objfile): Likewise.
7877 (GDBPY_AUTO_FILENAME): New define.
7878 (gdbpy_new_objfile): New function.
7879 (gdbpy_get_current_objfile): Likewise.
7880 (gdbpy_objfiles): Likewise.
7881 (_initialize_python): Add "maint set auto-load". Call
7882 gdbpy_initialize_objfile. Attach objfile observer.
7883 (GdbMethods): New methods current_objfile, objfiles.
7884 * python/python-objfile.c: New file.
7885 * python/python-internal.h (objfile_to_objfile_object): Declare.
7886 (objfpy_get_printers): Likewise.
7887 (gdbpy_initialize_objfile): Likewise.
7888 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
7889 (SUBDIR_PYTHON_SRCS): Add python-objfile.c.
7890 (python-objfile.o): New target.
7891
a75724bc
PA
78922009-05-27 Pedro Alves <pedro@codesourcery.com>
7893
7894 * infrun.c (follow_exec): Clear the stop_requested flag.
7895 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7896 Add debug output.
7897
97c44116
AR
78982009-05-27 Aleksandar Ristovski <aristovski@qnx.com>
7899
7900 * nto-procfs.c (get_regset): Pass correct pointer.
7901
f504f079
DE
79022009-05-26 Doug Evans <dje@google.com>
7903
7904 * dwarf2read.c (follow_die_ref): Add comment.
7905 (dwarf2_mark_helper): Tweak comment.
7906 (dwarf2_mark): Move description to its proper place.
7907
4fcbb494
PM
79082009-05-25 Pierre Muller <muller@ics.u-strasbg.fr>
7909
7910 * procfs.c (procfs_wait): Add options parameter.
7911
4e3990f4
DE
79122009-05-24 Doug Evans <dje@google.com>
7913
e09875d4
DE
7914 Global renaming of find_thread_pid to find_thread_ptid.
7915 * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
7916 * thread.c (find_thread_ptid): Renamed from find_thread_pid.
7917 All callers updated.
7918
4e3990f4
DE
7919 * infrun.c (follow_fork): Initialize new step_* locals
7920 to avoid "may be used uninitialized" warnings.
7921
98b54c18
PA
79222009-05-24 Pedro Alves <pedro@codesourcery.com>
7923
7924 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
7925
e58b0e63
PA
79262009-05-24 Pedro Alves <pedro@codesourcery.com>
7927
7928 * gdbthread.h (struct thread_info): New `pending_follow' field.
7929 * thread.c (new_thread): New function.
7930 (add_thread_silent): Use it.
7931 * breakpoint.c (internal_breakpoint_number): New global, moved
7932 from inside...
7933 (create_internal_breakpoint): ... this.
7934 (clone_momentary_breakpoint): New.
7935 * breakpoint.h (clone_momentary_breakpoint): Declare.
7936 * infrun.c (nullify_last_target_wait_ptid): Move declaration
7937 higher.
7938 (pending_follow): Delete.
7939 (follow_fork): Handle pending follow fork event here. Moved the
7940 preserving of thread stepping state here.
7941 (resume): Don't handle pending follow fork events here. Only
7942 install the inferior's terminal modes if we're about to resume it.
7943 (proceed): Handle possible pending follow fork events here.
7944 (init_wait_for_inferior): No need to clear pending_follow anymore,
7945 it's gone.
7946 (handle_inferior_event): Adjust to per-thread `pending_follow'.
7947 Call `follow_fork' to handle following the fork. If the
7948 follow-fork is cancelled, stop stepping.
7949 * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
7950 `pending_follow' events. Remove code that handled preserving the
7951 thread stepping state.
7952 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
7953 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
7954
ea26755d 79552009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
70992597
PM
7956
7957 * symfile.c (add_shared_symbol_files_command): Remove
7958 prototype and function.
7959 (_initialize _symfile): Move "add-shared-symbol-files"
7960 command and "assf" alias.
7961 * windows-nat.c (_initialize_windows_nat): to here.
7962 Change "add-shared-symbol-files" to alias.
7963
7964 * config/i386/cygwin.mh: Remove NAT_FILE.
7965 * config/i386/mingw.mh: Remove NAT_FILE.
7966 * config/i386/mingw64.mh: Remove NAT_FILE.
7967 * config/i386/nm-cygwin.h: Remove file.
7968 * config/i386/nm-cygwin64.h: Remove file.
7969
5e31abdf
HZ
79702009-05-24 Hui Zhu <teawater@gmail.com>
7971
7972 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
7973 I386_LINUX_RECORD_IOCTL_*,
7974 I386_LINUX_RECORD_FCNTL_*) Removed.
7975 (i386_linux_init_abi): Change size of record from macros to
7976 numbers.
7977
79782009-05-24 Hui Zhu <teawater@gmail.com>
7979
7980 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
7981 * linux-record.c (record_linux_system_call): Ditto.
7982 * linux-record.h (linux_record_tdep): Ditto.
7983
1b36a34b
JK
79842009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7985
7986 Replace the savestring calls by xstrdup calls where possible.
7987 * breakpoint.c (condition_command, set_raw_breakpoint)
7988 (create_catchpoint, update_breakpoint_locations): Replace the
7989 savestring calls by xstrdup calls where possible.
7990 * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
7991 (record_producer): Likewise.
7992 * coffread.c (coff_start_symtab, complete_symtab): Likewise.
7993 * corefile.c (set_gnutarget): Likewise.
7994 * dbxread.c (add_new_header_file): Likewise.
7995 * demangle.c (set_demangling_command, set_demangling_style): Likewise.
7996 * event-top.c (push_prompt, pop_prompt, command_line_handler)
7997 (set_async_prompt): Likewise.
7998 * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
7999 Likewise.
8000 * language.c (set_language_command, _initialize_language): Likewise.
8001 * linespec.c (decode_line_2): Likewise.
8002 * rs6000-nat.c (add_vmap): Likewise.
8003 * top.c (set_prompt, init_history, init_main): Likewise.
8004 * tracepoint.c (stringify_collection_list): Likewise.
8005 * varobj.c (varobj_create): Remove variable expr_len. Replace the
8006 savestring calls by xstrdup calls where possible.
8007 (value_of_root, c_name_of_variable, c_describe_child): Replace the
8008 savestring calls by xstrdup calls where possible.
8009 * xcoffread.c (complete_symtab): Likewise.
8010 * cli/cli-script.c (build_command_line, define_command): Likewise.
8011 * cli/cli-setshow.c (do_setshow_command): Likewise.
8012
61d8f275
JK
80132009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8014
8015 Remove already unreachable code.
8016 * varobj.c (varobj_get_handle): Fix comment when error is called.
8017 All callers updated.
8018
969107c5
EZ
80192009-05-23 Eli Zaretskii <eliz@gnu.org>
8020
70926f63
EZ
8021 * README (`configure' options): Document GDB-specific options to
8022 `configure'.
8023
8c7a1ee8
EZ
8024 * symtab.c (skip_prologue_using_lineinfo): New function.
8025 (find_function_start_sal): Use it to get to the first line of
8026 function's body that has an entry in the lineinfo table.
8027
969107c5
EZ
8028 * symmisc.c (dump_symtab): Switch the current language to
8029 the language of the symtab we are dumping only if the symtab's
8030 language is neither language_auto nor language_unknown.
8031
8032 * coffread.c (coff_symtab_read): Set language_minimal as the
8033 language for the "_globals_" pseudo-file.
754dd031
EZ
8034 (process_coff_symbol): Set the symbol's language to the language
8035 of current_subfile.
969107c5 8036
0542c86d
PA
80372009-05-22 Pedro Alves <pedro@codesourcery.com>
8038
8039 * target.h (struct section_table): Rename to ...
8040 (struct target_section): ... this.
8041 * exec.c: Adjust all references.
8042 * exec.h: Adjust all references.
8043 * nto-tdep.c: Adjust all references.
8044 * nto-tdep.h: Adjust all references.
8045 * ppc-linux-tdep.c: Adjust all references.
8046 * rs6000-nat.c: Adjust all references.
8047 * s390-tdep.c: Adjust all references.
8048 * solib-darwin.c: Adjust all references.
8049 * solib-frv.c: Adjust all references.
8050 * solib-irix.c: Adjust all references.
8051 * solib-null.c: Adjust all references.
8052 * solib-osf.c: Adjust all references.
8053 * solib-pa64.c: Adjust all references.
8054 * solib-som.c: Adjust all references.
8055 * solib-sunos.c: Adjust all references.
8056 * solib-svr4.c: Adjust all references.
8057 * solib-target.c: Adjust all references.
8058 * solib.c: Adjust all references.
8059 * solist.h: Adjust all references.
8060 * symfile.c: Adjust all references.
8061 * symfile.h: Adjust all references.
8062 * target.c: Adjust all references.
8063
b34fab9a
HZ
80642009-05-22 Hui Zhu <teawater@gmail.com>
8065
8066 Add sys_fcntl argument interfaces to linux_record_tdep.
8067
8068 * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
8069 fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
8070 interfaces.
8071 * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
8072 I386_LINUX_RECORD_FCNTL_F_GETLK64,
8073 I386_LINUX_RECORD_FCNTL_F_SETLK64,
8074 I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
8075 of I386 Linux sys_fcntl arguments.
8076 (i386_linux_init_abi): Set macros values to linux_record_tdep.
8077 * linux-record.c (record_linux_system_call): Change to use
8078 the interface in linux_record_tdep in sys_fcntl and
8079 sys_fcntl64.
8080
8081 * linux-record.c (record_linux_system_call): Fix the process
8082 record build error about type in CYGWIN.
8083
88c0ab9d
PA
80842009-05-22 Pedro Alves <pedro@codesourcery.com>
8085
8086 * inflow.c (kill_command): Delete left over static declaration.
8087
348f8c02
PA
80882009-05-22 Pedro Alves <pedro@codesourcery.com>
8089
8090 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
8091 Include exec.h.
8092 (struct section_closure): Delete.
8093 (add_to_section_table): Delete.
8094 (build_target_sections_from_bfd): Delete.
8095 (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
8096 (target_bfd_reopen): Use build_section_table.
8097 * exec.c (xfer_memory): Move most code except for overlay
8098 debugging support from here...
8099 (section_table_xfer_memory): ... to this new function.
8100 (section_table_xfer_memory_partial): New.
8101 * exec.h (section_table_xfer_memory_partial): Declare.
8102 * bfd-target.h (build_target_sections_from_bfd): Delete
8103 declaration.
8104
41575630
PA
81052009-05-22 Pedro Alves <pedro@codesourcery.com>
8106
8107 * remote.c (compare_sections_command): Don't declare exec_bfd.
8108 * tracepoint.c: Include "gdbcore.h".
8109 (remote_set_transparent_ranges): Don't declare exec_bfd.
8110
783425fc
PA
81112009-05-21 Pedro Alves <pedro@codesourcery.com>
8112
8113 * aix-thread.c (init_aix_thread_ops): Whitespace.
8114
61439e34
PA
81152009-05-21 Pedro Alves <pedro@codesourcery.com>
8116
8117 * dec-thread.c (dec_thread_wait): Add options parameter. Use it
8118 to call the to_wait method in the target beneath.
8119 * remote-m32r-sdi.c (m32r_wait): Add options parameter.
8120
8914d83b
JB
81212009-05-21 Joel Brobecker <brobecker@adacore.com>
8122
8123 * aix-thread.c (aix_thread_wait): Add options parameter. Use it
8124 to call the to_wait method in the target_beneath.
8125
d9d2d8b6
PA
81262009-05-21 Pedro Alves <pedro@codesourcery.com>
8127
8128 * linux-nat.c (linux_nat_terminal_inferior)
8129 (linux_nat_terminal_ours): Don't check sync_execution.
8130 * remote.c (remote_terminal_inferior, remote_terminal_ours):
8131 Don't check sync_execution. Update comments.
8132 * target.c (target_terminal_inferior): New.
8133 * target.h (target_terminal_inferior): Delete macro, and declare
8134 as function.
8135 * event-top.c (async_disable_stdin): Make idempotent. Don't give
8136 the target the terminal here.
8137 * inflow.c (terminal_ours_1): Don't return early without setting
8138 `terminal_is_ours'.
8139
47608cb1
PA
81402009-05-21 Pedro Alves <pedro@codesourcery.com>
8141
8142 * target.h (TARGET_WNOHANG): New.
8143 * target.c (target_wait): Add `options' argument. Adjust.
8144 (struct target_ops) <to_wait>: Add `options' argument.
8145 (target_wait): Add `options' argument.
8146 * infrun.c (wait_for_inferior): Pass 0 as options to
8147 target_wait (blocking wait).
8148 (fetch_inferior_event): Pass TARGET_WNOHANG as options to
8149 target_wait.
8150 * fork-child.c (startup_inferior): Pass 0 as options to
8151 target_wait (blocking wait).
8152 * linux-nat.c (linux_nat_create_inferior): Remove async masking.
8153 (linux_nat_wait_1): Add `target_options' argument. Use it instead
8154 of checking on target_can_async_p.
8155 (linux_nat_wait): Add `target_options' argument. Adjust.
8156 * remote.c (remote_wait_ns): Add `options' argument. Adjust to
8157 check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
8158 (remote_wait_as): Add `options' argument. Adjust to check on
8159 TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
8160 a blocking wait, keep waiting until an interesting event comes
8161 out.
8162 (remote_wait): Add `options' argument. Don't loop here if the
8163 target is in async mode, and a blocking wait has been requested.
8164
8165 * top.c (deprecated_target_wait_hook): Add `options' argument.
8166 * linux-thread-db.c (thread_db_wait): Add `options' argument, and
8167 pass it down to the layer beneath.
8168 * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
8169 * record.c (record_beneath_to_wait): Add `options' argument.
8170 (record_wait): Add `options' argument, and pass it down to the
8171 layer beneath.
8172 * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
8173 * darwin-nat.c (darwin_wait): Likewise.
8174 * defs.h (deprecated_target_wait_hook): Likewise.
8175 * gnu-nat.c (gnu_wait): Add `options' argument.
8176 * go32-nat.c (go32_wait): Likewise.
8177 * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
8178 pass it down to the layer beneath.
8179 * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
8180 * monitor.c (monitor_wait): Likewise.
8181 * nto-procfs.c (procfs_wait): Likewise.
8182 * remote-mips.c (mips_wait): Add `options' argument.
8183 * remote-sim.c (gdbsim_wait): Likewise.
8184 * rs6000-nat.c (rs6000_wait): Add `options' argument.
8185 * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
8186 it down to the layer beneath.
8187 * spu-linux-nat.c (spu_child_wait): Add `options' argument.
8188 * windows-nat.c (windows_wait): Likewise.
8189 * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
8190
9944e9c2
PA
81912009-05-21 Pedro Alves <pedro@codesourcery.com>
8192
8193 * mi/mi-interp.c (mi_on_resume): Account for whole process
8194 resumes.
8195
c244a140
JK
81962009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8197
8198 * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
8199
76bee0cc
JK
82002009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8201
8202 * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
8203
4ac36638
JK
82042009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8205
8206 Fix parsing DW_AT_const_value using DW_FORM_string.
8207 * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
8208
77f0be4e
JB
82092009-05-20 Joel Brobecker <brobecker@adacore.com>
8210
8211 * aix-thread.c (giter_count): Do not count the main thread.
8212 (giter_accum): Do not include the main thread.
8213
fbdebf46
JK
82142009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8215
8216 Remove the PROT parameter from openp.
8217 * source.c (openp): Remove the parameter PROT. Assertion check MODE.
8218 defs.h (openp): Update the prototype.
8219 Update all the openp callers.
8220
5fd62852
PA
82212009-05-19 Pedro Alves <pedro@codesourcery.com>
8222
8223 * inflow.c (kill_command): Moved to infcmd.c.
8224 (_initialize_inflow): Don't add the "kill" command or clear
8225 inferior_ptid here.
8226 * infcmd.c (kill_command): Moved here from inflow.c.
8227 (_initialize_infcmd): Add the "kill" command here.
8228
191c4426
PA
82292009-05-19 Pedro Alves <pedro@codesourcery.com>
8230
8231 * fork-child.c: Don't include frame.h. Include terminal.h.
8232 (fork_inferior): Call new_tty_postfork after forking adn adding
8233 the child to the inferior list.
8234 * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
8235 here.
8236 * inflow.c (struct terminal_info): Remove const qualifier from
8237 `run_terminal' field.
8238 (inferior_thisrun_terminal): Tweak comment.
8239 (inflow_inferior_exit): Release the `run_terminal' field.
8240 (copy_terminal_info): New function.
8241 (new_tty_postfork): New function.
8242 * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
8243 (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
8244 * inf-ptrace.c: Include terminal.h.
8245 (inf_ptrace_follow_fork): Copy the parent's terminal info to the
8246 child.
8247 * linux-nat.c: Include terminal.h.
8248 (linux_child_follow_fork): Copy the parent's terminal info to the
8249 child.
8250 * inf-ttrace.c: Include terminal.h.
8251 (inf_ttrace_follow_fork): Copy the parent's terminal info to the
8252 child.
8253
2ea7b647
PA
82542009-05-19 Pedro Alves <pedro@codesourcery.com>
8255
8256 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
8257 (update_global_location_list): Use gdbarch_has_global_breakpoints
8258 instead of gdbarch_has_global_solist and
8259 target_supports_multi_process.
8260 * dicos-tdep.c (dicos_init_abi): Set
8261 gdbarch_has_global_breakpoints.
8262 * gdbarch.sh (has_global_solist): Update comment.
8263 (has_global_breakpoints): New.
8264 * remote.c (remote_start_remote): Use
8265 gdbarch_has_global_breakpoints instead of
8266 gdbarch_has_global_solist.
8267 * target.c (target_detach): Use gdbarch_has_global_breakpoints
8268 instead of gdbarch_has_global_solist.
8269 * infcmd.c (attach_command): Use gdbarch_has_global_solist instead
8270 of target_supports_multi_process.
8271
6342b74a
PP
82722009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8273
8274 * objc-lang.c (find_methods): Plug a small memory leak.
8275
1a816a87
PA
82762009-05-18 Pedro Alves <pedro@codesourcery.com>
8277
8278 * solib-svr4.c: Include observer.h.
8279 (debug_base, debug_loader_offset_p, debug_loader_offset)
8280 (debug_loader_name, main_lm_addr): Move these globals...
8281 (struct svr4_info): ... into this new structure.
8282 (svr4_info_p): New typedef.
8283 (svr4_info): New global.
8284 (get_svr4_info, remove_svr4_info, solib_svr4_inferior_exit): New
8285 functions.
8286 (locate_base, solib_svr4_r_map, solib_svr4_r_brk)
8287 (solib_svr4_r_ldsomap): Add svr4_info argument. Adjust to
8288 per-inferior svr4.
8289 (open_symbol_file_object): Adjust to per-inferior svr4.
8290 (svr4_default_sos, svr4_current_sos, svr4_fetch_objfile_link_map):
8291 Ditto.
8292 (enable_break): Add svr4_info argument. Adjust to per-inferior
8293 svr4.
8294 (enable_break, svr4_solib_create_inferior_hook, svr4_clear_solib):
8295 Adjust to per-inferior svr4.
8296 (_initialize_svr4_solib): Install the solib_svr4_inferior_exit
8297 observer.
8298
4d062f1a
PA
82992009-05-18 Pedro Alves <pedro@codesourcery.com>
8300
8301 * linux-nat.h (linux_proc_get_tgid): Declare.
8302 * linux-nat.c (linux_proc_get_tgid): New.
8303 * linux-thread-db.c (struct thread_db_info): New field
8304 `need_stale_parent_threads_check'.
8305 (add_thread_db_info): Set it.
8306 (find_new_threads_callback): Ignore stale fork parent threads.
8307 (thread_db_resume): New.
8308 (init_thread_db_ops): Install thread_db_resume.
8309
d90e17a7
PA
83102009-05-18 Pedro Alves <pedro@codesourcery.com>
8311
8312 * fork-child.c (fork_inferior): Only reset the thread list if this
8313 is the first inferior.
8314 (startup_inferior): If the target support multi-process, tell it
8315 to resume only the new process.
8316 * linux-nat.c (num_lwps): Delete global.
8317 (purge_lwp_list): New function.
8318 (num_lwps): New function.
8319 (add_lwp, delete_lwp): Adjust.
8320 (ptid_match): New.
8321 (iterate_over_lwps): Add filter argument. Handle it.
8322 (linux_nat_attach): Remove FIXME note.
8323 (linux_nat_detach): Adjust to iterate over threads of the inferior
8324 we're detaching from. Adjust to num_lwps being a function. Don't
8325 assume the head of the lwp list is the main thread of the process
8326 we're detaching from. Don't destroy the LWP list.
8327 (resume_callback): Add debug output.
8328 (linux_nat_resume): Handle resuming a single inferior. Allow a
8329 wildcard resume in non-stop mode.
8330 (linux_handle_extended_wait): Don't assume inferior_ptid is the
8331 correct inferior of the parent LWP.
8332 (status_callback): Also check lp->waitstatus.
8333 (select_event_lwp): Add new filter parameter. Handle it.
8334 (linux_nat_filter_event): Adjust to num_lwps being a function.
8335 (linux_nat_wait_1): When adding the first lwp of the inferior, use
8336 an is_lwp check instead of checking for the number of lwps.
8337 (linux_nat_wait_1): Handle waiting for a specific tgid. Handle
8338 pending process exit statuses.
8339 (linux_nat_mourn_inferior): Don't destroy all the LWP info.
8340 Instead delete LWPs of the inferior that we're mourning. Don't
8341 unregister from the event loop here.
8342 (linux_nat_pid_to_str): Use `num_lwps'.
8343 (linux_nat_make_corefile_notes): Adjust to walk over lwps of a
8344 single inferior.
8345 (linux_nat_is_async_p): Check if async was masked out.
8346 (linux_multi_process): New global.
8347 (linux_nat_supports_multi_process): New.
8348 (linux_nat_stop_lwp): Remove LWP filtering. It is done by the
8349 caller.
8350 (linux_nat_stop): Adjust to make iterate_over_lwps itself do the
8351 LWP filtering.
8352 (linux_nat_close): New.
8353 (linux_nat_add_target): Register linux_nat_close and
8354 linux_nat_supports_multi_process.
8355 * linux-nat.h (iterate_over_lwps): Add filter argument.
8356 * linux-thread-db.c (thread_db_handle): Delete.
8357 (proc_handle, thread_agent, td_init_p, td_ta_new_p)
8358 (td_ta_map_id2thr_p, td_ta_map_lwp2thr_p, td_ta_thr_iter_p)
8359 (td_ta_event_addr_p, td_ta_set_event_p, td_ta_event_getmsg_p)
8360 (td_thr_validate_p, td_thr_get_info_p, td_thr_event_enable_p)
8361 (td_thr_tls_get_addr_p, td_create_bp_addr, td_death_bp_addr): No
8362 longer globals, moved to...
8363 (struct thread_db_info): ... this new structure.
8364 (thread_db_list): New.
8365 (add_thread_db_info, get_thread_db_info, delete_thread_db_info):
8366 New.
8367 (have_threads_callback): Filter out threads of all inferiors but
8368 the one specified by the ARGS argument.
8369 (have_threads): Add ptid argument specifying the inferior we're
8370 interested in. Handle it.
8371 (struct thread_get_info_inout): New.
8372 (thread_get_info_callback, thread_from_lwp): Adjust to use it.
8373 (thread_db_attach_lwp): Check that inferior of the passed in
8374 thread is using thread-db. Adjust.
8375 (enable_thread_event): Remove thread_agent parameter. Instead,
8376 get it from the per-inferior thread-db info.
8377 (dladdr_to_soname): Move higher up.
8378 (enable_thread_event_reporting): Adjust to use per-inferior
8379 thread-db info.
8380 (try_thread_db_load_1): Replace `handle' parameter by a
8381 thread_db_info parameter. Adjust to use per-inferior thread-db
8382 info.
8383 (try_thread_db_load): Adjust to use per-inferior thread-db info.
8384 (thread_db_load, disable_thread_event_reporting): Ditto.
8385 (check_for_thread_db): Remove conditional reporting of which
8386 libthread_db is in use.
8387 (thread_db_new_objfile): Add comment about inferior_ptid.
8388 (attach_thread): Adjust to use per-inferior thread-db info.
8389 (thread_db_detach): Adjust to use per-inferior thread-db info.
8390 Remove thread event breakpoints of the current inferior. Only
8391 unpush the thread-db target if there are no more processes using
8392 it.
8393 (check_event): Adjust to use per-inferior thread-db info.
8394 (thread_db_wait): Adjust to use per-inferior thread-db info. Only
8395 unpush the thread-db target if there are no more processes using
8396 it.
8397 (thread_db_mourn_inferior): Adjust to use per-inferior thread-db
8398 info. Mark breakpoints of the current inferior out before
8399 deleting them. Only unpush the thread-db target if there are no
8400 more processes using it.
8401 (find_new_threads_callback): Adjust to use per-inferior thread_db
8402 info.
8403 (thread_db_find_new_threads_1): Add new ptid argument. Adjust to
8404 use per-inferior thread-db info.
8405 (thread_db_find_new_threads): Adjust to use per-inferior thread-db
8406 info.
8407 (thread_db_get_thread_local_address): Adjust.
8408 (thread_db_get_ada_task_ptid): Adjust.
8409 * inf-ptrace.c (inf_ptrace_mourn_inferior): Only unpush the target
8410 if there no more processes left to debug.
8411 * thread.c (set_running, set_executing): Handle resuming all
8412 threads of a single inferior.
8413 * mi/mi-interp.c (mi_output_running_pid): New.
8414 (mi_inferior_count): New.
8415 (mi_on_resume): For backwards compatibility, if resuming all
8416 threads of an inferior, and there is only one inferior, output
8417 "all".
8418
dddfab26
UW
84192009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
8420
8421 * ada-lang.c (ada_find_any_type): Move check for primitive types ...
8422 (to_fixed_range_type): ... to here.
8423
556bdfd4
UW
84242009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
8425
8426 * ada-lang.c (desc_data_type): Remove, replace by ...
8427 (desc_data_target_type): ... this.
8428 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
8429 (ada_is_array_descriptor_type): Likewise.
8430 (ada_type_of_array): Likewise.
8431 (ada_coerce_to_simple_array_type): Likewise.
8432 (ada_array_element_type): Likewise.
8433
aaa88a99
UW
84342009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
8435
8436 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
8437 result of ada_vax_float_print_function inferior call.
8438
17280b9f
UW
84392009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
8440
8441 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
8442 avoid creating a dummy value.
8443
830bb937
UW
84442009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
8445
8446 * p-valprint.c (pascal_val_print): Use extract_typed_address
8447 to extract reference value.
8448
e035e373
UW
84492009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
8450
8451 * doublest.c (NAN): Remove unused define.
8452 (extract_floating_by_length, deprecated_extract_floating): Remove.
8453 (store_floating_by_length, deprecated_store_floating): Remove.
8454 (extract_typed_floating): Do not call extract_floating_by_length.
8455 (store_typed_floating): Do not call store_floating_by_length.
8456 (convert_typed_floating): Remove redundant assertions.
8457 * doublest.h (deprecated_extract_floating): Remove.
8458 (deprecated_store_floating): Remove.
8459 * sh64-tdep.c (sh64_register_convert_to_raw): Call
8460 extract_typed_floating instead of deprecated_extract_floating.
8461
c28c63d8
JB
84622009-05-18 Jon Beniston <jon@beniston.com>
8463
8464 * MAINTAINERS: Add lm32 target.
8465 * Makefile.in: Add lm32 dependencies.
8466 * NEWS: Indicate lm32 is a new target.
8467 * configure.tgt: Add lm32 targets.
8468 * lm32-tdep.c: New file.
8469
739fc47a
PA
84702009-05-18 Pedro Alves <pedro@codesourcery.com>
8471
8472 * corelow.c (core_open): Flush the register cache before doing
8473 anything with registers.
8474
7e1789f5
PA
84752009-05-18 Pedro Alves <pedro@codesourcery.com>
8476
8477 * inflow.h (our_process_group): Remove declaration.
8478 (inferior_process_group): Delete global variable declaration.
8479 (inferior_process_group): New function declaration.
8480 * inflow.c: Include observer.h.
8481 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
8482 Delete.
8483 (struct terminal_info): New struct.
8484 (our_terminal_info): New global.
8485 (inferior_process_group): New function.
8486 (inferior_thisrun_terminal): Extend description comment.
8487 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
8488 instead of globals.
8489 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
8490 terminal settings.
8491 (terminal_inferior): Ditto.
8492 (terminal_ours_1): Ditto.
8493 (inflow_new_inferior, inflow_inferior_exit): New functions.
8494 (child_terminal_info): Adjust to per-inferior terminal settings.
8495 (osig_set): New global.
8496 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
8497 or clear `osig_set' accordingly.
8498 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
8499 SIGINT handler, instead of checking the current inferior (which
8500 may be none).
8501 (_initialize_inflow): Attach inflow_new_inferior and
8502 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
8503 notifications, respectively.
8504 * inferior.h (struct terminal_info): Forward declare.
8505 (struct inferior): Add `terminal_info' field.
8506 * inferior.c (delete_inferior_1): Notify the inferior_exit
8507 observers before removing the inferior from the lists and deleting
8508 it.
8509 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
8510 a function instead of a variable. Adjust.
8511 * procfs.c (procfs_stop): Ditto.
8512
b242c3c2
PA
85132009-05-17 Pedro Alves <pedro@codesourcery.com>
8514
8515 * infrun.c (handle_inferior_event): When handling a
8516 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
8517 immediatelly.
60a7d074 8518 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
b242c3c2
PA
8519 from the child if vforking.
8520 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
8521 breakpoints from the child here.
8522
71b43ef8
PA
85232009-05-17 Pedro Alves <pedro@codesourcery.com>
8524
8525 * infrun.c (pending_follow): Remove execd_pathname member.
8526 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
8527 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
8528 event, don't copy `execd_pathname' to pending_follow, use the
8529 event copy instead. Release `execd_pathname' once done with
8530 handling the event.
8531
235f2b04
PA
8532 * infrun.c (pending_follow): Remove mention of exec events.
8533
a6b808b4
HZ
85342009-05-17 Hui Zhu <teawater@gmail.com>
8535
8536 * i386-tdep.c (i386_process_record): Make it extern.
8537 (i386_gdbarch_init): Don't call set_gdbarch_process_record
8538 here.
d5f3b873 8539 * i386-tdep.h (i386_process_record): Declare.
a6b808b4
HZ
8540 * i386-linux-tdep.c (i386_linux_init_abi): Call
8541 set_gdbarch_process_record.
8542
ee342b23
VP
85432009-05-17 Vladimir Prus <vladimir@codesourcery.com>
8544
8545 Always report varobj as changed when in_scope attribute changes.
8546
8547 * varobj.c (install_new_value): If non-NULL-ness of value
8548 changed, return 1.
8549
17a37d48
PP
85502009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8551
8552 * NEWS: Mention set/show libthread-db-search-path.
8553 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
8554 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
8555 * linux-thread-db.c (libthread_db_search_path): New setting.
8556 (thread_db_handle): New variable (replaces using_thread_db).
8557 (try_thread_db_load_1): New function.
8558 (try_thread_db_load, thread_db_load_search): Likewise.
8559 (dladdr_to_soname): Likewise.
8560 (thread_db_load): Iterate over possibly multiple libthread_db's.
8561 (check_for_thread_db): Attempt to load new libthread_db.
8562 (thread_db_detach, thread_db_wait): Unload libthread_db.
8563 (thread_db_mourn_inferior): Likewise.
8564 (_initialize_thread_db): Add new libthread-db-search-path option.
8565 Defer loading of libthread_db to check_for_thread_db.
8566 * solib.c (libpthread_name_p): New function.
8567 (libpthread_solib_p): Call it.
8568 * solib.h (libpthread_name_p): New prototype.
8569
0643c12e
PM
85702009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
8571
8572 * MAINTAINERS: Update my email address.
8573
e62c965a
PP
85742009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
8575
8576 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
8577 * breakpoint.c (create_overlay_event_breakpoint): Renamed
8578 from create_overlay_event_breakpoint_1, old
8579 create_overlay_event_breakpoint deleted.
8580 (breakpoint_re_set_objfile): Don't rescan all objfiles
8581 unnecessarily.
8582 (breakpoint_re_set): New function.
8583 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
8584 instead of breakpoint_re_set.
8585 * objfiles.c (objfile_relocate): Likewise.
8586
9e2ace22
JB
85872009-05-14 Joel Brobecker <brobecker@adacore.com>
8588
8589 * gdbarch.sh: Add comment documenting the target_gdbarch global.
8590 gdbarch.h does NOT need to be regenerated as the corresponding
8591 change has already been made in a previous commit.
8592
39a90fca 85932009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
9bb9e8ad
PM
8594
8595 Remove all i386 debug register low level macros in config nm files.
8596 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
8597 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
8598 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
8599
8600 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
8601 (struct i386_dr_low_type): New type.
8602 (i386_dr_low): New global variable.
8603 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
8604 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
8605 i386_dr_low struct variable fields.
8606 (i386_remove_aligned_watchpoint): Likewise.
8607 (i386_stopped_data_address): Likewise.
8608 (i386_stopped_by_hwbp): Likewise.
8609 (show_debug_regs_command_added): New static variable.
8610 (add_show_debug_regs_command): New static function.
8611 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
8612 (i386_set_debug_register_length): New function.
8613 (_initialize_i386_nat): Delete.
8614
8615 * amd64-linux-nat.c: Include "i386-nat.h".
8616 (amd64_linux_dr_set_control): Change to static.
8617 (amd64_linux_dr_get_status): Change to static.
8618 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
8619 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
8620
8621 * go32-nat.c: Include "i386-nat.h".
8622 (go32_set_addr): Change to static.
8623 (go32_set_dr7): Change to static. Change arg type to unisgned long.
8624 (go32_get_dr6): Change to static. Change return type to unisnged long.
8625 (init_go32_ops): Set i386_dr_low variable fields.
8626 * i386-linux-nat.c: Include "i386-nat.h".
8627 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
8628 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
8629 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
8630 * i386bsd-nat.h: Declare functions used for
8631 i386_dr_low fields in i386fbsd-nat.c.
8632 * i386fbsd-nat.c: Include "i386-nat.h".
8633 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
8634 * windows-nat.c: Include "i386-nat.h".
8635 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
8636 Change to static.
8637 (cygwin_get_dr6): Change return type to unisnged long.
8638 (cygwin_set_dr7): Change arg type to unisgned long.
8639 (init_windows_ops): Set i386_dr_low function fields.
8640
8641 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
8642 i386_set_debug_register_length.
8643 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
8644
8645 * config/i386/nm-cygwin.h: Remove all I386_* macros.
8646 * config/i386/nm-cygwin64.h: Likewise.
8647 * config/i386/nm-fbsd.h: Likewise.
8648 * config/i386/nm-linux.h: Likewise.
8649 * config/i386/nm-i386.h: Remove completely.
8650 * config/i386/nm-go32.h: Remove completely.
8651 * config/i386/nm-linux64.h: Remove completely.
8652 * config/i386/go32.mh (NAT_FILE): Remove entry.
8653 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
8654
7a893eb8
JB
86552009-05-14 Jon Beniston <jon@beniston.com>
8656
8657 * MAINTAINERS: Add Jon Beniston to write after approval list.
8658
57a9e6af
PP
86592009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
8660
8661 * objc-lang.c (objc_objfile_data): New variable.
8662 (find_methods): Skip objfiles without Obj-C methods.
8663 (_initialize_objc_lang): New function.
8664
3f7f5fe4
JB
86652009-05-13 Joel Brobecker <brobecker@adacore.com>
8666
8667 * c-lang.c (print_wchar): Remove unnecessary cast.
8668
25ad2853
JB
86692009-05-12 Jim Blandy <jimb@red-bean.com>
8670
8671 * MAINTAINERS: Remove self as m32c target maintainer.
8672
cbe54154
PA
86732009-05-12 Pedro Alves <pedro@codesourcery.com>
8674
8675 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
8676 * command.h (deprecated_add_set_cmd): Delete declaration.
8677 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
8678 'set debug gnu-nat' and 'show debug gnu-nat'.
8679 * i386-nat.c (_initialize_i386_nat): Replace 'maint
8680 show-debug-registers' with 'maint set show-debug-registers' and
8681 'maint show show-debug-registers'.
8682 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
8683 show-debug-registers' with 'maint set show-debug-registers' and
8684 'maint show show-debug-registers'.
8685
2d90c72a
JB
86862009-05-12 Joel Brobecker <brobecker@adacore.com>
8687
8688 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
8689 pushing it on the output obstack.
8690
00903456
JK
86912009-05-11 Joel Brobecker <brobecker@adacore.com>
8692
8693 Fix internal error on breaking at a multi-locations caller source line.
8694 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
8695 command with no parameters.
8696
7feb7d06
PA
86972009-05-11 Pedro Alves <pedro@codesourcery.com>
8698
8699 * linux-nat.c (enum sigchld_state): Delete.
8700 (linux_nat_async_events_state): Delete.
8701 (struct waitpid_result): Delete.
8702 (waitpid_queue): Delete.
8703 (queued_waitpid_1): Delete.
8704 (async_file_flush): New.
8705 (queued_waitpid, push_waitpid): Delete.
8706 (async_file_mark): New.
8707 (drain_queued_events): Delete.
8708 (my_waitpid): Remove locally queued events handling.
8709 (linux_test_for_tracefork): Upjust.
8710 (linux_child_follow_fork): Ditto.
8711 (sync_sigchld_action): Delete.
8712 (blocked_mask): Reinstate.
8713 (async_sigchld_action): Rename to...
8714 (sigchld_action): ... this.
8715 (block_child_signals): New.
8716 (restore_child_signals_mask): New.
8717 (lin_lwp_attach_lwp): Adjust.
8718 (linux_nat_create_inferior): Ditto.
8719 (linux_nat_attach): Also use lp->status in async mode.
8720 (get_pending_status): Don't use queued_waitpid.
8721 (linux_nat_detach): Don't drain locally queued events.
8722 (linux_nat_resume): Allow pending wait statuses stored lp->status
8723 in async mode. If returning early due to a pending event,
8724 re-register the event source.
8725 (stop_wait_callback): Allow pending wait statuses stored
8726 lp->status in async mode.
8727 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
8728 (linux_nat_wait): Rename to ...
8729 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
8730 lp->status in async mode. Always add WNOHANG to the waitpid
8731 options in async mode.
8732 (linux_nat_wait): New.
8733 (kill_callback): Don't drain locally queued events.
8734 (sigchld_handler): Rewrite.
8735 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
8736 refer to "set target-async".
8737 (linux_nat_async_mask): If in non-stop, and re-enabling async
8738 mode, re-register the target event source in the event loop.
8739 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
8740 (get_pending_events, async_sigchld_handler)
8741 (linux_nat_async_events): Delete.
8742 (handle_target_event): New.
8743 (linux_nat_async_file_handler): Delete.
8744 (linux_async_pipe): New.
8745 (linux_nat_async): Only re-register in the event loop if not
8746 registered yet. Always notify the event-loop once if enabling the
8747 event source.
8748 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
8749 lp->status, not in the locally queued event list.
8750 (linux_nat_stop): Don't mask out async event handling.
8751 (linux_nat_setup_async): Delete.
8752 (_initialize_linux_nat): Adjust.
8753 (lin_thread_get_thread_signals): blocked_mask is global again.
8754 Adjust.
8755
39a90fca 87562009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
d92524f1
PM
8757
8758 Unify target macros.
8759
8760 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
8761 (target_stoppped_by_watchpoint): New macro.
8762 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
8763 (target_have_steppable_watchpoint): New macro.
8764 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
8765 (target_have_continuable_watchpoint): New macro.
8766 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
8767 (target_can_use_hardware_watchpoint): New macro.
8768 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
8769 (target_region_ok_for_hw_watchpoint): New macro.
8770
8771 * breakpoint.c (update_watchpoint): Use new macros.
8772 (bpstat_alloc): Likewise.
8773 (create_breakpoint): Likewise.
8774 (watch_command_1): Likewise.
8775 (can_use_hardware_watchpoint): Likewise.
8776 (do_enable_breakpoint): Likewise.
8777 * infrun.c (handle_inferior_event): Adapt to new macros.
8778 * mips-tdep.c (mips_gdbarch_init): Update comments.
8779 * procfs.c (procfs_set_watchpoint): Update comment.
8780 (procfs_insert_watchpoint): Adapt to new macros.
8781 * remote-m32r-sdi.c (m32r_stop):
8782 * remote-mips.c (mips_remove_breakpoint):
8783 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
8784 (debug_to_stopped_by_watchpoint): Likewise.
8785
8786
39a90fca 87872009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
fe524716
PM
8788
8789 * src/gdb/target.h: Remove all tests for already defined
8790 macros. All macros defined here should not be set in config
8791 headers anymore.
8792
1dfe79e8
SDJ
87932009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8794
8795 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
8796 (have_ptrace_getsetfpregs): Likewise.
8797 fetch_all_gp_regs): New function.
8798 (fetch_gp_regs): New function.
8799 (fetch_all_fp_regs): Likewise.
8800 (fetch_fp_regs): New function.
8801 (fetch_ppc_registers): Using the new methods to fetch general-
8802 purpose and floating-pointer registers.
8803 (store_all_gp_regs): New function.
8804 (store_gp_regs): Likewise.
8805 (store_all_fp_regs): New function.
8806 (store_fp_regs): Likewise.
8807 (store_ppc_registers): Using the new methods to store general-
8808 purpose and floating-pointer registers.
8809
2cda8d2f
DE
88102009-05-08 Doug Evans <dje@google.com>
8811
8812 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
8813
b0afac70
SDJ
88142009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8815
8816 * MAINTAINERS (Write After Approval): Add self.
8817
6b614274
JB
88182009-05-07 Joel Brobecker <brobecker@adacore.com>
8819
8820 * gdbarch.h (target_gdbarch): Add comment documenting this global.
8821
88222009-05-06 Joel Brobecker <brobecker@adacore.com>
4edb1e84
JB
8823
8824 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
8825 system iconv.
8826 * configure: Regenerate.
8827
6b614274 88282009-05-06 Joel Brobecker <brobecker@adacore.com>
8626589c
JB
8829
8830 * utils.c: Add include of gdb_usleep.h.
8831 (defaulted_query): Detect false EOF conditions that happen
8832 on terminals opened with the O_NONBLOCK flag when there is
8833 nothing to read.
8834
a562dc8f
PA
88352009-05-06 Pedro Alves <pedro@codesourcery.com>
8836
8837 * inferior.c (add_inferior): Move observer_notify_new_inferior
8838 call to ...
8839 (add_inferior_silent): ... here.
8840
39a90fca 88412009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
25513619
PA
8842 Pedro Alves <pedro@codesourcery.com>
8843
8844 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
8845 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
8846 functions.
8847 (procfs_stopped_by_watchpoint): Made static, ptid argument
8848 removed.
8849 (_initialize_procfs): Register new watchpoint related target
8850 functions.
8851 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
8852 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
8853 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
8854 (target_insert_watchpoint, target_remove_watchpoint): Delete.
8855 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
8856 declarations.
8857 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
8858 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
8859 (target_insert_watchpoint, target_remove_watchpoint): Delete.
8860 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
8861 declarations.
8862 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
8863 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
8864 (target_insert_watchpoint, target_remove_watchpoint): Delete.
8865 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
8866 declarations.
8867
51f4db83 88682009-05-06 Hui Zhu <teawater@gmail.com>
e7a8dbfb 8869
8408d274
HZ
8870 * i386-tdep.c (i386_process_record): Change bzero to memset.
8871
51f4db83 88722009-05-06 Hui Zhu <teawater@gmail.com>
8408d274
HZ
8873
8874 * NEWS: Add item for process record and replay.
e7a8dbfb 8875
f6402f18
MG
88762009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
8877
8878 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
8879
fb14de7b
UW
88802009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
8881
8882 * inferior.h (read_pc, write_pc): Remove.
8883 * regcache.c (read_pc, write_pc): Remove.
8884
8885 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
8886 of read_pc.
8887 (handle_inferior_event): Use regcache_read_pc instead of read_pc
8888 when determining value of stop_pc. Replace subsequent uses of
8889 read_pc by inspecting already-retrieved stop_pc value.
8890 (keep_going): Use regcache_read_pc instead of read_pc.
8891
8892 * breakpoint.c (watchpoint_check): Use current frame architecture
8893 and PC instead of current_gdbarch and read_pc ().
8894 * tracepoint.c (set_traceframe_context): Replace PC argument
8895 with FRAME argument.
8896 (trace_start_command, finish_tfind_command): Update calls.
8897 (finish_tfind_command): Compare frame IDs to identify transitions
8898 between frames.
8899 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
8900 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
8901 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
8902 of read_pc and write_pc.
8903 (store_register): Make regcache argument non-const. Update call
8904 to exec_one_dummy_insn.
8905
8906 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
8907 * infcmd.c (post_create_inferior): Likewise.
8908 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
8909 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8910 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
8911 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
8912 * linux-fork.c (fork_load_infrun_state): Likewise.
8913 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
8914 * record.c (record_wait): Likewise.
8915 * procfs.c (procfs_wait): Likewise.
8916 * remote-mips.c (common_open, mips_wait): Likewise.
8917 * remote-m32r-sdi.c (m32r_resume): Likewise.
8918
8919 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
8920 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
8921 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
8922 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
8923 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
8924
8925 * solib-darwin.c: Include "regcache.h".
8926 * solib-pa64.c: Include "regcache.h".
8927 * solib-svr4.c: Include "regcache.h.".
8928
8929 * symfile.c: Do not mention read_pc or write_pc in comments.
8930 * dink32-rom.c: Likewise.
8931 * m32r-rom.c: Likewise.
8932 * mips-tdep.c: Likewise.
8933
f698437e
UW
89342009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
8935
8936 * fork-child.c (startup_inferior): Move setting stop_pc ...
8937 * infcmd.c (post_create_inferior): ... to here.
8938
64644d9b
MS
89392009-05-04 Michael Snyder <msnyder@vmware.com>
8940
8941 * NEWS: Add item for reverse debugging commands.
8942
67ce33d7
PA
89432009-05-04 Pedro Alves <pedro@codesourcery.com>
8944
8945 * go32-nat.c (go32_stop): Delete.
8946 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
8947 (go32_create_inferior): Don't call go32_stop or
8948 go32_kill_inferior.
8949 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
8950 here.
8951 (init_go32_ops): Don't register go32_stop.
8952
26a4ddaa
EZ
89532009-05-02 Eli Zaretskii <eliz@gnu.org>
8954
8955 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
8956 sym_name.
8957
8958 * infcall.c (find_function_addr): Avoid compiler warnings for
8959 funaddr.
8960
a11a1416
JK
89612009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8962
8963 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
8964 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
8965
ee78f3e5
DE
89662009-05-01 Doug Evans <dje@google.com>
8967
8968 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
8969 to thread_info.
8970
699275c9
EZ
89712009-05-01 Eli Zaretskii <eliz@gnu.org>
8972
299a410e
EZ
8973 * record.c (_initialize_record): Reformat and clarify doc strings
8974 for stop-at-limit and insn-number-max.
8975
699275c9
EZ
8976 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
8977
323427d1
JK
89782009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8979
8980 Make specifiable the make_function_type type memory ownership.
8981 * gdbtypes.c (make_function_type): New parameter `objfile', use it
8982 explicitely instead of TYPE-initialized removed local variable
8983 `objfile'. Describe `objfile' it in the function comment.
8984 (lookup_function_type): Update make_function_type callers.
8985 * gdbtypes.h (make_function_type): Update the prototype.
8986 * jv-lang.c (java_link_class_type): Update make_function_type callers.
8987 * dwarf2read.c (read_subroutine_type): Likewise.
8988 * stabsread.c (read_type): Likewise.
8989
15430fc0
EZ
89902009-05-01 Eli Zaretskii <eliz@gnu.org>
8991
89c9c2ec
EZ
8992 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
8993 printing a bogus "Thread <main>".
8994 (go32_thread_alive): Don't return 1 for null_ptid.
8995
15430fc0
EZ
8996 * i386-tdep.c (i386_go32_init_abi): Override the number of
8997 registers due to non-support of SSE.
8998
c7098c41
AG
89992009-04-30 Anthony Green <green@moxielogic.com>
9000
9001 * configure.tgt: Link the moxie simulator in with gdb.
9002
25c2f6ab
PP
90032009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
9004
9005 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
9006 are present.
15430fc0 9007
77fcef51
HZ
90082009-04-30 Hui Zhu <teawater@gmail.com>
9009 Michael Snyder <msnyder@vmware.com>
9010
9011 I386 Linux process record and replay support.
9012
9013 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
9014 This struct has the argument for the function
9015 "record_linux_system_call".
9016 (i386_linux_intx80_sysenter_record): New function. Parse the
9017 system call instruction and call function
9018 "record_linux_system_call" to record execute log.
9019 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
9020 Set "i386_linux_intx80_sysenter_record" to
9021 "i386_intx80_record" and "i386_sysenter_record".
9022
7ad10968
HZ
90232009-04-30 Hui Zhu <teawater@gmail.com>
9024 Michael Snyder <msnyder@vmware.com>
9025
9026 I386 architecture process record and replay support.
9027
9028 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
9029 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
9030 instruction set.
9031 (aflag, dflag, override, modrm, mod, reg, rm, ot,
9032 i386_record_pc): New variables. Ditto.
9033 (i386_record_modrm, i386_record_lea_modrm_addr,
9034 i386_record_lea_modrm): New functions. Ditto.
9035 (i386_process_record): New function. Parse the instruction in
9036 address "addr" and record the values of registers and memory
9037 that will be changed by this instruction.
9038 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
9039 "process_record" interface.
9040 * i386-tdep.h (gdbarch_tdep): New function pointers
9041 "i386_intx80_record" and "i386_sysenter_record" that point to
9042 the function that can record "intx80" and "sysenter" execute
9043 log.
9044
96429cc8
HZ
90452009-04-30 Hui Zhu <teawater@gmail.com>
9046 Michael Snyder <msnyder@vmware.com>
9047
9048 * infrun.c (use_displaced_stepping): Return false if process
9049 record and replay target is used.
9050 (proceed): Call function "record_not_record_set" if pocess
9051 record and replay target is used.
9052
b7f6bf22
HZ
90532009-04-30 Hui Zhu <teawater@gmail.com>
9054 Michael Snyder <msnyder@vmware.com>
9055
9056 Linux process record and replay support.
9057
9058 * Makefile.in (ALLDEPFILES): Add linux-record.c.
9059 (ALL_TARGET_OBS): Add linux-record.o.
9060 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
9061 (i[34567]86-*-linux*): Add linux-record.o.
9062 * linux-record.c, linux-record.h: New file.
9063
69d05d38
HZ
90642009-04-30 Hui Zhu <teawater@gmail.com>
9065 Michael Snyder <msnyder@vmware.com>
9066
9067 Process record and replay target.
9068
9069 * Makefile.in (SFILES): Add record.c.
9070 (COMMON_OBS): Add record.o.
9071 * record.c, record.h: New file.
9072
81e64f55
HZ
90732009-04-30 Hui Zhu <teawater@gmail.com>
9074 Michael Snyder <msnyder@vmware.com>
9075
9076 * target.h (strata): New stratum "record_stratum".
9077
0407e712
HZ
90782009-04-30 Hui Zhu <teawater@gmail.com>
9079 Michael Snyder <msnyder@vmware.com>
9080
9081 GDBARCH interface for process record and replay.
9082
9083 * gdbarch.sh (process_record): This interface point to the
9084 function that records the inferior execute log.
9085
c5af0dad
DE
90862009-04-29 Doug Evans <dje@google.com>
9087
9088 * i386-nat.c (child_post_startup_inferior): Delete, unused.
9089
df2b6d2d
PA
90902009-04-29 Pedro Alves <pedro@codesourcery.com>
9091
9092 * breakpoint.c (print_exception_catchpoint): Access `b' directly
9093 instead of `b->loc->owner'.
9094 (print_mention_exception_catchpoint): Ditto.
9095
484086b7
JK
90962009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
9099
379a77b5
TT
91002009-04-27 Tom Tromey <tromey@redhat.com>
9101
9102 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
9103
aad80b26
JG
91042009-04-27 Jerome Guitton <guitton@adacore.com>
9105
9106 * symtab.c (append_exact_match_to_sals): New function, extracted
9107 from expand_line_sal.
9108 (expand_line_sal): Use append_exact_match_to_sals to append exact
9109 matches. If none found, append all best items.
9110
57a46001
JG
91112009-04-27 Jerome Guitton <guitton@adacore.com>
9112
9113 * main.c (captured_main): Move gdbinit lookups after gdb_init.
9114
d389af10
JK
91152009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9116
9117 PR gdb/9675:
9118 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
9119 (read_func_scope): Call inherit_abstract_dies.
9120
90b9b517
EZ
91212009-04-25 Eli Zaretskii <eliz@gnu.org>
9122
9123 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
9124 sparc-sol2-nat.c and sparc-sol2-tdep.c.
80a0ea0f
EZ
9125
9126 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
9127
39a90fca 91282009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
5ac79d78
PM
9129
9130 ARI change: Use "/* ARI: rule */" pattern.
9131 * utils.c: Update ARI patterns.
9132 * gdb_dirent.h: Likewise.
9133
d7066cce
AG
91342009-04-23 Anthony Green <green@moxielogic.com>
9135
9136 * MAINTAINERS: Add moxie target.
9137 * configure.tgt: Add moxie-*-elf target.
9138 * moxie-tdep.c: New file.
9139 * moxie-tdep.h: New file.
9140
fc84d355 91412009-04-23 Joel Brobecker <brobecker@adacore.com>
72fcaa05
JB
9142
9143 * ada-lang.c: Remove an extra empty line. No code change.
9144
217dc9e2
JK
91452009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9146
9147 Fix double free on error inserting the breakpoint instruction.
9148 * breakpoint.c (create_breakpoints): Move the
9149 update_global_location_list call to ...
9150 (break_command_really): ... here together with the second local call
9151 both unified after all the cleanups.
9152
b14b1491
TT
91532009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
9154 Tom Tromey <tromey@redhat.com>
9155
9156 * configure, config.in: Regenerate.
9157 * configure.ac: Support for relocatable GDB datadir. Use
9158 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
9159 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
9160 * top.c (init_main): Add "set data-directory".
9161 * defs.h (gdb_datadir): Declare.
9162 * main.c (gdb_datadir): New global.
9163 (captured_main): Initialize gdb_datadir. Use relocate_directory.
9164 (relocate_path): New function.
9165 (relocate_directory): Likewise.
9166 (get_init_files): Use relocate_path.
9167 (README): Mention --with-gdb-datadir.
9168
5e7b5f74
JB
91692009-04-23 Joel Brobecker <brobecker@adacore.com>
9170
9171 * ada-tasks (task_command_1): Call target_find_new_threads.
9172
465f42bb
JB
91732009-04-23 Joel Brobecker <brobecker@adacore.com>
9174
9175 * stack.c (do_gdb_disassembly): Print the exception message if an
9176 error was thrown while trying to perform the disassembly.
9177
3038237c
JK
91782009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9179
9180 * varobj.c (free_variable): Replace free_current_contents by xfree.
9181
17c12639
KH
91822009-04-22 Kazu Hirata <kazu@codesourcery.com>
9183
9184 * arm-linux-nat.c (fetch_register, store_register): Use
9185 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
9186 * arm-linux-tdep.c (arm_linux_supply_gregset,
9187 arm_linux_collect_gregset): Likewise.
9188 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
9189 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
9190
a362e3d3
HZ
91912009-04-22 Hui Zhu <teawater@gmail.com>
9192
9193 * stack.c (_initialize_stack): Set the default of
9194 disassemble-next-line to off.
9195
d2596e2e
TT
91962009-04-21 Tom Tromey <tromey@redhat.com>
9197
9198 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
9199 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
9200
62e4f60c
AS
92012009-04-21 Andreas Schwab <schwab@linux-m68k.org>
9202
9203 * configure.ac: Add quotes to not lose brackets in help text.
9204 * configure: Rebuild.
9205
82cd387f 92062009-04-21 Andreas Schwab <schwab@linux-m68k.org>
cfd53605
AS
9207
9208 * configure.ac: Don't postprocess Makefile in config.status.
9209 Substitute GDB_NM_FILE. Don't substitute nm_h.
9210 * Makefile.in (GDB_NM_FILE): Substitute.
9211 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
9212 * configure: Regenerate.
9213 * gnulib/Makefile.in: Regenerate.
9214
26e251b6
JM
92152009-04-21 Joseph Myers <joseph@codesourcery.com>
9216
9217 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
9218 --with-htmldir): New.
9219 * configure: Regenerate.
9220
32c1c914
TT
92212009-04-21 Tom Tromey <tromey@redhat.com>
9222
9223 * configure: Rebuild.
9224 * configure.ac: Use lower case for start of help strings. Clean
9225 up --with-sysroot help.
9226
a1220294
TT
92272009-04-21 Tom Tromey <tromey@redhat.com>
9228
9229 * configure: Rebuild.
9230 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
9231 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
9232 in help.
9233
39a90fca 92342009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
dfc3cd0e
PM
9235
9236 ARI fix: remove "%p".
9237 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
9238 (ia64_sigtramp_frame_this_id): Ditto.
9239 (ia64_libunwind_frame_this_id): Ditto.
9240 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
9241 * symmisc.c (maintenance_info_psymtabs): Ditto.
9242
29b0e8a2
JM
92432009-04-21 Joseph Myers <joseph@codesourcery.com>
9244
9245 * configure.ac (--with-relocated-sources): New.
9246 * configure, config.in: Regenerate.
9247 * source.c (add_substitute_path_rule): Remove static.
9248 * source.h (add_substitute_path_rule): Declare.
9249 * main.c: Include "source.h".
9250 (captured_main): Add substitution rule if RELOC_SRCDIR.
9251
39a90fca 92522009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
ccabeb57
PM
9253
9254 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
cfd53605 9255
b9412953
DD
92562009-04-20 David Daney <ddaney@caviumnetworks.com>
9257
9258 * NEWS: Mention MIPS/Linux hardware watchpoint support.
9259
92602009-04-20 David Daney <ddaney@caviumnetworks.com>
9261
9262 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
9263 (maint_show_dr, super_close): New variables.
9264 (super_fetch_registers, super_store_registers): Make static.
9265 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
9266 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
9267 (pt_watch_style): Define new enum.
9268 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
9269 Define new structs.
9270 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
9271 New variables.
9272 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
9273 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
9274 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
9275 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
9276 (type_to_irw, fill_mask, try_one_watch)
9277 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
9278 (mips_linux_new_thread, populate_regs_from_watches)
9279 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9280 (mips_linux_close): New functions.
9281 (_initialize_mips_linux_nat): Register watchpoint functions with
9282 the target_ops. Add show-debug-regs maintenance command.
9283
92842009-04-20 David Daney <ddaney@caviumnetworks.com>
9285
9286 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
9287
6de3146c
PA
92882009-04-19 Pedro Alves <pedro@codesourcery.com>
9289
9290 * NEWS: Mention gdbserver support for x86 Windows CE.
9291
10085bb5
EZ
92922009-04-19 Eli Zaretskii <eliz@gnu.org>
9293
e424a02e
EZ
9294 * config/djgpp/fnchange.lst: Fix typos.
9295
10085bb5
EZ
9296 Set default host and target charsets in the DJGPP port.
9297
9298 * config/djgpp/config.sed (am_cv_langinfo_codeset)
9299 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
9300 in all configure scripts that define ac_cv_env_CPP_value.
9301
9302 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
9303 Include langinfo.h.
9304
9305 * config/djgpp/nl_types.h: New file.
9306
9307 * config/djgpp/langinfo.h: New file.
9308
9309 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
9310
2b831889
JM
93112009-04-18 Carlos O'Donell <carlos@codesourcery.com>
9312
9313 * Makefile.in (MAKEHTML): Set to makeinfo --html.
9314 (MAKEHTMLFLAGS): Set to empty.
9315
d647eed6
EZ
93162009-04-18 Eli Zaretskii <eliz@gnu.org>
9317
d7713ae0
EZ
9318 * NEWS: Mention all new set/show commands added since GDB 6.8 was
9319 released.
9320
d647eed6
EZ
9321 * go32-nat.c (go32_sysinfo): Check if the call to
9322 __dpmi_get_capabilities fills the buffer with information, and
9323 don't use the buffer if not.
9324
58720494
TT
93252009-04-17 Tom Tromey <tromey@redhat.com>
9326
9327 * charset.c (_initialize_charset): Add special case for "646".
9328
89a34d1b
JM
93292009-04-17 Carlos O'Donell <carlos@codesourcery.com>
9330
9331 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
9332 * configure: Regenerate.
9333 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
9334 configure substitutions.
9335 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
9336
39a90fca 93372009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
a74ce742
PM
9338
9339 ARI fix: Do not use %p, replace by call to host_address_to_string
9340 for host pointers.
9341 * darwin-nat.c (darwin_xfer_partial): Apply change.
9342 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
9343 * gnu-nat.h (proc_debug): Ditto.
9344 * symmisc.c (maintenance_info_symtabs): Ditto.
9345 (maintenance_info_psymtabs): Ditto.
9346 * windows-nat.c (handle_load_dll): Ditto.
9347 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
9348 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
9349
0ca8834f
JM
93502009-04-17 Joseph Myers <joseph@codesourcery.com>
9351
9352 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
9353 --enable-64-bit-bfd.
9354 (sparc-*-linux*): Likewise.
9355
541f1105
EZ
93562009-04-17 Eli Zaretskii <eliz@gnu.org>
9357
9358 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
9359 the NT family.
9360
1554e9be
PA
93612009-04-16 Pedro Alves <pedro@codesourcery.com>
9362
9363 * remote.c (remote_query_attached): Fix pasto in packet_ok result
9364 checking.
9365
bf75638e
JB
93662009-04-16 Joel Brobecker <brobecker@adacore.com>
9367
9368 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
9369 Revert the previous change. Might not be correct, actually.
9370
3705b1c5
JB
93712009-04-16 Joel Brobecker <brobecker@adacore.com>
9372
9373 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
9374 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
9375 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
9376 Remove declaration. These are non-existent functions.
9377
37da21bc
JB
93782009-04-16 Joel Brobecker <brobecker@adacore.com>
9379
9380 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
9381 Fix a compilation warning on mips-irix due to casting from
9382 a pointer of different size.
9383
6f38eac8
JB
93842009-04-16 Joel Brobecker <brobecker@adacore.com>
9385
9386 * ada-lang.c (symtab_for_sym): Delete.
9387 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
9388
f9bc20b9
JB
93892009-04-16 Joel Brobecker <brobecker@adacore.com>
9390
9391 * ada-lang.c (extract_string): Delete.
9392 (ada_main_name): Reimplement using target_read_string instead of
9393 extract_string.
9394
335d71d6
AS
93952009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9396
9397 * m68klinux-nat.c: Remove obsolete comment.
9398 (fetch_register, store_register): Don't call
9399 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
9400 which are always nops here.
9401
732f6a93
TT
94022009-04-14 Tom Tromey <tromey@redhat.com>
9403
9404 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
9405 (c_printstr): Likewise.
9406 * charset.c: Include gdb_wait.h.
9407 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
9408 (find_charset_names): Use pexecute. Handle libiconv's output.
9409 Detect errors.
9410 (_initialize_charset): Use xstrdup.
9411 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
9412 cases.
9413 (INTERMEDIATE_ENCODING): New define.
9414 * configure, config.in: Rebuild.
9415 * configure.ac: Check for btowc.
9416
334cc82d
TT
94172009-04-15 Tom Tromey <tromey@redhat.com>
9418
9419 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
9420
27e3013d
EZ
94212009-04-15 Eli Zaretskii <eliz@gnu.org>
9422
9423 * utils.c (parse_escape): Initialize target_char to pacify GCC.
9424
8ea5dfdf
JK
94252009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9426
9427 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
9428
88c15c34
PM
94292009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
9430
9431 ARI fix: sprintf rule.
9432 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
9433 * ada-lang.c (add_angle_brackets): Use xstrprintf.
9434 (ada_decode): Replace sprintf by xsnprintf.
9435 (find_old_style_renaming_symbol): Ditto.
9436 (ada_to_fixed_type_1, ada_enum_name): Ditto.
9437
9438
efbd6e75
JB
94392009-04-14 Joel Brobecker <brobecker@adacore.com>
9440
9441 * target.c (target_mourn_inferior): Call bfd_cache_close_all
9442 after having executed the target mourn_inferior routine.
9443
b46df7a1
EZ
94442009-04-14 Eli Zaretskii <eliz@gnu.org>
9445
9446 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
9447 undefined.
9448
2facfe5c
DD
94492009-04-13 David Daney <ddaney@caviumnetworks.com>
9450
9451 * infrun.c (maybe_software_singlestep): New function.
9452 (resume): Call maybe_software_singlestep.
9453 (handle_inferior_event): Same.
9454
18e8c3bc
TT
94552009-04-13 Tom Tromey <tromey@redhat.com>
9456
9457 * python/python-frame.c (frapy_richcompare): Return
9458 Py_NotImplemented, not an error. Handle Py_NE as well.
9459
e726d784
EZ
94602009-04-13 Eli Zaretskii <eliz@gnu.org>
9461
9462 * charset.c (EILSEQ): Define if not defined by system headers.
9463
685af672
EZ
94642009-04-11 Eli Zaretskii <eliz@gnu.org>
9465
238f4807 9466 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
a2effb2e 9467 to be consistent with renaming config.intl.in into config_intl.in.
238f4807 9468
c03b3c32
EZ
9469 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
9470 consistent with the change from 2008-11-09.
685af672 9471
c16abbde
JK
94722009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9473
9474 * gdbtypes.c: Remove excessive parentheses at the return keywords.
2dbd25e5 9475 * varobj.c (varobj_invalidate): Fix indentation.
f4a34a08 9476 * varobj.c (varobj_invalidate): Fix formatting text width.
c16abbde 9477
143260c9
VP
94782009-04-08 Vladimir Prus <vladimir@codesourcery.com>
9479
9480 Implement -exec-jump.
9481
9482 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
9483 * mi/mi-main.c (mi_cmd_exec_jump): New.
9484 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
9485
d10c338d
DE
94862009-04-07 Doug Evans <dje@google.com>
9487
9488 * symfile.c (symbol_file_clear): Fix indentation.
9489
e5a6ba44
MK
94902009-04-06 Mark Kettenis <kettenis@gnu.org>
9491
9492 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
9493
409c383c
UW
94942009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
9495
9496 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
9497 (ppc_linux_auxv_parse): New function.
9498 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
9499 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
9500
95012009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
9592c5d0
UW
9502
9503 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
9504 BFD to contents of SPU name note.
9505 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
9506 with "from_tty" argument 1 instead of 0.
9507
de40b933
JK
95082009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9509
9510 * dwarf2read.c
9511 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
9512 Create the symbol in local scope.
9513 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
9514
6cbbcdfe
KS
95152009-04-02 Keith Seitz <keiths@redhat.com>
9516
9517 * stabsread.c (read_member_functions): GCC may emit an extra space
9518 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
9519 whitespace when looking for these functions.
9520
476f7b68
JB
95212009-04-01 Joel Brobecker <brobecker@adacore.com>
9522
9523 Change the default value for "set print frame-arguments" to scalars.
9524
9525 * stack.c (print_frame_arguments): Set initial value to "scalars".
9526
865093a3
AR
95272009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9528
9529 * mips-tdep.c (mips_numeric_register_alieses): New definition.
cfd53605 9530 (mips_gdbarch_init): Add user registers from
865093a3
AR
9531 mips_numeric_register_aliases.
9532
5d3b6af6
JB
95332009-04-01 Joel Brobecker <brobecker@adacore.com>
9534
9535 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
9536
9db03742
JB
95372009-04-01 Joel Brobecker <brobecker@adacore.com>
9538
9539 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
9540 this is the last one.
9541
0d8f58ca
PA
95422009-04-01 Pedro Alves <pedro@codesourcery.com>
9543
9544 * remote.c (append_resumption): New.
9545 (remote_vcont_resume): Use it.
9546
1e2f1c5c
JB
95472009-04-01 Joel Brobecker <brobecker@adacore.com>
9548
9549 * windows-nat.c (+windows_get_ada_task_ptid): New function.
9550 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
9551
71c25dea
TT
95522009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
9553 Keith Seitz <keiths@redhat.com>
9554 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 PR gdb/6817
9557 * Makefile.in (dbxread.o): Update.
9558 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
9559 * dwarf2read.c (GDB_FORM_cached_string): New.
9560 (read_partial_die): Use dwarf2_canonicalize_name.
9561 (dwarf2_linkage_name): Use dwarf2_name.
9562 (dwarf2_canonicalize_name): New.
9563 (dwarf2_name): Use dwarf2_canonicalize_name.
9564 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
9565 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
9566 * symtab.c (lookup_symbol_in_language): Canonicalize input before
9567 searching.
9568 * cp-name-parser.y: operator() requires two parameters,
9569 according to libiberty.
9570 * minsyms.c (lookup_minimal_symbol): Canonicalize input
9571 before searching.
9572 * NEWS: Update.
9573
4a306c9a
JB
95742009-03-31 Joel Brobecker <brobecker@adacore.com>
9575
9576 Provide support for (Ada) task-specific breakpoints.
9577
9578 * ada-lang.h (ada_get_task_number): Add declaration.
9579 (breakpoint_ada_task_match): Delete declaration.
9580 * ada-tasks.c (ada_get_task_number): Make non-static.
9581 * breakpoint.h (struct breakpoint): Add field "task".
9582 * breakpoint.c (print_one_breakpoint_location): Add handling of
9583 task-specific breakpoints.
9584 (create_breakpoint, create_breakpoints, find_condition_and_thread):
9585 New parameter "task".
9586 (break_command_really): Update calls to find_condition_and_thread
9587 and create_breakpoints.
9588 (breakpoint_re_set_one): Update call to find_condition_and_thread.
9589 Set b->task.
9590
4a5a9917
JB
95912009-03-31 Joel Brobecker <brobecker@adacore.com>
9592
9593 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
9594
bad34192
PA
95952009-03-31 Pedro Alves <pedro@codesourcery.com>
9596
9597 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
9598 if the thread's ptid without a thread id field is in the list
9599 before calling thread_change_ptid.
9600 (extended_remote_attach_1): In non-stop mode, do not rely on
9601 querying the current thread, instead, query the thread list, and
9602 select the first thread of the process.
9603 * gdbthread.h (first_thread_of_process): Declare.
9604 * thread.c (first_thread_of_process): Define.
9605
1042e4c0
SS
96062009-03-30 Stan Shebs <stan@codesourcery.com>
9607
9608 Make tracepoints into a type of breakpoint.
9609 * breakpoint.h (enum bptype): Add bp_tracepoint.
9610 (struct breakpoint): Add fields step_count, pass_count, actions.
9611 (get_tracepoint, get_tracepoint_by_number): Declare.
9612 (all_tracepoints): Declare.
9613 * breakpoint.c: Include tracepoint.h, readline.h.
9614 (ALL_TRACEPOINTS): Move here from tracepoint.c.
9615 (tracepoint_count): Ditto.
9616 (should_be_inserted): GDB does not insert tracepoints itself.
9617 (print_it_typical): Add tracepoint case.
9618 (bpstat_what): Ditto.
9619 (print_one_breakpoint_location): Ditto, and add printing for
9620 pass count, step count, and action list.
9621 (user_settable_breakpoint): Add tracepoint case.
9622 (allocate_bp_location): Ditto.
9623 (set_breakpoint_location_function): Ditto.
9624 (disable_breakpoints_in_shlibs): Ditto.
9625 (mention): Ditto.
9626 (break_command_really): Add argument traceflag, use to choose
9627 basic breakpoint type.
9628 (break_command_1): Pass extra argument.
9629 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
9630 (breakpoint_re_set_one): Add tracepoint case.
9631 (disable_command, enable_command): Ditto.
9632 (set_tracepoint_count): Move here from tracepoint.c.
9633 (trace_command): Move here from tracepoint.c and use
9634 break_command_really.
9635 (tracepoints_info): Move here from tracepoint.c and call
9636 breakpoints_info.
9637 (enable_trace_command): Move here from tracepoint.c and call
9638 enable_command.
9639 (disable_trace_command): Move here from tracepoint.c and call
9640 disable_command.
9641 (delete_trace_command): Move here from tracepoint.c and call
9642 delete_breakpoint.
9643 (trace_pass_command): Move here from tracepoint.c.
9644 (get_tracepoint_by_number): Ditto.
9645 (tracepoint_save_command): Ditto.
9646 (get_tracepoint): New function.
9647 (all_tracepoints): New function.
9648 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
9649 deprecate "enable trace" and "disable trace" commands.
9650 * tracepoint.h (struct tracepoint): Remove.
9651 (tracepoint_chain): Remove decl.
9652 (deprecated_create_tracepoint_hook): Remove decl.
9653 (deprecated_delete_tracepoint_hook): Remove decl.
9654 (deprecated_modify_tracepoint_hook): Remove decl.
9655 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
9656 (free_actions): Update signature.
9657 (validate_actionline): Update signature.
9658 (end_actions_pseudocommand): Declare.
9659 (while_stepping_pseudocommand): Declare.
9660 * tracepoint.c: Include breakpoint.h.
9661 (tracepoint_chain, tracepoint_count): Remove.
9662 (free_actions, make_cleanup_free_actions): Update signature.
9663 (trace_command, set_raw_tracepoint): Remove.
9664 (trace_mention): Remove.
9665 (tracepoints_info): Remove.
9666 (tracepoint_operation, map_args_over_tracepoints): Remove.
9667 (get_tracepoint_by_number): Remove.
9668 (enable_trace_command, disable_trace_command): Remove.
9669 (delete_trace_command, trace_pass_command): Remove.
9670 (trace_actions_command, read_actions): Update signature.
9671 (validate_actionline): Update signature, use bp loc.
9672 (encode_actions): Ditto.
9673 (download_tracepoint): New function, body of trace_start_command.
9674 (trace_start_command): Call it, use all_tracepoints.
9675 (tracepoint_save_command): Remove.
9676 (tracepoint_dump_command): Use get_tracepoint.
9677 (end_actions_pseudocommand): Make globally visible.
9678 (while_stepping_pseudocommand): Ditto.
9679 (_initialize_tracepoint): Move command definitions to breakpoint.c.
9680
f8f6f20b
TJB
96812009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
9682
9683 Expose frames to Python.
9684 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
9685 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
9686 (python-frame.o): New target.
9687 * python/python-frame.c: New file.
9688 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
9689 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
9690 gdbpy_initialize_frames): New prototypes.
9691 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
9692 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
9693 entries.
9694 * stack.c (find_frame_funname): New function, factored out of
9695 print_frame.
9696 (print_frame): Call find_frame_funname.
9697 * stack.h (find_frame_funname): Add prototype.
9698
77316f4c
TJB
96992009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
9700
9701 Remove unused value_object attribute `owned_by_gdb'.
9702 * python/python-value.c (value_object): Remove owned_by_gdb
9703 attribute.
9704 (valpy_dealloc): Remove reference to self->owned_by_gdb.
9705 (valpy_new): Likewise.
9706 (value_to_value_object): Likewise.
9707
c0c6f777
TJB
97082009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
9709
9710 Change gdb.Value.address from a method to an attribute.
9711 * python/python-value.c (value_object): Add `address' element.
9712 (valpy_dealloc): Decrement reference to self->address if set.
9713 (valpy_new): Initialize val_obj->address.
9714 (valpy_address): Rename to ...
9715 (valpy_get_address): ... this. Change signature from method to
9716 attribute. Update self->address if not set.
9717 (value_to_value_object): Initialize val_obj->address.
9718 (value_object_getset): Add `address' element.
9719 (value_object_methods): Remove `address' element.
9720
c2c8d75b
AS
97212009-03-29 Andreas Schwab <schwab@linux-m68k.org>
9722
9723 * observer.sh: Set LANG/LC_ALL to C, not c.
9724
1b31f75d
KB
97252009-03-28 Kevin Buettner <kevinb@redhat.com>
9726
9727 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
9728 `char' is unsigned.
9729
f91d3df5
PA
97302009-03-28 Pedro Alves <pedro@codesourcery.com>
9731
9732 * remote.c (remote_stop_ns): If multi-process extensions are off,
9733 and GDB is requesting the whole process to stop, sent "vCont;t",
9734 not "vCont;t:-1"
9735
7b0e8051
PA
97362009-03-28 Pedro Alves <pedro@codesourcery.com>
9737
9738 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
9739 null inferior_ptid.
9740
5362e076
EZ
97412009-03-27 Eli Zaretskii <eliz@gnu.org>
9742
9743 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
9744
88fc996f
DE
97452009-03-26 Doug Evans <dje@google.com>
9746
9747 * thread.c (do_restore_current_thread_cleanup): Redo test for
9748 whether to restore old->inferior_ptid.
9749
56ef84b1
TT
97502009-03-26 Tom Tromey <tromey@redhat.com>
9751
9752 * breakpoint.c (resolve_sal_pc): Preserve original line number
9753 when skipping prologue.
9754
a5321aa4
DE
97552009-03-26 Doug Evans <dje@google.com>
9756
9757 * thread.c (inferior_thread) Remove "extern" in definition.
9758
def2b000
TJB
97592009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9760
9761 Add gdb.Value.is_optimized_out attribute.
9762 * python/python-value.c (valpy_get_is_optimized_out): New
9763 function.
9764 (value_object_getset): New variable.
9765 (value_object_type): Initialize tp_getset element.
9766
442ddf59
JK
97672009-03-26 Joel Brobecker <brobecker@adacore.com>
9768
9769 Recognize missing DW_AT_location as <value optimized out>.
9770 * dwarf2read.c
9771 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
9772 Call add_symbol_to_list.
9773
78485d59
TT
97742009-03-25 Tom Tromey <tromey@redhat.com>
9775
9776 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
9777 * stack.c (print_this_frame_argument_p): Use check_typedef.
9778
94ae1714
TT
97792009-03-25 Tom Tromey <tromey@redhat.com>
9780
9781 * configure: Rebuild.
9782 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
9783 Rearrange flags setting. Add comments.
9784
2bc57ae3
PM
97852009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
9786
9787 * config/i386/nm-i386.h: Remove code within
9788 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
9789 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
9790 macro.
9791 * config/i386/nm-cygwin64.h: Ditto.
9792 * config/i386/nm-fbsd.h: Ditto.
9793 * config/i386/nm-go32.h: Ditto.
9794 * config/i386/nm-linux.h: Ditto.
9795 * config/i386/nm-linux64.h: Ditto.
9796
549ba0f8
PM
97972009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
9798
9799 ARI fix: "xasprintf" rule.
9800 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
9801
68c97600
PA
98022009-03-25 Pedro Alves <pedro@codesourcery.com>
9803
9804 * remote.c (remote_start_remote): In non-stop mode, call
9805 init_wait_for_inferior before adding threads and inferiors.
9806
a6f1cd96
JB
98072009-03-25 Joel Brobecker <brobecker@adacore.com>
9808
9809 * breakpoint.c (breakpoint_thread_match): Split a large condition
9810 into several smaller conditions. No behavior change.
9811
dbfb4bc7 98122009-03-25 Pedro Alves <pedro@codesourcery.com>
a07daef3
PA
9813
9814 * infrun.c (infrun_thread_thread_exit): New.
9815 (_initialize_infrun): Attach it to the thread_exit observer.
9816 * thread.c (delete_thread_1): Always call the observer, passing it
9817 the silent flag.
9818 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
9819 SILENT, return immediately.
9820
d729566a
PA
98212009-03-25 Pedro Alves <pedro@codesourcery.com>
9822
9823 * infrun.c (normal_stop): Use has_stack_frames instead of
9824 target_has_stack.
9825 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
9826 when there is no thread selected.
9827 (mi_cmd_execute): Don't special case commands that can run without
9828 a valid selected thread.
9829 * top.c (execute_command): Don't special case commands that can
9830 run without a valid selected thread. Use has_stack_frames.
9831 * infcmd.c (ensure_valid_thread): New.
9832 (continue_1, step_1, jump_command, signal_command): Use it.
9833 (detach_command): Error out if there's no selected thread/inferior.
9834 * thread.c (print_thread_info): Allow having no thread selected.
9835 (switch_to_thread): Don't read the PC if there is no current thread.
9836 (do_restore_current_thread_cleanup): Don't record the current
9837 frame if there is no current thread.
9838 (make_cleanup_restore_current_thread): Don't read frame info if
9839 there is no selected thread.
9840 (_initialize_thread): Don't mark commands as
9841 "no_selected_thread_ok".
9842 * frame.c (get_current_frame): Error out if there is no valid
9843 selected thread.
9844 (has_stack_frames): Return false if there is no valid
9845 selected thread.
9846 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
9847 "no_selected_thread_ok".
9848 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
9849 (get_cmd_no_selected_thread_ok): Delete.
9850 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
9851 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
9852 Delete declaration.
9853 * stack.c (get_selected_block): Use has_stack_frames.
9854
f04c6d38
TJB
98552009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
9856
9857 Fix size of FPSCR in Power 7 processors.
9858 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
9859 (PPC_FEATURE_HAS_DFP): New #define.
9860 (ppc_linux_read_description): Check for DFP feature instead of
9861 ISA 2.05 to decide on size of the FPSCR.
9862
6c02c64c
KB
98632009-03-25 Kevin Buettner <kevinb@redhat.com>
9864
9865 * mn10300-tdep.c (trad-frame.h): Don't include.
9866 (prologue-value.h): Include.
9867 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
9868 (struct mn10300_prologue): Define.
9869 (push_reg, translate_rreg, check_for_saved): New functions.
9870 (mn10300_analyze_prologue): Rewrite, using prologue-value
9871 machinery. Handle more instructions than before. Permit
9872 instructions to occur in any order.
9873 (mn10300_skip_prologue): Find the extents of the function
9874 in question; mn10300_analyze_prologue no longer does this.
9875 (mn10300_analyze_frame_prologue): New function.
9876 (mn10300_frame_base): New function.
9877 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
9878 implementation.
9879 (mn10300_frame_prev_register): Likewise.
9880 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
9881 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
9882 `this_frame'.
9883 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
9884
67c296a2
PM
98852009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
9886
9887 Fix completer problem for filename completion on the first try.
9888
9889 * gdb/completer.h (gdb_completion_word_break_characters): New function.
9890 * gdb/completer.c: Include gdb_assert.h.
9891 (complete_line_internal_reason): New enum.
9892 (complete_line_internal): Change last argument type to
9893 complete_line_internal_reason.
9894 Modify function to handle the different complete_line_internal_reason
9895 argument values.
9896 (complete_line): Adapt to change in complete_line_internal.
9897 (command_completer): Ditto.
9898 (gdb_completion_word_break_characters): Implement new function.
9899 * top.c (init_main): Set rl_completion_word_break_hook to
9900 gdb_completion_word_break_characters.
c2c8d75b 9901
67c296a2 9902
1a6d2f2f
PM
99032009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
9904
9905 ARI fix: "strlen d_name" rule.
9906 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
9907
9908
fc3b640d
TT
99092009-03-24 Tom Tromey <tromey@redhat.com>
9910 Pedro Alves <pedro@codesourcery.com>
9911
9912 * configure, config.in: Rebuild.
9913 * configure.ac: Check for libiconvlist.
9914 * charset.c: Check HAVE_LIBICONVLIST.
9915 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
9916 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
9917 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
9918 Remove.
9919 (INTERNAL_CFLAGS_BASE): Update.
9920 (INTERNAL_LDFLAGS): Update.
9921 (CLIBS): Update.
9922
76a39ba7
JK
99232009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9924
9925 * configure.ac: Initialize the variable $PREFER_CURSES.
9926 * configure: Regenerated.
9927
bd8a8e1b
JK
99282009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9929
9930 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
9931 * configure: Regenerated.
9932
a3224241
PM
99332009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
9934
9935 ARI fix: "strerror" rule.
9936 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
9937 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
9938
6cdd57f4
JB
99392009-03-23 Joel Brobecker <brobecker@adacore.com>
9940
9941 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
9942 before looking up the fields inside our struct type.
9943
17466c1a
JB
99442009-03-23 Joel Brobecker <brobecker@adacore.com>
9945
9946 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
9947 trying to resolve the type qualification.
9948
8008e265
JB
99492009-03-23 Joel Brobecker <brobecker@adacore.com>
9950
9951 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
9952 we try to apply the attribute on the real type, rather than
9953 its associated typedef.
9954
31dedfee
JB
99552009-03-23 Joel Brobecker <brobecker@adacore.com>
9956
9957 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
9958 to make sure we try to get the modulus of the actual type, not the
9959 associated typedef.
9960
5bc23cb3
JB
99612009-03-23 Joel Brobecker <brobecker@adacore.com>
9962
9963 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
9964 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
9965 to get the real type, not the associated typedef.
9966
872c8b51
JB
99672009-03-23 Joel Brobecker <brobecker@adacore.com>
9968
9969 * ada-lang.c (ada_get_field_index): Add handling of the case
9970 when TYPE is a typedef of a struct.
9971
dcb626be
JB
99722009-03-23 Joel Brobecker <brobecker@adacore.com>
9973
e0cfd8e3 9974 Add gdb_usleep as a portable version of usleep based on gdb_select.
dcb626be
JB
9975 * gdb_usleep.h, gdb_usleep.c: New files.
9976 * Makefile.in (SFILES): Add gdb_usleep.c.
9977 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
9978 (COMMON_OBS): Add gdb_usleep.o.
9979 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
9980 by call to gdb_usleep.
9981
24be086d
JB
99822009-03-23 Joel Brobecker <brobecker@adacore.com>
9983
9984 * buildsym.c (end_symtab): If we ignore the subfiles, then
9985 unlink the associated symtabs if they were already allocated.
9986
cb01cfba
JB
99872009-03-23 Jerome Guitton <guitton@adacore.com>
9988
9989 Provide a way to force building of GDB with libcurses.
9990 * configure.ac: Add --with-curses.
9991 * configure: Regenerated.
9992
9c482037
TT
99932009-03-23 Tom Tromey <tromey@redhat.com>
9994
9995 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
9996 error message.
9997
e2dd7057
PP
99982009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
9999
10000 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
10001 solib_contains_address_p instead of searching.
c2c8d75b 10002
0dd7fb99
TT
100032009-03-23 Tom Tromey <tromey@redhat.com>
10004
10005 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
10006 (iconv): Make 'inbuf' argument const.
10007 (convert_between_encodings): Use ICONV_CONST.
10008 (wchar_iterate): Likewise.
10009
418c6cb3
CF
100102009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
10011
10012 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
10013 dynamically loaded function.
10014 (LookupPrivilegeValueA): Ditto.
10015 (OpenProcessToken): Ditto.
10016 (AdjustTokenPrivileges): Rename and define placeholder for address of
c2c8d75b 10017 dynamically loaded function.
418c6cb3
CF
10018 (LookupPrivilegeValueA): Ditto.
10019 (OpenProcessToken): Ditto.
10020 (set_process_privilege): Remove check for loaded functions.
10021 (bad_OpenProcessToken): Define.
10022 (_initialize_loadable): Load token functions from advapi here, setting
10023 OpenProcessToken function to a dummy static function which always return
10024 error if OS doesn't support this functionality.
10025
695de547
CF
100262009-03-22 Nicolas Roche <roche@adacore.com>
10027 Christopher Faylor <me+cygwin@cgf.cx>
10028
10029 * win32-nat.c (ctrl_c_handler): New function.
10030 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
10031 is run in a separate console.
10032
2b008701
CF
100332009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
10034
10035 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
10036 for dynamically loaded function.
10037 (DebugBreakProcess): Ditto.
10038 (DebugSetProcessKillOnExit): Ditto.
10039 (EnumProcessModules): Ditto.
10040 (GetModuleFileNameExA): Ditto.
10041 (GetModuleInformation): Ditto.
10042 (DebugActiveProcessStop): Rename and define placeholder for address of
418c6cb3 10043 dynamically loaded function.
2b008701
CF
10044 (DebugBreakProcess): Ditto.
10045 (DebugSetProcessKillOnExit): Ditto.
10046 (EnumProcessModules): Ditto.
10047 (GetModuleFileNameExA): Ditto.
10048 (GetModuleInformation): Ditto.
10049 (psapi_loaded): Delete.
10050 (get_module_name): Don't check psapi_loaded, just rely on the fact that
10051 dynamically loaded functions will return failure if they weren't
10052 previously found.
10053 (has_detach_ability): Delete.
10054 (windows_attach): Remove call to has_detach_ability (). Just rely on
10055 functions being callable.
10056 (bad_DebugActiveProcessStop): Define.
10057 (bad_DebugBreakProcess): Ditto.
10058 (bad_DebugSetProcessKillOnExit): Ditto.
10059 (bad_EnumProcessModules): Ditto.
10060 (bad_GetModuleFileNameExA): Ditto.
10061 (bad_GetModuleInformation): Ditto.
10062 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
10063 dynamic storage here, setting nonexistent functions to dummy static
10064 functions which always return error.
10065
f3b1572e
PA
100662009-03-22 Pedro Alves <pedro@codesourcery.com>
10067
10068 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
10069 to the about_to_proceed observer notification.
10070 (mi_about_to_proceed): New.
10071 (mi_on_resume): Only output ^running and the prompt here if the
10072 target was proceeded.
10073 * breakpoint.c (breakpoint_proceeded): New static.
10074 (breakpoint_about_to_proceed): New.
10075 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
10076 the about_to_proceed observer notification.
10077 * inferior.h (breakpoint_proceeded): Delete declaration.
10078 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
10079 Notify the about_to_proceed observers.
10080 (struct inferior_status): Delete breakpoint_proceeded member.
10081 (save_inferior_status): Don't save it.
10082 (restore_inferior_status): Don't restore it.
10083 * mi-main.h (mi_proceeded): Declare.
10084 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
10085 a command.
10086
c5a4d20b
PA
100872009-03-22 Pedro Alves <pedro@codesourcery.com>
10088
10089 * gdbthread.h (struct thread_info): Add in_infcall member.
10090 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
10091 Remove reverences to suppress_resume_observer. Refresh
10092 `call_thread' after returning from `proceed'.
10093 * infcmd.c (suppress_resume_observer): Delete.
10094 * inferior.h (suppress_resume_observer): Delete declaration.
10095 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
10096 inferior function.
10097 * thread.c (set_running): Remove references to
10098 suppress_resume_observer.
10099 * infrun.c (struct inferior_status): Add in_infcall member.
10100 (save_inferior_status): Save it.
10101 (restore_inferior_status): Restore it.
10102
41d2bdb4
PA
101032009-03-22 Pedro Alves <pedro@codesourcery.com>
10104
10105 * infcall.c (run_inferior_call): Remove references to
10106 suppress_stop_observer.
10107 * infcmd.c (suppress_stop_observer): Delete.
10108 (finish_command_continuation): Remove NOTE. Don't clear
10109 suppress_stop_observer anymore.
10110 (finish_command_continuation_free_arg): Likewise.
10111 (finish_forward): Remove references to suppress_stop_observer.
10112 Call normal_stop observer if we haven't already.
10113 * inferior.h (suppress_stop_observer): Delete.
10114 * infrun.c (normal_stop): When deciding to suppress the
10115 normal_stop observer, check for proceed_to_finish instead of
10116 suppress_stop_observer.
10117
065a2c74
PA
101182009-03-22 Pedro Alves <pedro@codesourcery.com>
10119
10120 * symfile.c (symfile_relocate_debug_section): Remove check for
10121 SEC_DEBUGGING.
10122
cc924cad
TJB
101232009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10124 Jim Blandy <jimb@red-bean.com>
10125 Thiago Jung Bauermann <bauerman@br.ibm.com>
10126 Tom Tromey <tromey@redhat.com>
10127
10128 Miscellaneous fixes to the Python code.
10129 * python/python-cmd.c (cmdpy_init): Accept keyword
10130 arguments.
10131 * python/python-value.c (valpy_string): Accept keyword
10132 arguments.
10133 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
10134 Do not call value_to_value_object on NULL RES_VAL.
10135 (value_object_methods): Change `string' entry to also accept
10136 keyword arguments.
10137 (convert_value_from_python): Return a copy of the value if obj is
10138 a gdb.Value object.
10139 (value_object_methods): Mark the `string' method as accepting
10140 keywords, and show method "prototype" in the doc string.
10141 * python/python.c (get_parameter): Don't return inside a
10142 TRY_CATCH.
10143
bc3b79fd
TJB
101442009-03-20 Tom Tromey <tromey@redhat.com>
10145
10146 Add support for convenience functions in Python.
10147 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
10148 (SUBDIR_PYTHON_SRCS): Add python-function.c.
10149 (python-function.o): New target.
10150 * eval.c: Include "python/python.h" and <ctype.h>.
10151 (evaluate_subexp_standard): Handle values of type
10152 TYPE_CODE_INTERNAL_FUNCTION.
10153 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
10154 * parse.c (write_exp_string): Remove duplicate word in comment.
10155 * python/python-function.c: New file.
10156 * python/python-internal.h (gdbpy_initialize_functions): Add
10157 prototype.
10158 * python/python.c (_initialize_python): Call
10159 gdbpy_initialize_functions.
10160 * valprint.c (value_check_printable): Handle values of type
10161 TYPE_CODE_INTERNAL_FUNCTION.
10162 * value.c: Include "cli/cli-decode.h".
10163 (internal_function): New struct.
10164 (functionlist, internal_fn_type): New static variables.
10165 (lookup_only_internalvar,
10166 lookup_internalvar): Add const qualifier to name argument.
10167 (create_internalvar): Likewise. Initialize new field.
10168 (set_internal_var): Fix typo in comment. Don't allow assignment
10169 to canonical variable.
10170 (value_create_internal_function, value_internal_function_name,
10171 call_internal_function, function_command, function_destroyer,
10172 add_internal_function): New functions.
10173 (_initialize_values): Create `function' placeholder command.
10174 Initialize internal_fn_type.
10175 * value.h (lookup_only_internalvar, create_internalvar,
10176 lookup_internalvar): Add const qualifier to name argument.
10177 (internal_function_fn, add_internal_function, call_internal_function,
10178 value_internal_function_name): Add prototypes.
10179 (struct internalvar) <canonical>: New field.
10180
546e879e
TT
101812009-03-20 Tom Tromey <tromey@redhat.com>
10182
10183 * c-lang.c (evaluate_subexp_c): Call check_typedef.
10184
6c7a06a3
TT
101852009-03-20 Tom Tromey <tromey@redhat.com>
10186 Julian Brown <julian@codesourcery.com>
10187
10188 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
10189 PR i18n/9401, PR exp/9613:
10190 * NEWS: Update
10191 * value.h (value_typed_string): Declare.
10192 (val_print_string): Update.
10193 * valprint.h (print_char_chars): Update.
10194 * valprint.c (print_char_chars): Add type argument. Update.
10195 (val_print_string): Likewise.
10196 * valops.c (value_typed_string): New function.
10197 * utils.c (host_char_to_target): New function.
10198 (parse_escape): Use host_char_to_target, host_hex_value. Update.
10199 Remove '^' case.
10200 (no_control_char_error): Remove.
10201 * typeprint.c (print_type_scalar): Update.
10202 * scm-valprint.c (scm_scmval_print): Update.
10203 * scm-lang.h (scm_printchar, scm_printstr): Update.
10204 * scm-lang.c (scm_printchar): Add type argument.
10205 (scm_printstr): Likewise.
10206 * printcmd.c (print_formatted): Update.
10207 (print_scalar_formatted): Update.
10208 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
10209 Handle '%lc' and '%ls'.
10210 * parser-defs.h (struct typed_stoken): New type.
10211 (struct stoken_vector): Likewise.
10212 (write_exp_string_vector): Declare.
10213 * parse.c (write_exp_string_vector): New function.
10214 * p-valprint.c (pascal_val_print): Update.
10215 * p-lang.h (is_pascal_string_type, pascal_printchar,
10216 pascal_printstr): Update.
10217 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
10218 Add 'char_type' argument.
10219 (pascal_emit_char): Add type argument.
10220 (pascal_printchar): Likewise.
10221 (pascal_printstr): Likewise.
10222 * objc-lang.c (objc_emit_char): Add type argument.
10223 (objc_printchar): Likewise.
10224 (objc_printstr): Likewise.
10225 * macroexp.c (get_character_constant): Handle unicode characters.
10226 Use c_parse_escape.
10227 (get_string_literal): Handle unicode strings. Use
10228 c_parse_escape.
10229 * m2-valprint.c (print_unpacked_pointer): Update.
10230 (m2_print_array_contents): Update.
10231 (m2_val_print): Update.
10232 * m2-lang.c (m2_emit_char): Add type argument.
10233 (m2_printchar): Likewise.
10234 (m2_printstr): Likewise.
10235 * language.h (struct language_defn) <la_printchar>: Add type
10236 argument.
10237 <la_printstr, la_emitchar>: Likewise.
10238 (LA_PRINT_CHAR): Likewise.
10239 (LA_PRINT_STRING): Likewise.
10240 (LA_EMIT_CHAR): Likewise.
10241 * language.c (unk_lang_emit_char): Add type argument.
10242 (unk_lang_printchar): Likewise.
10243 (unk_lang_printstr): Likewise.
10244 * jv-valprint.c (java_val_print): Update.
10245 * jv-lang.c (java_emit_char): Add type argument.
10246 * f-valprint.c (f_val_print): Update.
10247 * f-lang.c (f_emit_char): Add type argument.
10248 (f_printchar): Likewise.
10249 (f_printstr): Likewise.
10250 * expprint.c (print_subexp_standard): Update.
10251 * charset.h (target_wide_charset): Declare.
10252 (c_target_char_has_backslash_escape, c_parse_backslash,
10253 host_char_print_literally, host_char_to_target,
10254 target_char_to_host, target_char_to_control_char): Remove.
10255 (enum transliterations): New type.
10256 (convert_between_encodings): Declare.
10257 (HOST_ESCAPE_CHAR): New define.
10258 (host_letter_to_control_character, host_hex_value): Declare.
10259 (enum wchar_iterate_result): New enum.
10260 (struct wchar_iterator): Declare.
10261 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
10262 wchar_push_back): Declare.
10263 * charset-list.h: New file.
10264 * c-valprint.c (textual_name): New function.
10265 (textual_element_type): Handle wide character types.
10266 (c_val_print): Pass original type to textual_element_type. Handle
10267 wide character types.
10268 (c_value_print): Use textual_element_type. Pass original type of
10269 value to val_print.
10270 * c-lang.h (enum c_string_type): New type.
10271 (c_printchar, c_printstr): Update.
10272 * c-lang.c (classify_type): New function.
10273 (print_wchar): Likewise.
10274 (c_emit_char): Add type argument. Handle wide characters.
10275 (c_printchar): Likewise.
10276 (c_printstr): Add type argument. Handle wide and multibyte
10277 character sets.
10278 (convert_ucn): New function.
10279 (emit_numeric_character): Likewise.
10280 (convert_octal): Likewise.
10281 (convert_hex): Likewise.
10282 (ADVANCE): New macro.
10283 (convert_escape): New function.
10284 (parse_one_string): Likewise.
10285 (evaluate_subexp_c): Likewise.
10286 (exp_descriptor_c): New global.
10287 (c_language_defn): Use exp_descriptor_c.
10288 (cplus_language_defn): Likewise.
10289 (asm_language_defn): Likewise.
10290 (minimal_language_defn): Likewise.
10291 (charset_for_string_type): New function.
10292 * c-exp.y (%union): Add 'svec' and 'tsval'.
10293 (CHAR): New token.
10294 (exp): Add CHAR production.
10295 (string_exp): Rewrite.
10296 (exp) <string_exp>: Rewrite.
10297 (tempbuf): Now global.
10298 (tempbuf_init): New global.
10299 (parse_string_or_char): New function.
10300 (yylex) <tempbuf>: Now global.
10301 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
10302 Remove.
10303 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
10304 (c_parse_escape): New function.
10305 * auxv.c (fprint_target_auxv): Update.
10306 * ada-valprint.c (ada_emit_char): Add type argument.
10307 (ada_printchar): Likewise.
10308 (ada_print_scalar): Update.
10309 (printstr): Add type argument. Update calls to ada_emit_char.
10310 (ada_printstr): Add type argument.
10311 (ada_val_print_array): Update.
10312 (ada_val_print_1): Likewise.
10313 * ada-lang.c (emit_char): Add type argument.
10314 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
10315 type arguments.
10316 * gdb_locale.h: Include langinfo.h.
10317 * charset.c (_initialize_charset): Set default host charset from
10318 the locale. Don't register charsets. Add target-wide-charset
10319 commands. Call find_charset_names.
10320 (struct charset, struct translation): Remove.
10321 (GDB_DEFAULT_HOST_CHARSET): Remove.
10322 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
10323 (target_wide_charset_name): New global.
10324 (show_host_charset_name): Handle "auto".
10325 (show_target_wide_charset_name): New function.
10326 (host_charset_enum, target_charset_enum): Remove.
10327 (charset_enum): New global.
10328 (all_charsets, register_charset, lookup_charset, all_translations,
10329 register_translation, lookup_translation): Remove.
10330 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
10331 (iso_8859_print_literally, iso_8859_to_control,
10332 iso_8859_family_charset): Remove.
10333 (ebcdic_print_literally, ebcdic_to_control,
10334 ebcdic_family_charset): Remove.
10335 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
10336 register_iconv_charsets): Remove.
10337 (target_wide_charset_be_name, target_wide_charset_le_name): New
10338 globals.
10339 (identity_either_char_to_other): Remove.
10340 (set_be_le_names, validate): New functions.
10341 (backslashable, backslashed, represented): Remove.
10342 (default_c_target_char_has_backslash_escape): Remove.
10343 (default_c_parse_backslash, iconv_convert): Remove.
10344 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
10345 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
10346 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
10347 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
10348 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
10349 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
10350 (table_convert_char, table_translation, simple_table_translation):
10351 Remove.
10352 (current_host_charset, current_target_charset,
10353 c_target_char_has_backslash_escape_func,
10354 c_target_char_has_backslash_escape_baton): Remove.
10355 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
10356 (host_char_to_target_func, host_char_to_target_baton): Remove.
10357 (target_char_to_host_func, target_char_to_host_baton): Remove.
10358 (cached_iconv_host_to_target, cached_iconv_target_to_host):
10359 Remove.
10360 (lookup_charset_or_error, check_valid_host_charset): Remove.
10361 (set_host_and_target_charsets): Remove.
10362 (set_host_charset, set_target_charset): Remove.
10363 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
10364 (set_target_wide_charset_sfunc): New function.
10365 (show_charset): Print target wide character set.
10366 (host_charset, target_charset): Rewrite.
10367 (target_wide_charset): New function.
10368 (c_target_char_has_backslash_escape): Remove.
10369 (c_parse_backslash): Remove.
10370 (host_letter_to_control_character): New function.
10371 (host_char_print_literally): Remove.
10372 (host_hex_value): New function.
10373 (target_char_to_control_char): Remove.
10374 (cleanup_iconv): New function.
10375 (convert_between_encodings): New function.
10376 (target_char_to_host): Remove.
10377 (struct wchar_iterator): Define.
10378 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
10379 wchar_push_back): New functions.
10380 (do_cleanup_iterator): New function.
10381 (char_ptr): New typedef.
10382 (charsets): New global.
10383 (add_one, find_charset_names): New functions.
10384 (default_charset_names): New global.
10385 (auto_host_charset_name): Likewise.
10386 * aclocal.m4, config.in, configure: Rebuild.
10387 * configure.ac: Call AM_LANGINFO_CODESET.
10388 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
10389 (AM_ICONV): Invoke earlier.
10390 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
10391 LIBICONV_LIBDIR. Check for libiconv in build tree.
10392 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
10393 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
10394 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
10395 * gdb_obstack.h (obstack_grow_wstr): New define.
c2c8d75b
AS
10396 * gdb_wchar.h: New file.
10397 * defs.h: Include it.
6c7a06a3 10398
cb249c71
TT
103992009-03-20 Tom Tromey <tromey@redhat.com>
10400 Jan Kratochvil <jan.kratochvil@redhat.com>
10401
10402 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
10403 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
10404 typedef.
10405 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
10406 SYMBOL_TYPE result.
10407 * ada-typeprint.c (print_array_type): Do the NULL check
10408 unconditionally.
10409
16ad9370
TT
104102009-03-19 Tom Tromey <tromey@redhat.com>
10411
10412 * utils.c (do_obstack_free): New function.
10413 (make_cleanup_obstack_free): Likewise.
10414 * defs.h (make_cleanup_obstack_free): Declare.
10415
36dc683c
DE
104162009-03-18 Doug Evans <dje@google.com>
10417
89ecc4f5
DE
10418 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
10419 int, not a long long.
10420 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
10421
a411cd0e
DE
10422 * expprint.c (dump_raw_expression): Print note if non-NULL.
10423
36dc683c
DE
10424 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
10425 backwards.
10426
5b1ba0e5
NS
104272009-03-18 Nathan Sidwell <nathan@codesourcery.com>
10428
10429 * Makefile.in: Update license to GPLv3.
10430 * ada-exp.y: Update license to GPLv3.
10431 * ada-lex.l: Update license to GPLv3.
10432 * c-exp.y: Update license to GPLv3.
10433 * cp-name-parser.y: Update license to GPLv3.
10434 * darwin-nat-info.c: Update license to GPLv3.
10435 * f-exp.y: Update license to GPLv3.
10436 * gdb_thread_db.h: Update license to GPLv3.
10437 * hppanbsd-nat.c: Update license to GPLv3.
10438 * hppanbsd-tdep.c: Update license to GPLv3.
10439 * hppaobsd-tdep.c: Update license to GPLv3.
10440 * jv-exp.y: Update license to GPLv3.
10441 * m2-exp.y: Update license to GPLv3.
10442 * objc-exp.y: Update license to GPLv3.
10443 * p-exp.y: Update license to GPLv3.
10444 * reply_mig_hack.awk: Update license to GPLv3.
10445 * reverse.c: Update license to GPLv3.
10446 * xtensa-xtregs.c: Update license to GPLv3.
10447
8a2492ee
PA
104482009-03-18 Pedro Alves <pedro@codesourcery.com>
10449
10450 * remote.c (remote_close): Don't call generic_mourn_inferior.
10451 (remote_mourn_1): Call generic_mourn_inferior after closing the
10452 target.
10453
5338cef1
PA
104542009-03-18 Pedro Alves <pedro@codesourcery.com>
10455
10456 * remote.c (remote_start_remote): Add missing call to
10457 init_wait_for_inferior in non-stop mode.
10458
717a8278
PA
104592009-03-18 Pedro Alves <pedro@codesourcery.com>
10460
10461 * breakpoint.c (bpstat_should_step): Only consider software
10462 watchpoints that have a location.
10463
7d85a9c0
JB
104642009-03-17 Joel Brobecker <brobecker@adacore.com>
10465
10466 Add a target_ops parameter to the to_kill method in struct target_ops.
10467
10468 * target.h (struct target_ops): Add a "target_ops *" parameter to
10469 method to_kill.
10470 (target_kill): Remove macro. Add declaration.
10471 * target.c (debug_to_kill): Delete, no longer necessary.
10472 (target_kill): New function.
10473 (update_current_target): Stop inheriting the to_kill method.
10474 Do not de_fault it to no_process either.
10475 (setup_target_debug): Do not set current_target.to_kill.
10476 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
10477 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
10478 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
10479 accordingly.
10480
14064aa2
DE
104812009-03-17 Doug Evans <dje@google.com>
10482
10483 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
10484 glibc 2.3.2 and earlier.
10485
f06eadd9
JB
104862009-03-17 Joel Brobecker <brobecker@adacore.com>
10487
10488 * frame.c (get_prev_frame_1): Do not perform the inner_frame
10489 sanity check if this_frame is not NORMAL.
10490 (frame_id_inner): Update the description of this function.
10491
481df73e
HZ
104922009-03-17 Hui Zhu <teawater@gmail.com>
10493
10494 * stack.c: Change the introduce of "disassemble-next-line".
10495
6b251945
PA
104962009-03-17 Pedro Alves <pedro@codesourcery.com>
10497
10498 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
10499 declare as extern.
10500
30c33a9f
HZ
105012009-03-17 Hui Zhu <teawater@gmail.com>
10502
dafb3b41 10503 * stack.c: Include valprint.h.
30c33a9f
HZ
10504 (disassemble_next_line): New enum.
10505 (show_disassemble_next_line): New function. Show the current
10506 value of disassemble-next-line.
10507 (gdb_disassembly_stub_args): New struct for argument passing
10508 between function do_gdb_disassembly and function
10509 gdb_disassembly_stub.
10510 (gdb_disassembly_stub): New function. Helper for
10511 gdb_disassembly.
10512 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
10513 the exception from the gdb_disassembly because it will be
10514 broken by filter sometime.
10515 (print_frame_info): If disassemble-next-line is set to auto
10516 or on and doesn't have the line debug messages for $pc,
10517 output the next instruction.
10518 If disassemble-next-line is set to on and there is line debug
10519 messages, output assembly codes for next line.
10520 (_initialize_stack): Make the "set disassemble-next-line"
10521 command an auto-boolean command. Change its class to
10522 class_stack. Place it in the top level set list. Extend help
10523 to describe the auto mode.
10524
fee0be5d
PA
105252009-03-17 Pedro Alves <pedro@codesourcery.com>
10526
10527 * infrun.c (normal_stop): Don't overwrite old_chain.
10528
a624e111
JB
105292009-03-16 Joel Brobecker <brobecker@adacore.com>
10530
10531 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
10532 which is undefined, by call to regcache_invalidate, which should
10533 do what the original author wanted to do.
10534
383c0389
JB
105352009-03-16 Joel Brobecker <brobecker@adacore.com>
10536
10537 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
10538 (mips_create_inferior): Likewise.
10539
267fbcde
JB
105402009-03-16 Joel Brobecker <brobecker@adacore.com>
10541
10542 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
10543
da66f6a6
JB
105442009-03-16 Joel Brobecker <brobecker@adacore.com>
10545
10546 * darwin-nat.c (darwin_resume): Fix a compiler warning when
10547 building on x86_64-darwin.
10548
58529c02
JB
105492009-03-16 Tristan Gingold <gingold@adacore.com>
10550
10551 * configure.tgt: Add handling for x86_64-darwin.
10552
ba30a4e9
JK
105532009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10554
10555 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
10556
7fc0c7b5
JB
105572009-03-15 Joel Brobecker <brobecker@adacore.com>
10558
10559 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
10560 Use the ops parameter to get to the target beneath, rather than
10561 using the current_target global. Using the current_target global
10562 was an unintended accident.
10563
1ba0a4ee
JB
105642009-03-15 Joel Brobecker <brobecker@adacore.com>
10565
10566 Fix an error happening while loading symbols from a core file
10567 (on AIX).
10568
10569 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
10570 to detect whether we're debugging a core file or not.
10571
d30acaa7
JB
105722009-03-15 Joel Brobecker <brobecker@adacore.com>
10573
10574 Modernize the aix-thread later by getting rid of the base_target
10575 global. This brings back to life the AIX port which was otherwise
10576 crashing all the time.
10577
10578 * aix-thread.c (base_target): Delete.
10579 (pd_enable): Do not set base_target.
10580 (aix_thread_attach): Use find_target_beneath instead of base_target.
10581 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10582 (aix_thread_fetch_registers, aix_thread_store_registers),
10583 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10584 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
10585 (aix_thread_kill): Delete. Does not seem necessary.
10586 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
10587
61ff14c6
JK
105882009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10589
10590 * stack.c (return_command <retval_exp>): New variables retval_expr
10591 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
10592 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
10593 if RETURN_TYPE is NULL.
10594
0b16c5cf
PA
105952009-03-14 Pedro Alves <pedro@codesourcery.com>
10596
10597 * remote.c (PACKET_qAttached): New.
10598 (remote_query_attached): New.
10599 (remote_add_inferior): Add new `attached' argument. Handle it.
10600 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
10601 -1 to remote_add_inferior in new parameter.
10602 (extended_remote_attach_1): Adjust to pass 1 to
10603 remote_add_inferior in the new parameter.
10604 (extended_remote_create_inferior_1): Adjust to pass 0 to
10605 remote_add_inferior in the new parameter.
10606 (_initialize_remote): Add "set/show remote query-attached-packet"
10607 commands.
10608
9ee6bb93
TT
106092009-03-13 Tom Tromey <tromey@redhat.com>
10610
10611 * symtab.c (lookup_symbol_in_language): Use a cleanup.
10612
787274f0
DE
106132009-03-13 Doug Evans <dje@google.com>
10614
10615 * exceptions.h: Clean up some comments on catch_exceptions usage.
10616 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
10617 catch_exceptions.
10618
24f81874
JB
106192009-02-17 Joel Brobecker <brobecker@adacore.com>
10620
10621 The following patch helps getting rid of a warning inside solib-som.c.
10622
10623 * source.c (source_full_path_of): Constify parameter filename.
10624 * defs.h (source_full_path_of): Update declaration accordingly.
10625
e1578042
JB
106262009-03-12 Joel Brobecker <brobecker@adacore.com>
10627
10628 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
10629 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
10630 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
10631
9c2be529
JB
106322009-03-12 Joel Brobecker <brobecker@adacore.com>
10633
10634 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
10635 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
10636
2360f94a 106372009-03-12 Joel Brobecker <brobecker@adacore.com>
e22dccb5
JB
10638
10639 * ada-tasks.c (ada_task_is_alive): Move up and make static.
10640 * ada-lang.h (ada_task_is_alive): Remove declaration.
10641
facc390f
JB
106422009-03-12 Jerome Guitton <guitton@adacore.com>
10643
10644 * ada-lang.c (ada_delta): Change the type of numerators and
10645 denominators to DOUBLEST, as they may not fit into a long.
10646 (scaling_factor): Ditto.
10647
47e729a8
JB
106482009-03-12 Jerome Guitton <guitton@adacore.com>
10649
5c20fa2a 10650 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
47e729a8 10651
b79819ba
JB
106522009-03-12 Joel Brobecker <brobecker@adacore.com>
10653
10654 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
10655 types, if we are unable to determine the actual symbol type
10656 from its tag, then use the static approximation instead.
10657
0056e4d5
JB
106582009-03-12 Joel Brobecker <brobecker@adacore.com>
10659
10660 Fix crash printing packed record with packed array.
10661
10662 * ada-lang.c (ada_modulus_from_name): New function.
10663 (ada_modulus): In the case where the type length is bigger than
10664 the size of the type used to hold the bounds, try determining
10665 the modulus from the type name.
10666 (ada_value_primitive_packed_val): Fix bug in the computation of
10667 ntarg causing an out-of-buffer invalid access.
10668
3c513ee6
JB
106692009-03-12 Joel Brobecker <brobecker@adacore.com>
10670
10671 Fix segfault when printing short_integer'last.
10672
10673 * ada-lang.c (ada_find_any_type): Search in the primitive types
10674 if a symbol could not be found.
10675
680f3fad
JB
106762009-03-12 Joel Brobecker <brobecker@adacore.com>
10677
10678 * ada-tasks.c (task_states,long_task_states): Add new states
10679 Activating and Acceptor_Delay_Sleep. Update the description
10680 of state Acceptor_Sleep.
10681
2ab1c2d9
JB
106822009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
10683
10684 Fix a build failure on Darwin following some changes in
10685 the profile of some target_ops methods.
10686
10687 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
10688 where missing.
10689 (darwin_stop_inferior, darwin_detach): Likewise.
10690
1f31650a
VP
106912009-03-12 Vladimir Prus <vladimir@codesourcery.com>
10692
10693 Include token in ^running notification for CLI commands.
10694
c2c8d75b
AS
10695 * mi/mi-main.c (mi_execute_command): Set current_token here.
10696 (mi_cmd_execute): Do not set current_token here.
1f31650a 10697
4333ada3
VP
106982009-03-12 Vladimir Prus <vladimir@codesourcery.com>
10699
10700 Fix MI timings.
10701
c2c8d75b
AS
10702 * mi/mi-main.c (mi_print_timing_maybe): New.
10703 (captured_mi_execute_command): Simplify. Output timings to
10704 CLI commands, too.
10705 (mi_execute_async_cli_command): Do not print timings.
10706 * mi/mi-main.h (mi_print_timing_maybe): Declare.
10707 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
4333ada3 10708
c5933f6d
JB
107092009-03-12 Jerome Guitton <guitton@adacore.com>
10710
10711 * xcoffread.c (process_linenos): Check if the line in the
10712 include table refers to the main source file and, if so,
10713 add them to the main subfile.
10714
c7660128
JB
107152009-03-12 Joel Brobecker <brobecker@adacore.com>
10716
10717 Fix a build failure on AIX introduced after a change in the profile
10718 of some of the "methods" in the target_ops structure.
10719 * aix-thread.c: Add missing target_ops parameter throughout.
10720
10721 Implement Ada task switching on AIX.
10722 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
10723 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
10724
c5bc3a77
DJ
107252009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
10726
10727 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
10728 value_mark and value_free_to_mark.
10729 * objfiles.c (free_objfile): Call objfile_free_data before
10730 freeing the BFD.
10731
55518360
HZ
107322009-03-10 Hui Zhu <teawater@gmail.com>
10733
10734 * disasm.c (gdb_disassembly): Remove unused argument
10735 "line_num".
10736 * disasm.h (gdb_disassembly): Ditto.
10737 * cli/cli-cmds.c (print_disassembly): Ditto.
10738 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
10739
5fd1a349
PP
107402009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
10741
10742 * solib.c (solib_contains_address_p): New function.
10743 (solib_name_from_address): Use it.
10744 * printcmd.c (display_uses_solib_p): Use it.
c2c8d75b
AS
10745 * solib.h (solib_contains_address_p): Declare it.
10746
36746093
JK
107472009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10748
10749 * varobj.c (free_variable): Call value_free.
10750
757a13d0
JK
107512009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10752
10753 PR gdb/9873:
10754 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
10755 Move the variable `macinfo_type' out of the loop. Create a new
10756 processing pass before the current one to pre-create `current_file'.
10757 New complaint on misplaced zero/non-zero definitions/includes.
10758 Skip first DW_MACINFO_start_file with `at_commandline' set.
10759
c8fa6cdd
VP
107602008-03-09 Vladimir Prus <vladimir@codesourcery.com>
10761
10762 * solib.c (reload_shared_libraries): Give
10763 inferior a chance to reset solib breakpoint.
10764 Reinit frame cache.
10765
41b4aadc
CF
107662009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
10767
10768 * windows-nat.c (dr): Redefine to use largest possible integer which
10769 holds a pointer.
10770 (cygwin_set_dr): Avoid coercion.
10771
107722009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
10773
14b69f28 10774 * windows-nat.c (windows_create_inferior): Implement --tty handling on
41b4aadc
CF
10775 non-cygwin.
10776
f5c9a895
PP
107772009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10778
10779 Rename solib_address to solib_name_from_address.
10780 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
10781 (disable_breakpoints_in_unloaded_shlib): Update.
10782 * printcmd.c (display_uses_solib_p): Likewise.
10783 * stack.c (print_frame): Likewise.
10784 * solib.c: Rename.
10785 * solib.h: Rename.
c2c8d75b 10786
a3247a22
PP
107872009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
10788
10789 * printcmd.c (do_one_display): Reparse exp_string.
10790 (display_uses_solib_p): New function.
10791 (clear_dangling_display_expressions): New function.
10792 (_initialize_printcmd): Add observer.
10793 * solib.c (no_shared_libraries): Swap order of calls to
10794 clear_solib and objfile_purge_solibs.
c2c8d75b 10795
d36df9c5
JB
107962009-03-05 Joel Brobecker <brobecker@adacore.com>
10797
10798 Implement the target-specific part of Ada tasking support
10799 on Tru64.
10800
10801 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
10802 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
10803
b254c0b2
JB
108042009-03-05 Joel Brobecker <brobecker@adacore.com>
10805
10806 Get rid of the global "base_target" and use "find_target_beneath"
10807 to find the underlying target.
10808 * dec-thread.c (base_target): Delete.
10809 (enable_dec_thread): Remove assignement to base_target.
10810 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
10811 (dec_thread_fetch_registers, dec_thread_store_registers)
10812 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
10813 Update the function profile if necessary.
10814 Use find_target_beneath to call the same method but from
10815 the underlying target, removing the need for "base_target".
10816
10817 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
10818 Fix a copy/paste error in a few debug traces...
10819
10820 * solib-osf.c (init_so): Use a simpler method for computing
10821 the size of lm_info structure. This also gets rid of warning
10822 emitted by the compiler.
10823
aae64587
PA
108242009-03-05 Pedro Alves <pedro@codesourcery.com>
10825
10826 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
10827 duplicates of permanent breakpoints.
10828
1941c569
PA
108292009-03-04 Pedro Alves <pedro@codesourcery.com>
10830
10831 * inferior.h (notice_new_inferior): Declare.
10832 * infcmd.c (notice_new_inferior): New.
10833 * remote.c (remote_add_inferior, remote_add_thread): New.
10834 (notice_new_inferiors): Rename to...
10835 (remote_notice_new_inferior): ... this. Add RUNNING argument.
10836 Use remote_add_thread instead of add_thread, passing it the
10837 RUNNING argument. Add an inferior with remote_add_inferior. If
10838 we just learned about an inferior, call notice_new_inferior.
10839 (record_currthread): Adjust.
10840 (remote_threads_info): Adjust to use remote_notice_new_inferior.
237d4315
PA
10841 (remote_start_remote, extended_remote_attach_1): Use
10842 remote_add_inferior.
1941c569
PA
10843 (process_stop_reply): Adjust. Call remote_notice_new_inferior
10844 after handling expedited registers and watchpoint state.
10845 (extended_remote_create_inferior_1): Use remote_add_inferior.
10846
9bde0732
AR
108472009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
10848
10849 * infcmd.c (registers_info): Remove register number case.
10850
6aa8e5c2
PA
108512009-03-03 Pedro Alves <pedro@codesourcery.com>
10852
10853 * top.c (quit_target): Check for target_has_execution before
10854 killing or detaching from inferiors.
10855
1d59cee5
JB
108562009-03-02 Joel Brobecker <brobecker@adacore.com>
10857
10858 Remove some unused routines.
10859
10860 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
10861 Delete.
10862 * ada-lang.c (ada_task_list_iterator_ftype)
10863 (iterate_over_live_ada_tasks): Delete.
10864 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
10865 Delete.
10866
223698f8
DE
108672009-03-01 Doug Evans <dje@google.com>
10868
9af17804
DE
10869 * symtab.c: Remove trailing whitespace throughout the file.
10870 (expand_line_sal): Fix some typos and whitespace.
10871
3c54f140
DE
10872 * Makefile.in (clean): rm -f $(DEPDIR)/*.
10873
2aecd87f
DE
10874 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
10875 (init.c): signals/ -> common/.
10876 (signals.o): Update.
10877 * target.h (target_signal_to_string,target_signal_to_string)
10878 (target_signal_from_name,target_signal_to_host_p)
10879 (target_signal_from_host,target_signal_to_host): Move to ...
10880 * common/gdb_signals.h: ... here. New file.
10881 * common/signals.c: Moved here from signals/signals.c.
10882 #include gdb_signals.h, remove #include of target.h in gdb case.
10883 (target_signal_from_command,default_target_signal_to_host)
10884 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
10885
223698f8
DE
10886 Include thread ID in target_wait debugging output.
10887 * infrun.c (print_target_wait_results): New function.
10888 (wait_for_inferior,fetch_inferior_event): Call it.
10889
93a91755
PA
108902009-02-27 Pedro Alves <pedro@codesourcery.com>
10891
10892 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
10893 with a ptid_t field.
10894 * linux-thread-db.c (thread_get_info_callback): Build the ptid
10895 using the pid stored in proc_handle.ptid.
10896 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
10897 (check_for_thread_db, thread_db_detach, check_event)
10898 (thread_db_mourn_inferior, find_new_threads_callback)
10899 (thread_db_find_new_threads_1): Adjust.
10900 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
10901 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
10902
b5096abe
PM
109032009-02-27 Phil Muldoon <pmuldoon@redhat.com>
10904
10905 * valprint.c (read_string): Rework clean-up logic. Use
10906 free_current_contents to clean-up buffer.
10907
a2f63f5e
AS
109082009-02-27 Andreas Schwab <schwab@linux-m68k.org>
10909
10910 * MAINTAINERS: Update e-mail address.
10911
83390453
PM
109122009-02-26 Phil Muldoon <pmuldoon@redhat.com>
10913
10914 * python/python-utils.c (python_string_to_unicode): Always return
10915 a new reference.
10916 (python_string_to_target_string): Decrement transient python
10917 instance.
10918 (python_string_to_host_string): Likewise.
10919
109202007-02-26 Pedro Alves <pedro@codesourcery.com>
a0740d21
PA
10921
10922 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
10923 call to super_fetch_registers.
10924 (mips64_linux_store_registers): Pass `ops' to call to
10925 super_store_registers.
10926
89c83b10
DE
109272009-02-25 Doug Evans <dje@google.com>
10928
99361f52
DE
10929 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
10930 error message.
10931
1c2af6c4
DE
10932 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
10933 disabled_shlib_breaks, unused.
10934
89c83b10
DE
10935 * printcmd.c (build_address_symbolic): Fix comment.
10936
9e2f0ad4
HZ
109372009-02-25 Hui Zhu <teawater@gmail.com>
10938
10939 * cli/cli-script.c (define_command): Add _() to query.
10940 * gnu-nat.c (inf_validate_task_sc): Ditto.
10941 * infcmd.c (kill_if_already_running): Ditto.
10942 (jump_command): Ditto.
10943 (attach_command): Ditto.
10944 * inflow.c (kill_command): Ditto.
10945 * infrun.c (handle_command): Ditto.
10946 * maint.c (maintenance_dump_me): Ditto.
10947 * memattr.c (mem_delete_command): Ditto.
10948 * monitor.c (monitor_interrupt_query): Ditto.
10949 * nto-procfs.c (interrupt_query): Ditto.
10950 * printcmd.c (undisplay_command): Ditto.
10951 * remote-mips.c (mips_kill): Ditto.
10952 * remote.c (interrupt_query): Ditto.
10953 * solib-irix.c (irix_open_symbol_file_object): Ditto.
10954 * solib-osf.c (osf_open_symbol_file_object): Ditto.
10955 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
10956 * solib-som.c (som_open_symbol_file_object): Ditto.
10957 * solib-svr4.c (open_symbol_file_object): Ditto.
10958 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
10959 * target.c (kill_or_be_killed): Ditto.
10960 * tracepoint.c (delete_trace_command): Ditto.
10961 * top.c (quit_confirm): Add _() to s that will be used
10962 in query.
10963
02529b48
PM
109642009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
10965
10966 Fix windows-nat.c compilation failure.
10967
10968 * windows-nat.c (windows_thread_alive): Fix forward declaration.
10969 (get_windows_debug_event): Add ops parameter to call to windows_resume.
10970
2fb89e62
PA
109712009-02-23 Pedro Alves <pedro@codesourcery.com>
10972
10973 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
10974
6f43c46f
JB
109752009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
10976
10977 * symtab.c (find_line_symtab): Initialize exact to avoid
10978 a compiler warning.
10979
84e473c8
PA
109802009-02-23 Pedro Alves <pedro@codesourcery.com>
10981
10982 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
10983 `ops' to recursive call.
10984
28439f5e
PA
109852009-02-23 Pedro Alves <pedro@codesourcery.com>
10986
10987 * corelow.c (get_core_registers): Adjust.
10988 (core_file_thread_alive): Rename to...
10989 (core_thread_alive): ... this.
10990 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
10991 (init_core_ops): Adjust.
10992 (coreops_suppress_target): Delete.
10993 (_initialize_corelow): Unconditionally add core_ops.
10994 * procfs.c: Include "inf-child.h".
10995 (procfs_ops): Delete.
10996 (init_procfs_ops): Delete. Reimplement as...
10997 (procfs_target): ... this, inheriting from inf-child.
10998 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
10999 (procfs_prepare_to_store): Delete.
11000 (procfs_store_registers, procfs_resume): Adjust.
11001 (procfs_open): Delete.
11002 (procfs_suppress_run): Delete.
11003 (procfs_can_run): Delete.
11004 (procfs_mourn_inferior): Adjust.
11005 (procfs_init_inferior): Add target_ops parameter. Adjust.
11006 (procfs_create_inferior): Don't pass procfs_init_inferior to
11007 fork_inferior. Instead call it after fork_inferior returns.
11008 (procfs_find_new_threads): Adjust.
11009 (_initialize_procfs): Adjust to use procfs_target instead of
11010 init_procfs_ops.
11011 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
11012 (lwp_to_thread): Use target_thread_alive.
11013 (sol_thread_open): Delete.
11014 (sol_thread_attach): Delete.
11015 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11016 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
11017 to use find_target_beneath.
11018 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
11019 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
11020 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
11021 (check_for_thread_db): New.
11022 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
11023 (sol_thread_new_objfile): Call check_for_thread_db.
11024 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
11025 (sol_thread_can_run): Delete.
11026 (sol_thread_alive): Adjust to use find_target_beneath.
11027 (sol_thread_stop): Delete.
11028 (rw_common): Use target_write_memory or target_read_memory.
11029 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
11030 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
11031 (solaris_pid_to_str): Remove check for libthread_db initialization
11032 failing.
11033 (sol_find_new_threads): Remove check for libthread_db
11034 initialization failing, or for an invalid inferior_ptid. Adjust
11035 to use find_target_beneath.
11036 (sol_core_open, sol_core_close, sol_core_detach,
11037 sol_core_files_info, sol_find_memory_regions,
11038 sol_make_note_section, ignore): Delete.
11039 (init_sol_thread_ops): Make it a thread_stratum target. Remove
11040 unneeded callback settings.
11041 (init_sol_core_ops): Delete.
11042 (_initialize_sol_thread): No longer call init_sol_core_ops, set
11043 procfs_suppress_run, or hack with core_ops.
11044
11045 * target.h (struct target_ops): Add a target_ops * parameter to
11046 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
11047 and to_find_new_threads.
11048 (target_fetch_registers, target_store_registers)
11049 (target_thread_alive, target_find_new_threads): Redeclare as
11050 function.
a2f63f5e 11051
28439f5e
PA
11052 * target.c (update_current_target): Do not inherit or de_fault
11053 to_resume, to_fetch_registers, to_store_registers,
11054 to_thread_alive, to_find_new_threads.
11055 (target_resume): Adjust.
11056 (target_thread_alive, target_find_new_threads): New.
11057 (debug_to_resume, debug_to_fetch_registers): Delete.
11058 (target_fetch_registers): New.
11059 (debug_to_store_registers): Delete.
11060 (target_store_registers): New.
11061 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
11062 (setup_target_debug): Adjust.
a2f63f5e 11063
28439f5e 11064 * gdbcore.h (core_ops): Delete declaration.
a2f63f5e 11065
28439f5e
PA
11066 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
11067 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
11068 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
11069 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
11070 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
11071 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
11072 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
11073 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
11074 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
11075 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
11076 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
11077 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
11078 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
11079 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
11080
11081 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
11082 * gdbarch.h, gdbarch.c: Regenerate.
11083
11084 * sol2-tdep.c: Include "inferior.h".
11085 (sol2_core_pid_to_str): New.
11086 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
11087
11088 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
11089 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
11090 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
11091 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
11092
907083d1
DE
110932009-02-22 Doug Evans <dje@google.com>
11094
11095 * exec.c (exec_file_attach): Fix comment.
11096
63807e1d
PA
110972009-02-22 Pedro Alves <pedro@codesourcery.com>
11098
11099 Silence a few -Wmissing-prototypes warnings.
11100
11101 PR build/9877:
a2f63f5e 11102 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
63807e1d 11103 it static.
a2f63f5e
AS
11104 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
11105 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
11106 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
63807e1d
PA
11107 (_initialize_amd64nbsd_tdep): ... this.
11108 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
11109 (_initialize_arm_linux_tdep): Declare.
11110 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
11111 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
11112 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
11113 * avr-tdep.c (avr_return_value): Make it static.
11114 (avr_frame_unwind_cache): Ditto.
11115 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
11116 (bsd_uthread_solib_loaded): Ditto.
11117 (bsd_uthread_solib_unloaded): Ditto.
11118 (bsd_uthread_target): Ditto.
11119 (_initialize_bsd_uthread): Declare.
11120 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
11121 (cris_frame_unwind_cache): Ditto.
11122 * frv-tdep.c (frv_return_value): Ditto.
11123 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
11124 (h8300h_use_struct_convention): Ditto.
11125 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
11126 Ditto.
11127 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
11128 declarations.
11129 * hppabsd-tdep.c: Include hppabsd-tdep.h.
11130 (hppabsd_find_global_pointer): Make it static.
11131 * hppabsd-tdep.h: New.
11132 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
11133 (hppabsd_init_abi): Remove declaration.
11134 (_initialize_hppabsd_tdep): Remove declaration.
11135 (_initialize_hppanbsd_tdep): Declare.
11136 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
11137 (hppabsd_init_abi): Delete declaration.
11138 (hppaobsd_init_abi): Make it static.
11139 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
11140 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
11141 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
11142 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
11143 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
11144 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
11145 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
11146 (_initialize_m32c_tdep): Declare.
11147 * m32r-rom.c (_initialize_m32r_rom): Declare.
11148 * m32r-tdep.c (m32r_skip_prologue): Make it static.
11149 (m32r_return_value): Ditto.
11150 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
11151 (m68hc11_return_value): Ditto.
11152 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
11153 * m88k-tdep.c (m88k_frame_cache): Make it static.
11154 * mep-tdep.c (mep_gdb_print_insn): Ditto.
11155 (mep_return_value): Ditto.
11156 (_initialize_mep_tdep): Declare.
11157 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
11158 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
11159 (mips_linux_syscall_next_pc): Ditto.
11160 (_initialize_mips_linux_tdep): Declare.
11161 * mips-tdep.c (mips_single_step_through_delay): Make it static.
11162 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
11163 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
11164 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
11165 * mt-tdep.c (_initialize_mt_tdep): Declare.
11166 * nbsd-tdep.c: Include nbsd-tdep.h.
11167 * nto-tdep.c (find_load_phdr): Make it static.
11168 (_initialize_nto_tdep): Declare.
11169 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
11170 static.
11171 (_initialize_ppc_linux_tdep): Declare.
11172 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
11173 (m32r_insert_watchpoint, m32r_remove_watchpoint)
11174 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
11175 static.
11176 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
11177 * rs6000-nat.c: Include xcoffread.h.
11178 (find_toc_address): Don't extern declare get_toc_offset. Adjust
11179 to call xcoff_get_to_offset.
11180 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
11181 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
11182 (rs6000_skip_trampoline_code): Make static.
11183 * s390-tdep.c (s390_regset_from_core_section): Ditto.
11184 * sh-tdep.c (sh_register_reggroup_p): Ditto.
11185 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
11186 (_initialize_shnbsd_tdep): Declare.
11187 * solib-frv.c (displacement_from_map): Make static.
11188 (_initialize_frv_solib): Declare.
11189 * solib-irix.c (fetch_lm_info): Make static.
11190 (_initialize_irix_solib): Declare.
11191 * solib-som.c: Include solib-som.h.
11192 (som_solib_select): Line break.
11193 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
11194 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
11195 (_initialize_sparcnbsd_tdep): ... this.
11196 * spu-tdep.c (spu_software_single_step): Make it static.
11197 (_initialize_spu_tdep): Declare.
11198 * vax-tdep.c (vax_frame_cache): Make it static.
11199 * xcoffread.c: Include xcoffread.h.
11200 (get_toc_offset): Rename to ...
11201 (xcoff_get_toc_offset): ... this.
11202 (_initialize_xcoffread): Declare.
11203 * xcoffread.h: New.
11204 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
11205 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
11206 static.
11207 (_initialize_xtensa_tdep): Declare.
11208
2c0b251b
PA
112092008-02-21 Pedro Alves <pedro@codesorcery.com>
11210
11211 Silence a few -Wmissing-prototypes warnings.
11212
11213 PR build/9877:
11214 * amd64-nat.c: Include "amd64-nat.h".
11215 * fork-child.c (_initialize_fork_child): Ditto.
11216 * gcore.c (_initialize_gcore): Ditto.
11217 * inf-ptrace.c: Include "inf-ptrace.h".
11218 (inf_ptrace_store_registers): Make it static.
11219 * linux-nat.c (linux_nat_terminal_ours): Make it static.
11220 (_initialize_linux_nat): Declare before definition.
11221 * linux-tdep.c: Include "linux-tdep.h".
11222 * linux-thread-db.c (_initialize_thread_db): Declare before
11223 definition.
11224 * proc-service.c (_initialize_proc_service): Ditto.
11225 * remote.c (remote_send_printf): Make it static.
11226 * solib.c: Include "solib.h".
11227 * symfile-mem.c (_initialize_symfile_mem): Declare before
11228 definition.
11229 * ada-lang.c (ada_la_decode, ada_match_name)
11230 (ada_suppress_symbol_printing, ada_is_array_type)
11231 (ada_value_ptr_subscript, ada_array_length)
11232 (ada_to_static_fixed_value): Make them static.
11233 (_initialize_ada_language): Declare before definition.
11234 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
11235 (ada_task_list_changed, ada_new_objfile_observer): Make them
11236 static.
11237 (_initialize_tasks): Declare before definition.
11238 * addrmap.c (_initialize_addrmap): Declare before definition.
11239 * auxv.c (default_auxv_parse): Make it static.
11240 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
11241 them static.
11242 * breakpoint.c (remove_sal): Add line break.
11243 (expand_line_sal_maybe): Make it static.
11244 * cp-name-parser.y: Include "cp-support.h".
11245 * cp-valprint.c (cp_find_class_member): Make it static.
11246 * eval.c (value_f90_subarray): Ditto.
11247 * exceptions.c (print_any_exception): Ditto.
11248 * findcmd.c (_initialize_mem_search): Declare before definition.
11249 * frame.c (frame_observer_target_changed): Make it static.
11250 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
11251 * inf-child.c: Include "inf-child.h".
11252 * inferior.h (valid_inferior_id): Rename to ...
11253 (valid_gdb_inferior_id): ... this.
11254 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
11255 Make them static.
11256 * jv-lang.c (java_language_arch_info): Make it static.
11257 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
11258 * osdata.c (info_osdata_command): Make it static.
11259 * regcache.c (regcache_observer_target_changed): Make it static.
11260 * reverse.c (_initialize_reverse): Declare before definition.
11261 * stabsread.c (cleanup_undefined_types_noname)
11262 (cleanup_undefined_types_1): Make them static.
11263 * symfile.c (place_section): Make it static.
11264 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
11265 * target-descriptions.c (_initialize_target_descriptions): Declare
11266 before definition.
11267 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
11268 (find_default_is_async_p, find_default_supports_non_stop): Make
11269 them static.
11270 (target_supports_non_stop): Add prototype.
11271 (dummy_pid_to_str): Make it static.
11272 * utils.c (_initialize_utils): Declare before definition.
11273 * ada-exp.y (_initialize_ada_exp): Declare before definition.
11274 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
11275 * target.h (struct target_ops): Add a prototype to the
11276 to_can_execute_reverse callback.
a2f63f5e
AS
11277 * macroscope.c (_initialize_macroscope): Declare before definition.
11278 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
2c0b251b
PA
11279 * python/python.c (_initialize_python): Declare before definition.
11280 * tui/tui-command.c: Include "tui/tui-command.h".
11281 * tui/tui-data.c (init_content_element, init_win_info): Make them
11282 static.
11283 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
11284 * tui/tui-interp.c (_initialize_tui_interp): Declare before
11285 definition.
11286 * tui/tui-layout.c: Include "tui/tui-layout.h".
11287 (_initialize_tui_layout): Declare before definition.
11288 * tui/tui-regs.c: Include "tui/tui-regs.h".
11289 (tui_display_reg_element_at_line): Make it static.
11290 (_initialize_tui_regs): Declare before definition.
11291 * tui/tui-stack.c (_initialize_tui_stack): Declare before
11292 definition.
11293 * tui/tui-win.c: Include "tui/tui-win.h".
11294 (_initialize_tui_win): Declare before definition.
11295 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
11296 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
11297 (tui_get_cmd_list): Add a prototype.
11298 * tui/tui-windata.c: Include tui-windata.h.
11299 * tui/tui-wingeneral.c (box_win): Make it static.
11300 * cli/cli-logging.c (show_logging_command): Make it static.
11301 (_initialize_cli_logging): Declare before definition.
11302 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
11303 definition.
11304
5aca5a82
PM
113052009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
11306
08c1f091 11307 Extend use of i386_use_watchpoints to all i386 native files
5aca5a82 11308 using hardware watchpoints.
08c1f091
DE
11309 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
11310 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
11311 * windows-nat.c (init_windows_ops): Ditto.
11312 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
11313 * config/i386/nm-cygwin64.h: Ditto.
11314 * config/i386/nm-fbsd.h: Ditto.
11315 * config/i386/nm-go32.h: Ditto.
5aca5a82 11316
1db300f1
JB
113172009-02-19 Joel Brobecker <brobecker@adacore.com>
11318
11319 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
11320
c86cf029
VP
113212009-02-18 Vladimir Prus <vladimir@codesourcery.com>
11322
11323 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
11324 (mi_interpreter_init): Register the above.
11325 * solib.c (clear_solib): Notify solib unload.
11326 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
11327 disable breakpoints on a.out targets.
11328
3ea85240
VP
113292009-02-17 Vladimir Prus <vladimir@codesourcery.com>
11330
11331 * observer.c (observer_test_first_notification_function)
11332 (observer_test_second_notification_function)
11333 (observer_test_third_notification_function): Adjust prototype.
11334
4c1d2973
PA
113352009-02-17 Pedro Alves <pedro@codesourcery.com>
11336
11337 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
11338 (ALL_TARGET_OBS): Add dicos-tdep.o.
11339 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
11340 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
11341 gdb_target_obs.
11342 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
11343 gdb_target_obs.
11344 * dicos-tdep.h, dicos-tdep.c: New.
11345 * amd64-dicos-tdep.c: New.
11346 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
11347 inferior.h. Include dicos-tdep.h.
11348 (i386_dicos_init_abi): Call dicos_init_abi.
11349 (i386_dicos_bfd_has_symbol_p): Delete.
11350 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
11351
11352 * NEWS: Mention x86-64 DICOS target support.
11353
1903f0e6
DE
113542009-02-16 Doug Evans <dje@google.com>
11355
11356 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
11357 All callers updated.
11358 (amd64_get_insn_details): Handle more 3-byte opcode insns.
11359 (amd64_breakpoint_p): Delete.
11360 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
11361 don't back up pc to the start of the int3.
11362 * i386-tdep.c: #include opcode/i386.h.
11363 (i386_skip_prefixes): New function.
11364 (i386_absolute_jmp_p): Constify argument.
11365 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
11366 (i386_breakpoint_p): Delete.
11367 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
11368 When fixing up after stepping an int3, don't back up pc to the start
11369 of the int3.
11370
959b8724
PA
113712009-02-16 Pedro Alves <pedro@codesourcery.com>
11372
11373 * corelow.c (core_close): Don't hardcode the core's pid.
11374 (core_open): Find core threads before calling
11375 post_create_inferior.
11376 (add_to_thread_list, get_core_register_section): Take into account
11377 systems where the regset section names encode the pid of the
11378 inferior.
11379
11380 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
11381 * gdbarch.h, gdbarch.c: Regenerate.
11382
11383 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
11384 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
11385 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
11386 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
11387
1d33d6ba
VP
113882009-02-14 Vladimir Prus <vladimir@codesourcery.com>
11389
11390 Include frame information for *stopped due to CLI commands.
11391
a2f63f5e
AS
11392 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
11393 * infcmd.c (finish_command_continuation): Pass '1' for
11394 'print_frame' parameter to the observer.
11395 * infrun.c (normal_stop): Don't print mi-specific information
11396 here. Pass 'stop_print_frame' to the 'print_frame' parameter
11397 of the observer.
11398 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
11399 If we need to print frame, and current uiout is not the MI one,
11400 print frame again.
1d33d6ba 11401
2ff5e605
PM
114022009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
11403
11404 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
11405 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
11406
5d7cb8df
JK
114072009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11408
11409 PR fortran/9806
11410 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
11411 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
11412
868a0084
PM
114132009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
11414
11415 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
5d7cb8df 11416 for DW_ATE_signed_char and DW_ATE_unsigned_char
868a0084
PM
11417 for pascal language.
11418
42e2132c
JK
114192009-02-11 Jim Meyering <meyering@redhat.com>
11420 Jan Kratochvil <jan.kratochvil@redhat.com>
11421
11422 Avoid NULL dereference.
11423 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
11424 New variable func_type.
11425
315aef0a
PA
114262009-02-11 Pedro Alves <pedro@codesourcery.com>
11427
11428 * gdbarch.c: Regenerate.
11429
58159490
PM
114302009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
11431
11432 * p-lang.c (is_pascal_string_type): Fix comment.
11433 Determine exact size of char elements for GPC
11434 strings.
11435 (pascal_printstr): Handle char width of 2 or 4.
11436 * p-valprint.c (pascal_val_print): Handle char
11437 of width 2 or 4.
a2f63f5e 11438
d3f36a39
DJ
114392009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
11440
11441 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
11442 inside the loop. Only call addrmap_set_empty if the compilation unit
11443 had DW_AT_high_pc and DW_AT_low_pc. Update call to
11444 scan_partial_symbols.
11445 (scan_partial_symbols): Take NEED_PC argument and pass it along with
11446 LOWPC and HIGHPC.
11447 (add_partial_namespace): Take NEED_PC argument and pass it through.
11448 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
11449 if necessary.
11450
47a3467a
PA
114512009-02-07 Pedro Alves <pedro@codesourcery.com>
11452
11453 * NEWS: Mention inspecting extra signal information, $_siginfo,
11454 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
11455
1ef18d08
PA
114562009-02-07 Pedro Alves <pedro@codesourcery.com>
11457
11458 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
11459 isn't defined.
11460
5b009018
PA
114612009-02-06 Pedro Alves <pedro@codesourcery.com>
11462
11463 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
11464 (compat_timer_t, compat_clock_t, struct compat_timeval)
11465 (compat_sigval_t, compat_siginfo_t): New types.
11466 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
11467 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
11468 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
11469 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
11470 (amd64_linux_siginfo_fixup): New.
11471 * linux-nat.c (linux_nat_siginfo_fixup): New.
11472 (siginfo_fixup): New.
11473 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
11474 siginfo layout expected by ptrace and the siginfo layout of the
11475 inferior.
11476 (linux_nat_set_siginfo_fixup): New.
11477 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
11478
4aa995e1
PA
114792009-02-06 Pedro Alves <pedro@codesourcery.com>
11480
11481 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
11482 * infrun.c (siginfo_value_read, siginfo_value_write): New.
11483 (siginfo_value_funcs): New.
11484 (siginfo_make_value): New.
11485 (_initialize_infrun): Create the $_siginfo convenience variable.
11486 * gdbtypes.h (append_composite_type_field_aligned): Declare.
11487 * gdbtypes.c (append_composite_type_field): Rename to...
11488 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
11489 argument. Handle it.
11490 (append_composite_type_field): Rewrite on top of
11491 append_composite_type_field_aligned.
11492 * value.h (internalvar_make_value): New typedef.
11493 (struct internalvar) <make_value>: New field.
11494 (create_internalvar_type_lazy): Declare.
11495 * value.c (create_internalvar): Clear make_value.
11496 (create_internalvar_type_lazy): New.
11497 (value_of_internalvar): If make_value is set use it.
11498 (preserve_values): Skip internal variables that don't have a
11499 value.
11500 * gdbarch.sh (get_siginfo_type): New.
11501 * gdbarch.h, gdbarch.c: Regenerate.
11502
11503 * linux-tdep.h, linux-tdep.c: New.
11504 * amd64-linux-tdep.c: Include "linux-tdep.h".
11505 (amd64_linux_init_abi): Register linux_get_siginfo_type and
11506 linux_get_siginfo_mapper.
11507 * i386-linux-tdep.c: Include "linux-tdep.h".
11508 (i386_linux_init_abi): Register linux_get_siginfo_type and
11509 linux_get_siginfo_mapper.
11510 * arm-linux-tdep.c: Include "linux-tdep.h".
11511 (i386_linux_init_abi): Register linux_get_siginfo_type and
11512 linux_get_siginfo_mapper.
11513
11514 * linux-nat.c (linux_xfer_siginfo): New.
11515 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
11516 * remote.c (PACKET_qXfer_siginfo_read)
11517 (PACKET_qXfer_siginfo_write): New.
11518 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
11519 "qXfer:siginfo:write" features.
11520 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
11521 (_initialize_remote): Add "set/show remote read-siginfo-object"
11522 and "set/show remote write-siginfo-object" commands.
11523
11524 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
11525 (HFILES_NO_SRCDIR): Add linux-tdep.h.
11526 (ALLDEPFILES): Add linux-tdep.c.
a2f63f5e 11527
4aa995e1
PA
11528 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
11529 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
11530 gdb_target_obs.
11531
5f5233d4
PA
115322009-02-06 Jim Blandy <jimb@codesourcery.com>
11533 Daniel Jacobowitz <dan@codesourcery.com>
11534 Vladimir Prus <vladimir@codesourcery.com>
11535 Pedro Alves <pedro@codesourcery.com>
11536
11537 * defs.h (enum lval_type): New value: lval_computed.
11538 * value.h (struct lval_funcs): New type.
11539 (allocate_computed_value, value_computed_funcs)
11540 (value_computed_closure): New declarations.
11541 * value.c (struct value): Add a structure to the location union
11542 for computed lvalues, containing 'funcs' and 'closure' members.
11543 (allocate_computed_value, value_computed_funcs)
11544 (value_computed_closure): New functions.
11545 (value_free): For computed lvalues, call the closure's
11546 'free_closure' function before freeing the value itself.
11547 (value_copy): If we're copying an lval_computed value, call the
11548 closure's 'copy_closure' function.
11549 (set_value_component_location): If the original value is a
11550 computed lvalue, then call the closure's 'copy_closure' function.
11551 (value_of_internalvar): If an internal variable's value is a
11552 computed lvalue, make retrieving its value produce an equivalent
11553 computed lvalue.
11554 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
11555 their read function.
11556 (value_assign): Assign to computed lvalues by calling their write
11557 function.
11558
117de6a9
PA
115592009-02-06 Pedro Alves <pedro@codesourcery.com>
11560
11561 * linux-nat.c (linux_nat_wait): Adjust.
11562 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
11563 * linux-nat.h (thread_db_init): Delete declaration.
11564 * linux-thread-db.c (target_beneath): Delete.
11565 (thread_db_init): Delete.
11566 (thread_db_detach): Use find_target_beneath.
11567 (thread_db_wait): Adjust interface. Use find_target_beneath.
11568 (thread_db_mourn_inferior): Use find_target_beneath.
11569 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
11570 (thread_db_async_mask): Delete.
11571 (thread_db_pid_to_str): Adjust interface. Use
11572 find_target_beneath.
11573 (thread_db_get_thread_local_address): Adjust interface. Use
11574 find_target_beneath.
11575 (init_thread_db_ops): Delete references to delete functions.
11576 * target.c (update_current_target): Don't inherit or default
11577 to_wait. Don't inherit to_pid_to_str and
11578 to_get_thread_local_address.
11579 (target_translate_tls_address): Look for a pushed target that
11580 implements to_get_thread_local_address, and use it instead of
11581 checking for target_get_thread_local_address_p.
11582 (target_wait, target_pid_to_str): Reimplement as functions.
11583 (dummy_pid_to_str): New.
11584 (init_dummy_target): Register it.
11585 (debug_to_wait): Delete.
11586 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
11587 to_get_thread_local_address accept a pointer to struct target_ops.
11588 (target_wait): Delete macro, and declare as function.
11589 (target_pid_to_str): Likewise.
11590 (target_get_thread_local_address)
11591 (target_get_thread_local_address_p): Delete.
11592 (noprocess): Add NORETURN and ATTR_NORETURN tags.
11593 * inf-ptrace.c (inf_ptrace_wait): Adjust.
11594 (inf_ptrace_pid_to_str): New.
11595 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
11596 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
11597 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
11598 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
11599 Adjust.
11600 * corelow.c (core_pid_to_str): Adjust.
11601 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
11602 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
11603 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
11604 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
11605 * hpux-thread.c (hpux_thread_wait): Adjust.
11606 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
11607 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
11608 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
11609 * procfs.c (procfs_pid_to_str): Adjust.
11610 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
11611 * remote-mips.c (mips_wait): Adjust.
11612 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
11613 * remote.c (remote_wait, remote_pid_to_str)
11614 (remote_get_thread_local_address): Adjust.
11615 * rs6000-nat.c (rs6000_wait): Adjust.
11616 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
11617 (sol_thread_wait, solaris_pid_to_str): Adjust.
11618 * spu-linux-nat.c (spu_child_wait): Adjust.
11619 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
11620
d8906c6f
TJB
116212009-02-06 Tom Tromey <tromey@redhat.com>
11622
11623 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
11624 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
11625 (python-cmd.o): New target.
11626 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
11627 completer prototype.
11628 (add_cmd): Initialize destroyer member of cmd_list_element. Use
11629 make_symbol_completion_list_fn as completer.
11630 (delete_cmd): Call destroyer if one is set.
11631 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
11632 completer member. Add destroyer member.
11633 (set_cmd_completer): Add self parameter to
11634 completer prototype.
11635 * command.h (set_cmd_completer): Add cmd parameter to
11636 completer prototype.
11637 * completer.c (noop_completer, filename_completer,
11638 location_completer, expression_completer, command_completer): Adapt
11639 to new completer prototype.
11640 (complete_line_internal): Pass new parameter to completer function.
11641 * completer.h (noop_completer, filename_completer,
11642 location_completer, expression_completer, command_completer): Adapt
11643 prototypes to new completer prototype.
11644 * interps.c (interpreter_completer): Adapt to new completer
11645 prototype.
11646 * python/python-cmd.c: New file.
11647 * python/python-internal.h (gdbpy_initialize_commands): Add
11648 prototype.
11649 (gdbpy_doc_cst): Add forward declaration.
11650 * python/python.c (gdbpy_doc_cst): Declare.
11651 (_initialize_python): Call gdbpy_initialize_commands. Initialize
11652 gdbpy_doc_cst.
11653 * symtab.c (make_symbol_completion_list_fn): New function.
11654 * symtab.h (make_symbol_completion_list_fn): Add prototype.
11655
739ef7fb
PA
116562009-02-06 Pedro Alves <pedro@codesourcery.com>
11657
11658 * target.c (target_get_osdata): Check for equal or higher than
11659 process_stratum, not dummy_stratum.
11660
6d097e65
PA
116612009-02-06 Pedro Alves <pedro@codesourcery.com>
11662
11663 * remote.c (extended_remote_can_run): Delete.
11664 (init_remote_ops): Don't register it.
11665 * target.c (target_get_osdata): Don't check for target_can_run.
11666 Instead any target that has already been pushed, otherwise
739ef7fb 11667 fallback to the default run target.
6d097e65 11668
947b8855
PA
116692009-02-06 Pedro Alves <pedro@codesourcery.com>
11670
11671 * target.c (target_create_inferior, target_detach)
11672 (target_mourn_inferior, target_attach, target_close): Do target
11673 debug output.
11674 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
11675 (debug_to_mourn_inferior, debug_to_close): Delete.
11676 (setup_target_debug): Adjust.
11677
611041af
PA
116782009-02-05 Pedro Alves <pedro@codesourcery.com>
11679
11680 * target.h (target_stopped_data_address_p): Delete declaration,
11681 and don't define as macro.
11682 * target.c (target_stopped_data_address_p): Delete.
11683
b6cb8e7d
TJB
116842009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
11685 Tom Tromey <tromey@redhat.com>
11686
11687 * python/python-utils.c (target_string_to_unicode): New function.
11688 * python/python-internal.h (target_string_to_unicode): New prototype.
11689 * python/python-value.c (valpy_string): New function.
11690 (value_object_methods): Add `string' entry.
11691
54ba13f7
PA
116922009-02-05 Pedro Alves <pedro@codesourcery.com>
11693
11694 * target.h (target_tid_to_str): Delete.
11695 * thread.c (print_thread_info, thread_apply_all_command)
11696 (thread_apply_command, thread_command, do_captured_thread_select):
11697 Use target_pid_to_str instead of target_tid_to_str.
11698 * linux-fork.c (delete_fork_command): Likewise.
11699
9d49bdc2
PA
117002009-02-05 Pedro Alves <pedro@codesourcery.com>
11701
11702 * frame.c (has_stack_frames): Make public.
11703 (get_prev_frame): Don't allow a NULL this_frame anymore.
11704 * frame.h (has_stack_frames): Declare.
11705 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
11706 to get_prev_frame, instead start at get_current_frame.
11707 (varobj_create): Check has_stack_frames before getting any frame;
11708 eliminate one usage of deprecated_safe_get_selected_frame.
11709
12453b93
TJB
117102009-02-05 Tom Tromey <tromey@redhat.com>
11711 Thiago Jung Bauermann <bauerman@br.ibm.com>
11712
11713 * python/python.c (GdbMethods): Move to bottom of file.
11714 (get_parameter, execute_gdb_command, gdbpy_write,
11715 gdbpy_flush): Remove forward declarations.
11716 (eval_python_from_control_command): Fix error checking of function
11717 PyRun_SimpleString. Fix error string.
11718 (python_command): Likewise.
11719 (execute_gdb_command): Added from_tty argument.
11720
ae6a3a4c
TJB
117212009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
11722
11723 * language.h (language_dfn): Add la_get_string member.
11724 (LA_GET_STRING): New macro.
11725 (default_get_string): New prototype.
11726 * language.c (default_get_string): New function.
11727 (unknown_language_defn, auto_language_defn, local_language_defn): Use
11728 default_get_string for la_get_string.
11729 * c-lang.c (c_get_string): New function.
11730 (c_language_defn, cplus_language_defn, asm_language_defn): Use
11731 c_get_string for la_get_string.
11732 (minimal_language_defn): Likewise
11733 * ada-lang.c (ada_language_defn): Likewise.
11734 * f-lang.c (f_language_defn): Use default_get_string for
11735 la_get_string.
11736 * jv-lang.c (java_language_defn): Likewise.
11737 * m2-lang.c (m2_language_defn): Likewise.
11738 * objc-lang.c (objc_language_defn): Likewise.
11739 * p-lang.c (p_language_defn): Likewise.
11740 * scm-lang.c (scm_language_defn): Likewise.
11741 * typeprint.c (type_to_string): New function.
11742 * value.h (type_to_string): New prototype.
11743 * valprint.c (val_print_string): Factor out code for reading string
11744 from the inferior into its own function. Put 2 spaces after period
11745 in comments.
11746 (read_string): New function.
11747 * valprint.h (read_string): New prototype.
11748
fa8a61dc
TT
117492009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
11750 Tom Tromey <tromey@redhat.com>
11751
11752 PR breakpoints/8079:
11753 * breakpoint.c (print_one_breakpoint): Use exp_string field
11754 to display expression of watchpoints.
11755 (mention): Likewise.
11756 (watch_command_1): Remove trailing whitespace from expression.
11757 * printcmd.c (struct display) <exp_string>: New field.
11758 (display_command): Set exp_string.
11759 (free_display): Free exp_string.
11760 (clear_displays): Use free_display.
11761 (do_one_display): Print exp_string.
11762 (display_info): Likewise.
11763
08c637de
TJB
117642009-02-04 Tom Tromey <tromey@redhat.com>
11765 Thiago Jung Bauermann <bauerman@br.ibm.com>
11766 Phil Muldoon <pmuldoon@redhat.com>
11767
11768 * python/python-internal.h (gdbpy_get_value_from_history): Rename
11769 prototype to gdbpy_history.
11770 (gdbpy_is_string): Declare.
11771 (python_string_to_host_string): Declare.
11772 * python/python-utils.c (gdbpy_is_string): New function.
11773 (unicode_to_encoded_string): New function.
11774 (unicode_to_target_string): Use it.
11775 (python_string_to_host_string): New function.
11776 * python/python-value.c (valpy_address): New function.
11777 (convert_value_from_python): Use gdbpy_is_string. Change to throw
11778 Python exception instead of a GDB exception on error. Properly check
11779 Python booleans.
11780 (valpy_getitem): Convert field name to host string. Handle array
11781 accesses. Adapt to new behaviour of convert_value_from_python.
11782 (valpy_new): Adapt to new behaviour of convert_value_from_python.
11783 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
11784 VALPY_BITXOR, VALPY_BITOR>: New constants.
11785 (valpy_binop): Update. Adapt to new behaviour of
11786 convert_value_from_python.
11787 (valpy_invert): New function.
11788 (valpy_lsh): Likewise.
11789 (valpy_rsh): Likewise.
11790 (valpy_and): Likewise.
11791 (valpy_or): Likewise.
11792 (valpy_xor): Likewise.
11793 (valpy_richcompare): Call convert_value_from_python instead of doing
11794 conversions itself.
11795 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
11796 (gdbpy_get_value_from_history): Rename
11797 function to gdbpy_history.
11798 (gdbpy_initialize_values): Don't set tp_new.
11799 (value_object_type): Add valpy_new.
11800 (value_object_methods): Add `address' entry.
11801 (value_object_as_number): Update for new methods.
11802 * python/python.c (GdbMethods): Rename entry from
11803 `get_value_from_history' to `history'.
11804
538e13a6 118052009-02-04 Jerome Guitton <guitton@adacore.com>
b5304971
JG
11806
11807 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
11808 of type to guard against a crash.
11809
33d502b4
JG
118102009-02-04 Jerome Guitton <guitton@adacore.com>
11811
11812 * value.c (value_from_contents_and_address): Always return
11813 a lval_memory value, even if address is null.
11814
9f08ae4f
TG
118152009-02-04 Tristan Gingold <gingold@adacore.com>
11816
11817 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
11818 (amd64_darwin_sigcontext_addr): Ditto.
11819 (darwin_dwarf_signal_frame_p): Ditto.
11820 (i386_darwin_init_abi): Handle signal frames, use the const for
11821 sc_num_regs.
11822 (x86_darwin_init_abi_64): Ditto.
11823
4bd207ef
TG
118242009-02-04 Tristan Gingold <gingold@adacore.com>
11825
11826 * i386-tdep.c (i386_sigtramp_p): Make it public.
11827 * i386-tdep.h (i386_sigtramp_p): Declare.
11828
4aa99a88
TG
118292009-02-04 Tristan Gingold <gingold@adacore.com>
11830
11831 * machoread.c (macho_symfile_read): Read minsymtab also from
11832 shared libraries.
11833 (macho_symfile_read): Try to read dwarf2 frame info from main
11834 object file, but not from OSO files.
11835 (macho_symfile_offsets): Update section names for latest BFD
11836 changes.
11837 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
11838 (x86_darwin_init_abi_64): Ditto.
11839 * solib-darwin.c: New file.
11840 * solib-darwin.h: New file.
11841 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
11842
7a848be1
TG
118432009-02-04 Tristan Gingold <gingold@adacore.com>
11844
11845 * solist.h (struct target_so_ops): Comment fallback behavior for
11846 operation same.
11847
b32d97f3
TT
118482009-02-03 Tom Tromey <tromey@redhat.com>
11849
11850 * completer.c (add_struct_fields): Check type_name against NULL
11851 before use.
11852
692263b8
JB
118532009-02-03 Joel Brobecker <brobecker@adacore.com>
11854
11855 * MAINTAINERS: Update Elena's email address.
11856
bfa149ac
JB
118572009-02-02 Joel Brobecker <brobecker@adacore.com>
11858
11859 * breakpoint (update_watchpoint): Minor comment adjustment.
11860
1c71341a
TT
118612009-02-02 Tom Tromey <tromey@redhat.com>
11862
52e44b43 11863 PR gdb/9594:
1c71341a
TT
11864 * completer.c (count_struct_fields): Count method names.
11865 (add_struct_fields): Add matching method names.
11866
85541719
DE
118672009-02-02 Doug Evans <dje@google.com>
11868
11869 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
11870 doing any further tcl/tk configury. Don't configure gdbtk if
11871 tcl or tk check fails.
11872 * aclocal.m4: Regenerate.
11873 * configure: Regenerate.
11874
a4295225
TT
118752009-02-02 Tom Tromey <tromey@redhat.com>
11876
11877 PR exp/9059:
11878 * valops.c (find_overload_match): Follow typedefs before taking
11879 address of object argument.
11880
f00150c9
DE
118812009-02-01 Doug Evans <dje@google.com>
11882
11883 * target.h (target_waitstatus_to_string): Declare.
11884 * target.c (target_waitstatus_to_string): New function. Copied from
11885 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
11886 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
11887 TARGET_WAITKIND_NO_HISTORY.
11888 (debug_to_wait): Call it.
11889 * infrun.c (wait_for_inferior): If debug_infrun, print result of
11890 target_wait.
11891 (fetch_inferior_event): Ditto.
11892
5abdf4bd
TT
118932009-01-30 Tom Tromey <tromey@redhat.com>
11894
11895 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
11896
592375cd
VP
118972009-01-30 Vladimir Prus <vladimir@codesourcery.com>
11898
11899 PR 8145.
11900 * thread.c (do_captured_list_thread_ids): Report the current
11901 thread id.
11902
41447f92
VP
119032009-01-30 Vladimir Prus <vladimir@codesourcery.com>
11904
11905 * breakpoint.c (create_breakpoint, create_breakpoints)
11906 (break_command_really, set_breakpoint): New parameter enabled.
11907 (create_breakpoint, break_command_really): Make breakpoint
11908 disabled if so requested.
11909 * breakpoint.h (set_breakpoint): New parameter enabled.
11910 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
11911
35669430
DE
119122009-01-28 Doug Evans <dje@google.com>
11913
11914 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
11915 (amd64_displaced_step_fixup): Declare.
11916 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
11917 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
11918 and make static global.
11919 (amd64_arch_regmap_len): New static global.
11920 (amd64_arch_reg_to_regnum): New function.
11921 (struct amd64_insn): New struct.
11922 (struct displaced_step_closure): New struct.
11923 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
11924 (rex_prefix_p,skip_prefixes)
11925 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
11926 (amd64_insn_length,amd64_get_unused_input_int_reg)
11927 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
11928 (amd64_displaced_step_copy_insn)
11929 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
11930 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
11931 (amd64_displaced_step_fixup): New functions.
11932 * amd64-linux-tdep.c: #include arch-utils.h.
11933 (amd64_linux_init_abi): Install displaced stepping support.
11934
4eb7c016
JG
119352009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
11936 Jerome Guitton <guitton@adacore.com>
11937
11938 * configure, config.in: Regenerated.
11939 * configure.ac: Add --with-system-gdbinit.
11940 * main.c (get_init_files): New.
11941 (captured_main): Use get_init_files. Load system gdbinit before
11942 $HOME/.gdbinit.
11943 (print_gdb_help): Print location of init files.
11944
7df3ce47
PA
119452009-01-28 Pedro Alves <pedro@codesourcery.com>
11946
11947 * corefile.c (generic_search): Delete disabled code.
11948 * gdbcore.h (generic_search): Delete declaration.
11949
77435e4c
PA
119502009-01-26 Pedro Alves <pedro@codesourcery.com>
11951
11952 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
11953 parent to the child.
11954 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
11955 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
11956 remove_breakpoints to remove breakpoints from the parent.
11957
1e275f79
PA
119582009-01-26 Pedro Alves <pedro@codesourcery.com>
11959
7488432f 11960 PR backtrace/9458, PR backtrace/8864:
1e275f79
PA
11961 * frame.c (create_new_frame): Update the frame's cached PC before
11962 finding its unwinder. Use frame_id_build to build the new frame's
11963 id.
11964 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
11965 array values from the ``args'' array values.
11966
1deafd4e
PA
119672009-01-26 Pedro Alves <pedro@codesourcery.com>
11968
11969 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
11970 (create_array_type, create_set_type, init_flags_type)
11971 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
11972 with a call to XZALLOC or XCALLOC, and pairs of calls to
11973 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
11974
3c16cced
PA
119752009-01-26 Pedro Alves <pedro@codesourcery.com>
11976
11977 Add "maint set|show internal-error|internal-warning quit|corefile
11978 ask|yes|no" commands.
11979
11980 PR gdb/7580:
11981 * utils.c (internal_problem_ask, internal_problem_yes)
11982 (internal_problem_no, internal_problem_modes): New.
11983 (struct internal_problem): Remove FIXME. Make should_quit and
11984 should_dump_core types to char *.
11985 (internal_vproblem, internal_error_problem)
11986 (internal_warning_problem): Adjust.
11987 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
11988 functions.
11989 (add_internal_problem_command): New.
11990 (_initialize_utils): New.
11991
616d7dd2
PA
119922009-01-25 Pedro Alves <pedro@codesourcery.com>
11993
11994 * infcmd.c (program_info): Use paddress instead of casting stop_pc
11995 to unsigned long.
11996
0516318b
PA
119972009-01-24 Pedro Alves <pedro@codesourcery.com>
11998
11999 * infrun.c (normal_stop): Don't call
12000 deprecated_update_frame_pc_hack.
12001 * frame.c (deprecated_update_frame_pc_hack)
12002 (deprecated_update_frame_base_hack): Delete, and ...
12003 (create_new_frame): ... inline here.
12004 * frame.h (deprecated_update_frame_pc_hack)
12005 (deprecated_update_frame_base_hack): Delete declarations.
12006
1e8fb976
PA
120072009-01-23 Pedro Alves <pedro@codesourcery.com>
12008
12009 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
12010 * cli/cli-setshow.c (do_setshow_command): Handle it.
12011 * command.h (enum var_types): Add var_zuinteger.
12012 (add_setshow_zuinteger_cmd): Declare.
12013
12014 * valprint.c (_initialize_valprint): Change the set input-radix
12015 and set output-radix commands to zuinteger type.
12016
dd7e2d2b
PA
120172009-01-23 Pedro Alves <pedro@codesourcery.com>
12018
12019 PR gdb/9664:
12020 * infrun.c (normal_stop): Tag threads as stopped, and run the
12021 hook-stop before printing the stack frame.
12022
392452f6
PA
120232009-01-22 Pedro Alves <pedro@codesourcery.com>
12024
12025 PR c++/9631:
12026 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
12027 vbasetype.
12028
f6a96b83
KH
120292009-01-20 Kazu Hirata <kazu@codesourcery.com>
12030
12031 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
12032 unsigned long.
12033
5d277928 120342009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
a12cc160
DJ
12035
12036 PR gdb/9346
12037 * infcmd.c (signal_command): Do not specify a resume PC.
12038
b89667eb
DE
120392009-01-19 Doug Evans <dje@google.com>
12040
12041 * dummy-frame.c (dummy_frame): Replace regcache member with
12042 caller_state.
12043 (dummy_frame_push): Replace caller_regcache arg with caller_state.
12044 All callers updated.
12045 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
12046 (dummy_frame_pop): Rewrite. Verify requested frame is in the
12047 dummy frame stack. Restore program state.
12048 (cleanup_dummy_frames): Rewrite.
12049 (dummy_frame_sniffer): Update. Make static.
12050 * dummy-frame.h (regcache,frame_info): Delete forward decls.
12051 (inferior_thread_state): New forward decl.
12052 (dummy_frame_push): Update prototype.
12053 * frame.c (frame_pop): dummy_frame_pop now does all the work for
12054 DUMMY_FRAMEs.
12055 * infcall.c (breakpoint_auto_delete_contents): Delete.
12056 (get_function_name,run_inferior_call): New fns.
12057 (call_function_by_hand): Simplify by moving some code to
12058 get_function_name, run_inferior_call. Inferior function call wrapped
12059 in TRY_CATCH so there's less need for cleanups and all exits from
12060 proceed are handled similarily. Detect program exit.
12061 Detect program stopping in a different thread.
12062 Make error messages more consistent.
12063 * inferior.h (inferior_thread_state): Declare (opaque type).
12064 (save_inferior_thread_state,restore_inferior_thread_state,
12065 make_cleanup_restore_inferior_thread_state,
12066 discard_inferior_thread_state, get_inferior_thread_state_regcache):
12067 Declare.
12068 (save_inferior_status): Update prototype.
12069 * infrun.c: (normal_stop): When stopped for the completion of an
12070 inferior function call, verify the expected stack frame kind.
12071 (inferior_thread_state): New struct.
12072 (save_inferior_thread_state,restore_inferior_thread_state,
12073 do_restore_inferior_thread_state_cleanup,
12074 make_cleanup_restore_inferior_thread_state,
12075 discard_inferior_thread_state,
12076 get_inferior_thread_state_regcache): New functions.
12077 (inferior_status): Move stop_signal, stop_pc, registers to
12078 inferior_thread_state. Remove restore_stack_info.
12079 (save_inferior_status): Remove arg restore_stack_info.
12080 All callers updated. Remove saving of state now saved by
12081 save_inferior_thread_state.
12082 (restore_inferior_status): Remove restoration of state now done by
12083 restore_inferior_thread_state.
12084 (discard_inferior_status): Remove freeing of registers, now done by
12085 discard_inferior_thread_state.
12086
aefc7064
PA
120872009-01-18 Pedro Alves <pedro@codesourcery.com>
12088
12089 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
12090 at a time, times NUM_TO_SCROLL.
12091 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
12092 fetch the selected frame if there is no stack.
12093
29f49a6a
PA
120942009-01-18 Pedro Alves <pedro@codesourcery.com>
12095
12096 PR gdb/9747:
12097 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
12098 Declare.
12099 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
12100 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
12101 is thrown while handling an event, finish the thread state.
12102 (normal_stop): Use finish_thread_state cleanup.
12103 * infcmd.c (run_command_1): If an error is thrown while starting
12104 the inferior, finish the thread state.
12105
e7243d73
PA
121062009-01-18 Pedro Alves <pedro@codesourcery.com>
12107
12108 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
12109 skip breakpoints without a location (pending breakpoints).
12110
e74994b5
PA
121112009-01-18 Pedro Alves <pedro@codesourcery.com>
12112
12113 PR build/9186:
12114 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
12115
8405c36e
NR
121162009-01-18 Nick Roberts <nickrob@snap.net.nz>
12117
12118 * thread.c (thread_command): Move call to annotate_thread_changed
12119 to...
12120 (do_captured_thread_select): ... here, to avoid printing an
12121 annotation if the thread change generates an exception.
12122
b8bfd3ed
JB
121232009-01-16 Joel Brobecker <brobecker@adacore.com>
12124
12125 * NEWS: Document x86_64/MinGW as a new native configuration.
12126
2dde91e9
JB
121272009-01-16 Joel Brobecker <brobecker@adacore.com>
12128
12129 * NEWS: Move the documentation of "info os processes" to
12130 the appropriate section (documenting the new commands).
12131
54363045
DE
121322009-01-15 Doug Evans <dje@google.com>
12133
12134 * target.h (target_signal_to_string): Make return type const char *.
12135 (target_signal_to_name): Ditto.
12136 (target_signal_from_name): Make arg const char *.
54363045 12137 * infrun.c (sig_print_info): Update.
54363045
DE
12138 * signals/signals.c (signals): Make array and struct members const.
12139 (target_signal_to_string): Make return type const char *.
12140 (target_signal_to_name): Ditto.
12141 (target_signal_from_name): Make arg const char *.
12142
572d275c
UW
121432009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
12144 Tristan Gingold <gingold@adacore.com>
12145
12146 * solist.h (struct target_so_ops): New member bfd_open.
12147 (solib_find): Add prototype.
12148 (solib_bfd_fopen): Add prototype.
12149 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
12150 from solib_bfd_open.
12151 (solib_bfd_open): Use ops->bfd_open override if present. Call
12152 solib_find and solib_bfd_open otherwise.
12153
12154 * objfiles.h (OBJF_KEEPBFD): New define.
12155 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
12156 objfile flag is set.
12157 * solib.c (symbol_add_stub): Do not allocate second BFD for
12158 shared library; use OBJF_KEEPBFD flag on solib objfile.
12159
0701b271
UW
121602009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
12161
12162 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
12163
61212c0f
UW
121642009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
12165
12166 * value.h (address_of_variable): Add prototype.
12167 (locate_var_value): Remove prototype.
12168
12169 * findvar.c (read_var_value): Do not attempt to default frame
12170 to selected frame.
12171 (locate_var_value): Remove function.
12172 * valops.c (value_of_variable): Retrieve selected frame for
12173 symbols that require a frame when called with NULL block.
12174 * valops.c (address_of_variable): New function.
12175
12176 * eval.c (evaluate_subexp_for_address): Call address_of_variable
12177 instead of calling locate_var_value.
12178 (evaluate_subexp_with_coercion): Likewise.
12179
adb483fe
DJ
121802009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
12181
12182 * NEWS: Document "define" for prefixed commands.
12183 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
12184 show_user_1 for prefix commands.
12185 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
12186 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
12187 commands. Return the containing command list.
12188 (define_command, document_command): Update to handle prefix commands.
12189 (show_user_1): Add prefix and name arguments. Handle prefix
12190 commands.
12191 * cli/cli-script.h (show_user_1): Update prototype.
12192
a32d7317
KT
121932009-01-14 Kai Tietz <kai.tietz@onevision.com>
12194
92a610f3 12195 * ser-mingw.c (console_select_thread): Add return to make
a32d7317
KT
12196 compiler happy.
12197 (pipe_select_thread): Likewise.
12198 (file_select_thread): Likewise.
12199
041d0fd7
PA
122002009-01-14 Pedro Alves <pedro@codesourcery.com>
12201
12202 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
12203 previous change.
12204
dc1981d7
PA
122052009-01-14 Pedro Alves <pedro@codesourcery.com>
12206
12207 * remote.c (extended_remote_mourn_1): Invalidate our notion of
12208 current general thread.
12209
244bf9ae
PA
122102009-01-14 Pedro Alves <pedro@codesourcery.com>
12211
12212 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
12213 without a live selected thread.
12214
e4d013fc
JB
122152009-01-14 Joel Brobecker <brobecker@adacore.com>
12216
12217 Update the copyright notice of some of the files I missed
12218 in the previous copyright update.
12219
a588db63
JB
122202009-01-14 Joel Brobecker <brobecker@adacore.com>
12221
12222 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
12223 base address instead of casting it to DWORD.
12224
77a732d9
UW
122252009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
12226
12227 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
12228 for NULL frame pointers.
12229
773698b5
JB
122302009-01-13 Mark Kettenis <kettenis@gnu.org>
12231
12232 * utils.c (host_address_to_string): Reimplement in a way that
12233 avoids the cast of the address to long.
12234
9918cab9
JB
122352009-01-13 Joel Brobecker <brobecker@adacore.com>
12236
12237 * mdebugread.c (parse_symbol): Save the symbol private data
12238 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
12239 (psymtab_to_symtab_1): Likewise.
12240 (parse_procedure): Declare variable "e" only in the scope
12241 where it is used. Extract the symbol private data using
12242 SYMBOL_VALUE_BYTES.
12243
74bcbdf3
PA
122442009-01-13 Jim Blandy <jimb@codesourcery.com>
12245
12246 Abstract out common code for copying value locations.
12247
12248 * value.h (set_value_component_location): New declaration.
12249 * value.c (set_value_component_location): New function.
12250 (value_primitive_field): Use it.
12251 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
12252 * valops.c (search_struct_field, value_slice): Same.
12253 * ada-lang.c (coerce_unspec_val_to_type)
12254 (ada_value_primitive_packed_val): Same.
12255
d7dc3873
JB
122562009-01-13 Joel Brobecker <brobecker@adacore.com>
12257
12258 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
12259
dc05df57
CF
122602009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
12261
12262 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
12263 throughout.
12264 * i386-cygwin-tdep.c: Ditto.
12265 * i386-windows-nat.c: Ditto.
12266 * windows-nat.h: Ditto.
12267 * windows-tdep.c: Ditto.
12268 * windows-tdep.h: Ditto.
12269 * windows-nat.c: Ditto.
12270 (cygwin_load_start): Redefine as CORE_ADDR.
12271 (cygwin_load_end): Ditto.
b8511eeb 12272 (windows_make_so): Coerce result of address arithmetic to uintptr_t
dc05df57
CF
12273 before coercing to CORE_ADDR to avoid a compiler warning.
12274 (handle_exception): Define addr as CORE_ADDR and coerce
12275 ExceptionAddress to uintptr_t before assigining to avoid a compiler
12276 warning.
12277 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
12278 files.
12279
31b060a2
CF
122802009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12281
12282 Fix linking with --enable-targets=all:
12283 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
12284 (HFILES_NO_SRCDIR): Add windows-tdep.h.
12285 (ALLDEPFILES): Add windows-tdep.c.
12286
f3b6bd60 122872009-01-11 Chris Faylor <me.gdb@cgf.cx>
31b060a2
CF
12288
12289 * win32-nat.h: Delete.
12290 * windows-nat.h: Rename from win32-nat.h.
12291 * win32-nat.c: Delete.
12292 * windows-nat.c: Rename from win32-nat.c.
12293 * win32-termcap.c: Delete.
12294 * windows-termcap.c: Rename from win32-termcap.c.
12295 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
12296 * configure.ac: Handle rename from win32-termcap.c ->
12297 windows-termcap.c.
12298 * configure: Regenerate.
12299 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
12300 -> windows-termcap.c.
12301 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
12302 windows-tdep.h.
12303 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
12304 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
12305 windows-tdep.h.
12306 (win32_make_so): Handle cygwin compiler warning due to change of
12307 load_addr from DWORD to LPVOID.
12308 (handle_load_dll): Use %p in format string to properly print address
12309 and avoid a compiler warning.
12310 (DEBUG_EXCEPTION_SIMPLE): Ditto.
12311 (handle_exception): Ditto.
12312 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
12313 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
12314 windows-nat.o.
12315 * config/i386/mingw.mh: Ditto.
12316 * config/i386/mingw64.mh: Ditto.
12317
0311118f
JK
123182009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12319
12320 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
12321 arrayprint_recurse_level to a parameter. Update all the callers. New
12322 comment at autovariables.
12323
5f61c20e
JK
123242009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12325
12326 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
12327 coding style.
12328
123292009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
12330
12331 * target.c (target_xfer_partial): Use host_address_to_string to
12332 print the address of readbuf and writebuf. Cast the address of
12333 elements inside the myaddr buffer into intptr_t.
12334 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
12335 Cast the address of elements inside the myaddr buffer into
12336 intptr_t.
12337
5f61c20e 123382009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
12339
12340 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
12341 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
12342 * configure.host, configure.tgt: Add handling for x86_64/windows.
12343 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
12344 and amd64-windows-tdep.c.
12345
5f61c20e 123462009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
12347
12348 * win32-tdep.h, win32-tdep.c: New files.
12349 * i386-cygwin-tdep.h: Delete.
12350 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
12351 i386-cygwin-tdep.h.
12352 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
12353 * win32-nat.c: Likewise.
12354 * configure.tgt: Add win32-tdep.o to the list of target object
12355 files for i386-cygwin and i386-mingw targets.
12356
5f61c20e 123572009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
12358
12359 * win32-nat.h: New file.
12360 * win32-nat.c (mappings): Initialize to NULL.
12361 (win32_set_context_register_offsets): New function.
12362 * i386-windows-nat.c: New file.
12363 (mappings): Moved here from win32-nat.c.
12364 (_initialize_i386_windows_nat): New function.
12365 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
12366 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
12367
25fc6591
AS
123682009-01-09 Andreas Schwab <schwab@suse.de>
12369
12370 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
12371
87f70781
PA
123722009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
12373
12374 * gdbtypes.c (append_composite_type_field): Correct the location of
12375 appended fields.
12376
58d4abe1
PA
123772009-01-09 Pedro Alves <pedro@codesourcery.com>
12378
12379 * defs.h (deprecated_error_hook): Delete declaration.
12380 * interps.c (clear_interpreter_hooks): Adjust.
12381 * remote-sim.c (gdb_os_error): Don't try to call
12382 deprecated_error_hook. No need to call exit anymore.
12383 * top.c (deprecated_error_hook): Delete.
12384
e3cb3832
JB
123852009-01-09 Joel Brobecker <brobecker@adacore.com>
12386
12387 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
12388 to print the address of the gdbarch pointer.
12389
30737ed9
JB
123902009-01-09 Joel Brobecker <brobecker@adacore.com>
12391
12392 * gdbarch.sh: Fix all the compilation errors on amd64-windows
12393 due to casting a pointer to a long when printing a function
12394 address. Instead, use host_address_to_string to convert our
12395 address to a string.
12396 * gdbarch.c: Regenerate.
12397
ec4dfccf
JB
123982009-01-09 Joel Brobecker <brobecker@adacore.com>
12399
12400 * event-top.c (async_disconnect, async_stop_sig): use "raise"
12401 instead of "kill" to raise a signal.
12402
d3653bf6
JB
124032009-01-09 Joel Brobecker <brobecker@adacore.com>
12404
12405 * win32-nat.c (get_module_name): Change the type of parameter
12406 "base_address" to LPVOID. Remove unnecessary cast.
12407 (struct lm_info): Change type of load_addr to LPVOID.
12408 (win32_make_so): Change the type of parameter "load_addr"
12409 to LPVOID. Remove some unnecessary casts.
12410 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
12411 (win32_xfer_shared_libraries): Add missing cast.
12412
308a8808
JB
124132009-01-09 Joel Brobecker <brobecker@adacore.com>
12414
12415 * win32-nat.c (has_detach_ability, set_process_privilege):
12416 Cast the result of GetProcAddress to (void *) to avoid
12417 a compilation warning.
12418
5851ab76
JB
124192009-01-09 Joel Brobecker <brobecker@adacore.com>
12420
12421 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
12422 already defined.
12423
5732a500
JB
124242009-01-09 Joel Brobecker <brobecker@adacore.com>
12425
12426 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
12427 definition of local variable "done".
12428 (info_w32_command, handle_exception): Remove unnecessary cast.
12429
def4de3a
JB
124302009-01-09 Joel Brobecker <brobecker@adacore.com>
12431
12432 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
12433 DebugSetProcessKillOnExit. Update all uses in this file.
12434 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
12435 Update all uses in this file.
12436
124372009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
12438
12439 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
12440 and use it when pushing the target.
12441 (win32_attach, win32_create_inferior): Update call to
12442 do_initial_win32_stuff.
12443 (win32_detach, win32_mourn_inferior): Use our ops parameter
12444 instead of the global win32_ops to unpush the target.
12445
1be7fe8d
JB
124462009-01-09 Joel Brobecker <brobecker@adacore.com>
12447
12448 * ser-mingw.c (ser_windows_open): Use proper type when casting
12449 in call to _open_osfhandle.
12450
1dac1b47
KT
124512009-01-09 Kai Tietz <kai.tietz@onevision.com>
12452
12453 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
12454
ecf180db
JB
124552009-01-09 Joel Brobecker <brobecker@adacore.com>
12456
12457 * CONTRIBUTE: Minor reformatting.
12458
8234eceb
KT
124592009-01-08 Kai Tietz <kai.tietz@onevision.com>
12460
12461 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
12462 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
12463 export directory.
8234eceb 12464
72ee8797
NF
124652009-01-08 Nathan Froyd <froydnj@codesourcery.com>
12466
12467 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
12468 Call exit to make it obvious to GCC.
12469
f7545552
TT
124702009-01-08 Tom Tromey <tromey@redhat.com>
12471
12472 PR breakpoints/9350:
12473 * varobj.c (varobj_invalidate): Unconditionally free
12474 all_rootvarobj.
12475 * symfile.c (syms_from_objfile): Free local_addr when returning
12476 normally.
12477 * exec.c (exec_file_attach): Do cleanups before returning.
12478 (exec_file_command): Likewise.
12479 * corefile.c (reopen_exec_file): Do cleanups before returning.
12480 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
a2f63f5e 12481 returning.
f7545552
TT
12482 (do_vec_free): New function.
12483 (update_global_location_list): Make a cleanup for old_locations.
12484 Do cleanups before returning. Remove unused variable 'e'.
12485 (find_condition_and_thread): Free result of parsing the
12486 expression.
12487 (print_it_typical): Do cleanups before returning.
12488 (breakpoint_re_set_one): Always free sals.sals.
12489
dde02812
ES
124902009-01-08 Joel Brobecker <brobecker@adacore.com>
12491 Emi Suzuki <emi-suzuki@tjsys.co.jp>
a2f63f5e 12492
dde02812
ES
12493 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
12494 watchpoints.
12495
69bcc6bc
DE
124962009-01-07 Doug Evans <dje@google.com>
12497
12498 * top.c (gdb_prompt_string): Delete, unused.
12499
fa3a767f
PA
125002009-01-07 Pedro Alves <pedro@codesourcery.com>
12501
12502 Delete ONE_PROCESS_WRITETEXT leftovers.
12503
12504 * breakpoint.c (insert_bp_location): Delete process_warning
12505 argument. Adjust.
12506 (insert_breakpoint_locations): Adjust.
12507 (reattach_breakpoints): Adjust.
12508 * infrun.c (normal_stop): Drop "It might be running in another
12509 process" notice.
12510
7b93f36d
SS
125112009-01-07 Stan Shebs <stan@codesourcery.com>
12512
12513 * config/pa/linux.mh (XDEPFILES): Remove.
12514
0380c18b
DE
125152009-01-07 Doug Evans <dje@google.com>
12516
12517 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
12518
60023297
JK
125192009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12520
12521 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
12522 spacing, a regression from 2008-04-22.
12523
ea8992ce
JB
125242009-01-07 Joel Brobecker <brobecker@adacore.com>
12525
12526 * utils.c (gdb_print_host_address): Adjust implementation to
12527 reuse host_address_to_string. Move comment explaining the conversion
12528 from host address to string from here...
12529 (host_address_to_string): ... to there.
12530
301d2c47
ES
125312009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
12532
12533 * MAINTAINERS: Add myself for write after approval privileges.
12534
170ce852
TT
125352009-01-06 Tom Tromey <tromey@redhat.com>
12536
12537 * value.c (set_internalvar): Use value_free, not xfree.
12538
fdb7262a
JB
125392009-01-06 Jim Blandy <jimb@red-bean.com>
12540
bf1d7d9c
JB
12541 Check return values of functions declared with warn_unused_result
12542 attribute in GLIBC 2.8.
12543 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
12544 * inflow.c (check_syscall): New function.
12545 (new_tty): Use check_syscall to check return values from open and dup.
12546 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
12547 * main.c (captured_main): Call cwd after setting up gdb_stderr;
12548 check for errors from getcwd.
12549 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
12550 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
12551 (stdio_file_fputs): Same.
12552 * utils.c (internal_vproblem): abort if last-ditch error message
12553 write fails.
12554
fdb7262a
JB
12555 * top.c (gdb_init): Don't set the current directory here; that's
12556 already been done in captured_main.
12557
84603566
SL
125582009-01-06 Sandra Loosemore <sandra@codesourcery.com>
12559
12560 * ser-tcp.c: Adjust includes.
12561 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
12562 (tcp_auto_retry, tcp_retry_limit): Declare.
12563 (TIMEOUT): Remove, in favor of tcp_retry_limit.
12564 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
12565 (wait_for_connect): New function.
12566 (net_open): Use it. Add auto-retry logic.
12567 (set_tcp_cmd, show_tcp_cmd): New functions.
12568 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
12569 and "set/show tcp connect-timeout" commands.
12570 * NEWS: Document new commands.
12571
5171e6b3
TT
125722009-01-05 Tom Tromey <tromey@redhat.com>
12573
12574 * python/python-internal.h (Py_ssize_t): Define as int.
12575
a367a1f2
JB
125762009-01-05 Jim Blandy <jimb@red-bean.com>
12577
12578 * MAINTAINERS: Fix my e-mail address as steering committee member.
12579
0fb0cc75
JB
125802009-01-03 Joel Brobecker <brobecker@adacore.com>
12581
12582 Updated copyright notices for most files.
12583
c9fc347d
JB
125842009-01-03 Joel Brobecker <brobecker@adacore.com>
12585
12586 * top.c (print_gdb_version): Update copyright year.
12587
a85d99b4
JB
125882009-01-03 Joel Brobecker <brobecker@adacore.com>
12589
12590 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
12591
4d78a120
JB
125922009-01-01 Pedro Alves <pedro@codesourcery.com>
12593
12594 PR breakpoints/9681:
12595 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
12596 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
12597 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
12598 retrow all other exceptions.
12599
67de2a4c 12600For older changes see ChangeLog-2008.
c906108c
SS
12601\f
12602Local Variables:
12603mode: change-log
12604left-margin: 8
12605fill-column: 74
12606version-control: never
57da7796 12607coding: utf-8
c906108c 12608End:
This page took 1.637399 seconds and 4 git commands to generate.