2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f1b9e6e7
MK
12010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
2
3 * mi/mi-main.c (mi_cmd_target_detach): Accept new
4 thread-group id format.
5
74884f7b
JK
62010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
9
84f4c1fe
PM
102010-11-11 Phil Muldoon <pmuldoon@redhat.com>
11
12 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
13 NULL.
14 (BPPY_SET_REQUIRE_VALID): Ditto.
15 (bpnum_is_valid): Delete function.
16 (bppy_get_visibility): New function.
17 (bppy_new): Parse for, and validate internal keyword. Pass
18 internal keyword to breakpoint or watchpoint functions.
19 (build_bp_list): New function.
20 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
21 iterate_over_breakpoints.
22 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
23 look-aside vector.
24 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
25 to internal breakpoint chain.
26
27 * breakpoint.c (set_breakpoint_number): New function.
28 (breakpoint_1): Check if breakpoint number is more than zero.
29 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
30 (create_breakpoint_sal): Take a new parameter called internal.
31 Call set_breakpoint_number with internal parameter. Do not
32 mention internal breakpoints. All callers updated.
33 (create_breakpoint): Ditto.
34 (create_breakpoints_sal): Ditto.
35 (watch_command_1): Ditto.
36 (watch_command_wrapper): Take a new parameter called internal.
37 All callers updated.
38 (rwatch_command_wrapper): Ditto.
39 (awatch_command_wrapper): Ditto.
40 (save_breakpoints): Update breakpoint save condition check.
41 (iterate_over_breakpoints): New function.
42 * breakpoint.h: Add conditional python includes. Add py_bp_object
43 and comment to struct breakpoint. Update all callers.
44 * defs.h: Add PyObject definition for GDB builds without Python.
45
4dfea560
DE
462010-11-10 Doug Evans <dje@google.com>
47
f61a2da7
DE
48 * python/lib/gdb/command/pretty_printers.py
49 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
50
4dfea560
DE
51 * value.c (set_value_enclosing_type): Renamed from
52 value_change_enclosing_type. All callers updated.
53 * value.h (set_value_enclosing_type): Update.
54 * valops.c (value_full_object): Always return a copy if we need to
55 make changes to the input value.
56
a1442452
PA
572010-11-09 Pedro Alves <pedro@codesourcery.com>
58
59 * breakpoint.c (watch_command_1): Get a pointer of the lazy
60 version of the expression's value, even if reading the value from
61 memory fails. When creating a -location watchpoint, get the
62 value's address from the lazy value pointer.
63
803b5f95
JK
642010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
65
66 * infrun.c (restore_inferior_thread_state): Use
67 discard_inferior_thread_state to free the data.
68 (discard_inferior_thread_state): xfree also siginfo_data.
69
99e7ae30
DE
702010-11-05 Doug Evans <dje@google.com>
71
72 Make gdb.parameter("directories") work.
73 New command "set directories".
74 * NEWS: Document them.
75 * source.c (set_directories_command): New function.
76 (show_directories_1): Renamed from show_directories.
77 All callers updated.
78 (show_directories_command): New function.
79 (_initialize_source): Install "directories" as a set/show
80 variable instead of just a show command.
81
f4b8a18d
KW
822010-11-05 Ken Werner <ken.werner@de.ibm.com>
83
84 * NEWS: Mention OpenCL C language support.
85 * Makefile.in (SFILES): Add opencl-lang.c.
86 (COMMON_OBS): Add opencl-lang.o.
87 * opencl-lang.c: New File
88 * defs.h (enum language): Add language_opencl.
89 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
90 IBM XL C OpenCL compiler.
91 * c-lang.h: Include "parser-defs.h".
92 (evaluate_subexp_c): Declare.
93 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
94 (c_op_print_tab): Add declaration.
95 * eval.c (binop_promote): Handle language_opencl.
96 * c-exp.y: Lookup the primitive types instead of referring to the
97 builtins.
98
075ff26d
JK
992010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
100
101 Fix configure --enable-plugins --without-python.
102 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
103 * configure: Regenerate.
104
14ad3217
JK
1052010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
106
107 * solib.c (solib_read_symbols): Call exception_fprintf even without
108 FROM_TTY. Print also so->so_name.
109
a9d5ef47
SW
1102010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
111
112 * gdbtypes.h (struct rank): Created subrank.
113 * gdbtypes.c: Initialized subrank for all
114 'BADNESS' constants.
115 (distance_to_ancestor): New function.
116 (is_ancestor): Use distance_to_ancestor.
117 (is_public_ancestor): Ditto.
118 (sum_ranks): Handle subrank.
119 (compare_ranks): Ditto.
120 (rank_one_type): Subrank base conversions.
121
6403aeea
SW
1222010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
123
124 * gdbtypes.h: Create struct rank.
125 Convert all 'BADNESS' macros to const struct rank declarations.
126 (sum_ranks): New function.
127 (compare_ranks): New function.
128 * valops.c (find_oload_champ): Updated.
129 (classify_oload_match): Use compare_ranks.
130 Improved comments.
131 (compare_parameters): Use compare_ranks.
132 * gdbtypes.c: Initialize 'BADNESS' constants.
133 (sum_ranks): New function.
134 (compare_ranks): New function.
135 (compare_badness): Use compare_ranks.
136 (rank_function): Use global constants instead of literals.
137 (rank_one_type): Ditto.
138 Return struct rank.
139 Use sum_ranks.
140
23fa7f66
DE
1412010-11-04 Doug Evans <dje@google.com>
142
143 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
144 (find_pretty_printer): Fix comments.
145
608bcef2
HZ
1462010-11-04 Hui Zhu <teawater@gmail.com>
147
148 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
149
9addb3b9
JB
1502010-11-03 Joel Brobecker <brobecker@adacore.com>
151
152 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
153 and `len' declaration and computation inside block where they
154 are being used.
155
75be741b
JB
1562010-11-03 Joel Brobecker <brobecker@adacore.com>
157
158 * valprint.c (val_print_array_elements): Put back handling of
159 empty arrays.
160
dbc98a8b
KW
1612010-11-03 Ken Werner <ken.werner@de.ibm.com>
162
163 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
164 DIE and set the length of the type.
165 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
166 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
167 return 0 if the corresponding bounds of the type are undefined.
168 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
169 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
170 (val_print_array_elements): Use get_array_bounds to compute the number
171 of array elements instead of dividing the length of the array by the
172 length of the element types.
173 * valarith.c (vector_binop): Likewise.
174 * valops.c (value_cast): Likewise.
175 * c-valprint.c (c_val_print): Likewise.
176 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
177
120bd360
KW
1782010-11-03 Ken Werner <ken.werner@de.ibm.com>
179
180 * valarith.c (value_pos, value_neg, value_complement): Handle
181 vector types.
182 * valops.c (value_one): Likewise.
183
c37f7098
KW
1842010-11-03 Ken Werner <ken.werner@de.ibm.com>
185
186 * value.h (value_non_lval): Declare.
187 * value.c (value_non_lval): New function.
188 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
189 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
190 non-lvalue.
191
7b51bc51
DE
1922010-11-02 Doug Evans <dje@google.com>
193
194 New python module gdb.printing, and new commands info pretty-printer,
195 enable pretty-printer, disable pretty-printer.
196 * NEWS: Mention them.
197 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
198 gdb/command/__init__.py, gdb/command/pretty_printers.py.
199 * python/lib/gdb/__init__.py: Install pretty-printer commands.
200 * python/lib/gdb/printing.py: New file.
201 * python/lib/gdb/command/__init__.py: New file.
202 * python/lib/gdb/command/pretty_printers.py: New file.
203
50c97f38
TT
2042010-11-02 Tom Tromey <tromey@redhat.com>
205
206 * NEWS: Mention Guile removal.
207 * defs.h (enum language) <language_scm>: Remove.
208 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
209 scm-valprint.c.
210 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
211 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
212 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
213 Remove.
214
9dea9163
DE
2152010-11-02 Doug Evans <dje@google.com>
216
217 * top.c: #include "python/python.h".
218 (gdb_init): Add a comment regarding initialize_all_files.
219 Call finish_python_initialization at the end.
220 * python/python.h (finish_python_initialization): Declare.
221 * python/python.c (finish_python_initialization): New function.
222 (_initialize_python): Move python-implemented initialization there
223 and call it.
224 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
225
a289b8f6
JK
2262010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 Revert:
229 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
230 Pedro Alves <pedro@codesourcery.com>
231 * gdbthread.h (currently_stepping): New declaration.
232 * infrun.c (currently_stepping): Remove the forward declaration.
233 (currently_stepping): Make it global.
234 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
235 variables tp and step, initialized them. Pass STEP to to_resume.
236 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
237 * remote.c (currently_stepping_callback): New.
238 (remote_vcont_resume)
239 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
240 New variable tp. Call currently_stepping_callback and step such
241 thread.
242
2209c807
HZ
2432010-11-01 Hui Zhu <teawater@gmail.com>
244
245 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
246
0a2a54b8
HZ
2472010-10-28 Hui Zhu <teawater@gmail.com>
248
249 * tracepoint.c (trace_save): Change utp->actions to
250 utp->step_actions.
251
284a3db3
JB
2522010-10-26 Joel Brobecker <brobecker@adacore.com>
253
254 * (_FILE_OFFSET_BITS): Fix typo in comment.
255
aed1781d
JB
2562010-10-26 Joel Brobecker <brobecker@adacore.com>
257
258 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
259 (PyEval_InitThreads): Remove duplicate. Define as nothing.
260 (PyEval_ReleaseLock): Define as nothing.
261
1e3fad37
JB
2622010-10-26 Joel Brobecker <brobecker@adacore.com>
263
264 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
265 by call to FILENAME_CMP.
266
558b1900
JB
2672010-10-26 Joel Brobecker <brobecker@adacore.com>
268
269 * dictionary.c (dict_hash): Move assignment out of if condition.
270
f474844c
JZ
2712010-10-22 Jie Zhang <jie@codesourcery.com>
272
273 * Makefile.in (install): Remove dependency of install-only and
274 recursively invoke make for install-only.
275 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
276 (install): Pass FLAGS_TO_PASS when recursively make install-only.
277
8991e9fa
HZ
2782010-10-20 Hui Zhu <teawater@gmail.com>
279
280 * tracepoint.c (tfile_get_traceframe_address): Call
281 extract_signed_integer.
282 (tfile_trace_find): Call extract_signed_integer and
283 extract_unsigned_integer. Change data_size to unsigned int.
284 (tfile_fetch_registers): Call extract_unsigned_integer.
285 (tfile_xfer_partial): Ditto.
286 (tfile_get_trace_state_variable_value): Call
287 extract_signed_integer and extract_unsigned_integer.
288
21bce120
VP
2892010-10-20 Vladimir Prus <vladimir@codesourcery.com>
290
291 * remote.c (remote_get_threadlist): If we got empty
292 response, bail out immediately, and don't emit any
293 warnings.
294
ad8b5167
UW
2952010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
296
297 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
298 for "mov pc, REG" as well.
299 (thumb_instruction_changes_pc): Likewise.
300
79afc5ef
SW
3012010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
302
303 PR C++/11500:
304 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
305 * eval.c (evaluate_subexp_standard): Check for overload of
306 'operator->'.
307 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
308 (value_x_unop): Ditto.
309 * valops.c: Include "exceptions.h".
310 (find_overload_match): Throw NOT_FOUND_ERROR.
311 (value_struct_elt): Ditto.
312
cca56ac7
TT
3132010-10-19 Tom Tromey <tromey@redhat.com>
314
315 * python/py-cmd.c (cmdpy_function): Unreference exception state.
316
026ffab7
SW
3172010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
318
319 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
320 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
321 for conversion.
322 Make all other conversions illegal.
323
8c540a24
DE
3242010-10-18 Doug Evans <dje@google.com>
325
326 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
327 assumptions of when this case happens. Print "<unnamed typedef>".
328
3a772aa4
TT
3292010-10-18 Tom Tromey <tromey@redhat.com>
330
331 * valprint.c (val_print_string): Pass 'encoding' to
332 LA_PRINT_STRING.
333
01f8c46d
JK
3342010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
335
336 Fix the `stopped language detection' testcase for gcc-4.5.
337 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
338 * symfile.c (set_initial_language): Move variable filename to a more
339 inner block. Prefer LANGUAGE_OF_MAIN.
340 * symtab.c (language_of_main): New variable.
341 (set_main_name): Always reset LANGUAGE_OF_MAIN.
342 * symtab.h (language_of_main): New declaration.
343
8aeb23f3
JK
3442010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
345 Pedro Alves <pedro@codesourcery.com>
346
347 * gdbthread.h (currently_stepping): New declaration.
348 * infrun.c (currently_stepping): Remove the forward declaration.
349 (currently_stepping): Make it global.
350 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
351 variables tp and step, initialized them. Pass STEP to to_resume.
352 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
353 * remote.c (currently_stepping_callback): New.
354 (remote_vcont_resume)
355 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
356 New variable tp. Call currently_stepping_callback and step such
357 thread.
358
c1e56572
JK
3592010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
360
361 * infrun.c (follow_exec): Replace symbol_file_add_main by
362 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
363 breakpoint_re_set.
364 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
365 clear_symtab_users.
366 * objfiles.c (free_all_objfiles): Likewise.
367 * remote-m32r-sdi.c (m32r_load): Likewise.
368 * solib-som.c (som_solib_create_inferior_hook): Likewise.
369 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
370 clear_symtab_users with ADD_FLAGS.
371 (reread_symbols): Use parameter 0 for clear_symtab_users.
372 (clear_symtab_users): New parameter add_flags. Do not call
373 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
374 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
375 * symtab.h (clear_symtab_users): New parameter add_flags.
376
3a182a69
JK
3772010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
378
379 Fix GCC false warning.
380 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
381
3a9d7214
PM
3822010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
383
384 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
385 display of type of method arguments.
386
09ca9e2e
TT
3872010-10-15 Tom Tromey <tromey@redhat.com>
388
389 PR python/11948:
390 * varobj.c (value_get_print_value): Use val_print_string to print
391 lazy strings.
392 * python/py-prettyprint.c (print_string_repr): Use
393 val_print_string to print lazy strings. Fix cleanup logic.
394 (print_children): Likewise.
395 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
396 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
397 Change return type to 'void', add 'addr' argument.
398 * value.h (val_print_string): Update.
399 * valprint.c (val_print_string): Add 'encoding' argument.
400 * printcmd.c (print_formatted): Update.
401 * p-valprint.c (pascal_val_print): Update.
402 * m2-valprint.c (print_unpacked_pointer): Update.
403 (m2_print_array_contents): Likewise.
404 * jv-valprint.c (java_value_print): Update.
405 * f-valprint.c (f_val_print): Update.
406 * c-valprint.c (c_val_print): Update.
407 * auxv.c (fprint_target_auxv): Update.
408
92163a10
JK
4092010-10-15 Doug Evans <dje@google.com>
410 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 PR exp/12117
413 * gdbtypes.c (check_typedef): Clean up function comment.
414 Keep track of instance flags as we strip typedefs and create a new
415 type to preserve them if necessary.
416 * gdbtypes.h (type) <instance_flags>: Extend the comment.
417
dae71413
PM
4182010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
419
420 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
421
7062b0a0
SW
4222010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
423
424 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
425 * gdbtypes.c (rank_one_type): Move type comparison code out of here
426 to...
427 (types_equal): ...here. And changed it as follows:
428 Outside of typedefs type must be of the same TYPE_CODE.
429 When compairing two pointers or references they are equal if their
430 targets are equal.
431 Correct pointer conversions.
432
5c3da5ea
PM
4332010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
434
435 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
436 having fields without names.
437
577ce03a
TT
4382010-10-13 Tom Tromey <tromey@redhat.com>
439
440 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
441
a737a51b
DE
4422010-10-13 Doug Evans <dje@google.com>
443
0e3509db
DE
444 New python module gdb.types.
445 * NEWS: Document it.
446 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
447 * python/lib/gdb/types.py: New file.
448
a737a51b
DE
449 * c-typeprint.c: Whitespace cleanup.
450 (cp_type_print_method_args): Remove unnecessary forward decl.
451 (cp_type_print_derivation_info): Ditto.
452 (c_type_print_varspec_prefix): Mark as static at definition.
453 (c_type_print_modifier): Fix arg descriptions.
454
8dc78533
JK
4552010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 * python/py-breakpoint.c (bppy_set_condition): New comment.
458 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
459 failed PyUnicode_Decode.
460 (cmdpy_completer): Skip element for failed
461 python_string_to_host_string.
462 (cmdpy_init): Return -1 on failed python_string_to_host_string.
463 * python/py-frame.c (frapy_read_var): Extend the function comment.
464 * python/py-function.c (fnpy_init): Return -1 on failed
465 python_string_to_host_string.
466 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
467 the function comment.
468 (infpy_search_memory): Extend the function comment. Remove the
469 PyErr_SetString call on already set error state.
470 * python/py-param.c (set_parameter_value): Extend the function
471 comment. Return -1 on failed python_string_to_host_string, twice.
472 (set_attr): Extend the function comment.
473 (compute_enum_values): Extend the function comment. New variable
474 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
475 failed python_string_to_host_string.
476 (get_doc_string): Call gdbpy_print_stack on failed
477 python_string_to_host_string.
478 (parmpy_init): Extend the function comment.
479 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
480 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
481 failed python_string_to_host_string.
482 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
483 (valpy_binop, valpy_richcompare): Extend the function comment.
484 * python/python.c
485 (struct python_env) <error_type, error_value, error_traceback>: New
486 fields.
487 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
488 (ensure_python_env): Call PyErr_Fetch.
489 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
490 failed convert_value_from_python.
491 (value_get_print_value): Call gdbpy_print_stack on failed
492 python_string_to_target_python_string.
493
1bdb0c54
TT
4942010-10-12 Tom Tromey <tromey@redhat.com>
495
496 * python/py-prettyprint.c (search_pp_list): Fix error checking.
497
0526b37a
SW
4982010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
499
500 * gdbtypes.c (do_is_ancestor): New function.
501 (is_ancestor): Use do_is_ancestor.
502 (is_public_ancestor): Use do_is_ancestor.
503
c1b5be38
PM
5042010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
505
506 * ser-go32.c (struct dos_ops): Add missing fdopen field.
507
68770265
MGD
5082010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
509
510 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
511
64b00020
DE
5122010-10-11 Doug Evans <dje@google.com>
513
514 * c-typeprint.c (c_type_print_modifier): Add note that this prints
515 the address space id too.
516
43b8e241
JK
5172010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
518
519 Fix attaching to re-prelinked executables on ppc64.
520 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
521 initialize it, try to adjust FILESZ field by it.
522
417b5110
DJ
5232010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
524
525 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
526 messages if info_verbose.
527
3bdf2bbd
KW
5282010-10-08 Ken Werner <ken.werner@de.ibm.com>
529
530 * valops.c (value_cast): Handle vector types.
531 * valarith.c (value_binop): Widen scalar to vector if appropriate.
532
ec3d575a
UW
5332010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
534
535 * arm-tdep.c (thumb_expand_immediate): New function.
536 (thumb_instruction_changes_pc): Likewise.
537 (thumb2_instruction_changes_pc): Likewise.
538 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
539 prologue parsing. Improved support for optimized code.
540 (thumb_scan_prologue): Do not reply on line-number information,
541 use same heuristics as arm_scan_prologue insead.
542 (skip_prologue_function): Accept functions
543 "__tls_get_addr" and "__aeabi_read_tp".
544
4024ca99
UW
5452010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
546 Daniel Jacobowitz <dan@codesourcery.com>
547
548 * arm-tdep.c (thumb_in_function_epilogue_p)
549 (arm_in_function_epilogue_p): New.
550 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
551 gdbarch_in_function_epilogue_p callback.
552
855c153f
DE
5532010-10-07 Doug Evans <dje@google.com>
554
00e14314
DE
555 * cc-with-index.sh (output_file): Default to a.out.
556
3876f04e
DE
557 * dwarf2read.c (mapped_index): Rename member index_table to
558 symbol_table and index_table_slots to symbol_table_slots.
559 All uses updated.
560 (create_symbol_hash_table): Renamed from create_index_table.
561 All callers updated.
562 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
563 (write_hash_table): Rename local index_table to symbol_hash_table.
564
855c153f
DE
565 * addrmap.h (addrmap_foreach_fn): New typedef.
566 (addrmap_foreach): Declare.
567 * addrmap.c (struct addrmap_funcs): New member foreach.
568 (addrmap_foreach): New function.
569 (addrmap_fixed_foreach): New function.
570 (addrmap_fixed_funcs): Update.
571 (struct mutable_foreach_data): New struct.
572 (addrmap_mutable_foreach_worker): New function.
573 (addrmap_mutable_foreach): New function.
574 (addrmap_mutable_funcs): Update.
575
1d2a4540
PH
5762010-10-07 Paul Hilfinger <hilfinger@adacore.com>
577
578 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
579 more cases.
580
40658b94
PH
5812010-10-07 Paul Hilfinger <hilfinger@adacore.com>
582
583 * ada-lang.c (full_match): Declare.
584 (ada_match_name): Rename to match_name (we should avoid prefixing static
585 symbols with "ada_").
586 (match_name): New name for ada_match_name.
587 (struct ada_psym_data): Remove and replace with...
588 (struct match_data): User data for map_matching_symbols.
589 (ada_add_psyms): Remove.
590 (aux_add_nonlocal_symbols): New function, used as callback for
591 map_matching_symbols.
592 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
593 symbols.
594 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
595 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
596 Rework to use map_matching_symbols instead of map_ada_symtabs.
597 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
598 * psymtab.c: Include dependency on dictionary.h.
599 (match_partial_symbol): New function.
600 (ada_lookup_partial_symbol): Remove.
601 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
602 (map_matching_symbols_psymtab): New function.
603 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
604 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
605
c4d840bd
PH
6062010-10-06 Paul Hilfinger <hilfinger@adacore.com>
607
608 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
609 (wild_match): Change API to be consistent with that of strcmp_iw;
610 return 0 for a match, and switch operand order.
611 (full_match): New function.
612 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
613 matching to allow use of hashing.
614 * dictionary.c (struct dict_vector): Generalize iter_name_first,
615 iter_name_next ot iter_match_first, iter_match_next.
616 (iter_name_first_hashed): Replace with iter_match_first_hashed.
617 (iter_name_next_hashed): Replace with iter_match_next_hashed.
618 (iter_name_first_linear): Replace with iter_match_first_linear.
619 (iter_name_next_linear): Replace with iter_match_next_linear.
620 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
621 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
622 (dict_iter_match_first): New function.
623 (dict_iter_match_next): New function.
624 (dict_hash): New function.
625 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
626 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 627
543ecec7
DE
6282010-10-06 Doug Evans <dje@google.com>
629
630 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
631
2f608a3a
KW
6322010-10-06 Ken Werner <ken.werner@de.ibm.com>
633
634 * dwarf2read.c (read_tag_const_type): Handle const arrays.
635
aa2e2d8d
DE
6362010-10-06 Doug Evans <dje@google.com>
637
9c9606fb
DE
638 * Makefile.in (REQUIRED_SUBDIRS): New var.
639 (subdir_do): Verify required subdir Makefiles exist.
640
aa2e2d8d
DE
641 Create subdir data-directory.
642 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
643 data-directory/Makefile.in.
644 (SUBDIRS): Add data-directory.
645 (all): Remove xml-syscall-copy dependency.
646 (xml-syscall-copy): Moved to data-directory/Makefile.in as
647 stamp-syscalls.
648 (xml-syscall-install): Moved to data-directory/Makefile.in as
649 install-syscalls.
650 (install-only): Remove xml-syscall-install dependency.
651 (all-data-directory): New rule.
652 (data-directory/Makefile): New rule.
653 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
654 * configure: Regenerate.
655 * data-directory/Makefile.in: New file.
656 * python/lib/gdb/__init__.py: New file.
657
aa27d0b3
JB
6582010-10-06 Joel Brobecker <brobecker@adacore.com>
659
660 Fix ARI warnings in advance_wild_match.
661 * ada-lang.c (advance_wild_match): Delete local variable t2.
662 Adjust code accordingly. Minor reformatting.
663
2844d6b5
KW
6642010-10-06 Ken Werner <ken.werner@de.ibm.com>
665
666 * gdbtypes.h (struct main_type): Remove flag_nottext.
667 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
668 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
669 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
670 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
671 of TYPE_FLAG_NOTTEXT.
672 (init_type): Remove the initialization of the flag_nottext field.
673 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
674 TYPE_FLAG_NOTTEXT.
675 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
676
2fdf6df6
DE
6772010-10-04 Doug Evans <dje@google.com>
678
ea65fe05
DE
679 * cc-with-index.sh: New file.
680
2fdf6df6
DE
681 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
682 function comment.
683 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
684 (create_cus_from_index, create_addrmap_from_index): Ditto.
685 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
686 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
687 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
688 (eq_strtab_entry, create_strtab, add_string): Ditto.
689 (hash_strtab_entry): Ditto.
690 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
691 (create_index_table, create_mapped_symtab, find_slot): Ditto.
692 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
693 (write_hash_table, add_address_entry, write_psymbols): Ditto.
694 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
695 (write_psymtabs_to_index): Ditto.
2fdf6df6 696
40bc484c
JB
6972010-10-04 Joel Brobecker <brobecker@adacore.com>
698
699 * ada-lang.c: #include "value.h".
700 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
701 arguments. Implement using value_allocate_space_in_inferior
702 instead of allocating memory from the stack.
703 (make_array_descriptor): Remove gdbarch and sp parameters. Update
704 calls to ensure_lval.
705 (ada_convert_actual): Remove gdbarch and sp parameters. Update
706 calls to make_array_descriptor and ensure_lval.
707 * ada-lang.h (ada_convert_actual): Update declaration.
708 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
709
f17618ea
DE
7102010-10-04 Doug Evans <dje@google.com>
711
712 * python/python.c (_initialize_python): Define new function
713 GdbSetPythonDirectory in python. Use it to update sys.path and
714 gdb.__path__.
715
83e3a93c
PH
7162010-10-03 Paul Hilfinger <hilfinger@adacore.com>
717
718 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
719 incorporating and generalizing print_record_field_types.
720 (print_record_field_types): Change return value and update comment.
721 Re-implement using print_selected_record_field_types.
722 (print_choices): Print "=>" here.
723 Handle case of unencoded variant branch.
724 (print_variant_clauses): Reformat comment.
725 Special-case unencoded variant branch.
726
7272010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
728
729 * ada-lang.c (wild_match): Reimplement.
730 Change API to eliminate unused length argument, reverse arguments and
731 make 0 the 'true' return value.
732 (advance_wild_match): New auxiliary function for wild_match to improve
733 readability.
734 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
735 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
736 API for wild_match.
737 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
738 wild_match.
739 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
740
11570e71
DE
7412010-10-01 Doug Evans <dje@google.com>
742
743 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
744 for `save gdb-index' command.
745
72b9f47f
TT
7462010-10-01 Tom Tromey <tromey@redhat.com>
747
748 * symfile.h (allocate_symtab): Update.
749 * symfile.c (allocate_symtab): Make 'filename' const.
750 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
751 (add_psymbol_to_list): Likewise.
752 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
753 const.
754 (add_psymbol_to_list): Update.
755 * mdebugread.c (new_symtab): Make 'name' const.
756 (psymtab_to_symtab_1): Make 'filename' const.
757 * elfread.c (elfstab_offset_sections): Update.
758 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
759 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
760 (psymtab_include_file_name): Update.
761 * dbxread.c (find_stab_function_addr): Make 'filename' const.
762 * buildsym.h (start_subfile): Update.
763 * buildsym.c (start_subfile): Make arguments const.
764
55e39473
MS
7652010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
766
767 * fork-child.c (breakup_args): Fix crash if shell forking is
768 disabled at compile time.
769
05e522ef
JB
7702010-10-01 Joel Brobecker <brobecker@adacore.com>
771
772 * ada-lang.c (desc_bounds): Add handling of the case where
773 the P_BOUNDS field is a pointer to a stub.
774 (desc_data_target_type): Same for P_ARRAY field.
775 (ada_check_typedef): Strip the typedef layers from the type
776 found by ada_find_any_type.
777
49a45ecf
JB
7782010-10-01 Joel Brobecker <brobecker@adacore.com>
779
780 * sparc-tdep.c (sparc32_frame_align): New function.
781 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
782 * sparc64-tdep.c (sparc64_frame_align): New function.
783 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
784
a5916a62
L
7852010-09-30 H.J. Lu <hongjiu.lu@intel.com>
786
787 * defs.h (MAX_REGISTER_SIZE): Set to 64.
788
00b5771c
TT
7892010-09-30 Tom Tromey <tromey@redhat.com>
790
791 * symfile.h (struct sym_fns) <next>: Remove.
792 (add_symtab_fns): Update.
793 * symfile.c (sym_fns_ptr): New typedef.
794 (symtab_fns): Now a VEC.
795 (add_symtab_fns): Update. Change argument type.
796 (find_sym_fns): Update. Change return type.
797 (get_symfile_segment_data): Update.
798 * objfiles.h (struct objfile) <sf>: Now const.
799 * somread.c (som_sym_fns): Now const. Update.
800 * xcoffread.c (xcoff_sym_fns): Now const. Update.
801 * mipsread.c (ecoff_sym_fns): Now const. Update.
802 * machoread.c (macho_sym_fns): Now const. Update.
803 * elfread.c (elf_sym_fns): Now const. Update.
804 (elf_sym_fns_gdb_index): Likewise.
805 * dbxread.c (aout_sym_fns): Now const. Update.
806 * coffread.c (coff_sym_fns): Now const. Update.
807
38f12cfc
TT
8082010-09-30 Tom Tromey <tromey@redhat.com>
809
810 * value.c (value_primitive_field): Take 'offset' into account for
811 packed field.
812
9ae8282d
TT
8132010-09-30 Tom Tromey <tromey@redhat.com>
814
815 * completer.c (count_struct_fields): Handle anonymous structs and
816 unions.
817 (add_struct_fields): Likewise.
818
e9e07ba6
JK
8192010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 Fix printing parameters of inlined functions.
822 * ada-lang.c (is_known_support_routine)
823 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
824 for find_frame_funname.
825 * python/py-frame.c (frapy_name): Likewise.
826 * stack.c (find_frame_funname): New parameter funcp. Update the
827 function comment. Fill it in.
828 (print_frame): New variable func. Initialize it by
829 find_frame_funname. Print arguments only if FUNC is not NULL. Use
830 FUNC as the parameter of print_args_stub.
831 * stack.h (find_frame_funname): New parameter funcp. Remove the
832 function declaration comment.
833
cd2effb2
JK
8342010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 PR corefiles/12071.
837 * inferior.c (have_live_inferiors): New variables old_chain, inf and
838 tp. Iterate INFERIOR_LIST and call target_has_execution.
839
bceffbf3
JK
8402010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
841
842 Fix GDB crash on inferior calls with self-referencing classes.
843 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
844 member fields.
845
abc72ce4
DE
8462010-09-29 Doug Evans <dje@google.com>
847
848 Workaround for gcc/45682.
849 * dwarf2read.c (partial_die_info): New fields fixup_called,
850 linkage_name.
851 (guess_partial_die_structure_name): Renamed from guess_structure_name.
852 Move definition next to use. Use linkage_name to determine if class
853 is in a namespace. All callers updated.
854 (fixup_partial_die): Return early if already called.
855 Set fixup_called when done.
856 (guess_full_die_structure_name): New function.
857 (determine_prefix): Call it for class/struct/union dies if c++ and
858 .debug_types section is present and parent is DW_TAG_compile_unit.
859
0ac7be25
JB
8602010-09-28 Joel Brobecker <brobecker@adacore.com>
861
862 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
863 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
864
6e1bb179
JB
8652010-09-28 Joel Brobecker <brobecker@adacore.com>
866
867 * NEWS: Announce Ravenscar Profile support.
868
036b1ba8
JB
8692010-09-28 Joel Brobecker <brobecker@adacore.com>
870 Jerome Guitton <guitton@adacore.com>
871
872 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
873 New files.
874 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
875 ravenscar-sparc-thread.o to gdb_target_obs.
876
474011fb
JB
8772010-09-28 Joel Brobecker <brobecker@adacore.com>
878
879 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
880 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
881
99e24b90
PM
8822010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
883
884 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
885 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
886 skip_main_prologue method.
887
987d643c
TT
8882010-09-27 Tom Tromey <tromey@redhat.com>
889
890 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
891 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
892 Only emit a given psymbol once.
893 (struct signatured_type_index_data) <psyms_seen>: New field.
894 (write_one_signatured_type): Update.
895 (cleanup_htab): New function.
896 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
897 version to 3.
898 (save_gdb_index_command): Update index documentation.
899
d3aff959
TT
9002010-09-27 Tom Tromey <tromey@redhat.com>
901
902 * bcache.c (expand_hash_table): Use hash_function, not hash.
903
716b65bf
TT
9042010-09-27 Tom Tromey <tromey@redhat.com>
905
906 * gdb_wchar.h: Change minimum libiconv to 0x108.
907
1736ad11
JK
9082010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
909
910 Fix lost siginfo_t for inferior calls.
911 * infrun.c
912 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
913 (save_inferior_thread_state): New variables regcache, gdbarch and
914 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
915 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
916 using REGCACHE.
917 (restore_inferior_thread_state): New variables regcache and gdbarch.
918 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
919 REGCACHE. Free also SIGINFO_DATA.
920
4b5246aa
TT
9212010-09-24 Tom Tromey <tromey@redhat.com>
922
923 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
924 MAYBE_SWAPs.
925 (dw2_map_symbol_names): Likewise.
926
2a7d6a25
SW
9272010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
928
929 * valops.c (find_oload_champ_namespace_loop): replace incorrect
930 discard_cleanups do_cleanups.
931
b53a1623
PA
9322010-09-24 Pedro Alves <pedro@codesourcery.com>
933
e6ee044d
PA
934 PR gdb/11842
935
b53a1623
PA
936 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
937 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
938 si_code is < 0. Check for si_code == SI_TIMER before checking for
939 si_code < 0.
940
96a8853a
PA
9412010-09-24 Pedro Alves <pedro@codesourcery.com>
942
943 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
944
39383a48
JB
9452010-09-22 Joel Brobecker <brobecker@adacore.com>
946
947 * ada-tasks.c (read_atcb): Do not compute the task ptid when
948 debugging a core file.
949
d31d2fc3
JK
9502010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
951
952 Code cleanup.
953 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
954 (free_objfile) <objfile->name != NULL>: Remove the conditional around
955 xfree.
956 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
957 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
958 Remove.
959 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
960 Remove the conditional.
961 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
962
7f6130ff
JK
9632010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
964
965 * main.c: Include objfiles.h.
966 (captured_main): New variable objfile. Call
967 load_auto_scripts_for_objfile for ALL_OBJFILES.
968
c2b0a229
JK
9692010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
970
971 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
972 DW_TAG_constant.
973
72929c62
JB
9742010-09-22 Joel Brobecker <brobecker@adacore.com>
975
976 * dwarf2read.c (scan_partial_symbols): Add handling of
977 DW_TAG_constant DIEs.
978 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
979
496c0e1b
JB
9802010-09-22 Joel Brobecker <brobecker@adacore.com>
981
982 * configure.ac: Add support for --enable-gdbserver.
983 * configure: Regenerate.
984
ec322823
SW
9852010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
986
987 PR C++/12028
988 * valops.c (find_oload_champ_namespace_loop): removed incorrect
989 'old_cleanups' reassignment.
990
1558ab4c
JK
9912010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
994 characters.
995
875b4ff5
PM
9962010-09-16 Phil Muldoon <pmuldoon@redhat.com>
997
998 PR mi/11407
999 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1000 read_var_value and common_val_print and print a warning.
1001
65dedcb2
JK
10022010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1005 keep the list in alphabetical order. Use longer e-mail address.
1006
0e780a22
TT
10072010-09-15 Tom Tromey <tromey@redhat.com>
1008
1009 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1010
62234ccc
TT
10112010-09-15 Tom Tromey <tromey@redhat.com>
1012
1013 * charset.c (iconv_open): New define.
1014 (iconv): Likewise.
1015 (iconv_close): Likewise.
1016 (phony_iconv_open): Add "phony_" prefix.
1017 (phony_iconv_close): Likewise.
1018 (phony_iconv): Likewise.
1019 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1020 Change how INTERMEDIATE_ENCODING is defined.
1021
4950bc1c
DE
10222010-09-15 Doug Evans <dje@google.com>
1023
1024 * dwarf2read.c (struct die_info): Fix comment.
1025
349126ea
AM
10262010-09-15 Alan Modra <amodra@gmail.com>
1027
1028 PR 4606
1029 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1030 than setting SEC_NEVER_LOAD on sections that need not be copied.
1031
923c6a3d
TT
10322010-09-14 Tom Tromey <tromey@redhat.com>
1033
1034 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1035 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1036 Declare.
1037 * symfile.h (extend_psymbol_list): Remove.
1038 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1039 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1040 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1041
a9e6a4bb
JK
10422010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1043
1044 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1045 Update the comment.
1046
7155d578
TT
10472010-09-14 Tom Tromey <tromey@redhat.com>
1048
1049 PR symtab/8399:
1050 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1051 for unrecognized frame base expression.
1052
515ed532
TT
10532010-09-14 Tom Tromey <tromey@redhat.com>
1054
1055 PR exp/11803:
1056 * value.c (value_static_field): Use value_of_variable.
1057
b467f580
PM
10582010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1059
1060 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1061 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1062
450ca57c
SW
10632010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1064
1065 PR symtab/11992:
1066 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1067 UNKNOWN_CPP_NAME.
1068
1aee7009
JB
10692010-09-13 Joel Brobecker <brobecker@adacore.com>
1070
1071 * NEWS: Add x86-lynxos to the list of platforms supported by
1072 gdbserver.
1073
5ec6ebf9
JB
10742010-09-13 Joel Brobecker <brobecker@adacore.com>
1075
1076 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1077
1863c96c
TT
10782010-09-13 Tom Tromey <tromey@redhat.com>
1079
1080 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1081
0c5acf93
L
10822010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 * i386-tdep.c (i386_ymm_type): Set type name to
1085 builtin_type_vec256i.
1086
1c6272a6
MS
10872010-09-12 Michael Snyder <msnyder@vmware.com>
1088
1089 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1090
e866c497
L
10912010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1094
9191d390
L
10952010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1096
1097 * amd64-tdep.c (amd64_register_name): Removed.
1098 (amd64_init_abi): Don't call set_gdbarch_register_name.
1099
1100 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1101
1102 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1103
8d4d924b
JK
11042010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1105 Paul Bolle <pebolle@tiscali.nl>
1106
1107 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1108 * cli-logging.c (struct saved_output_files) <targerr>: New.
1109 (set_logging_redirect, pop_output_files, handle_redirections):
1110 Redirect also gdb_stdtargerr.
1111 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1112 declarations.
1113 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1114 also gdb_stdtargerr.
1115 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1116 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1117 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1118 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1119 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1120 New functions.
1121
3329c4b5
PM
11222010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1123
1124 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1125 to display a host address.
1126 * monitor.c (monitor_read_memory): Likewise.
1127 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1128
5e8db398
PM
11292010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1130
1131 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1132 `CORE_ADDRESS' as it might contain target addresses.
1133
37049e31
PM
11342010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1135
1136 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1137 before cast to pointer to avoid warning.
1138
351a3e56
KB
11392010-09-09 Kevin Buettner <kevinb@redhat.com>
1140
1141 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1142 type to be signed.
349126ea 1143
6afafb54
UW
11442010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1145
1146 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1147 anonymous class partial DIEs.
1148
60430eff
DJ
11492010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1150
1151 * dwarf2read.c (dwarf2_compute_name): Check that the first
1152 argument is a pointer.
1153
f1078f66
DJ
11542010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1155
1156 * dwarf2read.c (read_func_scope, read_structure_type)
1157 (read_common_block): Check for a NULL return from new_symbol.
1158
82430852
JK
11592010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1162
c767944b
DJ
11632010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1164
1165 * dwarf2read.c (read_structure_type): Move processing of
1166 fields and member functions from here...
1167 (process_structure_scope): ... to here.
1168
561d3825
DJ
11692010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1170
1171 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1172 the domain type.
1173 (gnuv3_make_method_ptr): Likewise.
1174
9bd89d67
TT
11752010-09-08 Tom Tromey <tromey@redhat.com>
1176
1177 * breakpoint.c (create_breakpoint): Add missing _().
1178
1d040b0d
DE
11792010-09-08 Doug Evans <dje@google.com>
1180
1181 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1182
774b6a14
TT
11832010-09-08 Tom Tromey <tromey@redhat.com>
1184
1185 Revert:
1186 2010-09-01 Tom Tromey <tromey@redhat.com>
1187 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1188 symtab.h: Revert earlier change.
1189
fc956729
SW
11902010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1191
1192 * psymtab.c (add_psymbol_to_bcache): Initialize
1193 obj_section.
1194 memset psymbol.ginfo.value to 0.
1195
48f9886d
PA
11962010-09-06 Pedro Alves <pedro@codesourcery.com>
1197
1198 * infrun.c (resume): Extend comment on ignoring single-step
1199 requests on vfork parents waiting for a vfork-done.
1200
423ec54c
JK
12012010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 Pedro Alves <pedro@codesourcery.com>
1203
1204 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1205 is NULL.
1206 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1207 target_signal type.
1208 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1209 calling strsignal. Use enum target_signal type for saved_signo.
1210 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1211 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1212 target_signal_to_host before calling strsignal.
1213 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1214 TARGET_SIGNAL_0.
1215
a6eb9bc8
JK
12162010-09-06 Pedro Alves <pedro@codesourcery.com>
1217 Jan Kratochvil <jan.kratochvil@redhat.com>
1218
1219 * common/signals.c (ANY): Remove.
1220 (SET): No longer use ANY.
1221
74609e71
YQ
12222010-09-06 Yao Qi <yao@codesourcery.com>
1223
1224 * infrunc(resume): When inferior is waiting_for_vfork_done,
1225 clear step and don't use displaced stepping.
1226
8464be76
DJ
12272010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1228
1229 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1230 value specially.
1231
33d62d64
JK
12322010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1233
1234 Code cleanup - split print_stop_reason.
1235 * infrun.c (enum inferior_stop_reason): Remove.
1236 (print_stop_reason): Remove by splitting into ...
1237 (print_exited_reason, print_signal_exited_reason)
1238 (print_no_history_reason, print_signal_received_reason)
1239 (print_end_stepping_range_reason): ... these new functions. Update
1240 the preceding comment.
1241 (handle_inferior_event): Change the calls to print_exited_reason,
1242 print_signal_exited_reason, print_no_history_reason,
1243 print_signal_received_reason, print_end_stepping_range_reason.
1244 (handle_step_into_function, handle_step_into_function_backward):
1245 Change the calls to print_end_stepping_range_reason.
1246
14dba4b4
JK
12472010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1248
1249 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1250 * cli-out.c: Include vec.h.
1251 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1252 variable stream, initialize it, use it.
1253 (cli_redirect): New function comment. Replace the stream and
1254 original_stream fields by the new streams field. Remove the
1255 original_stream != NULL conditional, assert error on NULL instead.
1256 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1257 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1258 original_stream fields by the new streams field.
1259 (cli_out_set_stream): Replace the stream field by the new streams
1260 field.
1261 * cli-out.h: Include vec.h.
1262 (ui_filep): New typedef, call DEF_VEC_P for it.
1263 (struct cli_ui_out_data): Replace the stream and original_stream
1264 fields by the new streams field.
1265 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1266 NULL first. Extend the comment.
1267 (handle_redirections): Call ui_out_redirect with output.
1268 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1269 calls outside of the TRY_CATCH block.
1270
b04bc5d4 12712010-09-03 Joel Brobecker <brobecker@adacore.com>
1272
1273 GDB 7.2 released.
1274
080db4e0
JB
12752010-09-02 Joel Brobecker <brobecker@adacore.com>
1276
1277 Back out the following change:
1278 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1279 | * record.c (set_record_pic_cmdlist,
1280 | show_record_pic_cmdlist): New variables.
1281 | (set_record_pic_command,
1282 | show_record_pic_command): New functions.
1283 | (record_pic_function, record_pic_line, record_pic_enum,
1284 | set_record_pic_type, record_pic_hide_nofunction,
1285 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1286 | (record_pic_fputs): New function.
1287 | (function_list, node_list, edge_list): New struct.
1288 | (function_list, node_list, edge_list): New variables.
1289 | (record_pic_cleanups, record_pic_node,
1290 | record_pic_edge, cmd_record_pic): New functions.
1291 | (_initialize_record): Add new commands for record pic.
1292
0a4f61e3
DJ
12932010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1294
1295 * config.in, configure: Regenerated.
1296 * configure.ac: Check for waitpid.
1297 * ser-pipe.c (pipe_close): Wait for the program to exit.
1298
58b61394
JK
12992010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
ba720883 1301 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1302 (set_logging_overwrite): New function.
1303 (logging_redirect): New comment.
1304 (logging_no_redirect_file, set_logging_redirect)
1305 (pop_output_files) <logging_no_redirect_file>: New.
1306 (handle_redirections) <!logging_redirect>: New variable
1307 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1308 discard cleanup for the close of former OUTPUT. Set
1309 LOGGING_NO_REDIRECT_FILE.
1310 (handle_redirections) <logging_redirect>: gdb_assert
1311 LOGGING_NO_REDIRECT_FILE.
1312 (show_logging_command) <logging_redirect handling>: Adjust messages
1313 for SAVED_FILENAME not NULL.
1314 (_initialize_cli_logging): Install set_logging_overwrite and
1315 set_logging_redirect.
1316
706774f2
JK
13172010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1320
9a35ccf7
JK
13212010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1322
1323 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1324 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1325 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1326 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1327
ba9b2ec3
YQ
13282010-09-02 Yao Qi <yao@codesourcery.com>
1329
1330 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1331 number from a WIFSIGNALED status.
1332
faf68db7
TT
13332010-09-01 Tom Tromey <tromey@redhat.com>
1334
1335 * symtab.h (lookup_type_symbol): Declare.
1336 * symtab.c (lookup_symbol_in_language_full): Rename from
1337 lookup_symbol_in_language. Add 'for_type' argument.
1338 (lookup_symbol_in_language): New function.
1339 (lookup_type_symbol): Likewise.
1340 (lookup_symbol_aux): Add 'for_type' argument.
1341 (match_symbol_aux): New function.
1342 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1343 (match_transparent_type): New function.
1344 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1345 * symfile.h (struct quick_symbol_functions)
1346 <pre_expand_symtabs_matching>: Remove.
1347 <expand_one_symtab_matching>: New field.
1348 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1349 (pre_expand_symtabs_matching_psymtabs): Remove.
1350 (psym_functions): Update.
1351 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1352 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1353 (dw2_pre_expand_symtabs_matching): Remove.
1354 (dw2_expand_one_symtab_matching): New function.
1355 (dwarf2_gdb_index_functions): Update.
1356
248c9dbc
JB
13572010-09-01 Joel Brobecker <brobecker@adacore.com>
1358
1359 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1360
f75d858b
MK
13612010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1362
1363 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1364 as a feature reported by -list-target-features.
1365
0482b03b
JB
13662010-09-01 Joel Brobecker <brobecker@adacore.com>
1367
1368 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1369 (powerpc-32.o, powerpc-32.c): New rules.
1370 (clean): Also remove powerpc-32.c.
1371 * regformats/rs6000/powerpc-32.dat: Generate.
1372
710e1a31
SW
13732010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1374
1375 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1376 psymbol_bcache_init.
1377 * psymtab.h (psymbol_bcache_init): New function prototype.
1378 (psymbol_bcache_free): New function prototype.
1379 (psymbol_bcache_get_bcache): New function prototype.
1380 * psymtab.c (psymbol_bcache_init): New function.
1381 (psymbol_bcache_free): New function.
1382 (psymbol_bcache_full): New function.
1383 (psymbol_bcache_get_bcache): New function.
1384 (add_psymbol_to_bcache): use psymbol_bcache_full.
1385 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1386 psymbol_bcache.
1387 * symmisc.c (print_symbol_bcache_statistics): Updated.
1388 (print_objfile_statistics): Updated.
1389 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1390 psymbol_cache.
1391 (free_objfile): Use psymbol_bcache_free.
1392
64382290
TT
13932010-08-31 Tom Tromey <tromey@redhat.com>
1394
1395 PR c++/11961:
1396 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1397 Don't set TYPE_NAME on the type.
1398
8bbed405
MS
13992010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1400
1401 * infrun.c (set_exec_direction_func): Error out if target does not
1402 support reverse execution.
1403
06253dd3
JK
14042010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1405
1406 Make linux_get_siginfo_type `type *' unique.
1407 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1408 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1409 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1410 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1411 (_initialize_linux_tdep): New.
1412
b8edc417
JK
14132010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1414
1415 Code cleanup.
1416 * defs.h (find_memory_region_ftype): New typedef.
1417 (exec_set_find_memory_regions): Use it.
1418 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1419 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1420 * gcore.c (objfile_find_memory_regions): Likewise.
1421 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1422 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1423 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1424 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1425 find_memory_region_ftype.
1426 (insert_dbx_link_bpt_in_region): Likewise.
1427 (iterate_over_mappings): Likewise. Drop the comment part about the
1428 function prototype.
1429 (find_memory_regions_callback): Use find_memory_region_ftype.
1430 (proc_find_memory_regions): Likewise.
1431 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1432 find_memory_region_ftype.
1433 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1434 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1435
cbd70537
SW
14362010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1437
1438 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1439 'static partial_symbol psymbol'.
1440 (psymbol_hash): New function.
1441 (psymbol_compare): New function.
1442 * bcache.c (hash_continue): New.
1443 (hash): Use hash_continue.
1444 * bcache.c: Add hash_function and compare_function
1445 pointers to bcache struct.
1446 (bcache_full): Use bcache->hash_function, and
1447 bcache->compare_function.
1448 (bcache_compare): New function.
1449 (bcache_xmalloc): Take hash_function and
1450 compare_function arguments and initialize the
1451 bcach's pointers.
1452 Updated comment.
1453 * objfiles.c (allocate_objfile): Updated.
1454 * symfile.c (reread_symbols): Updated.
1455 * python/py-type.c (typy_richcompare): Updated.
1456
03f17ccf
TT
14572010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1458 Tom Tromey <tromey@redhat.com>
1459
1460 PR python/11792:
1461 * python/py-value.c (valpy_get_dynamic_type): New function.
1462 (value_object_getset): Add "dynamic_type".
1463 (valpy_get_type): Fail on error.
1464
25b41d01
YQ
14652010-08-30 Yao Qi <yao@codesourcery.com>
1466
1467 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1468 (arm_linux_syscall_next_pc): New.
1469 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1470 (arm_linux_init_abi): Initialize syscall_next_pc.
1471 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1472 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1473 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1474 Declare arm_frame_is_thumb.
1475
5760d0ab
JK
14762010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 Code cleanup.
1479 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1480 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1481 code.
1482 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1483 calls of bpstat_alloc. Remove explicit bs chain termination.
1484
46a96992
JK
14852010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 Code cleanup.
1488 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1489 (my_waitpid): Likewise.
1490
36374493
DE
14912010-08-27 Doug Evans <dje@google.com>
1492
1493 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1494 as appropriate.
1495
8b93c54c
TT
14962010-08-27 Tom Tromey <tromey@redhat.com>
1497
1498 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1499 TYPE_FIELD_IGNORE_BITS.
1500
16be1145
DE
15012010-08-27 Doug Evans <dje@google.com>
1502
1503 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1504 the order they're defined in. munmap .debug_types buffer.
1505
e254ef6a
DE
15062010-08-26 Doug Evans <dje@google.com>
1507
1508 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1509 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1510 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1511 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1512 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1513 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1514 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1515 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1516 (write_psymtabs_to_index): Ditto.
1517
ae53ffa4
PA
15182010-08-26 Pedro Alves <pedro@codesourcery.com>
1519
1520 * NEWS: Mention libthread_db debugging with core files.
1521
c6da4cef
DE
15222010-08-26 Doug Evans <dje@google.com>
1523
1524 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1525 forward decl. Pass pst->dirname to dwarf_decode_lines.
1526 (psymtab_include_file_name): New function.
1527 (dwarf_decode_lines): Call it. Update comments.
1528
cd02d79d
PA
15292010-08-25 Pedro Alves <pedro@codesourcery.com>
1530
1531 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1532 compilation unit being different from target die's.
1533
673bfd45
DE
15342010-08-24 Doug Evans <dje@google.com>
1535
1536 PR symtab/11942
1537 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1538 debug_types_type_hash.
1539 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1540 All uses updated.
1541 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1542 appropriate type_hash table. All callers updated.
1543 (allocate_signatured_type_table): Renamed from
1544 allocate_signatured_type_hash_table. All callers updated.
1545 (create_signatured_type_table_from_index): Renamed from
1546 create_signatured_type_hash_from_index. All callers updated.
1547 (read_die_type): Add comment. Move actual reading to ...
1548 (read_die_type_1): ... here. New function.
1549 (follow_die_ref_or_sig): Tweak comment.
1550 (set_die_type): Rewrite to use appropriate choice of
1551 debug_info_type_hash or debug_types_type_hash.
1552 (get_die_type_at_offset): New function.
1553 (get_die_type): Call it.
1554
e8fd65ef
JK
15552010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1556
1557 * python/py-type.c (typy_richcompare): Initialize worklist.
1558
9779414d
DJ
15592010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1560 Kazu Hirata <kazu@codesourcery.com>
1561 Jonathan Larmour <jifl@eCosCentric.com>
1562
1563 * arm-tdep.c: Include features/arm-with-m.c.
1564 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1565 call this function.
1566 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1567 Check is_m after force-mode.
1568 (arm_gdbarch_init): Check the binary before the target description.
1569 Add check for M profile attribute. If we have an M-profile device,
1570 but no target register description, use arm-with-m. Recognize the
1571 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1572 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1573 * arm-tdep.h (XPSR_T): Define.
1574 (struct gdbarch_tdep): Add is_m member.
1575 * features/arm-m-profile.xml, features/arm-with-m.c,
1576 features/arm-with-m.xml: New files.
1577
9dc481d3
DE
15782010-08-23 Doug Evans <dje@google.com>
1579
1580 * dwarf2read.c (read_structure_type): Add comment.
1581 (read_enumeration_type): Add comment.
1582 (process_enumeration_scope): Move definition of some locals
1583 closer to their use.
1584 (read_namespace_type): Add comment.
e71ec853 1585 (set_die_type): Fix typo in comment.
9dc481d3 1586
f9ffd4bb
TT
15872010-08-23 Tom Tromey <tromey@redhat.com>
1588
1589 PR python/11145:
1590 * python/py-value.c: Include expression.h.
1591 (valpy_do_cast): New function.
1592 (valpy_cast): Use it.
1593 (valpy_dynamic_cast): New function.
1594 (valpy_reinterpret_cast): Likewise.
1595 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1596
96f73ba5
TT
15972010-08-23 Tom Tromey <tromey@redhat.com>
1598
1599 PR python/11391:
1600 * python/py-value.c (valpy_nonzero): Don't throw error for other
1601 Value types.
1602
d839c8a4
TT
16032010-08-23 Tom Tromey <tromey@redhat.com>
1604
1605 PR python/10676:
1606 * python/py-type.c: Include bcache.h, vec.h.
1607 (struct type_equality_entry): New.
1608 (compare_strings): New function.
1609 (check_types_equal): Likewise.
1610 (check_types_worklist): Likewise.
1611 (typy_richcompare): Likewise.
1612 (type_object_type): Set tp_richcompare field.
1613
05d0e1e7
TT
16142010-08-23 Tom Tromey <tromey@redhat.com>
1615
1616 PR python/10953:
1617 * python/py-type.c (typy_fields): Call check_typedef.
1618 (typy_template_argument): Add TRY_CATCH.
1619
702c2711
TT
16202010-08-23 Tom Tromey <tromey@redhat.com>
1621
1622 PR python/11915:
1623 * python/py-type.c (typy_array): New function.
1624 (type_object_methods): Add "array".
1625
4a532131
PA
16262010-08-20 Pedro Alves <pedro@codesourcery.com>
1627
1628 * python/python.c: Include "serial.h".
1629 (gdbpy_event_fds): Change type to `struct serial *' a array from
1630 int array.
1631 (gdbpy_run_events): Change parameters. Use serial_readchar in
1632 place of read.
1633 (gdbpy_post_event): Use serial_write in place of write.
1634 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1635 serial_async in place of add_file_handler.
1636
58f07bae
PA
16372010-08-20 Pedro Alves <pedro@codesourcery.com>
1638
1639 * serial.h (gdb_pipe, serial_pipe): Declare.
1640 * serial.c (serial_interface_lookup): Take a const char pointer.
1641 (serial_fdopen): Rename to ...
1642 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1643 Call the OPS' fdopen function if there is one.
1644 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1645 (serial_pipe): New.
1646 (struct serial_ops) <fdopen>: New field.
1647
1648 * ser-mingw.c (free_pipe_state):
1649 (free_pipe_state): Close output on non-pex pipes.
1650 (pipe_windows_fdopen): New.
1651 (gdb_pipe): New.
1652 (_initialize_ser_windows): Register pipe_windows_fdopen.
1653 * ser-go32.c (gdb_pipe): New.
1654 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1655 no state pointer.
1656 (pipe_ops): Delete.
1657 (gdb_pipe): New.
1658
3da10d80
KS
16592010-08-20 Keith Seitz <keiths@redhat.com>
1660
1661 PR symtab/11465:
889bf7c5 1662 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1663 (struct dwarf2_cu): Add vector method_list.
1664 (scan_partial_symbols): Count methods for union, class, structure,
1665 and interface types.
1666 (add_to_method_list): New function.
1667 (free_delayed_list): New function.
1668 (compute_delayed_physnames): New function.
1669 (process_full_comp_unit): Make a cleanup for the CU's delayed
1670 physname list, compute the delayed physnames, and free the
1671 the list.
1672 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1673 of the physname until after the CU is read.
1674
1675 * dwarf2read.c (read_structure_type): Check if the current
1676 DIE's type was already completed after dwarf2_full_name
1677 was called.
889bf7c5 1678
ca11e899
SS
16792010-08-19 Stan Shebs <stan@codesourcery.com>
1680
1681 * NEWS: Mention some additional changes.
1682
4d2dc20a
TT
16832010-08-19 Tom Tromey <tromey@redhat.com>
1684
1685 * Makefile.in (install-python): Add DESTDIR.
1686
d30f5e1f
DE
16872010-08-19 Doug Evans <dje@google.com>
1688
1689 PR exp/11926
1690 * parser-defs.h (parse_float, parse_c_float): Declare.
1691 * parse.c (parse_float, parse_c_float): New function.
1692 * c-exp.y (parse_number): Call parse_c_float.
1693 * objc-exp.y (parse_number): Ditto.
1694 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1695 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1696
2837d59e
JB
16972010-08-19 Joel Brobecker <brobecker@adacore.com>
1698
1699 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1700 the arguments in the correct order.
1701 * symtab.c (maybe_add_partial_symtab_filename): Declare
1702 the arguments in the correct order.
1703
35633fef
JK
17042010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1707 initialize it by null_frame_id, wrap its usage by get_frame_id,
1708 frame_id_p and frame_find_by_id.
1709
94f7449c
TT
17102010-08-18 Tom Tromey <tromey@redhat.com>
1711
1712 PR python/11900:
1713 * configure: Rebuild.
1714 * configure.ac: Add install-python to CONFIG_INSTALL.
1715 * Makefile.in (install-python): New.
1716
f3574227
DE
17172010-08-18 Doug Evans <dje@google.com>
1718
1719 * gdb_assert.h (gdb_assert_not_reached): New macro.
1720 (gdb_assert_fail): Fix typo in comment.
1721 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1722 gdb_assert (0).
1723 * darwin-nat.c (darwin_check_new_threads): Ditto.
1724 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1725 (munmap_section_buffer): Ditto.
1726 * m32c-tdep.c (make_types): Ditto.
1727 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1728 * macroexp.c (get_character_constant): Ditto.
1729 (get_string_literal): Ditto.
1730 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1731 (mep_pseudo_cr_index, mep_register_type): Ditto.
1732 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1733 (mep_get_insn, mep_analyze_prologue): Ditto.
1734 * objfiles.c (qsort_cmp): Ditto.
1735 * prologue-value.c (pv_is_identical): Ditto.
1736 * record.c (record_get_loc): Ditto.
1737 * value.c (value_static_field): Ditto.
1738 * xtensa-tdep.c (call0_track_op): Ditto.
1739
c92817ce
TT
17402010-08-18 Tom Tromey <tromey@redhat.com>
1741
1742 PR symtab/11919:
1743 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1744 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1745 name-copying lower. Document exception behavior.
1746 * completer.c (expression_completer): Catch exceptions from
1747 parse_field_expression.
1748
856d6f99
PA
17492010-08-18 Pedro Alves <pedro@codesourcery.com>
1750
1751 PR corefile/8210
1752
1753 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1754 workaround on core files.
1755 (try_thread_db_load_1): Don't try enabling thread event reporting
1756 on core files.
1757 (thread_db_load): Allow thread_db on core files.
1758 (attach_thread): Don't check thread signals on core files, nor try
1759 really attaching to the thread, nor enabling thread event event
1760 reporting.
1761 (thread_db_detach): Don't try disabing thread event reporting or
1762 removing thread event breakpoints when debugging a core file.
1763 (find_new_threads_callback): Don't try enabling thread event
1764 reporting on core files.
1765 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1766 debugging a core file.
1767 (thread_db_find_new_threads): Don't update thread
1768 cores (processors) when debugging a core (dump).
1769
261b8d08
PA
17702010-08-18 Pedro Alves <pedro@codesourcery.com>
1771
1772 PR corefile/8210
1773
1774 * corelow.c (add_to_thread_list): Don't use
1775 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1776 (get_core_register_section): Don't use
1777 gdbarch_core_reg_section_encodes_pid.
1778
1779 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1780 * gdbarch.h, gdbarch.c: Regenerate.
1781 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1782 gdbarch_core_reg_section_encodes_pid.
1783 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1784 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1785 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1786
f9b42018
YQ
17872010-08-18 Yao Qi <yao@codesourcery.com>
1788
1789 * MAINTAINERS : Add myself under Write After Approval.
1790
def98928
TT
17912010-08-17 Tom Tromey <tromey@redhat.com>
1792
1793 * NEWS: Mention template parameter support.
1794
0807b50c
PA
17952010-08-17 Pedro Alves <pedro@codesourcery.com>
1796
1797 PR breakpoints/11371
1798
1799 * breakpoint.c (decref_bp_location): Assert the reference count is
1800 sane.
1801
f431efe5
PA
18022010-08-17 Pedro Alves <pedro@codesourcery.com>
1803
1804 PR breakpoints/11371
1805
1806 * breakpoint.c (breakpoint_init_inferior): Decrement the
1807 location's reference count instead of deleting right away.
1808 (bpstat_free): Decrement the location's reference count. Make
1809 static.
1810 (bpstat_copy): Increment the location's reference count.
1811 (bpstat_find_breakpoint): Adjust.
1812 (bpstat_num): Adjust.
1813 (print_it_typical): Adjust. Use the breakpoint pointer in the
1814 bpstat instead of the location's owner.
1815 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1816 Adjust to record the location's owner in the bpstat.
1817 (watchpoint_check): Use the breakpoint pointer in the bpstat
1818 instead of the location's owner.
1819 (bpstat_check_breakpoint_conditions): Don't handle
1820 bp_watchpoint_scope here. Use the breakpoint pointer in the
1821 bpstat instead of the location's owner.
1822 (bpstat_stop_status): Defer inferior function calls to after
1823 building the bpstat list. Handle bp_watchpoint_scope here. Use
1824 the breakpoint pointer in the bpstat instead of the location's
1825 owner.
1826 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1827 the location's owner.
1828 (free_bp_location): Don't walk bpstats clearing locations.
1829 (incref_bp_location): New.
1830 (decref_bp_location): New.
1831 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1832 instead of the location's owner.
1833 (update_global_location_list): Clear the location's owner, and
1834 decrement the location's reference count instead of deleting it
1835 right away.
1836 (breakpoint_retire_moribund): Decrement the location's reference
1837 count instead of deleting it right away.
1838 (bpstat_remove_bp_location): Delete.
1839 (bpstat_remove_breakpoint): New.
1840 (bpstat_remove_bp_location_callback): Delete.
1841 (bpstat_remove_breakpoint_callback): New.
1842 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1843 clearing references to the breakpoint that is being deleted.
1844
1845 * breakpoint.h (struct bp_location) <refc>: New field.
1846 <owner>: Update comments.
1847 (bpstat_free): Delete declaration.
1848 (struct bpstats): Change the type of the breakpoint_at field to
1849 struct breakpoint point, from struct bp_location pointer. Add new
1850 field bp_location_at.
1851
14c0d4e1
TT
18522010-08-16 Tom Tromey <tromey@redhat.com>
1853
1854 * NEWS: Fix typo.
1855
b56df873
TT
18562010-08-16 Tom Tromey <tromey@redhat.com>
1857
1858 * NEWS: Mention watch -location.
1859
d63d0675
JK
18602010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1861
1862 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1863 EXP_STRING_REPARSE to EXP_STRING.
1864 (watch_command_1): Set also EXP_STRING_REPARSE.
1865 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1866 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1867 Update comment for exp_string.
1868
06a64a0b
TT
18692010-08-16 Tom Tromey <tromey@redhat.com>
1870
1871 * value.c (release_value): Clear 'next' pointer.
1872 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1873 (watch_command_wrapper): Update.
1874 (watch_maybe_just_location): New function.
1875 (watch_command): Update.
1876 (rwatch_command_wrapper): Update.
1877 (rwatch_command): Update.
1878 (awatch_command_wrapper): Update.
1879 (awatch_command): Update.
1880 (check_for_argument): New function.
1881 (_initialize_breakpoint): Update help text.
1882
f96b8fa0
UW
18832010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1884
1885 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1886 typedef'ed function types correctly.
1887
4eb54052
TT
18882010-08-13 Tom Tromey <tromey@redhat.com>
1889
1890 * python/python-internal.h (gdbpy_get_hook_function): Don't
1891 declare.
1892
44be957e
JK
18932010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1894
ba720883 1895 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
1896 static.
1897
76d8b686
KW
18982010-08-13 Ken Werner <ken.werner@de.ibm.com>
1899
1900 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1901 the format strings to be compatible with Python 2.4.
1902
8dedea02
VP
19032010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1904
1905 Easier and more stubborn MI memory read commands.
1906
1907 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1908 and data-write-memory-bytes.
1909 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1910 (mi_cmd_data_write_memory_bytes): New.
1911 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1912 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1913 New.
1914 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1915 * target.c (target_read_until_error): Remove.
1916 (read_whatever_is_readable, free_memory_read_result_vector)
1917 (read_memory_robust): New.
1918 * target.h (target_read_until_error): Remove.
1919 (struct memory_read_result, free_memory_read_result_vector)
1920 (read_memory_robust): New.
1921
1d9ec526
HZ
19222010-08-13 Hui Zhu <teawater@gmail.com>
1923
1924 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1925 (read_comp_unit): Initialize back_to.
1926
98bfdba5
PA
19272010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1928 Pedro Alves <pedro@codesourcery.com>
1929
1930 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1931 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1932 (struct partial_die_info) <has_template_arguments>: New field.
1933 <num_attrs>: Change type to unsigned char.
1934 <building_fullname>: New field.
1935 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1936 allocate a CU if we don't have one already. Add a cleanup for the
1937 CU.
1938 (partial_die_full_name): Handle template arguments not in
1939 DW_AT_name.
1940 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1941 (load_full_comp_unit): Only allocate a CU if we don't have one
1942 already.
1943 (do_ui_file_peek_last): New.
1944 (dwarf2_compute_name): Handle template parameters not in
1945 DW_AT_name.
1946 (read_comp_unit): Read and free abbrevs if not read yet.
1947 (load_partial_dies): Handle template arguments not in DW_AT_name.
1948 (find_partial_die): If we have a CU, but no a partial dies yet,
1949 also read in the CU.
1950 (dwarf2_const_value_attr): New, abstracted out from
1951 dwarf2_const_value.
1952 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1953 dwarf2_const_value_attr.
1954 (determine_prefix): Detect and break loops created by RCVT's debug
1955 info.
1956 (maybe_queue_comp_unit): Bail out early if reading partial
1957 symbols.
1958 (follow_die_offset): Load full CU if we have no dies.
1959 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1960 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1961
ca5c20b6 19622010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 1963 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
1964
1965 * python/python.c (gdbpy_run_events): New function.
1966 (gdbpy_post_event): Likewise.
1967 (gdbpy_initialize_events): Likewise.
1968 (_initialize_python): Call gdbpy_initialize_events.
1969
7346b668
KW
19702010-08-11 Ken Werner <ken.werner@de.ibm.com>
1971
1972 * gdb/valarith.c (vector_binop): New function.
1973 (scalar_binop): Likewise.
1974 (value_binop): Call scalar_binop or vector_binop depending on the types.
1975 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1976 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1977 to pointers.
1978 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1979
62183e15
TT
19802010-08-11 Brad Roberts <braddr@puremagic.com>
1981
1982 * d-lang.c (extract_identifiers): Handle multiple digits.
1983
39d7b0e2
JK
19842010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 Code cleanup.
1987 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1988 Rename to dummy_frame_unwind.
1989 (dummy_frame_unwind): Remove.
1990 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1991 * frame-unwind.c (frame_unwind_init): Use address of
1992 dummy_frame_unwind and inline_frame_unwind.
1993 * frame.c (create_sentinel_frame): Use address of
1994 sentinel_frame_unwind.
1995 * inline-frame.c (inline_frame_unwinder): Rename to
1996 inline_frame_unwind.
1997 (inline_frame_unwind): Remove.
1998 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1999 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2000 sentinel_frame_unwind.
2001 (sentinel_frame_unwind): Remove.
2002 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2003 struct.
2004
9f9a8002
JK
20052010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2006
2007 Code cleanup.
2008 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2009 and returned value. New comment from frame-unwind.h.
2010 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2011 Extend the comment.
2012 * frame.c (get_frame_id, frame_unwind_register_value)
2013 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2014 (get_frame_type, frame_unwind_arch): Do not use the return value of
2015 frame_unwind_find_by_frame.
2016
cb2e07a6 20172010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2018 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2019 Tom Tromey <tromey@redhat.com>
2020
2021 * python/python.c (gdbpy_solib_address): New function.
2022 (gdbpy_decode_line): Likewise.
2023
c29c521f
TT
20242010-08-10 Tom Tromey <tromey@redhat.com>
2025
2026 Revert gdb-add-index addition:
2027 * Makefile.in (install-only): Don't install gdb-add-index.
2028 * gdb-add-index.sh: Remove.
2029
0c012db1
KB
20302010-08-09 Kevin Buettner <kevinb@redhat.com>
2031
2032 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2033 `target_has_execution' check with `to_has_memory' check.
2034 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2035 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2036 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2037
db04efe6
KB
20382010-08-09 Kevin Buettner <kevinb@redhat.com>
2039
2040 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2041 (resume_siggnal, resume_step): Move these static globals...
2042 (struct sim_inferior_data): ...into this new struct.
2043 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2044 New static globals.
2045 (gdb_callback, callbacks_initialized): Move these globals to
2046 a point earlier in the file.
2047 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2048 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2049 (gdbsim_close_inferior, gdbsim_resume_inferior)
2050 (gdbsim_stop_inferior): New functions.
2051 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2052 New constants.
2053 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2054 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2055 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2056 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2057 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2058 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2059 new local variable `sim_data' in each of these functions. Use
2060 `sim_data' to reference former globals `program_loaded',
2061 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2062 `resume_step'.
2063 (gdbsim_open): Remove local variable `argv'. Put results of call
2064 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2065 make a cleanup for it. Free it though when a sim instance cannot
2066 be obtained.
2067 (gdbsim_close): Free sim_argv and null it out as appropriate.
2068 Close sim instances in all inferiors.
2069 (gdbsim_cntrl_c): Stop all inferiors.
2070 (gdbsim_wait):
2071 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2072
e37fd15a
SW
20732010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2074
2075 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2076 function after symbol construction is complete.
2077 Do the same for template symbol addition to template_symbols list.
2078
45c58896
SW
20792010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2080
2081 * symtab.c (symbol_get_demangled_name): Remove assertion and
2082 return NULL when language_specific.cplus_specific is not initialized.
2083 * stabsread.c (define_symbol): Set the name before calling
2084 cp_scan_for_anonymous_namespaces.
2085
33e5013e
SW
20862010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2087
2088 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2089 SYMBOL_SET_LANGUAGE.
2090 (symbol_init_language_specific): Renamed to symbol_set_language.
2091 * symtab.c (symbol_init_language_specific): Removed redundant check
2092 for language_cplus.
2093 Renamed to symbol_set_language.
2094 * stabsread.c (define_symbol): Updated.
2095 (read_enum_type): Updated
2096 * psymtab.c (add_psymbol_to_bcache): Updated.
2097 * minsyms.c (install_minimal_symbols): Updated.
2098 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2099 SYMBOL_LANGUAGE to set the language.
2100 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2101 * mdebugread.c (new_symbol): Ditto.
2102 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2103 * dwarf2read.c (new_symbol_full): Ditto.
2104 * jv-lang.c (add_class_symbol): Ditto.
2105
5da1313b
JK
21062010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2109 (make_cleanup_restore_page_info)
2110 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2111 * gdbcmd.h (execute_command_to_string): New declaration.
2112 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2113 (make_cleanup_restore_ui_file): Move to utils.c
2114 (execute_gdb_command) <to_string>: Move ...
2115 * top.c (execute_command_to_string): ... here. Call
2116 set_batch_flag_and_make_cleanup_restore_page_info.
2117 * utils.c (make_cleanup_restore_integer): New source file blank line.
2118 (make_cleanup_restore_uinteger): New.
2119 (struct restore_ui_file_closure, do_restore_ui_file)
2120 (make_cleanup_restore_ui_file): Move here from python/python.c.
2121 (init_page_info) <batch_flag>
2122 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2123 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2124
c820c52a
PA
21252010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2126
2127 * thread.c (add_thread_silent): Use null_ptid instead of
2128 minus_one_ptid while getting rid of stale inferior_ptid.
2129
8da614df
CV
21302010-08-06 Corinna Vinschen <vinschen@redhat.com>
2131
2132 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2133 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2134 (decode_frame_entry_1): Remove redundant setting of
2135 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2136 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2137 on examined frame section. Add comment to explain why.
2138 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2139 comment to explain usage.
2140 * gdbarch.c: Regenerate.
2141 * gdbarch.h: Regenerate.
2142
2143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2144
e4195b40
JK
21452010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 Code cleanup.
2148 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2149 a more inner block.
2150
a3217aa0
PA
21512010-08-05 Pedro Alves <pedro@codesourcery.com>
2152
2153 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2154 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2155 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2156 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2157 linux-tdep.o to gdb_target_obs.
2158
e2b4a699 21592010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2160
2161 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2162 argument.
889bf7c5 2163
50e8a0d5
HZ
21642010-08-05 Hui Zhu <teawater@gmail.com>
2165
2166 * mips-linux-tdep.c(regset.h): New include.
2167 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2168 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2169 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2170 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2171 mips_linux_regset_from_core_section): New functions.
2172 (fetch_core_registers, regset_core_fns): Deleted.
2173 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2174 Deleted regset_core_fns.
2175 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2176 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2177 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2178 and fpregset64.
2179
70728992
PA
21802010-08-04 Pedro Alves <pedro@codesourcery.com>
2181
2182 * s390-tdep.c: Include linux-tdep.h.
2183 (s390_gdbarch_init): Call linux_init_abi.
2184
a5ee0f0c
PA
21852010-08-04 Pedro Alves <pedro@codesourcery.com>
2186
2187 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2188 instead of printing "Thread" here.
2189 * linux-tdep.c: Include inferior.h.
2190 (linux_core_pid_to_str): New.
2191 (linux_init_abi): New.
2192 * linux-tdep.h (linux_init_abi): Declare.
2193 * alpha-linux-tdep.c: Include linux-tdep.h.
2194 (alpha_linux_init_abi): Call linux_init_abi.
2195 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2196 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2197 * frv-linux-tdep.c: Include linux-tdep.h
2198 (frv_linux_init_abi): Call linux_init_abi.
2199 * hppa-linux-tdep.c: Include linux-tdep.h
2200 (hppa_linux_init_abi): Call linux_init_abi.
2201 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2202 * ia64-linux-tdep.c: Include linux-tdep.h.
2203 (ia64_linux_init_abi): Call linux_init_abi.
2204 * m32r-linux-tdep.c: Include linux-tdep.h.
2205 (m32r_linux_init_abi): Call linux_init_abi.
2206 * m68klinux-tdep.c: Include linux-tdep.h.
2207 (m68k_linux_init_abi): Call linux_init_abi.
2208 * microblaze-linux-tdep.c: Include linux-tdep.h.
2209 (microblaze_linux_init_abi): Call linux_init_abi.
2210 * mips-linux-tdep.c: Include linux-tdep.h.
2211 (mips_linux_init_abi): Call linux_init_abi.
2212 * mn10300-linux-tdep.c: Include linux-tdep.h.
2213 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2214 'gdbinfo' parameter to 'info'.
2215 * ppc-linux-tdep.c: Include linux-tdep.h.
2216 (ppc_linux_init_abi): Call linux_init_abi.
2217 * sh-linux-tdep.c: Include linux-tdep.h.
2218 (sh_linux_init_abi): Call linux_init_abi.
2219 * sparc-linux-tdep.c: Include linux-tdep.h.
2220 (sparc32_linux_init_abi): Call linux_init_abi.
2221 * sparc64-linux-tdep.c: Include linux-tdep.h.
2222 (sparc64_linux_init_abi): Call linux_init_abi.
2223 * xtensa-linux-tdep.c: Include linux-tdep.h.
2224 (xtensa_linux_init_abi): Call linux_init_abi.
2225 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2226 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2227 callback.
2228
bc043ef3
DE
22292010-08-03 Doug Evans <dje@google.com>
2230
2231 * breakpoint.c (bpdisp_text): Constify bpdisps.
2232 * solib-svr4.c (solib_break_names): Constify.
2233 (bkpt_names, main_name_list): Constify.
2234 (match_main): Constify soname arg.
63cdd227
DE
2235 (bfd_lookup_symbol): Remove unnecessary forward decl.
2236 Constify symname arg.
bc043ef3
DE
2237 (enable_break): Constify bkpt_namep.
2238 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2239 (symtab_symbol_info): Constify classnames.
2240
585d1eb8
PM
22412010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2242
2243 * NEWS: Document Python value inferior function calls.
2244
2de00c64
DE
22452010-08-02 Doug Evans <dje@google.com>
2246
2247 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2248
02d868e8
PP
22492010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2250
2251 * linux-thread-db.c (libthread_db_debug): New variable.
2252 (thread_db_find_new_threads_silently): Control verbosity with it.
2253 (try_thread_db_load_1, try_thread_db_load): Likewise.
2254 (find_new_threads_once): Likewise.
2255 (_initialize_thread_db): Set/show it.
2256
a19cae16
JK
22572010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2258
2259 * common/signals.c (signals): Move the content to signals.def.
2260 Include it. Remove the INDENT comments.
2261
c2bbed2a
TT
22622010-07-30 Tom Tromey <tromey@redhat.com>
2263
2264 * Makefile.in (install-only): Install gdb-add-index.
2265 * gdb-add-index.sh: New file.
2266
f32b2f09
CR
22672010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2268
2269 * MAINTAINERS: Add myself for write after approval privileges.
2270
1276c759
JK
22712010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2272
2273 * symfile.c (addr_section_name): New function.
2274 (addrs_section_compar): Use it.
2275 (addr_info_make_relative): Use it. Move variable sect_name into a more
2276 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2277
420697bb
TT
22782010-07-30 Tom Tromey <tromey@redhat.com>
2279
2280 * configure: Rebuild.
2281 * configure.ac: Add missing case for Python 2.7.
2282
d0d99561
DD
22832010-07-29 DJ Delorie <dj@redhat.com>
2284
2285 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2286 conditions.
2287
0b29bdde
PA
22882010-07-29 Pedro Alves <pedro@codesourcery.com>
2289
2290 * PROBLEMS: Remove mention of all problems.
2291
110ed339
PA
22922010-07-28 Pedro Alves <pedro@codesourcery.com>
2293
2294 PR build/11848
2295 * configure.ac: Check for wresize.
2296 * configure, config.in: Regenerate.
2297 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2298 with HAVE_WRESIZE.
2299
326fd672
TT
23002010-07-28 Tom Tromey <tromey@redhat.com>
2301
2302 PR python/11060:
2303 * python/py-type.c (typy_legacy_template_argument): New function,
2304 extracted from typy_template_argument.
2305 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2306 value when needed.
2307
4ac8c4da
TT
23082010-07-28 Oleg Nesterov <oleg@redhat.com>
2309
2310 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2311
053315c2
TT
23122010-07-27 Tom Tromey <tromey@redhat.com>
2313
2314 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2315
3ce3b1ba
PA
23162010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2317
2318 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2319 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2320
2bb4f988
TT
23212010-07-28 Tom Tromey <tromey@redhat.com>
2322
2323 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2324
74232302
JB
23252010-07-28 Joel Brobecker <brobecker@adacore.com>
2326
2327 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2328 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2329
385d04dc
JB
23302010-07-28 Joel Brobecker <brobecker@adacore.com>
2331
2332 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2333 down, just before the block that parse the breakpoint addr_string.
2334
34eaf542
TT
23352010-07-28 Tom Tromey <tromey@redhat.com>
2336
2337 PR c++/9946:
2338 * symfile.c (reread_symbols): Clear template_symbols.
2339 * symtab.h (struct symbol) <is_cplus_template_function>: New
2340 field.
2341 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2342 (struct template_symbol): New.
2343 * symtab.c (lookup_symbol_aux_local): Use
2344 cp_lookup_symbol_imports_or_template.
2345 * objfiles.h (struct objfile) <template_symbols>: New field.
2346 * objfiles.c (relocate_one_symbol): New function.
2347 (objfile_relocate1): Use it. Relocate isolated symbols.
2348 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2349 template_arguments>: New fields.
2350 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2351 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2352 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2353 (lookup_typename): Update.
2354 * gdbtypes.c (lookup_typename): Constify "block" argument.
2355 * dwarf2read.c: Include vec.h.
2356 (symbolp): New typedef.
2357 (read_func_scope): Read template arguments. Allocate a
2358 template_symbol when needed.
2359 (read_structure_type): Read template arguments.
2360 (new_symbol_full): New function, from new_symbol. Handle
2361 DW_TAG_template_type_param and DW_TAG_template_value_param.
2362 (new_symbol): Rewrite as wrapper.
2363 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2364 * cp-namespace.c: Include language.h.
2365 (search_symbol_list): New function.
2366 (cp_lookup_symbol_imports_or_template): Likewise.
2367
d27b3be4
PA
23682010-07-28 Balazs Kezes <rlblaster@gmail.com>
2369
2370 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2371 the command window to the new size and position.
2372
0036e657
PA
23732010-07-28 Balazs Kezes <rlblaster@gmail.com>
2374
a782f43e 2375 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2376 coordinates.
2377
36900355
PA
23782010-07-28 Balazs Kezes <rlblaster@gmail.com>
2379
a782f43e 2380 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2381 after a detecting a resize.
a782f43e 2382 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2383 call.
2384
db5e03ae
PA
23852010-07-28 Pedro Alves <pedro@codesourcery.com>
2386
2387 * configure.ac: Check for resize_term.
2388 * configure, config.in: Regenerate.
2389
b71fff68
JB
23902010-07-27 Joel Brobecker <brobecker@adacore.com>
2391
2392 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2393
9b1c24c8
PA
23942010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2395
2396 * dwarf2read.c (read_string): Rename to ...
2397 (read_direct_string): ... this.
2398 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2399 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2400
00390b84
JK
24012010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2402
2403 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2404 (count_events_callback, select_event_lwp_callback)
2405 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2406
26ab7092
JK
24072010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2408
2409 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2410 (_initialize_ia64_linux_nat): Install it.
2411 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2412 (linux_nat_set_status_is_event): New.
2413 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2414 cancel_breakpoints_callback, linux_nat_filter_event)
2415 (linux_nat_wait_1): Use linux_nat_status_is_event.
2416 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2417
283e6a52
TT
24182010-07-27 Tom Tromey <tromey@redhat.com>
2419
2420 * NEWS: Mention labels, .gdb_index.
2421
53a71c06
CR
24222010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2423
2424 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2425 "start,+length" form of arguments.
53a71c06
CR
2426 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2427 since GDB 7.1"; and merge two separated paragraphs of disassemble
2428 description in "Changes in GDB 7.0".
2429
c63a1f86
JK
24302010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2433 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2434 (fputs_maybe_filtered): Do not do filtering also on
2435 ! INPUT_FROM_TERMINAL_P.
2436
abebb8b0
JB
24372010-07-27 Joel Brobecker <brobecker@adacore.com>
2438
2439 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2440 in warning message.
2441
5374244e
PM
24422010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2443
2444 * python/py-value.c (valpy_call): New Function.
2445
ac0b195c
KW
24462010-07-27 Ken Werner <ken.werner@de.ibm.com>
2447
889bf7c5 2448 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2449 types_list_elements variables.
2450
09d8bd00
TT
24512010-07-26 Tom Tromey <tromey@redhat.com>
2452
2453 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2454 TLS with DW_OP_const4u or DW_OP_const8u.
2455
9fe70b4f
TJB
24562010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2457
2458 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2459 VSX registers contents.
2460
caac4577
JG
24612010-07-26 Jerome Guitton <guitton@adacore.com>
2462
2463 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2464 its adress is null. Add comment to explain why.
2465 (new_symbol): Ditto.
2466
857d11d0
JK
24672010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2468
2469 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2470 the host signal first.
2471
1fd400ff
TT
24722010-07-23 Tom Tromey <tromey@redhat.com>
2473
2474 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2475 type_comp_units>: New fields.
2476 (dw2_get_cu): New function.
2477 (create_cus_from_index): Remove unused argument.
2478 (create_signatured_type_hash_from_index): New function.
2479 (create_addrmap_from_index): Update.
2480 (dwarf2_read_index): Handle version 2.
2481 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2482 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2483 (dw2_print_stats, dw2_expand_all_symtabs)
2484 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2485 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2486 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2487 (allocate_signatured_type_hash_table): New function.
2488 (add_signatured_type_cu_to_list): Likewise.
2489 (create_debug_types_hash_table): Use them. Set type_comp_units.
2490 (read_signatured_type): Ensure section data is available.
2491 (add_address_entry): Don't record empty ranges.
2492 (struct signatured_type_index_data): New.
2493 (write_one_signatured_type): New function.
2494 (write_psymtabs_to_index): Write type CUs.
2495 (save_gdb_index_command): Update comment.
2496 (process_type_comp_unit): Move inititalization of
2497 from_debug_types...
2498 (create_debug_types_hash_table): ... here.
2499
3a674486
JK
25002010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2501
2502 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2503 cleanup and generating of gdb script to it.
2504 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2505 and terminal size. Convert $tmpfile to a series of -ex-es.
2506
54ec275a
KS
25072010-07-23 Keith Seitz <keiths@redhat.com>
2508
2509 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2510 hook for STATIC_BLOCK types, too.
2511
8fd447e6
KS
25122010-07-23 Keith Seitz <keiths@redhat.com>
2513
2514 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2515 and vector definition.
2516
25b72dde
JK
25172010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2520
96d19272
JK
25212010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2522
2523 * dwarf2read.c: Include completer.h.
2524 (save_gdb_index_command): Use matching usage command name.
2525 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2526 Set filename_completer for it.
2527
ca1f3406
TT
25282010-07-22 Tom Tromey <tromey@redhat.com>
2529
2530 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2531 type signature's per-CU data.
2532
ba25b921
PA
25332010-07-22 Pedro Alves <pedro@codesourcery.com>
2534
2535 * NEWS: Mention target reported shared libraries support by
2536 default.
2537
23bd0f7c
PA
25382010-07-21 Pedro Alves <pedro@codesourcery.com>
2539
2540 PR symtab/11827
2541
2542 Revert:
2543 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2544 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2545 and DW_TAG_volatile_type.
2546 (new_symbol): Likewise.
2547
883df6dd
SW
25482010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2549
2550 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2551 function symbols before overload resolution.
2552
269b11a2
PA
25532010-07-21 Pedro Alves <pedro@codesourcery.com>
2554
2555 * breakpoint.c (bptype_string): New, abstracted out from
2556 print_one_breakpoint_location.
2557 (print_one_breakpoint_location): Adjust.
2558 (breakpoint_1): Adjust the type column width dynamically.
2559
569b05a5
JK
25602010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2561
2562 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2563 a gdb_assert call, new comment.
2564
ad34eb2f
JK
25652010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2566
2567 * linux-nat.c (linux_handle_extended_wait): Handle case when
2568 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2569
33355866
JK
25702010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2571
2572 Code cleanup.
2573 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2574 linux_nat_wait_1. Use always LP->STATUS afterwards.
2575
26590820
HZ
25762010-07-20 Hui Zhu <teawater@gmail.com>
2577
2578 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2579 (inf_ptrace_attach): Ditto.
2580
c0edd9ed
JK
25812010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 Make core files the process_stratum.
2584 * corefile.c (core_target): New variable.
2585 (core_file_command): Remove variable t, use core_target.
2586 * corelow.c (core_ops): Make it static.
2587 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2588 * defs.h (make_cleanup_unpush_target): New prototype.
2589 * gdbarch.h: Regenerate.
2590 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2591 * gdbcore.h (core_target): New declaration.
2592 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2593 variables ops_already_pushed and back_to. Use push_target,
2594 make_cleanup_unpush_target and discard_cleanups calls.
2595 * record.c (record_open): Replace core_stratum by a core_bfd check.
2596 * target.c (target_is_pushed): New function.
2597 (find_core_target): Remove.
2598 * target.h (enum strata) <core_stratum>: Remove.
2599 (target_is_pushed): New declaration.
2600 (find_core_target): Remove declaration.
2601 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2602 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2603
f02253f1
HZ
26042010-07-19 Hui Zhu <teawater@gmail.com>
2605
2606 * breakpoint.c (single_step_breakpoints_inserted): New
2607 function.
2608 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2609 * infrun.c (maybe_software_singlestep): Add check code.
2610 * record.c (record_resume): Add code for software single step.
2611 (record_wait): Ditto.
2612
78768c4a
JK
26132010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2616 a more inner block. Remove its unused declaration initializer.
2617
431e49aa
TJB
26182010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2619
2620 * NEWS: Mention support for the new ptrace interface and hardware
2621 accelerated watchpoint conditions on powerpc-linux.
2622
bd91e7ae
OS
26232010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2624
2625 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2626 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2627 and host_address_to_string() and %s for pointers.
2628 (debug_to_remove_breakpoint): Likewise.
2629 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2630 (debug_to_can_accel_watchpoint_condition): Likewise.
2631 (debug_to_stopped_data_address): Likewise.
2632 (debug_to_watchpoint_addr_within_range): Likewise.
2633 (debug_to_insert_hw_breakpoint): Likewise.
2634 (debug_to_remove_hw_breakpoint): Likewise.
2635 (debug_to_insert_watchpoint): Likewise.
2636 (debug_to_remove_watchpoint): Likewise.
2637
29df156d
SW
26382010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2639
2640 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2641 argument.
2642 (cplus_specific): New struct.
2643 * symtab.c (symbol_set_demangled_name): Updated.
2644 Use cplus_specific for cplus symbols.
2645 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2646 struct for cplus symbols.
2647 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2648 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2649 * symtab.c (symbol_init_cplus_specific): New function.
2650
b250c185
SW
26512010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2652
2653 * symtab.h (symbol_set_demangled_name): New function.
2654 (symbol_get_demangled_name): New function.
2655 * symtab.c (symbol_set_demangled_name): New function.
2656 (symbol_get_demangled_name): New function.
2657 (symbol_init_language_specific): Use demangled_name setter and getter.
2658 (symbol_set_names): Ditto.
2659 (symbol_natural_name): Ditto.
2660 (symbol_demangled_name): Ditto.
2661 * dwarf2read.c (new_symbol): Ditto.
2662
afa16725
SW
26632010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2664
2665 * symtab.h: Renamed cplus_specific to mangled_lang.
2666 * symtab.c (symbol_init_language_specific): Updated.
2667 (symbol_set_names): Updated.
2668 (symbol_natural_name): Updated.
2669 (symbol_demangled_name): Updated.
2670 * ada-lang.c (ada_decode_symbol): Updated.
2671 * dwarf2read.c (new_symbol): Updated.
2672
3cbaedff
KW
26732010-07-14 Ken Werner <ken.werner@de.ibm.com>
2674
2675 * valops.c (value_assign): Do not call to value_coerce_to_target.
2676 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2677
c932f1be
KW
26782010-07-14 Ken Werner <ken.werner@de.ibm.com>
2679
2680 * MAINTAINERS: Add myself for write after approval privileges.
2681
91158a56
TT
26822010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2683
2684 * c-valprint.c (c_val_print): Add embedded_offset to address in
2685 call to val_print_array_elements.
2686
b3b272e1
TT
26872010-07-13 Tom Tromey <tromey@redhat.com>
2688
2689 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2690
bb3fa9d0
TT
26912010-07-13 Tom Tromey <tromey@redhat.com>
2692
2693 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2694 objfile.
2695
dd786858
TT
26962010-07-13 Tom Tromey <tromey@redhat.com>
2697
2698 * symfile.c (set_initial_language): Update.
2699 (deduce_language_from_filename): Argument type now const.
2700 * symtab.h (find_main_filename): Update.
2701 (deduce_language_from_filename): Update.
2702 * symtab.c (find_main_filename): Make result const.
2703 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2704 * psymtab.c (find_symbol_file_from_partial): Change return type.
2705 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2706 Make result const.
2707
9291a0cd
TT
27082010-07-13 Tom Tromey <tromey@redhat.com>
2709
2710 * breakpoint.c (save_cmdlist): No longer static.
2711 * gdbcmd.h (save_cmdlist): Declare.
2712 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2713 OBJF_READNOW on objfile if readnow_symbol_files.
2714 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2715 (elf_sym_fns_gdb_index): New global.
2716 * dwarf2read.c: Include exceptions.h.
2717 (offset_type): New.
2718 (struct mapped_index): New.
2719 (dwarf2_per_cu_data_ptr): New typedef.
2720 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2721 New fields.
2722 (GDB_INDEX_SECTION): New define.
2723 (struct dwarf2_per_cu_quick_data): New.
2724 (struct dwarf2_per_cu_data) <objfile>: New field.
2725 <psymtab>: Removed.
2726 <v>: New field.
2727 (byte_swap): New function.
2728 (MAYBE_SWAP): New macro.
2729 (INDEX_SUFFIX): New macro.
2730 (dw2_do_instantiate_symtab): New function.
2731 (dw2_instantiate_symtab): Likewise.
2732 (create_cus_from_index): Likewise.
2733 (create_addrmap_from_index): Likewise.
2734 (mapped_index_string_hash): Likewise.
2735 (find_slot_in_mapped_hash): Likewise.
2736 (dwarf2_read_index): Likewise.
2737 (dw2_setup): Likewise.
2738 (dw2_require_line_header): Likewise.
2739 (dw2_require_full_path): Likewise.
2740 (dw2_find_last_source_symtab): Likewise.
2741 (dw2_forget_cached_source_info): Likewise.
2742 (dw2_lookup_symtab): Likewise.
2743 (dw2_lookup_symbol): Likewise.
2744 (dw2_do_expand_symtabs_matching): Likewise.
2745 (dw2_pre_expand_symtabs_matching): Likewise.
2746 (dw2_print_stats): Likewise.
2747 (dw2_dump): Likewise.
2748 (dw2_relocate): Likewise.
2749 (dw2_expand_symtabs_for_function): Likewise.
2750 (dw2_expand_all_symtabs): Likewise.
2751 (dw2_expand_symtabs_with_filename): Likewise.
2752 (dw2_find_symbol_file): Likewise.
2753 (dw2_map_ada_symtabs): Likewise.
2754 (dw2_expand_symtabs_matching): Likewise.
2755 (dw2_find_pc_sect_symtab): Likewise.
2756 (dw2_map_symbol_names): Likewise.
2757 (dw2_map_symbol_filenames): Likewise.
2758 (dw2_has_symbols): Likewise.
2759 (dwarf2_gdb_index_functions): New global.
2760 (dwarf2_initialize_objfile): New function.
2761 (process_psymtab_comp_unit): Update.
2762 (add_partial_subprogram): Likewise.
2763 (dwarf2_psymtab_to_symtab): Likewise.
2764 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2765 (process_full_comp_unit): Update.
2766 (find_file_and_directory): New function.
2767 (read_file_scope): Use find_file_and_directory.
2768 (dwarf2_per_cu_objfile): Update.
2769 (dwarf2_per_cu_addr_size): Update.
2770 (dwarf2_per_cu_offset_size): Update.
2771 (dwarf2_free_objfile): Free the index, if needed.
2772 (dwarf2_per_objfile_free): Unmap the index, if needed.
2773 (struct strtab_entry): New.
2774 (hash_strtab_entry): New function.
2775 (eq_strtab_entry): Likewise.
2776 (create_strtab): Likewise.
2777 (add_string): Likewise.
2778 (struct symtab_index_entry): New.
2779 (struct mapped_symtab): New.
2780 (hash_symtab_entry): New function.
2781 (eq_symtab_entry): Likewise.
2782 (delete_symtab_entry): Likewise.
2783 (create_index_table): Likewise.
2784 (create_mapped_symtab): Likewise.
2785 (cleanup_mapped_symtab): Likewise.
2786 (find_slot): Likewise.
2787 (hash_expand): Likewise.
2788 (add_index_entry): Likewise.
2789 (add_indices_to_cpool): Likewise.
2790 (write_hash_table): Likewise.
2791 (add_address_entry): Likewise.
2792 (write_psymbols): Likewise.
2793 (write_obstack): Likewise.
2794 (unlink_if_set): Likewise.
2795 (write_psymtabs_to_index): Likewise.
2796 (save_gdb_index_command): Likewise.
2797 (_initialize_dwarf2_read): Install "save gdb-index"
2798 command.
2799 (create_all_comp_units): Initialize 'objfile' field of CU.
2800 (dwarf2_locate_sections): Check for .gdb_index.
2801 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2802 * symfile.h (dwarf2_initialize_objfile): Declare.
2803
58b6ab13
TT
28042010-07-13 Tom Tromey <tromey@redhat.com>
2805
2806 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2807 (basic_lookup_transparent_type): Likewise.
2808 * symfile.h (struct quick_symbol_functions)
2809 <pre_expand_symtabs_matching>: New field.
2810 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2811 (psym_functions): Update.
2812
0f5238ed
TT
28132010-07-13 Tom Tromey <tromey@redhat.com>
2814
2815 PR breakpoints/8357:
2816 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2817 * linespec.c (decode_line_1): Update comment. Call decode_label.
2818 (decode_label): New function.
2819 (symbol_found): Handle LOC_LABEL.
2820 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2821 domain. Call add_symbol_to_list.
2822
9aa1f1e3
TT
28232010-07-13 Tom Tromey <tromey@redhat.com>
2824
2825 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2826 * dwarf2loc.c (find_location_expression): Use
2827 dwarf2_per_cu_text_offset.
2828 (dwarf2_evaluate_loc_desc): Likewise.
2829 (dwarf2_loc_desc_needs_frame): Likewise.
2830 (compile_dwarf_to_ax): Likewise.
2831 (loclist_describe_location): Likewise.
2832 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2833 (dwarf2_per_cu_objfile): Update comment.
2834
953ac07e
JK
28352010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2836
2837 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2838 * p-lang.c (pascal_printstr): Likewise.
2839
f04e4012
TT
28402010-07-09 Tom Tromey <tromey@redhat.com>
2841
2842 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2843 'hint' if it is NULL.
2844
f4dfd9c0
HZ
28452010-07-09 Hui Zhu <teawater@gmail.com>
2846
2847 * source.c (print_source_lines_base): Add check for noprint.
2848
7e6e39e5
JB
28492010-07-08 Joel Brobecker <brobecker@adacore.com>
2850
2851 * python/python-config.py: Resync with Python 2.7 version of this
2852 script.
2853
76b8507d
JB
28542010-07-08 Joel Brobecker <brobecker@adacore.com>
2855
2856 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2857
797054e6
JB
28582010-07-07 Joel Brobecker <brobecker@adacore.com>
2859
2860 * NEWS: Create a new section for the next release branch.
2861 Rename the section of the current branch, now that it has
2862 been cut.
2863
c80befee 28642010-07-07 Joel Brobecker <brobecker@adacore.com>
2865
2866 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2867 * version.in: Bump version to 7.2.50.20100707-cvs.
2868
ac56253d
TT
28692010-07-07 Tom Tromey <tromey@redhat.com>
2870
2871 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2872 LOC_COMPUTED symbol.
2873 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2874 (dwarf2_loc_desc_needs_frame): Likewise.
2875 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2876 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2877 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2878 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2879 'offset' argument.
2880 (struct dwarf2_frame_cache) <text_offset>: New field.
2881 (dwarf2_frame_cache): Set new field.
2882 (dwarf2_frame_prev_register): Update.
2883 (dwarf2_frame_sniffer): Update.
2884 (dwarf2_frame_base_sniffer): Update.
2885 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2886
0cf6dd15
TJB
28872010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2888 Thiago Jung Bauermann <bauerman@br.ibm.com>
2889
2890 Support for hw accelerated condition watchpoints in booke powerpc.
2891
2892 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2893 and move to eval.c. Change callers.
2894 (insert_bp_location): Pass watchpoint condition in
2895 target_insert_watchpoint.
2896 (remove_breakpoint_1) Pass watchpoint condition in
2897 target_remove_watchpoint.
2898 (watchpoint_locations_match): Call
2899 target_can_accel_watchpoint_condition.
2900 * eval.c: Include wrapper.h.
2901 (fetch_subexp_value): Moved from breakpoint.c.
2902 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2903 Formatting fix.
2904 (can_use_watchpoint_cond_accel): New function.
2905 (calculate_dvc): Likewise.
2906 (num_memory_accesses): Likewise.
2907 (check_condition): Likewise.
2908 (ppc_linux_can_accel_watchpoint_condition): Likewise
2909 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2910 check_condition and calculate_dvc.
2911 (ppc_linux_remove_watchpoint): Likewise.
2912 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2913 ppc_linux_can_accel_watchpoint_condition
2914 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2915 condition.
2916 (debug_to_remove_watchpoint): Likewise.
2917 (debug_to_can_accel_watchpoint_condition): New function.
2918 (update_current_target): Set to_can_accel_watchpoint_condition.
2919 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2920 * target.h: Add opaque declaration for struct expression.
2921 (struct target_ops) <to_insert_watchpoint>,
2922 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2923 <to_can_accel_watchpoint_condition>: New member.
2924 condition. Update all callers and implementations.
2925 (target_can_accel_watchpoint_condition): New macro.
2926 * value.c (free_value_chain): New function.
2927 * value.h (fetch_subexp_value): New prototype.
2928 (free_value_chain): Likewise.
2929
2f2241f1
UW
29302010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2931
2932 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2933 from gdbarch_core_regset_sections also for .reg if present.
2934
2935 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2936 section size for .reg.
2937 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2938 (ppc_linux_vmx_regset_sections): Likewise.
2939 (ppc_linux_fp_regset_sections): Likewise.
2940 (ppc64_linux_vsx_regset_sections): New variable.
2941 (ppc64_linux_vmx_regset_sections): Likewise.
2942 (ppc64_linux_fp_regset_sections): Likewise.
2943 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2944 for current word size.
2945
1fd7cdc2
JB
29462010-07-06 Joel Brobecker <brobecker@adacore.com>
2947
2948 * server.c (myresume): Make static.
2949
11763c18
TT
29502010-07-06 Tom Tromey <tromey@redhat.com>
2951
2952 * configure, config.in: Rebuild.
2953 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2954 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2955
a6cc4789
AS
29562010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2957
2958 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2959 "clear".
2960
f9e9243a
UW
29612010-07-06 Ken Werner <ken.werner@de.ibm.com>
2962
2963 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2964 * gdbtypes.c (floatformats_ieee_half): New variable.
2965 * doublest.c (floatformat_from_length): Set format to
2966 gdbarch_half_format if length matches.
2967 * gdbarch.sh (half_bit): New architecture method.
2968 (half_format): Likewise.
2969 * gdbarch.h: Regenerate.
2970 * gdbarch.c: Likewise.
2971
4e5799b6
JK
29722010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2973 Joel Brobecker <brobecker@adacore.com>
2974
2975 Fix re-run of PIE executable, PR shlibs/11776.
2976 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2977 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2978
86e4bafc
JK
29792010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2980 Joel Brobecker <brobecker@adacore.com>
2981
2982 * auxv.c (memory_xfer_auxv): Update attach comment.
2983 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2984 svr4_relocate_main_executable.
2985 (svr4_solib_create_inferior_hook): Make the call to
2986 svr4_relocate_main_executable unconditional.
2987
3cd07d20
JK
29882010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2989 Joel Brobecker <brobecker@adacore.com>
2990
2991 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2992
0a1e94c7
JK
29932010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2994 Joel Brobecker <brobecker@adacore.com>
2995
2996 Fix attaching to PIEs prelinked on the disk after the process was
2997 started.
2998 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2999 Verify it against bfd_get_arch_size. Try to match arbitrary
3000 displacement for the phdrs comparison.
3001
5387647f
TT
30022010-07-02 Tom Tromey <tromey@redhat.com>
3003
3004 PR exp/11780:
3005 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3006 value as optimized-out.
3007
38b6c3b3
TJB
30082010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3009 Thiago Jung Bauermann <bauerman@br.ibm.com>
3010
3011 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3012 represent?" question in comment. Change comment to a proper sentence.
3013
a17ac5b0
TT
30142010-07-02 Ken Werner <ken.werner@de.ibm.com>
3015
3016 * c-valprint.c (c_val_print): Fix printing of character vectors.
3017
bddaafad
JK
30182010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3019
3020 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3021 create_breakpoint prototype.
3022
d41c0fc8
PA
30232010-07-01 Pedro Alves <pedro@codesourcery.com>
3024
3025 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3026 usefulness suggestion of multiple breakpoints at same location.
3027
dc10affe
PA
30282010-07-01 Pedro Alves <pedro@codesourcery.com>
3029
3030 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3031
cabe9ab6
PA
30322010-07-01 Pedro Alves <pedro@codesourcery.com>
3033
3034 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3035 (loclist_tracepoint_var_ref): Handle optimized out values.
3036
cce7e648
PA
30372010-07-01 Pedro Alves <pedro@codesourcery.com>
3038
3039 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3040 unnecessary space in string.
3041 * filesystem.c (_initialize_filesystem): Ditto.
3042 * frame.c (_initialize_frame): Ditto.
3043 * infcmd.c (step_once): Ditto.
3044 * infrun.c (_initialize_infrun): Ditto.
3045 * linux-nat.c (linux_child_follow_fork): Ditto.
3046 * maint.c (maintenance_deprecate): Ditto.
3047 * memattr.c (_initialize_mem): Ditto.
3048 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3049 * monitor.c (monitor_open): Ditto.
3050 * procfs.c (procfs_xfer_memory): Ditto.
3051 * reverse.c (bookmarks_info): Ditto.
3052 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3053 * stack.c (_initialize_stack): Ditto.
3054 * tracepoint.c (_initialize_tracepoint): Ditto.
3055 * xtensa-tdep.c (xtensa_supply_gregset,
3056 xtensa_regset_from_core_section): Ditto.
3057
b65c7efe
TT
30582010-07-01 Tom Tromey <tromey@redhat.com>
3059
3060 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3061 check_all_valid.
3062 * value.c (value_entirely_optimized_out): Invert result. Update
3063 for new function name.
3064
0fb4aa4b
PA
30652010-07-01 Pedro Alves <pedro@codesourcery.com>
3066
3067 Static tracepoints support.
3068
3069 * NEWS: Mention new support for static tracepoints.
3070 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3071 qXfer:statictrace:read.
3072 (New features in the GDB remote stub, GDBserver): Mention static
3073 tracepoints support using an UST based backend.
3074 (New commands): Mention "info static-tracepoint-markers" and
3075 "strace".
3076 * breakpoint.c (is_marker_spec): New.
3077 (is_tracepoint): Handle static tracepoints.
3078 (validate_commands_for_breakpoint): Static tracepoints can't do
3079 while-stepping.
3080 (static_tracepoints_here): New.
3081 (bpstat_what): Handle static tracepoints.
3082 (print_one_breakpoint_location, allocate_bp_location, mention):
3083 Ditto.
3084 (create_breakpoint_sal): Ditto.
3085 (decode_static_tracepoint_spec): New.
3086 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3087 `type_wanted'. Adjust. Handle static tracepoint marker
3088 locations.
3089 (break_command_1): Adjust.
3090 (update_static_tracepoint): New.
3091 (update_breakpoint_locations): Handle static tracepoints.
3092 (breakpoint_re_set_one): Handle static tracepoint marker
3093 locations.
3094 (disable_command, enable_command): Handle static tracepoints.
3095 (trace_command, ftrace_command): Adjust.
3096 (strace_command): New.
3097 (create_tracepoint_from_upload): Adjust.
3098 (save_breakpoints): Handle static tracepoints.
3099 (_initialize_breakpoint): Install the "strace" command.
3100 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3101 (struct breakpoint): New fields static_trace_marker_id and
3102 static_trace_marker_id_idx.
3103 (breakpoints_here_p): Declare.
3104 (create_breakpoint): Adjust.
3105 (static_tracepoints_here): Declare.
3106 * remote.c (struct remote_state) <static_tracepoints>: New field.
3107 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3108 (remote_static_tracepoint_marker_at): New.
3109 (remote_static_tracepoint_markers_by_strid): New.
3110 (remote_static_tracepoint_feature): New.
3111 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3112 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3113 (remote_supports_static_tracepoints): New.
3114 (remote_download_tracepoint): Download static tracepoints.
3115 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3116 remote_static_tracepoint_markers_by_strid.
3117 (_initialize_remote): Install set|show remote static-tracepoints,
3118 and set|show remote read-sdata-object commands.
3119 * target.c (update_current_target): Inherit and default
3120 to_static_tracepoint_marker_at, and
3121 to_static_tracepoint_markers_by_strid.
3122 * target.h (static_tracepoint_marker): Forward declare.
3123 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3124 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3125 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3126 (struct target_ops): New fields to_static_tracepoint_marker_at and
3127 to_static_tracepoint_markers_by_strid.
3128 (target_static_tracepoint_marker_at)
3129 (target_static_tracepoint_markers_by_strid): New.
3130 * tracepoint.c: Include source.h.
3131 (validate_actionline): Handle $_sdata.
3132 (struct collection_list): New field strace_data.
3133 (add_static_trace_data): New.
3134 (clear_collection_list): Clear strace_data.
3135 (stringify_collection_list): Account for a possible static trace
3136 data collection.
3137 (encode_actions_1): Encode an $_sdata collection.
3138 (parse_tracepoint_definition): Handle static tracepoints.
3139 (parse_static_tracepoint_marker_definition): New.
3140 (release_static_tracepoint_marker): New.
3141 (print_one_static_tracepoint_marker): New.
3142 (info_static_tracepoint_markers_command): New.
3143 (sdata_make_value): New.
3144 (_initialize_tracepoint): Create the $_sdata convenience variable.
3145 Add the "info static-tracepoint-markers" command.
3146 Mention $_sdata in the "collect" command's help output.
3147 * tracepoint.h (struct static_tracepoint_marker): New.
3148 (parse_static_tracepoint_marker_definition)
3149 (release_static_tracepoint_marker): Declare.
3150 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3151 * python/py-breakpoint.c (bppy_new): Adjust.
3152
aac63f0f
JB
31532010-06-30 Joel Brobecker <brobecker@adacore.com>
3154
3155 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3156 including Python.h.
3157
e68994a7
DE
31582010-06-29 Doug Evans <dje@google.com>
3159
3863f96c
DE
3160 PR gdb/11702
3161 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3162 DW_AT_external is present.
3163
254e6b9e
DE
3164 PR gdb/11702
3165 * NEWS: Add entry.
3166 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3167 create a symbol for the field and record the value.
3168 (new_symbol): Handle DW_TAG_member.
3169 * gdbtypes.c (field_is_static): Remove FIXME.
3170 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3171 only ignore LOC_CONST symbols that are enums.
3172
6e70227d
DE
3173 * dwarf2read.c: Remove trailing whitespace.
3174
e68994a7
DE
3175 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3176 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3177 (struct main_type, field loc): Delete dwarf_block.
3178 (FIELD_DWARF_BLOCK): Delete.
3179 (SET_FIELD_DWARF_BLOCK): Delete.
3180 (TYPE_FIELD_DWARF_BLOCK): Delete.
3181 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3182 Update.
3183
a480d2f6
HZ
31842010-06-29 Hui Zhu <teawater@gmail.com>
3185
3186 * record.c (set_record_pic_cmdlist,
3187 show_record_pic_cmdlist): New variables.
3188 (set_record_pic_command,
3189 show_record_pic_command): New functions.
3190 (record_pic_function, record_pic_line, record_pic_enum,
3191 set_record_pic_type, record_pic_hide_nofunction,
3192 record_pic_hide_nosource, record_pic_hide_same): New variables.
3193 (record_pic_fputs): New function.
3194 (function_list, node_list, edge_list): New struct.
3195 (function_list, node_list, edge_list): New variables.
3196 (record_pic_cleanups, record_pic_node,
3197 record_pic_edge, cmd_record_pic): New functions.
3198 (_initialize_record): Add new commands for record pic.
3199
a0d7a4ff
JK
32002010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3201
3202 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3203 ALLOCATE_CPLUS_STRUCT_TYPE.
3204
595939de 32052010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3206 Tom Tromey <tromey@redhat.com>
3207 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3208
3209 * value.c (pack_unsigned_long): New function.
3210 (value_from_ulongest): New function.
3211 * value.h (value_from_ulongest): Declare.
3212 * python/python.c (_initialize_python): Call
3213 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3214 * python/python-internal.h: Define thread_object.
3215 (gdbpy_inferiors, gdbpy_selected_thread)
3216 (frame_info_to_frame_object, create_thread_object)
3217 (find_thread_object, find_inferior_object)
3218 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3219 (gdbpy_is_value_object, get_addr_from_python): Declare.
3220 * python/py-value.c (builtin_type_upylong): Define.
3221 (convert_value_from_python): Add logic for ulongest.
3222 (gdbpy_is_value_object): New function.
3223 * python/py-utils.c (get_addr_from_python): New function.
3224 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3225 (gdbpy_selected_frame): Use PyObject over frame_info.
3226 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3227 py-infthread.
3228 (SUBDIR_PYTHON_SRCS): Likewise.
3229 (py-inferior.o): New Rule.
3230 (py-infthread.o): New Rule.
3231 * python/py-inferior.c: New File.
3232 * python/py-infthread.c: New File.
3233
98751a41
JK
32342010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3235
3236 * c-typeprint.c (c_type_print_base): For no fields check include also
3237 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3238 * dwarf2read.c (struct typedef_field_list)
3239 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3240 (dwarf2_add_typedef): New.
3241 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3242 Copy also FI.TYPEDEF_FIELD_LIST.
3243 * gdbtypes.h (struct typedef_field)
3244 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3245 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3246 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3247
41f62f39
JK
32482010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 * cp-namespace.c (cp_lookup_nested_type): New variable
3251 concatenated_name. Turn the current return condition into a reverse
3252 one. Call also lookup_static_symbol_aux on the constructed qualified
3253 name.
3254 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3255 other files into a called ...
3256 (lookup_static_symbol_aux): ... new function here.
3257 * symtab.h (lookup_static_symbol_aux): New prototype.
3258 * valops.c (value_maybe_namespace_elt): Call also
3259 lookup_static_symbol_aux if we failed otherwise.
3260
af53d231
JK
32612010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3262
3263 Fix PR c++/11703 and PR gdb/1448.
3264 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3265 FIRST_ITER check.
3266
9655fd1a
JK
32672010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 Fix modification of cplus_struct_default.
3270 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3271 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3272 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3273
9279c692
JB
32742010-06-28 Joel Brobecker <brobecker@adacore.com>
3275
3276 * NEWS: Add entry announcing the python directory.
3277
d3f41bb1
TT
32782010-06-28 Tom Tromey <tromey@redhat.com>
3279
3280 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3281
23e7acfb
DE
32822010-06-28 Doug Evans <dje@google.com>
3283
3284 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3285 All callers updated.
3286
6036c742
JK
32872010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3288
3289 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3290 obstack_begin after each obstack_free.
3291
9f18a3b3
DE
32922010-06-27 Doug Evans <dje@google.com>
3293
1596cb5d
DE
3294 * value.c (value_static_field): Use `switch' instead of `if'.
3295 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3296
9f18a3b3
DE
3297 * valops.c (search_struct_field): Fix typo in error message.
3298
43dabe42
UW
32992010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3300
3301 * dwarf2expr.c (execute_stack_op): Place preprocessor
3302 directives at the start of the source line.
3303
0f3bb72e
PH
33042010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3305
6036c742
JK
3306 * defs.h (make_command_stats_cleanup): Declare.
3307 (set_display_time): Declare.
3308 (set_display_space): Declare.
3309 * event-top.c (command_handler): Use make_command_stats_cleanup.
3310 * main.c (display_time, display_space): Move definitions to utils.c.
3311 (captured_main): Use make_command_stats_cleanup to get start-up
3312 statistics.
3313 Use set_display_time and set_display_space for processing OPT_STATISTICS
3314 case.
3315 * maint.c (maintenance_time_display): Use set_display_time.
3316 (maintenance_space_display): Use set_display_space.
3317 * top.c (execute_command): Remove obsolete 'maint time' code.
3318 (command_loop): Use make_command_stats_cleanup.
3319 * utils.c (struct cmd_stats): Structure for storing initial time
3320 and space usage.
3321 (display_time, display_space): Move definitions here from utils.c.
3322 (set_display_time): New function.
3323 (set_display_space): New function.
3324 (make_command_stats_cleanup): New function.
3325 (report_command_stats): New auxiliary function for
3326 make_command_stats_cleanup.
0f3bb72e 3327
070c8028
UW
33282010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3329
3330 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3331 hosts where CORE_ADDR is long long.
3332
bc9f0842
TT
33332010-06-25 Tom Tromey <tromey@redhat.com>
3334
3335 PR python/10808:
3336 * python/python.c (execute_gdb_command): Add keywords. Accept
3337 "to_string" argument.
3338 (struct restore_ui_file_closure): New.
3339 (restore_ui_file): New function.
3340 (make_cleanup_restore_ui_file): Likewise.
3341 (GdbMethods) <execute>: Update.
3342
c0cc4c83
UW
33432010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3344
3345 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3346 during inferior call stack frame setup.
3347
f1d8ee66
UW
33482010-06-25 Ken Werner <ken.werner@de.ibm.com>
3349
3350 * solib-spu.c: Include "exception.h".
3351 (ocl_program_data_key): New variable.
3352 (append_ocl_sos): New function.
3353 (ocl_enable_break): Likewise.
3354 (spu_current_sos): Call append_ocl_sos.
3355 (spu_solib_loaded): Call ocl_enable_break.
3356 (_initialize_spu_solib): Register ocl_program_data_key.
3357
19c0c0f8
UW
33582010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3359
3360 * cp-support.c (reset_directive_searched): New function.
3361 (make_symbol_overload_list_using): Prevent recursive calls.
3362
0f6a939d
PM
33632010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3364
3365 * printcmd.c (print_variable_and_value): Print error message on
3366 caught exception.
3367
f2c7657e
UW
33682010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3369
3370 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3371 of stack values.
3372 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3373 "value" member.
3374 (dwarf_expr_push): Change input type to ULONGEST.
3375 (dwarf_expr_fetch): Change return type to ULONGEST.
3376 (dwarf_expr_fetch_address): Add prototype.
3377 (dwarf2_read_address): Remove prototype.
3378 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3379 Truncate stack values to ctx->addr_size bytes.
3380 (dwarf_expr_fetch): Change return value to ULONGEST.
3381 (dwarf_expr_fetch_address): New function.
3382 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3383 when appropriate. Update for struct dwarf_expr_piece changes.
3384 (dwarf2_read_address): Remove.
3385 (unsigned_address_type): Remove.
3386 (signed_address_type): Remove.
3387 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3388 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3389 values. Perform operations on ULONGEST instead of on GDB values,
3390 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3391 values and DW_OP_deref results as unsigned integers.
3392 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3393 changes.
3394 (write_pieced_value): Likewise.
3395 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3396 dwarf_expr_fetch when appropriate.
3397 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3398 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3399 instead of dwarf_expr_fetch when appropriate.
3400
b1d61bc9
PM
34012010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3402
3403 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3404
b14285f6
JB
34052010-06-24 Joel Brobecker <brobecker@adacore.com>
3406
3407 * python/python.c (_initialize_python): Add new "constant"
3408 PYTHONDIR in gdb module. Insert this path at the head of
3409 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3410 exec its __init__.py script if it exists in that directory.
3411
fd60dc69
KB
34122010-06-24 Kevin Buettner <kevinb@redhat.com>
3413
3414 * rx-tdep.c (RX_ACC_REGNUM): Define.
3415 (RX_NUM_REGS): Redefine to 26.
3416 (rx_register_name): Add register "acc". Change order of several
3417 registers. Change name of "vct" register to "fintv" to match RX
3418 documentation.
3419 (rx_register_type): Add case for RX_ACC_REGNUM.
3420
18430289
TT
34212010-06-24 Tom Tromey <tromey@redhat.com>
3422
3423 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3424
40618926
JK
34252010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3426 Tom Tromey <tromey@redhat.com>
3427
3428 Fix GDB startup on readonly filesystem.
3429 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3430
628fe4e4
JK
34312010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3432 Pedro Alves <pedro@codesourcery.com>
3433
3434 Fix PR 9436.
3435 * breakpoint.c (handle_jit_event): New function.
3436 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3437 jit, err, table and bs_class. New variables shlib_event, jit_event,
3438 this_action and bptype. Change bs_class assignments to this_action
3439 assignments. new unhandled bptype internal error. Move here
3440 shlib_event and jit_event handling from handle_inferior_event.
3441 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3442 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3443 BPSTAT_WHAT_CHECK_JIT.
3444 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3445 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3446 (handle_inferior_event): Reinitialize frame and gdbarch after
3447 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3448 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3449 gdbarch when frame gets reinitialized.
3450
f1421989
HZ
34512010-06-24 Hui Zhu <teawater@gmail.com>
3452
3453 * printcmd.c (ui_printf): New function.
3454 (printf_command): Call ui_printf.
3455 (_initialize_printcmd): New command "eval".
3456
d03285ec
UW
34572010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3458
3459 * infrun.c (handle_inferior_event): Handle presence of single-step
3460 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3461 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3462 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3463 * breakpoint.c (detach_single_step_breakpoints): New function.
3464 (detach_breakpoints): Call it.
3465 (cancel_single_step_breakpoints): New function.
3466 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3467
3468 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3469 (spu_gdbarch_init): Install it.
3470
38f6b338
JK
34712010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3472
3473 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3474 * configure: Regenerate.
3475
bb08c432
HZ
34762010-06-22 Hui Zhu <teawater@gmail.com>
3477
3478 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3479 (i386_process_record): Ditto.
3480 * record.c (record_memory_query): New variable.
3481 (_initialize_record): New command "set record memory-query".
3482 * record.h (record_memory_query): New extern.
3483
b55078be
DE
34842010-06-21 Doug Evans <dje@google.com>
3485
3486 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3487 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3488 (i386_syscall_p): Change type of lengthp to int.
3489 (i386_displaced_step_fixup): Handle kernels that run one past a
3490 syscall insn.
3491 * i386-linux-tdep.c (i386_linux_init_abi): Use
3492 i386_displaced_step_copy_insn instead of
3493 simple_displaced_step_copy_insn.
3494
75079b2b
TT
34952010-06-21 Tom Tromey <tromey@redhat.com>
3496
3497 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3498 (dwarf_type_encoding_name): Likewise.
3499
b00fdb78
TT
35002010-06-21 Tom Tromey <tromey@redhat.com>
3501
3502 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3503 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3504 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3505 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3506 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3507 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3508 * dwarf2read.c (tag_type_to_type): Create a new error type on
3509 failure.
3510 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3511 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3512
84951ab5
MS
35132010-06-21 Michael Snyder <msnyder@vmware.com>
3514
889bf7c5 3515 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3516 not add_abbrev_prefix_cmd, for "enable breakpoints".
3517
d4a087c7
UW
35182010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3519
3520 * dwarf2loc.c (find_location_expression): Add relocation offset
3521 to base-address-selection entry base addresses. Read addresses
3522 (and offsets) as signed/unsigned integers, depending on the
3523 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3524 (loclist_describe_location): Likewise.
3525 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3526 unsigned integer. Do not call dwarf2_read_address.
3527 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3528
13def385
UW
35292010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3530
3531 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3532 value instead of hard-coded SPU_LS_SIZE.
3533 (spu_software_single_step): Likewise.
3534 * spu-tdep.h (SPU_LS_SIZE): Remove.
3535
d2ed6730
UW
35362010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3537
3538 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3539 limit on local store memory accesses.
3540 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3541 * spu-tdep.c (spu_lslr): Remove.
3542 (spu_pointer_to_address): Do not truncate addresses.
3543 (spu_integer_to_address): Likewise.
3544 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3545 * spu-tdep.h: Add comments.
3546 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3547 (SPU_OVERLAY_LMA): Define.
3548
6aed2dbc
SS
35492010-06-18 Stan Shebs <stan@codesourcery.com>
3550
a61408f8
SS
3551 * osdata.c (get_osdata): Warn separately if target does not report
3552 type list.
3553 (info_osdata_command): Allow empty type, report error if target
3554 does not return available types of OS data.
3555 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3556 types if no annex supplied.
3557
6aed2dbc
SS
3558 * thread.c (thread_id_make_value): Make a value representing the
3559 current thread.
3560 (_initialize_thread): Create $_thread.
3561
ec61707d
JB
35622010-06-17 Joel Brobecker <brobecker@adacore.com>
3563
3564 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3565 last local variable declaration. No real code change.
3566
60606b2c
TT
35672010-06-17 Tom Tromey <tromey@redhat.com>
3568
3569 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3570 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3571 temporary obstack.
3572
65d79d4b
SDJ
35732010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3574 Jan Kratochvil <jan.kratochvil@redhat.com>
3575
3576 * breakpoint.c: Include parser-defs.h.
3577 (watchpoint_exp_is_const): New function.
3578 (watch_command_1): Call watchpoint_exp_is_const to check
3579 if the expression is constant.
3580
0407b3f1
AS
35812010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3582
3583 * configure.ac: Check for RDYNAMIC also for cross builds.
3584 * configure: Regenerate.
3585
98d64339
PA
35862010-06-15 Pedro Alves <pedro@codesourcery.com>
3587
3588 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3589 (SFILES): Remove solib-null.c, add solib-target.c.
3590 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3591 (ALLDEPFILES): Remove solib-target.c.
3592 * solib-target.c (_initialize_solib_target): Set
3593 current_target_so_ops to solib_target_so_ops if not already set.
3594 * solib-null.c: Delete.
3595
6a271cae
PA
35962010-06-14 Pedro Alves <pedro@codesourcery.com>
3597
3598 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3599 bytecode.
3600
1e9beacb
UW
36012010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3602
3603 * cp-valprint.c (cp_print_static_field): Members of
3604 dont_print_stat_array_obstack are of type "struct type *".
3605 (_initialize_cp_valprint): Likewise.
3606
21a176fb
UW
36072010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3608
3609 * frame.c (frame_register_unwind): Do not access contents
3610 of "optimized out" unwound register value.
3611
25b524e8
JK
36122010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3613
3614 * ada-lang.h (ada_print_type): Make varstring const.
3615 * ada-typeprint.c (print_func_type): Make name const.
3616 (ada_print_type): Make varstring const.
3617 * c-lang.h (c_print_type): Make varstring const.
3618 * c-typeprint.c (c_print_type): Likewise.
3619 * f-lang.h (f_print_type): Likewise.
3620 * f-typeprint.c (f_print_type): Likewise.
3621 * jv-lang.h (java_print_type): Likewise.
3622 * jv-typeprint.c (java_print_type): Likewise.
3623 * language.c (unk_lang_print_type): Likewise.
3624 * language.h (struct language_defn) <la_print_type>: Likewise.
3625 * m2-lang.h (m2_print_type): Likewise.
3626 * m2-typeprint.c (m2_print_type): Likewise.
3627 * p-lang.h (pascal_print_type): Likewise.
3628 * p-typeprint.c (pascal_print_type): Likewise.
3629
d914c394
SS
36302010-06-11 Stan Shebs <stan@codesourcery.com>
3631
3632 Add per-operation permission flags.
3633
3634 * target.h (struct target_ops): New method to_set_permissions.
3635 (target_set_permissions): New macro.
3636 (target_insert_breakpoint): Change macro to function.
3637 (target_remove_breakpoint): Ditto.
3638 (target_stop): Ditto.
3639 (may_write_registers): Declare.
3640 (may_write_memory): Declare.
3641 (may_insert_breakpoints): Declare.
3642 (may_insert_tracepoints): Declare.
3643 (may_insert_fast_tracepoints): Declare.
3644 (may_stop): Declare.
3645 * target.c (may_write_registers, may_write_registers_1): New globals.
3646 (may_write_memory, may_write_memory_1): New globals.
3647 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3648 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3649 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3650 globals.
3651 (may_stop, may_stop_1): New global.
3652 (target_xfer_partial): Test for write permission.
3653 (target_store_registers): Ditto.
3654 (target_insert_breakpoint): New function.
3655 (target_remove_breakpoint): New function.
3656 (target_stop): New function.
3657 (_initialize_targets): Add new set/show variables.
3658 (set_write_memory_permission): New function.
3659 (update_target_permissions): New function.
3660 (set_target_permissions): New function.
3661 (update_current_target): Default to_set_permissions.
3662 (_initialize_targets): Use new globals and setter function.
3663 * tracepoint.c (start_tracing): Test for permission.
3664 * inferior.h (update_observer_mode): Declare.
3665 * infrun.c (non_stop_1): Define earlier.
3666 (observer_mode, observer_mode_1): New globals.
3667 (set_observer_mode, show_observer_mode): New functions.
3668 (update_observer_mode): New function.
3669 (_initialize_infrun): Define "set observer" command.
3670 * remote.c (PACKET_QAllow): New optional packet.
3671 (remote_protocol_features): Add QAllow.
3672 (remote_set_permissions): New function.
3673 (remote_start_remote): Call it.
3674 (init_remote_ops): Add it to target vector.
3675 (_initialize_remote): Add config command for QAllow.
3676
aec5aa8b
TT
36772010-06-11 Tom Tromey <tromey@redhat.com>
3678
3679 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3680 DW_AT_vtable_elem_location even when GCC extension is seen.
3681
0e03807e
TT
36822010-06-11 Tom Tromey <tromey@redhat.com>
3683
3684 PR gdb/9977, PR exp/11636:
3685 * value.h (value_offset): Update.
3686 (struct lval_funcs) <check_validity>: New field.
3687 <copy_closure>: Make argument const.
3688 (value_computed_closure): Update.
3689 (value_contents_for_printing): Declare.
3690 (value_bits_valid): Likewise.
3691 (val_print): Likewise.
3692 (set_value_component_location): Update.
3693 (value_entirely_optimized_out): Declare.
3694 * value.c (value_offset): Argument now const.
3695 (require_not_optimized_out): New function.
3696 (value_contents_for_printing): New function.
3697 (value_contents_all): Call require_not_optimized_out.
3698 (value_contents): Likewise.
3699 (value_bits_valid): New function.
3700 (value_computed_closure): Argument now const.
3701 (set_value_component_location): Make 'whole' argument const.
3702 (value_entirely_optimized_out): New function.
3703 (value_bitsize): Argument now 'const'.
3704 (value_bitpos): Likewise.
3705 (value_type): Likewise.
3706 * valprint.h (val_print_array_elements): Update.
3707 * valprint.c (val_print): Add 'val' argument. Use
3708 valprint_check_validity.
3709 (valprint_check_validity): New function.
3710 (value_check_printable): Use value_entirely_optimized_out.
3711 (common_val_print): Update.
3712 (value_print): Likewise.
3713 (val_print_array_elements): Add 'val' argument.
3714 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3715 value_bits_valid. Reinit frame cache for lval_computed.
3716 * sh64-tdep.c (sh64_do_register): Update.
3717 * scm-valprint.c (scm_val_print): Add 'val' argument.
3718 * scm-lang.h (scm_val_print): Update.
3719 * python/python.h (apply_val_pretty_printer): Update.
3720 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3721 argument. Call set_value_component_location.
3722 * printcmd.c (print_scalar_formatted): Update.
3723 * p-valprint.c (pascal_val_print): Add 'val' argument.
3724 (pascal_object_print_value_fields): Likewise.
3725 (pascal_object_print_value): Likewise.
3726 (pascal_object_print_static_field): Update.
3727 * p-lang.h (pascal_val_print): Update.
3728 (pascal_object_print_value_fields): Update.
3729 * mt-tdep.c (mt_registers_info): Update.
3730 * mi/mi-main.c (get_register): Update.
3731 (mi_cmd_data_evaluate_expression): Use common_val_print.
3732 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3733 (m2_print_unbounded_array): Likewise.
3734 (m2_val_print): Likewise.
3735 * m2-lang.h (m2_val_print): Update.
3736 * language.h (struct language_defn) <la_val_print>: Add 'val'
3737 argument.
3738 (LA_VAL_PRINT): Likewise.
3739 * language.c (unk_lang_val_print): Add 'val' argument.
3740 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3741 (java_val_print): Likewise.
3742 * jv-lang.h (java_val_print): Add 'val' argument.
3743 * infcmd.c (default_print_registers_info): Update.
3744 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3745 (f77_print_array): Likewise.
3746 (f_val_print): Likewise.
3747 * f-lang.h (f_val_print): Add 'val' argument.
3748 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3749 value_bitpos.
3750 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3751 set_value_optimized_out.
3752 (write_pieced_value): Use value_bitsize and value_bitpos.
3753 <default>: Don't exit loop.
3754 (check_pieced_value_validity): New function.
3755 (pieced_value_funcs): Reference check_pieced_value_validity,
3756 check_pieced_value_invalid.
3757 (copy_pieced_value_closure): Update.
3758 (check_pieced_value_bits): New function.
3759 (check_pieced_value_invalid): New function.
3760 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3761 (d_val_print): Likewise.
3762 * d-lang.h (d_val_print): Update.
3763 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3764 (cp_print_value_fields_rtti): Likewise.
3765 (cp_print_value): Likewise.
3766 (cp_print_static_field): Update.
3767 * c-valprint.c (c_val_print): Add 'val' argument.
3768 (c_value_print): Update.
3769 * c-lang.h (c_val_print): Update.
3770 (cp_print_value_fields): Likewise.
3771 (cp_print_value_fields_rtti): Likewise.
3772 * ada-valprint.c (struct ada_val_print_args): Remove.
3773 (val_print_packed_array_elements): Add 'val' argument.
3774 (ada_val_print): Likewise. Rewrite.
3775 (ada_val_print_stub): Remove.
3776 (ada_val_print_array): Add 'val' argument.
3777 (ada_val_print_1): Likewise.
3778 (print_variant_part): Likewise.
3779 (ada_value_print): Update.
3780 (print_record): Add 'val' argument.
3781 (print_field_values): Likewise.
3782 * ada-lang.h (ada_val_print): Update.
3783
3cf03773
TT
37842010-06-11 Tom Tromey <tromey@redhat.com>
3785
3786 * vec.h (VEC_cleanup): New macro.
3787 (DEF_VEC_ALLOC_FUNC_I): Update.
3788 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3789 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3790 * dwarf2loc.c (struct axs_var_loc): Remove.
3791 (unimplemented): New function.
3792 (translate_register): Likewise.
3793 (access_memory): Likewise.
3794 (compile_dwarf_to_ax): Likewise.
3795 (dwarf2_tracepoint_var_loc): Remove.
3796 (dwarf2_tracepoint_var_access): Likewise.
3797 (dwarf2_tracepoint_var_ref): Likewise.
3798 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3799 (loclist_tracepoint_var_ref): Likewise.
3800 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3801 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3802 require_composition. No longer static.
3803 (execute_stack_op): Update.
3804 * ax-gdb.h (trace_kludge): Declare.
3805
2bdf28a0
JK
38062010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3807
3808 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3809 (should_be_inserted): Return zero also on NULL OWNER.
3810 (breakpoint_program_space_exit): New OWNER comment.
3811 (insert_breakpoint_locations): Extend comment for OWNER.
3812 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3813 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3814 New OWNER comment.
3815 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3816 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3817 (bpstat_check_location): New assert on OWNER.
3818 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3819 and B initializations to the code block. New assert on them.
3820 (print_one_breakpoint_location): New OWNER comment.
3821 (watchpoint_locations_match): Assert on OWNER.
3822 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3823 initializations to the code block. New assert on OWNER.
3824 (set_breakpoint_location_function): New assert on OWNER.
3825 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3826 (bp_location_compare, update_global_location_list)
3827 (update_global_location_list): New OWNER comment.
3828
5b9a19af
UW
38292010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3830
3831 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3832
669211f5
UW
38332010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3834
3835 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3836 (lin_thread_get_thread_signals): Remove prototype.
3837 (GET_THREAD_SIGNALS): Remove.
3838 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3839 * linux-thread-db.c (check_thread_signals): Directly call
3840 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3841
b7a8b4ef
UW
38422010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3843
3844 * gregset.h (GDB_FPXREGSET_T): Remove.
3845 (gdb_fpxregset_t): Likewise.
3846 (supply_fpxregset): Remove prototype.
3847 (fill_fpxregset): Likewise.
3848 * i386-linux-nat.c (supply_fpxregset): Remove.
3849 (fill_fpxregset): Likewise.
3850 (fetch_fpxregs): Inline supply_fpxregset call.
3851 (store_fpxregs): Inline fill_fpxregset call.
3852
3853 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3854 * config/i386/nm-linux.h: Remove file.
3855
82892036
MS
38562010-06-09 Michael Snyder <msnyder@vmware.com>
3857
3858 * target.c (update_current_target): Fix spelling error in comment.
3859 (target_mourn_inferior): Fix spelling error in error message.
3860
5ddb52fa
PH
38612010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3862
3863 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3864 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3865
0f2caa1b
MS
38662010-06-08 Michael Snyder <msnyder@vmware.com>
3867
3868 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3869
3bebe2f2
JK
38702010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3871
3872 * configure.ac <"${have_libpython}" != no>: New workaround of
3873 python#4434.
3874 * configure: Regenerate.
3875
eaaffdf4
HZ
38762010-06-08 Hui Zhu <teawater@gmail.com>
3877
3878 * record.c (record_wait): Move signal out of replay code.
3879
5c631832
JK
38802010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3881
3882 Fix PR 10640.
3883 * dwarf2-frame.c (no_dwarf_call): New function.
3884 (execute_stack_op): Set CTX->DWARF_CALL.
3885 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3886 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3887 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3888 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3889 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3890 (needs_frame_dwarf_call): New function.
3891 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3892 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3893 Update the comment. Move variables die, offset and error call to ...
3894 (follow_die_ref): ... a new function.
3895 (dwarf2_fetch_die_location_block): New function.
3896 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3897
17ea53c3
JK
38982010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3899
3900 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3901 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3902 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3903 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3904 this change.
3905 (struct needs_frame_baton): New field per_cu.
3906 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3907 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3908
245040d7
SW
39092010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3910
3911 * cp-support.c (make_symbol_overload_list_namespace): Only search
3912 static and global blocks.
3913 (make_symbol_overload_list_block): New function.
3914 (make_symbol_overload_list): Separate namespace search from block
3915 search.
3916 (make_symbol_overload_list_qualified): Use
3917 make_symbol_overload_list_block.
3918
4c3376c8
SW
39192010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3920
3921 * value.h: Created oload_search_type enum.
3922 (find_overload_match): Use oload_search_type enum.
3923 * valops.c (find_overload_match): Support combined member and
3924 non-member search.
3925 * eval.c (evaluate_subexp_standard): Calls to
3926 find_overload_match now use oload_search_type enum.
3927 (oload_method_static): Verify index is a proper value.
3928 * valarith.c (value_user_defined_cpp_op): Search for and handle
3929 both member and non-member operators.
3930 (value_user_defined_cpp_op): New function.
3931 (value_user_defined_op): New function.
3932 (value_x_unop): Use value_user_defined_op.
3933 (value_x_binop): Ditto.
3934 * cp-support.c (make_symbol_overload_list_using): Added block
3935 iteration.
3936 Add check for namespace aliases and imported declarations.
3937
ee55da67
JK
39382010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3939
3940 * breakpoint.h (owner): Extend the comment.
3941
1a2ab13a
JK
39422010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3943
3944 Clear stale specific bp_location from former whole breakpoint.
3945 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3946 code ...
3947 (free_bp_location): ... here. Rename there the called function to
3948 bpstat_remove_bp_location_callback.
3949 (bpstat_remove_breakpoint_callback): Rename to ...
3950 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3951 to struct bp_location. Change the called function to
3952 bpstat_remove_bp_location. Create new declaration for the function.
3953 (bpstat_remove_breakpoint): Rename to ...
3954 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3955 code for the new parameter type.
3956
16d6b4b7
NS
39572010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3958
3959 * README: Make version-agnostic.
3960
7e314c57
JK
39612010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3962
3963 Fix duplicate types for single DIE.
3964 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3965 set_die_type.
3966 (read_array_type): Remove type initialization. Recheck get_die_type
3967 after initial die_type. Move set_die_type before set_descriptive_type.
3968 (read_set_type): New variable domain_type. Recheck get_die_type after
3969 initial die_type. Move attr initialization later.
3970 (read_tag_pointer_type, read_tag_reference_type): New variable
3971 target_type. Recheck get_die_type after initial die_type.
3972 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3973 die_type and die_containing_type.
3974 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3975 Recheck get_die_type after initial die_type.
3976 (read_subrange_type): Recheck get_die_type after initial die_type.
3977 Move set_die_type before set_descriptive_type.
3978 (set_die_type): Extend the function comment. Call complaint if DIE has
3979 some type already set.
3980
2f296114
VP
39812010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3982
3983 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3984 for current naming of thread groups (iN, not N).
3985
554794dc
SDJ
39862010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3987
3988 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3989 * parse.c (operator_length): Likewise.
3990 (operator_length_standard): Likewise.
3991 * parser-defs.h (operator_length): Likewise.
3992 (operator_length_standard): Likewise.
3993 (struct exp_descriptor <operator_length>): Likewise.
3994
967cf477
DE
39952010-06-04 Doug Evans <dje@google.com>
3996
bddaacb9 3997 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
3998 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3999 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4000 * python/python.c (gdbpy_enabled_cst): Define.
4001 (_initialize_python): Initialize gdbpy_enabled_cst.
4002 * NEWS: Add entry.
4003
2dec564e
JK
40042010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4005
4006 * breakpoint.c (update_global_location_list): Fix comment typo.
4007
44b5680a
HZ
40082010-06-04 Hui Zhu <teawater@gmail.com>
4009
4010 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4011
e7a30f46
DE
40122010-06-03 Doug Evans <dje@google.com>
4013
4014 * configure.ac: Don't fail if python is unusable when
4015 configured with --with-python=auto.
4016 * configure: Regenerate.
4017
84b4420f
SW
40182010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4019
889bf7c5 4020 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4021
df178451
PM
40222010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4023
4024 * valprint.h (get_array_bounds): Change low and high parameter types
4025 to LONGEST *.
0407b3f1 4026 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4027 compute bounds.
4028 (val_print_array_elements): Adapt to change above.
4029 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4030 * p-valprint.c (pascal_val_print): Likewise.
4031
fd5700c7
JK
40322010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4033
4034 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4035 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4036 .F08.
4037
f55ee35c
JK
40382010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 Support DW_TAG_module as separate namespaces.
4041 * dwarf2read.c (typename_concat): New parameter physname.
4042 (read_module_type): New function and declaration.
4043 (scan_partial_symbols): Scan also DW_TAG_module children.
4044 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4045 to typename_concat backward compatible physname value 0.
4046 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4047 backward compatible physname value 0.
4048 (add_partial_module, read_module): Remove FIXME comment.
4049 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4050 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4051 DIEs under DW_TAG_module.
4052 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4053 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4054 && physname and return there instead of just setting NAME. Extend
4055 the main block for language_fortran. Pass physname parameter to the
4056 typename_concat call.
4057 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4058 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4059 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4060 missing from SYMBOL_SET_NAMES in the language_fortran case.
4061 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4062 variables.
4063 (read_type_die) <DW_TAG_module>: New.
4064 (MAX_SEP_LEN): Increase to 7.
4065 (typename_concat): New parameter physname. New variable lead. Support
4066 also language_fortran.
4067 * f-exp.y (yylex): Consider : also as a symbol name character class.
4068 * f-lang.c: Include cp-support.h.
4069 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4070 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4071 f_word_break_characters and f_make_symbol_completion_list.
4072 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4073 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4074 * symtab.c (symbol_init_language_specific): Support language_fortran.
4075 (symbol_find_demangled_name): New comment on language_fortran.
4076 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4077 for language_fortran.
4078 (lookup_symbol_aux_local): Check imports also for language_fortran.
4079 (default_make_symbol_completion_list): Rename to ...
4080 (default_make_symbol_completion_list_break_on): ... this name. New
4081 parameter break_on, use it.
4082 (default_make_symbol_completion_list): New stub.
4083 * symtab.h (default_make_symbol_completion_list_break_on): New
4084 prototype.
4085
cb91c06a
JB
40862010-06-02 Joel Brobecker <brobecker@adacore.com>
4087
4088 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4089 to error.
4090
5c315b68
JK
40912010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4092
4093 * dwarf2read.c (typename_concat): Add const to the variable sep.
4094
9eae7c52
TT
40952010-06-02 Tom Tromey <tromey@redhat.com>
4096
4097 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4098 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4099 type is const. Add 'def' argument. Add missing operators, remove
4100 unhandled ones.
4101 (decode_locdesc): Update.
4102 (dwarf2_always_disassemble): New global.
4103 (show_dwarf2_always_disassemble): New function.
4104 (_initialize_dwarf2_read): Add always-disassemble.
4105 (dwarf2_per_cu_offset_size): New function.
4106 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4107 (piece_end_p): New function.
4108 (locexpr_describe_location_piece): Replace 'size' argument with
4109 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4110 some constants. Remove errors.
4111 (disassemble_dwarf_expression): New function.
4112 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4113 Add 'offset_size' argument.
4114 (loclist_describe_location): Change output formatting.
4115 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4116
7d3fe98e
SW
41172010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4118
4119 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4120 anonymous type case.
4121
e77813c8
PM
41222010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4123
4124 * dwarf2read.c (read_subrange_type): Handle missing base type
4125 according to Dwarf-2 specifications.
4126
7cf3118a
SDJ
41272010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4128
4129 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4130 BINOP_EXCL.
4131 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4132 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4133 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4134 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4135 UNOP_CHMAX, UNOP_CHMIN.
4136 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4137 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4138 UNOP_CHMIN>: Remove opcodes.
4139
ae4d0c03
PM
41402010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4141
4142 * dwarf2read.c (read_func_scope): Do not complain for
4143 external function if bounds are not found.
4144
fa593d66
PA
41452010-06-01 Pedro Alves <pedro@codesourcery.com>
4146
4147 * NEWS: Mention gdbserver fast tracepoints support.
4148
cd44747c
PM
41492010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4150
4151 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4152 New macros.
4153 (windows_set_console_info): New function.
4154 (windows_create_inferior): Call windows_set_console_info
4155 if NEW_CONSOLE is true.
4156 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4157 (_initialize_loadable): Initialize GetConsoleFontSize and
4158 GetCurrentConsoleFont.
4159
f6528abd
JK
41602010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4161
4162 * Makefile.in (RDYNAMIC): New.
4163 (SFILES): Add proc-service.list.
4164 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4165 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4166 * config/arm/linux.mh: Likewise.
4167 * config/i386/linux.mh: Likewise.
4168 * config/i386/linux64.mh: Likewise.
4169 * config/ia64/linux.mh: Likewise.
4170 * config/m32r/linux.mh: Likewise.
4171 * config/m68k/linux.mh: Likewise.
4172 * config/mips/linux.mh: Likewise.
4173 * config/pa/linux.mh: Likewise.
4174 * config/powerpc/linux.mh: Likewise.
4175 * config/powerpc/ppc64-linux.mh: Likewise.
4176 * config/s390/s390.mh: Likewise.
4177 * config/sparc/linux.mh: Likewise.
4178 * config/sparc/linux64.mh: Likewise.
4179 * config/xtensa/linux.mh: Likewise.
4180 * configure.ac: New RDYNAMIC on native host and GCC.
4181 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4182 * configure: Regenerate.
4183 * proc-service.list: New.
4184
ca2a87a0
JK
41852010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4188 CONTENT.
4189
1e225492
JK
41902010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4191
4192 * linux-nat.c (linux_nat_wait_1): Do not call
4193 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4194 TARGET_WAITKIND_SIGNALLED.
4195
e802dbe0
JB
41962010-05-27 Joel Brobecker <brobecker@adacore.com>
4197
4198 * ada-lang.c (ada_inferior_data): New struct.
4199 (ada_inferior_data): New static global.
4200 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4201 (ada_get_tsd_type): New functions.
4202 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4203 to look the tsd type up.
4204 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4205 event. Set ada_inferior_data.
4206
176a6961
PA
42072010-05-27 Pedro Alves <pedro@codesourcery.com>
4208
4209 * remote.c (unpack_varlen_hex): Remove forward declaration.
4210 (remote_console_output): Make static, and add forward declaration.
4211 * remote.h: Drop FIXME comment.
4212 (unpack_varlen_hex): Declare.
4213 (remote_console_output, remote_cisco_objfile_relocate)
4214 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4215 Delete declarations.
4216 * tracepoint.c: Include "remote.h".
4217 (unpack_varlen_hex): Delete declaration.
4218
88bfdde4
TT
42192010-05-27 Tom Tromey <tromey@redhat.com>
4220
4221 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4222 (allocate_piece_closure): Initialize refc.
4223 (copy_pieced_value_closure): Use refc.
4224 (free_pieced_value_closure): Likewise.
4225
8c6363cf
TT
42262010-05-27 Tom Tromey <tromey@redhat.com>
4227
4228 * arm-tdep.c (push_stack_item): 'contents' now const.
4229 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4230 value_contents_writeable. Introduce new temporary.
4231
7ecb917e
TT
42322010-05-27 Tom Tromey <tromey@redhat.com>
4233
4234 * findcmd.c (parse_find_args): Use value_contents, not
4235 value_contents_raw.
4236
f42a0a33
TT
42372010-05-27 Tom Tromey <tromey@redhat.com>
4238
4239 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4240 const. Use value_contents, not value_contents_writeable.
4241
12b795ad
JB
42422010-05-27 Joel Brobecker <brobecker@adacore.com>
4243
4244 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4245 by call to value_contents.
4246
5a2e11c7
OS
42472010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4248
4249 * MAINTAINERS: Add myself for write after approval privileges.
4250
ec685c5e
DE
42512010-05-26 Doug Evans <dje@google.com>
4252
0c4a4063
DE
4253 Allow python to find its files if moved from original location.
4254 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4255 (GDB_AC_WITH_DIR): Call it.
4256 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4257 python installation directory.
4258 * config.in: Regenerate.
4259 * configure: Regenerate.
4260 * defs.h (python_libdir): Declare.
4261 * main.c (python_libdir): Define.
4262 (captured_main): Initialize python_libdir.
4263 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4264 call Py_SetProgramName to make sure python can find its libraries
4265 and modules.
4266
ec685c5e
DE
4267 * configure.ac: Try to use python's distutils to fetch compilation
4268 parameters.
4269 * configure: Regenerate.
4270 * python/python-config.py: New file.
4271
363a6e9f
OS
42722010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4273
4274 * ser-tcp.c (net_open): Check error return from socket() call by its
4275 equality to -1 not by it being negative.
4276 (net_close): Likewise.
4277
dde08ee1
PA
42782010-05-26 Pedro Alves <pedro@codesourcery.com>
4279
4280 * NEWS: Mention the `qRelocInsn' feature.
4281 * gdbarch.sh (relocate_instruction): New.
4282 * amd64-tdep.c (rip_relative_offset): New.
4283 (append_insns): New.
4284 (amd64_relocate_instruction): New.
4285 (amd64_init_abi): Install it.
4286 * i386-tdep.c (append_insns): New.
4287 (i386_relocate_instruction): New.
4288 (i386_gdbarch_init): Install it.
4289 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4290 * gdbarch.h, gdbarch.c: Regenerate.
4291
947bb88f
TT
42922010-05-26 Tom Tromey <tromey@redhat.com>
4293
4294 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4295 (struct dwarf2_loclist_baton) <data>: Likewise.
4296 * dwarf2loc.c (find_location_expression): Constify return type.
4297 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4298 (dwarf2_loc_desc_needs_frame): Likewise.
4299 (loclist_read_variable): Constify.
4300 (loclist_describe_location): Likewise.
4301 (loclist_tracepoint_var_ref): Likewise.
4302
0d45f56e
TT
43032010-05-25 Tom Tromey <tromey@redhat.com>
4304
4305 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4306 (dwarf_expr_frame_base_1): Likewise.
4307 (read_pieced_value): Update.
4308 (needs_frame_frame_base): Constify.
4309 (dwarf2_tracepoint_var_loc): Likewise.
4310 (dwarf2_tracepoint_var_access): Likewise.
4311 (locexpr_describe_location_piece): Likewise.
4312 (locexpr_describe_location_1): Likewise.
4313 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4314 Constify.
4315 (data): Now const.
4316 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4317 (dwarf_expr_eval, read_uleb128, read_sleb128)
4318 (dwarf2_read_address): Update.
4319 * dwarf2expr.c (dwarf_expr_eval): Constify.
4320 (read_uleb128): Likewise.
4321 (read_sleb128): Likewise.
4322 (dwarf2_read_address): Likewise.
4323 (require_composition): Likewise.
4324 (execute_stack_op): Likewise.
4325 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4326 "const gdb_byte *".
4327 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4328 Now const.
4329 (no_get_frame_base): Constify.
4330 (execute_stack_op): Likewise.
4331 (execute_cfa_program): Likewise.
4332 (read_encoded_value): Likewise.
4333
07ca107c
DE
43342010-05-25 Doug Evans <dje@google.com>
4335
e34838f0
DE
4336 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4337
01f69b38
DE
4338 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4339 * event-loop.c: ... here.
4340 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4341 `error' for clarity.
4342 (tui_getc): Pass correct value for `error' parameter to
4343 tui_readline_output.
4344
07ca107c
DE
4345 Add python gdb.GdbError and gdb.string_to_argv.
4346 * NEWS: Document them.
4347 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4348 the exception is gdb.GdbError. Print a second traceback if there's
4349 an error computing the error message.
4350 (gdbpy_string_to_argv): New function.
4351 * python/py-utils.c (gdbpy_obj_to_string): New function.
4352 (gdbpy_exception_to_string): New function.
4353 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4354 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4355 (gdbpy_gdberror_exc): Declare.
4356 * python/python.c (gdbpy_gdberror_exc): New global.
4357 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4358 gdb.GdbError.
4359 (GdbMethods): Add string_to_argv.
4360
5572ce1f
PM
43612010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4362
4363 * windows-nat.c (display_selector): Call GetLastError to give better
4364 failure explanation.
4365
acd5838a
PA
43662010-05-24 Pedro Alves <pedro@codesourcery.com>
4367
4368 * config.in: Regenerate.
4369
b26a4dcb
JK
43702010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4371
4372 Code cleanup.
4373 * target.c (push_target): Return only void. Remove the return value
4374 comment.
4375 * target.h (push_target): Return only void.
4376
f434ba03
PA
43772010-05-23 Pedro Alves <pedro@codesourcery.com>
4378
4379 Update gnulib from latest git.
4380 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4381
4382 * gnulib/memcmp.c: Removed.
4383 * gnulib/memchr.valgrind: New.
4384 * gnulib/stddef.in.h: New.
4385 * gnulib/Makefile.am: Updated.
4386 * gnulib/memchr.c: Updated.
4387 * gnulib/memmem.c: Updated.
4388 * gnulib/stdint.in.h: Updated.
4389 * gnulib/str-two-way.h: Updated.
4390 * gnulib/string.in.h: Updated.
4391 * gnulib/wchar.in.h: Updated.
4392
4393 * gnulib/extra/link-warning.h: Removed.
4394 * gnulib/extra/c++defs.h: New.
4395 * gnulib/extra/warn-on-use.h: New.
4396 * gnulib/extra/arg-nonnull.h: Updated.
4397
4398 * gnulib/m4/extensions.m4: Updated.
4399 * gnulib/m4/gnulib-cache.m4: Updated.
4400 * gnulib/m4/gnulib-common.m4: Updated.
4401 * gnulib/m4/gnulib-comp.m4: Updated.
4402 * gnulib/m4/gnulib-tool.m4: Updated.
4403 * gnulib/m4/include_next.m4: Updated.
4404 * gnulib/m4/longlong.m4: Updated.
4405 * gnulib/m4/memchr.m4: Updated.
4406 * gnulib/m4/memmem.m4: Updated.
4407 * gnulib/m4/stdint.m4: Updated.
4408 * gnulib/m4/string_h.m4: Updated.
4409 * gnulib/m4/memcmp.m4: Removed.
4410 * gnulib/m4/onceonly_2_57.m4: Removed.
4411 * gnulib/m4/00gnulib.m4: New.
4412 * gnulib/m4/mmap-anon.m4: New.
4413 * gnulib/m4/multiarch.m4: New.
4414 * gnulib/m4/onceonly.m4: New.
4415 * gnulib/m4/stddef_h.m4: New.
4416 * gnulib/m4/warn-on-use.m4: New.
4417 * gnulib/m4/wchar.m4: Removed.
4418 * gnulib/m4/wchar_h.m4: New.
4419 * gnulib/m4/wchar_t.m4: New.
4420 * gnulib/m4/wint_t.m4: New.
4421
4422 * aclocal.m4: Regenerate.
4423 * config.in: Likewise.
4424 * configure: Likewise.
4425 * gnulib/Makefile.in: Likewise.
4426
d3b1e874
TT
44272010-05-21 Tom Tromey <tromey@redhat.com>
4428
4429 * dwarf2loc.c (extract_bits_primitive): New function.
4430 (extract_bits): Likewise.
4431 (insert_bits): Likewise.
4432 (copy_bitwise): Likewise.
4433 (read_pieced_value): Do all operations in bits.
4434 (write_pieced_value): Likewise.
4435 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4436 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4437 Always use xrealloc to resize piece array.
4438 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4439 <DW_OP_piece>: Update.
4440 <DW_OP_bit_piece>: New case.
4441
cb826367
TT
44422010-05-21 Tom Tromey <tromey@redhat.com>
4443
4444 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4445 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4446 * dwarf2expr.h (enum dwarf_value_location)
4447 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4448 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4449 (add_piece): Handle empty piece.
4450 (execute_stack_op) <DW_OP_piece>: Handle
4451 DWARF_VALUE_OPTIMIZED_OUT.
4452
74de6778
TT
44532010-05-21 Tom Tromey <tromey@redhat.com>
4454
4455 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4456 evaluate_subexp, not evaluate_subexp_with_coercion.
4457
f346a30d
PM
44582010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4459
4460 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4461 attribute.
4462
afd74c5f
TT
44632010-05-21 Tom Tromey <tromey@redhat.com>
4464
4465 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4466 offset.
4467 (write_pieced_value): Likewise.
4468
90e7c2c5
PM
44692010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4470
4471 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4472 and DW_TAG_volatile_type.
4473 (new_symbol): Likewise.
4474
8148cf8d
PM
44752010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4476
4477 * p-valprint.c (pascal_val_print): Call get_array_bounds
4478 to obtain the number of elements in an array.
4479
3a1d4620
DE
44802010-05-19 Doug Evans <dje@google.com>
4481
0bf0f8c4
DE
4482 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4483
3a1d4620
DE
4484 * python.c (source_python_script): Add comment.
4485 (source_python_script_for_objfile): Remove unnecessary call to
4486 gdbpy_print_stack.
4487
dc21167c
JK
44882010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4489 Sergio Durigan Junior <sergiodj@redhat.com>
4490
4491 Code cleanup.
4492 * parse.c (exp_iterate): Use operator_length wrapper function.
4493
5b4ee69b
MS
44942010-05-18 Michael Snyder <msnyder@vmware.com>
4495
4496 * ada-lang.c: White space.
4497 * ada-typeprint.c: White space.
4498 * ada-valprint.c: White space.
4499 * addrmap.c: White space.
4500 * auxv.c: White space.
4501 * ax-gdb.c: White space.
4502
e17c9e56
HZ
45032010-05-18 Hui Zhu <teawater@gmail.com>
4504
4505 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4506 for oldfp.
4507 (inferior_call_waitpid): Move make_cleanup out of check.
4508 Check the return of waitpid.
4509 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4510
a109c7c1
MS
45112010-05-17 Michael Snyder <msnyder@vmware.com>
4512
1c5313c5
MS
4513 * tui/tui.c: White space.
4514 * tui/tui-data.c: White space.
4515 * tui/tui-disasm.c: White space.
4516 * tui/tui-file.c: White space.
4517 * tui/tui-interp.c: White space.
4518 * tui/tui-main.c: White space.
4519 * tui/tui-out.c: White space.
4520 * tui/tui-regs.c: White space.
4521 * tui/tui-source.c: White space.
4522 * tui/tui-stack.c: White space.
4523 * tui/tui-win.c: White space.
4524 * tui/tui-winsource.c: White space.
4525
f4a14ae6
MS
4526 * procfs.c: White space.
4527
d59b6f6c
MS
4528 * python/py-auto-load.c: White space.
4529 * python/py-block.c: White space.
4530 * python/py-breakpoint.c: White space.
4531 * python/py-cmd.c: White space.
4532 * python/py-function.c: White space.
4533 * python/py-lazy-string.c: White space.
4534 * python/py-objfile.c: White space.
4535 * python/py-param.c: White space.
4536 * python/py-prettyprint.c: White space.
4537 * python/py-progspace.c: White space.
4538 * python/py-symtab.c: White space.
4539 * python/python.c: White space.
4540 * python/py-type.c: White space.
4541 * python/py-utils.c: White space.
4542 * python/py-value.c: White space.
4543
102040f0
MS
4544 * mi/mi-cmd-break.c: White space.
4545 * mi/mi-cmd-env.c: White space.
4546 * mi/mi-cmds.c: White space.
4547 * mi/mi-cmd-stack.c: White space.
4548 * mi/mi-cmd-var.c: White space.
4549 * mi/mi-console.c: White space.
4550 * mi/mi-getopt.c: White space.
4551 * mi/mi-interp.c: White space.
4552 * mi/mi-main.c: White space.
4553 * mi/mi-out.c: White space.
4554 * mi/mi-parse.c: White space.
4555
cdb27c12
MS
4556 * cli/cli-cmds.c: White space.
4557 * cli/cli-decode.c: White space.
4558 * cli/cli-dump.c: White space.
4559 * cli/cli-interp.c: White space.
4560 * cli/cli-logging.c: White space.
4561 * cli/cli-script.c: White space.
4562 * cli/cli-setshow.c: White space.
4563
a109c7c1
MS
4564 * valarith.c: White space.
4565 * valops.c: White space.
4566 * valprint.c: White space.
4567 * value.c: White space.
4568 * varobj.c: White space.
4569 * xcoffread.c: White space.
4570 * xml-support.c: White space.
4571 * xml-tdesc.c: White space.
4572
3872d37d
AS
45732010-05-17 Andreas Schwab <schwab@redhat.com>
4574
4575 PR gdb/11092
4576 * c-lang.c (c_printstr): Compute real length of NUL terminated
4577 string at first.
4578
0cce5bd9
JB
45792010-05-17 Joel Brobecker <brobecker@adacore.com>
4580
4581 * parse.c (parse_exp_in_context): When block is not NULL, use
4582 its associated language to parse the expression instead of
4583 the current_language.
4584
5f19d646
JB
45852010-05-17 Joel Brobecker <brobecker@adacore.com>
4586
4587 * jv-lang.c (java_lookup_class): Remove commented out code.
4588 (type_from_class): Likewise.
4589 (java_op_print_tab): Remove commented-out elements.
4590
28c85d6c
JB
45912010-05-17 Joel Brobecker <brobecker@adacore.com>
4592
4593 * ada-lang.c (to_fixed_range_type): The the raw index type as
4594 argument instead of the raw type name. Remove orig_type parameter.
4595 Update calls throughout.
4596 (ada_fixup_array_indexes_type): New function.
4597 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4598 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4599 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4600 Remove name parameter.
4601 (print_array_type): Add call to ada_fixup_array_indexes_type.
4602 Update calls to print_range_type.
4603 (ada_print_type): Update calls to print_range_type.
4604
d09039dd
PM
46052010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4606
4607 * dwarf2read.c (read_set_type): Set type length if
4608 DW_AT_byte_size attribute is present.
4609
7a081a30
PM
46102010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4611
4612 * p-valprint.c (pascal_val_print): Handle set type if range limits
4613 are undefined but size is known.
4614
77382aee
PA
46152010-05-17 Pedro Alves <pedro@codesourcery.com>
4616
4617 * procfs.c: Reformat.
4618
433759f7
MS
46192010-05-16 Michael Snyder <msnyder@vmware.com>
4620
5d502164
MS
4621 * target.c: White space.
4622 * target-descriptions.c: White space.
4623 * target-memory.c: White space.
4624 * thread.c: White space.
4625 * top.c: White space.
4626 * tracepoint.c: White space.
4627 * trad-frame.c: White space.
4628 * tramp-frame.c: White space.
4629 * ui-file.c: White space.
4630 * ui-out.c: White space.
4631 * user-regs.c: White space.
4632 * utils.c: White space.
4633
433759f7
MS
4634 * scm-exp.c: White space.
4635 * scm-lang.c: White space.
4636 * scm-valprint.c: White space.
4637 * sentinel-frame.c: White space.
4638 * ser-base.c: White space.
4639 * ser-go32.c: White space.
4640 * serial.c: White space.
4641 * ser-mingw.c: White space.
4642 * ser-pipe.c: White space.
4643 * ser-tcp.c: White space.
4644 * ser-unix.c: White space.
4645 * solib.c: White space.
4646 * solib-darwin.c: White space.
4647 * solib-frv.c: White space.
4648 * solib-irix.c: White space.
4649 * solib-osf.c: White space.
4650 * solib-pa64.c: White space.
4651 * solib-som.c: White space.
4652 * solib-spu.c: White space.
4653 * solib-svr4.c: White space.
4654 * solib-target.c: White space.
4655 * source.c: White space.
4656 * stabsread.c: White space.
4657 * stack.c: White space.
4658 * std-regs.c: White space.
4659 * symfile.c: White space.
4660 * symmisc.c: White space.
4661 * symtab.c: White space.
4662
dd304d53
MS
46632010-05-16 Michael Snyder <msnyder@vmware.com>
4664
4665 * source.c (_initialize_source): Add "rev" as an abbreviation
4666 for the "reverse-search" command.
4667
a744cf53
MS
46682010-05-16 Michael Snyder <msnyder@vmware.com>
4669
123f5f96
MS
4670 * record.c: White space.
4671 * regcache.c: White space.
4672 * reggroups.c: White space.
4673 * remote-fileio.c: White space.
4674 * remote-m32r-sdi.c: White space.
4675 * remote-mips.c: White space.
4676 * remote-sim.c: White space.
a744cf53
MS
4677 * remote.c: White space.
4678 (process_g_packet): Remove orphan braces.
4679
b8d56208
MS
46802010-05-15 Michael Snyder <msnyder@vmware.com>
4681
ad3bbd48
MS
4682 * parse.c: White space.
4683 * p-lang.c: White space.
4684 * posix-hdep.c: White space.
4685 * printcmd.c: White space.
4686 * progspace.c: White space.
4687 * prologue-value.c: White space.
4688 * psymtab.c: White space.
4689 * p-typeprint.c: White space.
4690 * p-valprint.c: White space.
4691
5cc80db3
MS
4692 * objc-lang.c: White space.
4693 * objfiles.c: White space.
4694 * observer.c: White space.
4695 * osabi.c: White space.
4696 * osdata.c: White space.
4697
b8d56208
MS
4698 * m2-lang.c: White space.
4699 * m2-valprint.c: White space.
4700 * macrocmd.c: White space.
4701 * macroexp.c: White space.
4702 * macroscope.c: White space.
4703 * macrotab.c: White space.
4704 * main.c: White space.
4705 * maint.c: White space.
4706 * mdebugread.c: White space.
4707 * memattr.c: White space.
4708 * minsyms.c: White space.
4709 * monitor.c: White space.
4710
9a619af0
MS
47112010-05-14 Michael Snyder <msnyder@vmware.com>
4712
e0881a8e
MS
4713 * jv-lang.c: White space.
4714 * jv-typeprint.c: White space.
4715 * jv-valprint.c: White space.
4716 * language.c: White space.
4717 * libunwind-frame.c: White space.
4718 * linespec.c: White space.
4719 * linux-nat.c: White space.
4720 * linux-record.c: White space.
4721 * linux-thread-db.c: White space.
4722
abbb1732
MS
4723 * infcall.c: White space.
4724 * inf-child.c: White space.
4725 * infcmd.c: White space.
4726 * inferior.c: White space.
4727 * inf-loop.c: White space.
4728 * inflow.c: White space.
4729 * inline-frame.c: White space.
4730 * interps.c: White space.
4731
d8734c88
MS
4732 * gcore.c: White space.
4733 * gdb.c: White space.
4734 * gdbtypes.c: White space.
4735 * gnu-nat.c: White space.
4736 * gnu-v2-abi.c: White space.
4737 * gnu-v3-abi.c: White space.
4738
bb9bcb69
MS
4739 * findcmd.c: White space.
4740 * findvar.c: White space.
4741 * fork-child.c: White space.
4742 * frame-base.c: White space.
4743 * frame.c: White space.
4744 * frame-unwind.c: White space.
4745 * f-valprint.c: White space.
4746
d7f9d729
MS
4747 * elfread.c: White space.
4748 * environ.c: White space.
4749 * eval.c: White space.
4750 * event-loop.c: White space.
4751 * event-top.c: White space.
4752 * exceptions.c: White space.
4753 * exec.c: White space.
4754 * expprint.c: White space.
4755
9a619af0
MS
4756 * dbxread.c: White space.
4757 * dcache.c: White space.
4758 * disasm.c: White space.
4759 * doublest.c: White space.
4760 * dsrec.c: White space.
4761 * dummy-frame.c: White space.
4762 * dwarf2expr.c: White space.
4763 * dwarf2-frame.c: White space.
4764 * dwarf2loc.c: White space.
4765 * dwarf2read.c: White space.
4766
88d4aea7
PM
47672010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4768
889bf7c5 4769 PR python/11482
88d4aea7
PM
4770
4771 * python/py-value.c (valpy_hash): New function.
4772 (value_object_type): Register valpy_hash.
4773
7a298875 47742010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4775 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4776
4777 * linux-fork.c (gdbthread.h): New include.
4778 (fork_info): Add parent_ptid.
4779 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4780 functions.
4781 (delete_checkpoint_command): Call inferior_call_waitpid.
4782 (checkpoint_command): Set parent_ptid.
4783
c14feecc
MS
47842010-05-13 Michael Snyder <msnyder@vmware.com>
4785
6595d32b
MS
4786 * dictionary.c: Re-indent to GNU coding standard.
4787
c5504eaf
MS
4788 * charset.c: White space.
4789 * c-lang.c: White space.
4790 * cli-out.c: White space.
4791 * coffread.c: White space.
4792 * complaints.c: White space.
4793 * completer.c: White space.
4794 * corefile.c: White space.
4795 * corelow.c: White space.
4796 * cp-abi.c: White space.
4797 * cp-namespace.c: White space.
4798 * cp-support.c: White space.
4799 * cp-valprint.c: White space.
4800 * c-typeprint.c: White space.
4801 * c-valprint.c: White space.
cc59ec59
MS
4802 * blockframe.c: White space.
4803 * breakpoint.c: White space.
4804 * buildsym.c: White space.
4805 * blockframe.c: White space.
b6de9da4 4806 * bcache.c: White space.
05c547f6
MS
4807 * gdbarch.sh: White space, add blank lines.
4808 * arch-utils.c: Ditto.
4809 * gdbarch.c: Regenerate.
1c4d3f96 4810 * frame.c: White space, add blank lines.
f89b749f
MS
4811 * stack.c: White space, add blank lines.
4812 (initialize_stack): Remove long-dead code.
c14feecc 4813
a2d33775
JK
48142010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4815
4816 Code cleanup.
4817 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4818 (locexpr_read_variable, loclist_read_variable): Update the callers.
4819
33ac96f0
JK
48202010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4821
4822 Code cleanup.
4823 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4824 Remove check of NULL returned by tag_type_to_type.
4825 (die_containing_type): Remove variable type. Remove type_die variable
4826 initialization. Remove check of NULL returned by tag_type_to_type.
4827
f5a010c0
PM
48282010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4829
4830 PR exp/11530.
4831 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4832 names of unnamed structures or unions.
4833
bf701c2c
PM
48342010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4835
4836 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4837 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4838 find_procinfo_or_die call.
4839 (procfs_stopped_data_address): New function.
4840 (procfs_use_watchpoints): Register new watchpoint related function.
4841
d02691ef
TT
48422010-05-11 Tom Tromey <tromey@redhat.com>
4843
4844 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4845
e0627e85
MS
48462010-05-10 Michael Snyder <msnyder@vmware.com>
4847
4848 * utils.c: White space cleanup.
4849
cc73bb8c
TT
48502010-05-10 Tom Tromey <tromey@redhat.com>
4851
4852 * eval.c (ptrmath_type_p): Add 'lang' argument.
4853 (evaluate_subexp_standard): Update.
4854 (evaluate_subexp_with_coercion): Update.
4855 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4856
c02866a0
MS
48572010-05-10 Michael Snyder <msnyder@vmware.com>
4858
4859 * utils.c (do_fclose_cleanup) Restore local variable.
4860
06280d23
DE
48612010-05-09 Doug Evans <dje@google.com>
4862
4863 * record.c (init_record_core_ops): Rename record_core to record-core.
4864
fa07e785
JB
48652010-05-08 Joel Brobecker <brobecker@adacore.com>
4866
4867 Implement task switching on pa-hpux.
4868 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4869 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4870
4c680d1d
PM
48712010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4872
4873 * valops.c (find_overload_match): Add missing i18n markup.
4874
28e176a6
PM
48752010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4876
4877 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4878
48cb83fd
JK
48792010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4882 list for the obconcat call.
4883 * mdebugread.c (parse_symbol): Likewise.
4884 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4885 Likewise.
4886 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4887 New variable ap. Remove variables len and val.
4888 * symfile.h (obconcat): Likewise for the prototype.
4889
f92adf3c
MS
48902010-05-07 Michael Snyder <msnyder@vmware.com>
4891
4892 * python/python.c (execute_gdb_command): Remove unused variables.
4893 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 4894 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
4895 Remove unused variable.
4896 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4897 (cmdpy_completer): Remove unused variable.
4898 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4899 * python/py-function.c (fnpy_call): Remove unused variable.
4900 * python/py-objfile.c (objfile_to_objfile_object):
4901 Remove unused variable.
4902 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 4903 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
4904 Remove unused variable.
4905 (gdbpy_default_visualizer): Remove unused variable.
4906 * python/py-progspace.c (pspace_to_pspace_object):
4907 Remove unused variable.
0407b3f1 4908 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 4909 Remove unused variable.
0407b3f1 4910 * python/py-type.c (typy_template_argument):
f92adf3c
MS
4911 Remove unused variable.
4912 * python/py-value.c (valpy_string): Remove unused variable.
4913 (convert_value_from_python): Remove unused variables.
4914
d160942f
MS
49152010-05-07 Michael Snyder <msnyder@vmware.com>
4916
4917 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4918 and use it to compute variable 't1'.
4919
587542ab
JB
49202010-05-07 Joel Brobecker <brobecker@adacore.com>
4921
4922 * ada-lang.c (assign_aggregate): Remove unused variable.
4923
7322dca9
SW
49242010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4925
4926 PR C++/7943:
4927 * valops.c (find_overload_match): Handle fsym == NULL case.
4928 Add int no_adl argument.
4929 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4930 when appropriate.
4931 Add int no_adl argument.
4932 (find_oload_champ_namespace): Add int no_adl argument.
4933 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4934 expression.
4935 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4936 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4937 Evaluate arguments and use them to perform ADL lookup.
4938 Pass no_adl argument to find_overload_match.
4939 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4940 * cp-support.h: Added prototype for
4941 make_symbol_overload_list_namespace.
4942 * cp-support.c (make_symbol_overload_list_namespace): New function.
4943 (make_symbol_overload_list_adl_namespace): New function.
4944 (make_symbol_overload_list_adl): New function.
4945 (make_symbol_overload_list_using): Moved code to add function to
4946 overload set to make_symbol_overload_list_namespace.
4947 * c-exp.y: create UNKNOWN_CPP_NAME token.
4948 Add parse rule for ADL functions.
4949 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4950
3f1f6884
JK
49512010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
4953 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4954 sentinel.
4955
3caf13b4
JB
49562010-05-07 Joel Brobecker <brobecker@adacore.com>
4957
4958 Implement task switching on solaris targets.
4959 * sol-thread.c (thread_db_find_thread_from_tid)
4960 (sol_get_ada_task_ptid): New functions.
4961 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4962
94b0dee1
PA
49632010-05-07 Pedro Alves <pedro@codesourcery.com>
4964
4965 * remote.c (remote_query_supported_append): Use reconcat.
4966 (remote_query_supported): Install a cleanup. Use reconcat.
4967
1408c251
PA
49682010-05-07 Pedro Alves <pedro@codesourcery.com>
4969
4970 * gdbarch.sh (qsupported): Delete.
4971 * gdbarch.h, gdbarch.c: Regenerate.
4972 * remote.c (remote_query_supported): Remove use of
4973 gdbarch_qsupported.
4974
f8e50cfe
SDJ
49752010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4976
4977 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4978 function.
4979
8ea13695
MS
49802010-05-06 Michael Snyder <msnyder@vmware.com>
4981
c6913b7d
MS
4982 * xml-support.c (xinclude_start_include): Delete unused variable.
4983 (xml_process_xincludes): Delete unused variable.
4984 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4985 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4986 (tdesc_find_arch_register): Delete unused variable.
4987 (tdesc_use_registers): Delete unused variable.
4988 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4989 * inferior.c (print_inferior): Delete unused variable.
4990 * record.c (record_open_1): Delete unused variable.
4991 (record_restore): Delete unused variable.
4992 (cmd_record_save): Delete unused variable.
4993 * gcore.c (derive_heap_segment): Delete unused variable.
4994 (objfile_find_memory_regions): Use unused variable.
4995 * jit.c (jit_inferior_init): Delete unused variable.
4996 * progspace.c (clone_program_space): Delete unused variable.
4997 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
4998
4999 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5000 Delete unused variable.
5001 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5002 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5003 (method_name_from_physname): Delete unused variable.
5004 (cp_func_name): Delete unused variable.
5005 (cp_validate_operator): Delete unused variable.
0407b3f1 5006 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5007 Delete unused variable.
0407b3f1 5008 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5009 Delete unused variable.
5010 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5011
1be757cf
MS
5012 * serial.c (serial_for_fd): Delete unused variable.
5013 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5014 * top.c (execute_command): Delete unused variable.
5015 (init_main): Delete unused variable.
5016 * utils.c (do_fclose_cleanup): Delete unused variable.
5017 (do_all_inferior_continuations): Delete unused variable.
5018 (initialize_utils): Delete unused variable.
5019 (internal_problem_mode): Delete unused global.
5020 * frame.c (get_prev_frame): Delete unused global.
5021 (get_frame_locals_address): Delete unused global.
5022 (get_frame_args_address): Delete unused global.
5023
9216103f
MS
5024 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5025 (pascal_type_print_varspec_prefix): Delete unused variable.
5026 * f-typeprint.c (f_type_print_base): Delete unused variable.
5027 (f_type_print_varspec_suffix): Delete unused variable.
5028 * m2-typeprint.c (m2_print_type): Delete unused variable.
5029 (m2_long_set): Delete unused variable.
5030 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5031 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5032 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5033 Delete unused variable.
5034 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5035 * m2-valprint.c (m2_val_print): Delete unused variable.
5036
34fa1d9d
MS
5037 * ui-out.c (ui_out_field_int): Delete unused variable.
5038 (ui_out_field_fmt_int): Delete unused variable.
5039 * varobj.c (varobj_list_children): Delete unused variable.
5040 (varobj_set_value): Delete unused variable.
5041 (install_new_value_visualizer): Delete unused variable.
5042 (varobj_set_visualizer): Delete unused variable.
5043 (varobj_update): Delete unused variable.
5044 (varobj_editable_p): Delete unused variable.
5045 (c_value_of_root): Delete unused variable.
5046 (cplus_describe_child): Delete unused variable.
5047
b5385fc0
MS
5048 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5049 (decode_constrained_packed_array_type): Delete unused variable.
5050 (add_defn_to_vec): Delete unused variable.
5051 (symbol_completion_match): Delete unused variable.
5052 (value_tag_from_contents_and_address): Delete unused variable.
5053 (ada_evaluate_subexp): Delete unused variable.
5054 * c-lang.c (classify_type): Delete unused variable.
5055 * f-lang.c (f_printstr): Delete unused variable.
5056 * objc-lang.c (objc_printstr): Delete unused variable.
5057 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5058 * jv-lang.c (type_from_class): ifdef unused variable.
5059 (java_class_name_from_physname): Delete unused variable.
5060 * m2-lang.c (m2_printstr): Delete unused variable.
5061
4fc06681
MS
5062 * objfiles.c (objfile_relocate): Delete unused variable.
5063 * maint.c (_initialize_maint_cmds): Delete unused variable.
5064 * demangle.c (_initialize_demangler): Delete unused variable.
5065 * corefile.c (reopen_exec_file): Delete unused variable.
5066 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5067 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5068
6b4398f7
MS
5069 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5070 * memattr.c (mem_delete): Delete unused variable.
5071 (invalidate_target_mem_regions): Delete unused variable.
5072 * mem-break.c (default_memory_insert_breakpoint):
5073 Delete unused variable.
5074 * target.c (target_get_osdata): Delete unused variable.
5075 * parse.c (length_of_subexp): Delete unused variable.
5076 (prefixify_subexp): Delete unused variable.
5077 (exp_iterate): Delete unused variable.
5078 * reverse.c (delete_bookmark_command): Delete unused variable.
5079
308d96ed
MS
5080 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5081 * macroexp.c (gather_arguments): Delete unused variable.
5082 (substitute_args): Delete unused variable.
5083 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5084 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5085 (_initialize_gdbarch): Delete unused variable.
5086 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5087 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5088 Delete unused variable.
5089 (_initialize_gdbarch_utils): Delete unused variable.
5090 * gdbtypes.c (make_cv_type): Delete unused variable.
5091 (make_type_with_address_space): Delete unused variable.
5092
167e4384
MS
5093 * linespec.c (decode_compound): Delete unused variable.
5094 * dictionary.c (iterator_next_hashed): Delete unused variable.
5095 * infcall.c (call_function_by_hand): Delete unused variable.
5096 * infcmd.c (step_1): Delete unused variable.
5097 (registers_info): Delete unused variable.
5098 (attach_command): Delete unused variable.
5099 * infrun.c (follow_exec): Delete unused variable.
5100 (handle_step_into_function_backwards): Delete unused variable.
5101 (_initialize_infrun): Delete unused variable.
5102 * stack.c (parse_frame_specification_1): Delete unused variable.
5103 (frame_info): Delete unused variable.
5104 (backtrace_command_1): Delete unused variable.
5105 (catch_info): Delete unused variable.
5106
8f78b329
MS
5107 * eval.c (evaluate_subexp_standard): Delete unused variable.
5108 * valops.c (value_cast_pointers): Delete unused variable.
5109 (value_dynamic_cast): Delete unused variable.
5110 (value_array): Delete unused variable.
5111 (find_overload_match): Delete unused variable.
5112 * valarith.c (value_subscript): Delete unused variable.
5113 (value_binop): Delete unused variable.
5114 * valprint.c (_initialize_valprint): Delete unused variable.
5115 * printcmd.c (print_command_1): Delete unused variable.
5116 (address_info): Delete unused variable.
5117 (printf_command): Delete unused variable.
5118
8ea13695
MS
5119 * auxv.c (target_auxv_search): Delete unused variable.
5120 * blockframe.c (get_frame_block): Delete unused variable.
5121 * regcache.c (regcache_cpy): Delete unused variable.
5122 (regcache_cpy_no_passthrough): Delete unused variable.
5123 * charset.c (wchar_iterate): Delete unused variable.
5124 (find_charset_names): Delete unused variable.
5125 (_initialize_charset): Delete unused variable.
0407b3f1 5126 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5127 Delete unused variable.
0407b3f1 5128 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5129 Delete unused variable.
5130 (set_substitute_path_command): Delete unused variable.
5131 * value.c (preserve_values): Delete unused variable.
5132 (value_from_double): Delete unused variable.
5133
afe38095
MS
51342010-05-05 Michael Snyder <msnyder@vmware.com>
5135
952a6d41
MS
5136 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5137 (find_last_source_symtab_from_partial): Delete unused variable.
5138 * symfile.c (place_section): Delete unused variable.
5139 (default_symfile_offsets): Delete unused variable.
5140 (get_debug_link_info): Delete unused variable.
5141 (find_separate_debug_file_by_debuglink): Delete unused variable.
5142 (add_symbol_file_command): Delete unused variable.
5143 (symfile_find_segment_sections): Delete unused variable.
5144 * symmisc.c (free_symtab): Delete unused variable.
5145 (dump_symtab_1): Delete unused variable.
5146 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5147 (find_pc_sect_symtab): Delete unused variable.
5148 (skip_prologue_using_lineinfo): Delete unused variable.
5149 (sources_info): Delete unused variable.
5150 (completion_list_add_name): Delete unused variable.
5151 (expand_line_sal): Delete unused variable.
5152
0407b3f1 5153 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5154 Delete unused variables.
5155 (insert_catchpoint): Delete unused variable.
5156 (update_watchpoint): Delete unused variable.
5157 (insert_bp_location): Delete unused variable.
5158 (insert_breakpoint_locations): Delete unused variable.
5159 (remove_breakpoint_1): Delete unused variable.
5160 (software_breakpoint_inserted_here_p): Delete unused variable.
5161 (watchpoints_triggered): Delete unused variable.
5162 (bpstat_check_watchpoint): Delete unused variable.
5163 (bpstat_stop_status): Delete unused variable.
5164 (print_one_breakpoint_location): Delete unused variable.
5165 (allocate_bp_location): Delete unused variable.
5166 (create_breakpoint): Delete unused variable.
5167 (watch_command_1): Delete unused variable.
5168 (catch_exception_command_1): Delete unused variable.
5169 (catch_ada_exception_command): Delete unused variable.
5170 (delete_breakpoint): Delete unused variable.
5171 (breakpoint_re_set_one): Delete unused variable.
5172 (do_enable_breakpoint): Delete unused variable.
5173
eda5a4d7
PA
51742010-05-06 Pedro Alves <pedro@codesourcery.com>
5175
5176 * amd64-tdep.c: Include disasm.h.
5177 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5178 (amd64_insn_length): Moved to disasm.c and renamed.
5179 (fixup_riprel): Adjust.
5180 * disasm.c (do_ui_file_delete): New.
5181 (gdb_insn_length): New.
5182 (gdb_buffered_insn_length_fprintf)
5183 (gdb_buffered_insn_length_init_dis)
5184 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5185 renamed.
5186 * disasm.h (gdb_insn_length): Declare.
5187 (gdb_buffered_insn_length): Declare.
5188
02357a4a
PA
51892010-05-06 Pedro Alves <pedro@codesourcery.com>
5190
5191 * remote.c (clear_threads_parsing_context): New.
5192 (remote_threads_info): Delete unused null_cleanup. Install a
5193 cleanup to clear the threads_parsing_context in case parsing
5194 throws.
5195
8c5630cb
MS
51962010-05-05 Michael Snyder <msnyder@vmware.com>
5197
5198 * c-exp.y (parse_string_or_char): Delete unused variable.
5199 (c_lex): Delete unused variable.
5200 * cp-name-parser.y (cpname_lex): Delete unused variable.
5201 * ada-exp.y (find_primitive_type): Delete unused variable.
5202 (write_var_or_type): Delete unused variable.
5203 * jv-exp.y (java_parse): Delete unused variable.
5204 (push_expression_name): Delete unused variable.
5205 * p-exp.y (pascal_lex): Delete unused variable.
5206
46c162d4
PA
52072010-05-05 Pedro Alves <pedro@codesourcery.com>
5208
5209 * remote.c (remote_threads_info): Really revert previous previous
5210 change.
5211
0043e6a5
MS
52122010-05-05 Michael Snyder <msnyder@vmware.com>
5213
fa238c03
MS
5214 * elfread.c (elf_symtab_read): Delete unused variable.
5215 (find_separate_debug_file_by_buildid): Delete unused variables.
5216 (elf_symfile_read): Delete unused variable.
5217
5218 * coffread.c (coff_symfile_read): Delete unused variables.
5219
5220 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5221 (read_pe_exported_syms): Delete unused variable.
5222
5223 * stabsread.c (define_symbol): Delete unused variable.
5224
5225 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5226 (process_psymtab_comp_unit): Delete unused variable.
5227 (dwarf2_build_psymtabs_hard): Delete unused variable.
5228 (load_partial_comp_unit): Delete unused variable.
5229 (create_all_comp_units): Delete unused variable.
5230 (scan_partial_symbols): Delete unused variable.
5231 (add_partial_symbol): Delete unused variable.
5232 (add_partial_namespace): Delete unused variable.
5233 (add_partial_enumeration): Delete unused variable.
5234 (load_full_comp_unit): Delete unused variable.
5235 (process_full_comp_unit): Delete unused variable.
5236 (read_file_scope): Delete unused variable.
5237 (read_type_unit_scope): Delete unused variable.
5238 (process_structure_scope): Delete unused variable.
5239 (process_enumeration_scope): Delete unused variable.
5240 (read_tag_ptr_to_member_type): Delete unused variable.
5241 (read_typedef): Delete unused variable.
5242 (read_partial_die): Delete unused variable.
5243 (decode_locdesc): Delete unused variable.
5244 (zeroed_partial_die): Delete unused global variable.
5245
0407b3f1 5246 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5247 Delete unused variable.
0407b3f1 5248 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5249 Delete unused variable.
5250 (tui_check_register_values): Delete unused variable.
5251 (tui_register_format): Delete unused variable.
5252 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5253 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5254 Delete unused variables.
5255 (tui_vertical_data_scroll): Delete unused variables.
5256
75721c66
MS
52572010-05-05 Michael Snyder <msnyder@vmware.com>
5258
c31a71f4
MS
5259 * remote.c (remote_threads_info): Revert questionable part of
5260 the previous change.
5261
52622010-05-05 Michael Snyder <msnyder@vmware.com>
5263
5264 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5265 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5266 (mi_cmd_var_list_children): Delete unused variable.
5267 (varobj_update_one): Delete unused variable.
5268 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5269 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5270 Delete unused variable.
5271 (mi_cmd_stack_list_variables): Delete unused variable.
5272 (list_args_or_locals): Delete unused variable.
0407b3f1 5273 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5274 Delete unused variables.
5275 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5276 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5277 Delete unused variable.
5278 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5279 (mi_cmd_interpreter_exec): Delete unused variable.
5280 (mi_on_normal_stop): Delete unused variable.
5281 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5282 (print_one_inferior): Delete unused variables.
5283 (mi_execute_command): Delete unused variable.
5284 (mi_cmd_execute): Delete unused variable.
5285 (timestamp): Delete unused variable.
5286
5287 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5288 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5289 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5290 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5291 (recurse_read_control_structure): Delete unused variable.
5292 (script_from_file): Delete unused variable.
c31a71f4 5293 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5294 (disassemble_command): Delete unused variable.
5295
5296 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5297 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5298 Delete unused variables.
5299 (encode_actions_1): Delete unused variables.
5300 (start_tracing): Delete unused variable.
5301 (trace_status_mi): Delete unused variable.
5302 (tfind_1): Delete unused variable.
5303 (trace_find_pc_command): Delete unused variable.
5304 (trace_find_line_command): Delete unused variables.
5305 (trace_find_range_command): Delete unused variables.
5306 (trace_find_outside_command): Delete unused variables.
5307 (parse_tracepoint_definition): Delete unused variables.
5308 (tfile_fetch_registers): Delete unused variable.
5309
9128a503
MS
5310 * dcache.c (dcache_init): Delete unused variable.
5311 (dcache_info): Delete unused variable.
5312
aa369b55 5313 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5314 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5315 (remote_get_trace_status): Delete unused variables.
5316
9e9547e4
MS
5317 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5318 (thread_from_lwp): Delete unused variable.
5319 (enable_thread_event_reporting): Delete unused variable.
5320 (check_for_thread_db): Delete unused variables.
5321 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5322
9e9547e4
MS
5323 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5324 (checkpoint_command): Delete unused variable.
5325 (linux_fork_context): Delete unused variables.
5326
fa238c03 5327 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5328 (linux_tracefork_child): Delete unused variable.
5329 (linux_child_follow_fork): Delete unused variable.
5330 (linux_nat_detach): Delete unused variable.
5331 (linux_handle_extended_wait): Delete unused variable.
5332 (linux_nat_has_pending_sigint): Delete unused variable.
5333 (linux_nat_find_memory_regions): Delete unused variable.
5334 (linux_nat_make_corefile_notes): Delete unused variables.
5335 (linux_nat_info_proc_cmd): Delete unused variable.
5336 (linux_proc_pending_signals): Delete unused variable.
5337 (linux_nat_stop_lwp): Delete unused variables.
5338 (_initialize_linux_nat): Delete unused variable.
5339
fa238c03 5340 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5341
0407b3f1 5342 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5343 Delete unused variables.
5344
789d24f0
MS
5345 * corelow.c (core_xfer_partial): Delete unused variables.
5346
1cd337a5 5347 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5348 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5349 conditionally-used variable declarations.
5350
b00e3f56
MS
5351 * solib.c (solib_find): Delete unused variable.
5352 (free_so_symbols): Delete unused variable.
5353 (info_sharedlibrary_command): Delete unused variable.
5354 (reload_shared_libraries_1): Delete unused variable.
5355 (_initialize_solib): Delete unused variable.
5356
90f62196
MS
5357 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5358 (i386_collect_xstateregset): Delete unused variable.
5359 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5360
75721c66
MS
5361 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5362 Delete unused variable 'type'.
5363
af33db37
JB
53642010-05-05 Joel Brobecker <brobecker@adacore.com>
5365
90f62196 5366 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5367 ada-lang.c: Remove comment mentioning these macros.
5368 * m2-exp.y: Delete commented out code.
af33db37 5369
0497f5b0
JB
53702010-05-05 Joel Brobecker <brobecker@adacore.com>
5371
5372 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5373 for array types.
5374 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5375
6e39997a
PM
53762010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5377
5378 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5379 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5380 ATTRIBUTE_UNUSED.
5381 (cleanup_kernel_helper_return): Likewise.
5382 * arm-tdep.c (copy_unmodified): Likewise.
5383 (copy_preload): Likewise.
5384 (copy_copro_load_store): Likewise.
5385 (cleanup_branch): Likewise.
5386 (copy_b_bl_blx): Likewise.
5387 (copy_bx_blx_reg): Likewise.
5388 (copy_alu_imm): Likewise.
5389 (copy_alu_reg): Likewise.
5390 (copy_alu_shifted_reg): Likewise.
5391 (cleanup_load): Likewise.
5392 (cleanup_store): Likewise.
5393 (cleanup_block_load_pc): Likewise.
5394 (cleanup_svc): Likewise.
5395 (copy_undef): Likewise.
5396 (copy_unpred): Likewise.
5397 * remote.c (register_remote_support_xml): Likewise.
5398
1412f70b
HZ
53992010-05-05 Hui Zhu <teawater@gmail.com>
5400
5401 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5402
c4f7c687
MK
54032010-05-04 Mark Kettenis <kettenis@gnu.org>
5404
5405 * remote.c (register_remote_support_xml)
5406 (remote_query_supported_append, remote_query_supported): Add cast
5407 to NULL used as sentinel.
5408 * tracepoint.c (tvariables_info_1): Likewise.
5409 * utils.c (add_internal_problem_command): Likewise.
5410
63b4f126
MGD
54112010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5412
5413 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5414 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5415 registers gracefully.
5416
2f1bdd26
MGD
54172010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5418
0407b3f1 5419 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5420 specific parts.
5421
e1c34c5d
PM
54222010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5423
5424 PR exp/11349.
5425 * printcmd.c (x_command): Only dereference once implicitly for
5426 TYPE_CODE_REF.
5427
ae462839
DE
54282010-05-03 Doug Evans <dje@google.com>
5429
5430 * event-loop.c (gdb_timer): Delete unused global.
5431 (create_timer): Update.
5432
1ac77ea1
JK
54332010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5434
5435 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5436 CURRENT->DECLARATION case.
5437 * cp-support.h (struct using_direct): Provide extended comment.
5438
7c54a108
MK
54392010-05-03 Mark Kettenis <kettenis@gnu.org>
5440
5441 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5442 HPPABSD_SIZEOF_GREGS.
5443 (HPPAOBSD_SIZEOF_FPREGS): New define.
5444 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5445 (hppaobsd_supply_fpregset): New function.
5446 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5447 (hppaobsd_fpregset): New variable.
5448 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5449 (_initialize_hppabsd_tdep): Remove spurious blank line.
5450
278582cb
PM
54512010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5452
5453 PR pascal/11349.
5454 * p-valprint.c (pascal_value_print): Always dereference a value with
5455 type code TYPE_CODE_REF.
0407b3f1 5456
f0223081
PA
54572010-05-03 Pedro Alves <pedro@codesourcery.com>
5458
5459 * remote.c (remote_notice_signals): New.
5460 (remote_start_remote): In non-stop mode, update the remote end on
5461 which signals it can silently pass.
5462 (init_remote_ops): Install remote_notice_signals.
5463
c25c4a8b
JK
54642010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5465
5466 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5467 * command.h (error_no_arg): ... here. Remove NORETURN, change
5468 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5469 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5470 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5471 (internal_verror, internal_error, nomem): Remove NORETURN, change
5472 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5473 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5474 (throw_vfatal, throw_error): Remove NORETURN.
5475 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5476 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5477 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5478 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5479 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5480 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5481 NORETURN.
5482 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5483 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5484 ATTRIBUTE_NORETURN.
5485 * target.c (tcomplain): Likewise.
5486 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5487 ATTRIBUTE_NORETURN.
5488 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5489 (internal_error, perror_with_name, nomem): Remove NORETURN.
5490 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5491 ATTRIBUTE_NORETURN.
5492
a0b31db1
JK
54932010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5494
5495 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5496 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5497 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5498 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5499 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5500 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5501 * complaints.h (complaint, internal_complaint): Likewise.
5502 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5503 (ATTR_FORMAT): Remove.
5504 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5505 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5506 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5507 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5508 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5509 (internal_error, internal_vwarning, internal_warning, warning)
5510 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5511 * disasm.c (fprintf_disasm): Likewise.
5512 * exceptions.c (throw_it): Likewise.
5513 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5514 (throw_error): Likewise.
5515 * language.h (type_error, range_error): Likewise.
5516 * linespec.c (cplusplus_error): Likewise.
5517 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5518 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5519 * monitor.c (monitor_debug): Likewise.
5520 * parser-defs.h (parser_fprintf): Likewise.
5521 * serial.h (serial_printf): Likewise.
5522 * tui/tui-hooks.c (tui_query_hook): Likewise.
5523 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5524 (uo_message): Likewise.
5525 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5526 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5527 Likewise.
5528 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5529
02a45ac0
PA
55302010-05-02 Pedro Alves <pedro@codesourcery.com>
5531
5532 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5533 (cli_table_header, cli_begin, cli_end, cli_field_int)
5534 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5535 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5536 Delete forward declarations.
5537 (cli_ui_out_impl): Move below the callbacks.
5538 (_initialize_cli_out): Delete.
5539
1915ef4f
PA
55402010-05-02 Pedro Alves <pedro@codesourcery.com>
5541
5542 * README: Use consistent `GDB' and `GDBserver' spellings.
5543
0dfb946f
JK
55442010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5545
5546 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5547
4d533103
PA
55482010-05-01 Pedro Alves <pedro@codesourcery.com>
5549
5550 * infrun.c (prepare_for_detach): In non-stop, context switch to
5551 the thread that got the event before handling the event.
5552
705b5767
TT
55532010-04-30 Tom Tromey <tromey@redhat.com>
5554
5555 * symtab.c (symbol_set_names): Fix typo.
5556
3c0ee1a4
PM
55572010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5558
5559 * python/py-param.c (parm_constants): Avoid ARI warning
5560 by adding ARI comment.
5561 (parmpy_init): Likewise.
5562
ea1fae46
PM
55632010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5564
5565 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5566 and created type for re-use.
5567
c24d0242
PM
55682010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5569
5570 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5571
a26d8d11
DE
55722010-04-29 Doug Evans <dje@google.com>
5573
5574 * ser-base.h (reschedule): Delete prototype.
5575 * ser-base.c (reschedule): Make static.
5576
f8624c62
MGD
55772010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5578
5579 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5580 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5581 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5582 EABI.
0407b3f1 5583 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5584 use.
5585
e66408ed
PA
55862010-04-29 Pedro Alves <pedro@codesourcery.com>
5587
5588 PR gdb/11557
5589
5590 * regcache.c (registers_changed): Rename to ...
5591 (registers_changed_ptid): ... this, and only delete register cache
5592 entries matching the ptid filter argument.
5593 (registers_changed): Reimplement on top of registers_changed_ptid.
5594 * regcache.h (registers_changed_ptid): Declare.
5595 * target.c (target_resume): Flush register caches.
5596
d7b32ed3 55972010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5598 Tom Tromey <tromey@redhat.com>
5599 Thiago Jung Bauermann <bauerman@br.ibm.com>
5600
5601 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5602 (SUBDIR_PYTHON_SRCS): Likewise.
5603 (py-parameter.o): New rule.
5604 * python/py-parameter.c: New file.
5605 * python/python-internal.h (gdbpy_initialize_parameter)
5606 (gdbpy_parameter, gdbpy_parameter_value)
5607 (gdbpy_parse_command_name): Declare.
5608 * python/py-cmd.c (parse_command_name): Rename to
5609 gdbpy_parse_command_name.
5610 (gdbpy_parse_command_name): Accept a starting list parameter and
5611 use over cmdlist.
5612 (cmdpy_init): Use gdbpy_parse_command_name.
5613 * python/python.c (parameter_to_python): Rename to
5614 gdbpy_parameter_to_python. Accept enum var_types and value.
5615 (gdbpy_parameter): Use gdbpy_parameter_value.
5616 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5617
ce72ce41
MGD
56182010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5619
5620 * MAINTAINERS: Add myself for write after approval privileges.
5621
6aecb9c2
JB
56222010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5623
5624 D language support.
5625 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5626 (COMMON_OBS): Add d-lang.o d-valprint.o.
5627 (HFILES_NO_SRCDIR): Add d-lang.h.
5628 * NEWS: Mention D language support.
5629 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5630 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5631 * d-lang.c: New file.
5632 * d-lang.h: New file.
5633 * d-valprint.c: New file.
5634 * defs.h (enum language): Add language_d.
5635 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5636 * language.c (binop_result_type, integral_type, character_type)
5637 (string_type, boolean_type, structured_type): Add language_d.
5638 * symfile.c (init_filename_language_table): Add language_d.
5639 * symtab.c: Include d-lang.h.
5640 (symbol_init_language_specific, symbol_find_demangled_name)
5641 (symbol_natural_name, lookup_symbol_in_language)
5642 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5643
6f992fbf
JB
56442010-04-27 Joel Brobecker <brobecker@adacore.com>
5645
5646 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5647
dde59185
JB
56482010-04-27 Joel Brobecker <brobecker@adacore.com>
5649
5650 * symfile.c (init_filename_language_table): Register .dg files
5651 with language_ada.
5652
d09ce91e
JB
56532010-04-27 Joel Brobecker <brobecker@adacore.com>
5654
5655 * gdbtypes.h (struct main_type): Expand comment about target_type
5656 field.
5657
67f1675e
JB
56582010-04-27 Pedro Alves <pedro@codesourcery.com>
5659 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5660
5661 * symfile.c (reread_symbols): Also search for file in libraries.
5662 Update comment.
5663
dfd0fe27
JB
56642010-04-27 Joel Brobecker <brobecker@adacore.com>
5665
5666 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5667 in terms of configuration.
5668
0133421a
JK
56692010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5670
5671 * objfiles.c: Include solist.h.
5672 (free_all_objfiles): New variable so. Check stale solist objfiles.
5673 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5674 and no_shared_libraries.
5675
e78f4312
JB
56762010-04-27 Joel Brobecker <brobecker@adacore.com>
5677
5678 ARI warning fix.
5679 * python/py-auto-load.c (source_section_scripts): Remove trailing
5680 new-line in i18n string.
5681
9214d371
DE
56822010-04-26 Doug Evans <dje@google.com>
5683
5684 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5685
3f172e24
TT
56862010-04-26 Tom Tromey <tromey@redhat.com>
5687
5688 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5689 command list.
5690
e790e06e
PM
56912010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5692
5693 Removal of config/i386/nm-i386sol2.h native configuration file.
5694 * config/i386/nm-i386sol2.h: Remove file.
5695 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5696 * config/i386/sol2-64.mh: Idem.
88562582
PM
5697 * config/djgpp/fnchange.lst: Remove reference to that file.
5698 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5699
b7da9e9f
PM
57002010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5701
5702 PR breakpoints/11531.
5703 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5704 macro definition and related comment.
5705 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5706 (resume): Remove code and comment related to this macro.
5707
72f6eb52
JK
57082010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5709
5710 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5711 Fix whitespace.
5712
ab38a727
PA
57132010-04-24 Pedro Alves <pedro@codesourcery.com>
5714
5715 * defs.h: Adjust comment.
5716 * filesystem.h, filesystem.c: New files.
5717 * Makefile.in (SFILES): Add filesystem.c.
5718 (COMMON_OBS): Add filesystem.o.
5719 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5720 different target and host path flavours.
5721 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5722 has_dos_based_file_system on the gdbarch.
5723 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5724 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5725 * i386-tdep.c (i386_go32_init_abi): Ditto.
5726 * gdbarch.sh (has_dos_based_file_system): New.
5727 * gdbarch.h, gdbarch.c: Regenerate.
5728 * NEWS: Mention improved support for remote targets with DOS-based
5729 filesystems. Mention new `set/show target-file-system-kind'
5730 commands.
5731
35c9c7ba
SS
57322010-04-23 Stan Shebs <stan@codesourcery.com>
5733
5734 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5735 comments.
5736 (struct agent_reqs): Remove.
5737 (ax_reg_mask): Declare.
5738 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5739 (free_agent_expr): Free reg_mask.
5740 (ax_print): Add scope and register mask info.
5741 (ax_reqs): Remove agent_reqs argument, use agent expression
5742 fields, and move part of register mask computation to...
5743 (ax_reg_mask): New function.
5744 * ax-gdb.c (gen_trace_static_fields): Call it.
5745 (gen_traced_pop): Ditto.
5746 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5747 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5748 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5749 (gen_eval_for_expr): Ditto, and require an rvalue.
5750 (agent_command): Call ax_reqs.
5751 (agent_eval_command): Ditto.
5752 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5753 (validate_action_line): Ditto.
5754 (collect_symbol): Ditto.
5755 (encode_actions_1): Ditto.
5756
492928e4
JK
57572010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5758 Paul Pluzhnikov <ppluzhnikov@google.com>
5759 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 Fix deadlock on looped list of loaded shared objects.
5762 * solib-svr4.c (LM_PREV): New function.
5763 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5764 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5765 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5766 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5767
66d09542
DE
57682010-04-23 Doug Evans <dje@google.com>
5769
88a1906b
DE
5770 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5771 python.
5772 * configure: Regenerate.
5773 * main.c: #include "python/python.h".
5774 (captured_main): Defer loading auto-loaded scripts until after
5775 local_gdbinit has been sourced.
5776 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5777 (load_auto_scripts_for_objfile): New function.
5778 (auto_load_new_objfile): Call it.
5779 * python/python.h (gdbpy_global_auto_load): Declare.
5780 (load_auto_scripts_for_objfile): Declare.
5781
66d09542
DE
5782 Add support for auto-loading scripts from .debug_gdb_scripts section.
5783 * NEWS: Add entry for .debug_gdb_scripts.
5784 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5785 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5786 (py-auto-load.o): New rule.
5787 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5788 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5789 * python/py-auto-load.c: New file.
5790 * python/python-internal.h: #include <stdio.h>.
5791 (set_python_list, show_python_list): Declare.
5792 (gdbpy_initialize_auto_load): Declare.
5793 (source_python_script_for_objfile): Declare.
5794 * python/python.c: Remove #include of observer.h.
5795 (gdbpy_auto_load): Moved to py-auto-load.c.
5796 (GDBPY_AUTO_FILENAME): Ditto.
5797 (gdbpy_new_objfile): Delete.
5798 (source_python_script_for_objfile): New function.
5799 (set_python_list, show_python_list): Make externally visible.
5800 (_initialize_python): Move "auto-load" command to py-auto-load.c
5801 and observer_attach_new_objfile to py-auto-load.c.
5802
3a48e6ff 58032010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5804
3a48e6ff
JG
5805 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5806 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5807 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5808 New constants.
5809 (alpha_heuristic_analyze_probing_loop): New function.
5810 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5811 and handle cases when a stack probe loop is generated.
5812 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5813 (alpha_mdebug_max_frame_size_exceeded): New function.
5814 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5815 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5816 Return 0 when the maximum debuggable frame size has been exceeded.
5817
e4166a49
JB
58182010-04-23 Joel Brobecker <brobecker@adacore.com>
5819
5820 Fix ARI warning.
5821 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5822
8bd10a10
CM
58232010-04-20 Chris Moller <cmoller@redhat.com>
5824
5825 PR 10179
5826
5827 * symtab.c (rbreak_command): Added code to include a filename
5828 specification in the rbreak argument.
5829 * NEWS: Added a brief description of filename-qualified rbreak.
5830
c0201579
JK
58312010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5832
5833 Fix crashes on dangling display expressions.
5834 * ada-lang.c (ada_operator_check): New function.
5835 (ada_exp_descriptor): Fill-in the field operator_check.
5836 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5837 * jv-lang.c (exp_descriptor_java): Likewise.
5838 * m2-lang.c (exp_descriptor_modula2): Likewise.
5839 * scm-lang.c (exp_descriptor_scm): Likewise.
5840 * parse.c (exp_descriptor_standard): Likewise.
5841 (operator_check_standard): New function.
5842 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5843 * parser-defs.h (struct exp_descriptor): New field operator_check.
5844 (operator_check_standard, exp_uses_objfile): New declarations.
5845 * printcmd.c: Remove the inclusion of solib.h.
5846 (display_uses_solib_p): Remove the function.
5847 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5848 and exp_uses_objfile instead of display_uses_solib_p.
5849 * solist.h (struct so_list) <objfile>: New comment.
5850 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5851 * symtab.h (lookup_objfile_from_block): New declaration.
5852 (struct general_symbol_info) <obj_section>: Extend the comment.
5853
6ffbb7ab
TJB
58542010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5855 Thiago Jung Bauermann <bauerman@br.ibm.com>
5856
5857 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5858 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5859 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5860 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5861 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5862 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5863 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5864 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5865 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5866 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5867 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5868 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5869 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5870 Define, in case <ptrace.h> doesn't provide it.
5871 (booke_debug_info): New variable.
5872 (max_slots_number): Ditto.
5873 (hw_break_tuple): New struct.
5874 (thread_points): Ditto.
5875 (ppc_threads): New variable.
5876 (PPC_DEBUG_CURRENT_VERSION): New define.
5877 (have_ptrace_new_debug_booke): New function.
5878 (ppc_linux_check_watch_resources): Renamed to ...
5879 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5880 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5881 (booke_cmp_hw_point): New function.
5882 (booke_find_thread_points_by_tid): Ditto.
5883 (booke_insert_point): Ditto.
5884 (booke_remove_point): Ditto.
5885 (ppc_linux_insert_hw_breakpoint): Ditto.
5886 (ppc_linux_remove_hw_breakpoint): Ditto.
5887 (get_trigger_type): Ditto.
5888 (ppc_linux_insert_watchpoint): Handle BookE processors.
5889 (ppc_linux_remove_watchpoint): Ditto.
5890 (ppc_linux_new_thread): Ditto.
5891 (ppc_linux_thread_exit): New function..
5892 (ppc_linux_stopped_data_address): Handle BookE processors.
5893 (ppc_linux_watchpoint_addr_within_range): Ditto.
5894 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5895 to_remove_hw_breakpoint fields of the target operations struct.
5896 Add observe for the thread_exit event.
5897
be0d2954
L
58982010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5899
5900 * i386-linux-nat.c (regmap): Removed.
5901 (fetch_register): Replace regmap with
5902 i386_linux_gregset_reg_offset.
5903 (store_register): Likewise.
5904 (supply_gregset): Likewise.
5905 (fill_gregset): Likewise.
5906
5907 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5908 global.
5909
5910 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5911
f56dcb88
CM
59122010-04-22 Chris Moller <cmoller@redhat.com>
5913
5914 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
5915 method of popping recursion-detection stack with a method based on
5916 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
5917 the static array obstack rather than the static member obstack.)
5918
6cd6a2ae
L
59192010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5920
5921 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5922 (_initialize_amd64_linux_nat): Replace
5923 amd64_linux_gregset64_reg_offset with
5924 amd64_linux_gregset_reg_offset.
5925
5926 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5927 global.
5928
5929 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5930
621791b8
PM
59312010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5932
5933 PR stabs/11479.
5934 * stabsread.c (set_length_in_type_chain): New function.
5935 (read_struct_type): Call set_length_in_type_chain function.
5936 (read_enum_type): Idem.
5937
105c2d85
SS
59382010-04-21 Stan Shebs <stan@codesourcery.com>
5939 Nathan Sidwell <nathan@codesourcery.com>
5940
5941 * tracepoint.c (trace_save): Open in binary mode.
5942
9a22f0d0
PM
59432010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5944
5945 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5946 fields.
0407b3f1 5947 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
5948 builtin_char32 fields.
5949 * printcmd.c (decode_format): Set char size to '\0'
5950 for strings unless explicit size is given.
5951 (print_formatted): Correct calculation of NEXT_ADDRESS
5952 for 16 or 32 bit strings.
5953 (do_examine): Do not force byte size for strings.
5954 Use builtin_char16 and builtin_char32 types to display
0407b3f1 5955 16 or 32 bit-wide strings.
9a22f0d0
PM
5956 (x_command): Set LAST_SIZE to 'b' for string type.
5957
f335d1b3
L
59582010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5959
5960 PR corefiles/11523
5961 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5962 XCR0 first.
5963
5964 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5965 there is no .reg-xstate section.
5966 (i386_linux_core_read_description): Check XCR0 first.
5967
a9789a6b
MF
59682010-04-21 Mike Frysinger <vapier@gentoo.org>
5969
5970 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5971 for len <= 8.
5972
0b66f317
CM
59732010-04-21 Chris Moller <cmoller@redhat.com>
5974
5975 PR 9167
5976 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
5977 method of popping recursion-detection stack with a method based on
5978 obstack_object_size().
0b66f317 5979
6e354e5e
PM
59802010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5981
5982 PR pascal/11492.
5983 * p-valprint.c (pascal_val_print): Fix default printing of integer
5984 arrays.
5985
57174f31
PM
59862010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5987
5988 Fix compilation warning on gcc-4.1.2.
5989 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5990 local variable`pc' to zero.
5991
6fbc7cd8
JB
59922010-04-20 Joel Brobecker <brobecker@adacore.com>
5993
5994 Implement thread support with core files on alpha-tru64.
5995 * dec-thread.c (dec_thread_find_new_threads): New function,
5996 extracted from resync_thread_list.
5997 (resync_thread_list): Add OPS parameter. Replace extracted-out
5998 code by call to dec_thread_find_new_threads.
5999 (dec_thread_wait): Update call to resync_thread_list.
6000 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6001
438c98a1
JB
60022010-04-20 Joel Brobecker <brobecker@adacore.com>
6003
6004 * ada-lang.c (value_pointer): New function.
6005 (make_array_descriptor): Call value_pointer to convert addresses to
6006 pointers.
6007
2971b56b
JB
60082010-04-20 Joel Brobecker <brobecker@adacore.com>
6009
6010 * rs6000-aix-tdep.c: #include exceptions.h.
6011 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6012 while reading the memory at ADDR, then ADDR cannot be a function
6013 descriptor.
6014
be942545
JB
60152010-04-20 Joel Brobecker <brobecker@adacore.com>
6016
6017 * ada-typeprint.c (ada_print_typedef): New function.
6018 * ada-lang.h (ada_print_typedef): Add declaration.
6019 * ada-lang.c (ada_language_defn): set la_print_typdef field
6020 to ada_print_typedef.
6021
1ca8fce0
JB
60222010-04-20 Joel Brobecker <brobecker@adacore.com>
6023
6024 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6025
e9ef4f39
JB
60262010-04-20 Joel Brobecker <brobecker@adacore.com>
6027
6028 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6029 (iterate_over_mappings): Adjust function profile. Add declaration.
6030 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6031 Adjust accordingly.
6032
e294797a
JB
60332010-04-20 Joel Brobecker <brobecker@adacore.com>
6034
6035 * procfs.c (solib_mappings_callback): Move function up to avoid
6036 a compiler warning.
6037
a223f1e7
JB
60382010-04-20 Joel Brobecker <brobecker@adacore.com>
6039
6040 * procfs.c (find_signalled_thread, find_stop_signal): Move
6041 these functions down to define them only when used.
6042
0c3acc09
JB
60432010-04-20 Joel Brobecker <brobecker@adacore.com>
6044
6045 * valprint.c (common_val_print): Fix the value before extracting
6046 its contents.
6047 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6048 * ada-lang.h (ada_to_fixed_value): New function declaration.
6049 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6050 to avoid code duplication and fix a bug in the handling of
6051 fixed types contents.
6052
31ef98ae
TT
60532010-04-20 Tom Tromey <tromey@redhat.com>
6054
6055 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6056 (read_partial_die): Likewise.
6057 (dwarf_attr_name): Likewise.
6058
ec31cde5 60592010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6060
ec31cde5
CM
6061 PR 10867
6062
6063 * cp-valprint.c (global): Adding new static array recursion
6064 detection obstack.
6065 (cp_print_value_fields, cp_print_static_field): Added new static
6066 array recursion detection code.
6067
e0e0e543
MK
60682010-04-20 Mark Kettenis <kettenis@gnu.org>
6069
6070 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6071 general-purpose register set should be 68 instead of 144.
6072 (i386_linux_sse_regset_sections): Likewise.
6073 (i386_linux_avx_regset_sections): Likewise.
6074
08922a10
SS
60752010-04-20 Stan Shebs <stan@codesourcery.com>
6076 Nathan Sidwell <nathan@codesourcery.com>
6077
6078 * dwarf2loc.c (struct axs_var_loc): New struct.
6079 (dwarf2_tracepoint_var_loc): New function.
6080 (dwarf2_tracepoint_var_access): New function.
6081 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6082 with DW_OP_piece.
6083 (locexpr_describe_location_piece): New function.
6084 (locexpr_describe_location_1): New function.
6085 (locexpr_describe_location): Call it, update signature.
6086 (loclist_describe_location): Rewrite to loop over locations,
6087 update signature.
6088 * symtab.h (struct symbol_computed_ops): Add address to
6089 describe_location arguments, return void.
6090 * printcmd.c (address_info): Get context PC, pass to computed
6091 location description.
6092 * tracepoint.c (scope_info): Ditto.
6093 * ax-gdb.c (trace_kludge): Export.
6094
2dc7f7b3
TT
60952010-04-20 Tom Tromey <tromey@redhat.com>
6096
6097 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6098 (struct dwarf2_cie) <segment_size>: New field.
6099 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6100 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6101 DW_FORM_exprloc.
6102 (read_attribute_value): Handle DW_FORM_flag_present,
6103 DW_FORM_sec_offset, DW_FORM_exprloc.
6104 (dump_die_shallow): Likewise.
6105 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6106 (dwarf2_const_value): Handle DW_FORM_exprloc.
6107 (attr_form_is_block): Likewise.
6108 (struct line_header) <maximum_ops_per_instruction>: New field.
6109 (dwarf_decode_line_header): Set new field.
6110 (dwarf_decode_lines): Handle new field.
6111
ce4b0682
SDJ
61122010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6113
6114 * f-exp.y: Add new production to recognize the `logical*8' type.
6115 (LOGICAL_S8_KEYWORD): New token.
6116 * f-lang.c (enum f_primitive_types)
6117 <f_primitive_type_logical_s8>: New field.
6118 (f_language_arch_info): Handling `logical*8' type.
6119 (build_fortran_types): Building `logical*8' type.
6120 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6121
ff9f22f1
DE
61222010-04-19 Doug Evans <dje@google.com>
6123
6124 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6125 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6126 (pipe_close): Ditto.
6127
437125bd
PM
61282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6129
6130 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6131
e8e6c82e
PM
61322010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6133
6134 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6135 type to void function.
6136
4136fdd2
SS
61372010-04-19 Stan Shebs <stan@codesourcery.com>
6138 Vladimir Prus <vladimir@codesourcery.com>
6139
6140 * tracepoint.c (tfind_1): Add missing newline, report exit from
6141 tfind mode as such.
6142 * target.c (update_current_target): Make default
6143 to_trace_find return -1.
6144
0c4b2e63
MF
61452010-04-19 Mike Frysinger <vapier@gentoo.org>
6146
6147 * objc-lang.c (find_methods): Move symname check up.
6148
78076abc
PA
61492010-04-19 Pedro Alves <pedro@codesourcery.com>
6150
6151 * ada-lang.c (print_recreate_exception)
6152 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6153 not "catch unhandled".
6154
6149aea9
PA
61552010-04-19 Pedro Alves <pedro@codesourcery.com>
6156
6157 PR breakpoints/8554.
6158
6159 Implement `save-breakpoints'.
6160
6161 * breakpoint.c (save_cmdlist): New.
6162 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6163 to save_cmdlist.
6164 (print_recreate_catch_fork): New.
6165 (catch_fork_breakpoint_ops): Install it.
6166 (print_recreate_catch_vfork): New.
6167 (catch_vfork_breakpoint_ops): Install it.
6168 (print_recreate_catch_syscall): New.
6169 (catch_syscall_breakpoint_ops): Install it.
6170 (print_recreate_catch_exec): New.
6171 (catch_exec_breakpoint_ops): Install it.
6172 (print_recreate_exception_catchpoint): New.
6173 (gnu_v3_exception_catchpoint_ops): Install it.
6174 (save_breakpoints): New, based on tracepoint_save_command, but
6175 handle all breakpoint types.
6176 (save_breakpoints_command): New.
6177 (tracepoint_save_command): Rename to...
6178 (save_tracepoints_command): ... this, and reimplement using
6179 save_breakpoints.
6180 (save_command): New.
6181 (_initialize_breakpoints): Install the "save" command prefix.
6182 Install the "save breakpoints" command. Make "save-tracepoints" a
6183 deprecated alias for "save tracepoints".
6184 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6185 * ada-lang.c (print_recreate_exception): New.
6186 (print_recreate_catch_exception): New.
6187 (catch_exception_breakpoint_ops): Install it.
6188 (print_recreate_catch_exception_unhandled): New.
6189 (catch_exception_unhandled_breakpoint_ops): Install it.
6190 (print_recreate_catch_assert): New.
6191 (catch_assert_breakpoint_ops): Install it.
6192
6193 * NEWS: Mention the new `save breakpoints' command. Mention the
6194 new `save tracepoints' alias and that `save-tracepoints' is now
6195 deprecated.
6196
0a8fce9a
PA
61972010-04-18 Pedro Alves <pedro@codesourcery.com>
6198
6199 PR tui/9217
6200
6201 * tui/tui-out.c: Include cli-out.h.
6202 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6203 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6204 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6205 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6206 declarations.
6207 (struct ui_out_data): Rename to...
6208 (struct tui_ui_out_data): ... this. Remove `stream' and
6209 `suppress_output' fields, and inherit cli_ui_out_data.
6210 (tui_out_data): New typedef.
6211 (tui_ui_out_impl): Don't initialize fields staticaly.
6212 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6213 (tui_begin, tui_end): Delete.
6214 (tui_field_int): Adjust to delegate most work to the base type.
6215 (tui_field_skip): Delete.
6216 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6217 delegate most work to the base type.
6218 (tui_spaces): Delete.
6219 (tui_text): Adjust to delegate most work to the base type.
6220 (tui_message): Delete.
6221 (tui_wrap_hint): Delete.
6222 (tui_flush): Delete.
6223 (out_field_fmt): Delete.
6224 (field_separator): Delete.
6225 (tui_out_new): Adjust to initialize the base type.
6226 (_initialize_tui_out): Initialize tui_ui_out_impl.
6227 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6228 cli_ui_out_data.
6229 (cli_out_data): Adjust.
6230 (cli_ui_out_impl): Make extern.
6231 (cli_table_header, cli_field_int, cli_field_skip): Use
6232 uo_field_string instead of cli_field_string.
6233 (cli_redirect): Adjust to use cli_out_data.
6234 (cli_out_data_ctor): New.
6235 (cli_out_new): Use it.
6236 * cli-out.h (struct ui_file): Remove forward declaration.
6237 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6238 (cli_ui_out_impl): Declare.
6239 (cli_out_data_ctor): Declare.
6240 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6241 (uo_field_string): No longer static.
6242 (ui_out_data): Change return type to void pointer.
6243 (ui_out_new): Change `data' parameter type to void pointer.
6244 * ui-out.h (struct ui_out_data): Don't forward declare.
6245 (ui_out_data): Change return type to void pointer.
6246 (ui_out_new): Change `data' parameter type to void pointer.
6247 (uo_field_string): Declare.
6248
172240dd
PA
62492010-04-17 Pedro Alves <pedro@codesourcery.com>
6250
6251 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6252 instead of always false.
6253
ed41462c
L
62542010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6255
6256 PR corefiles/11511
6257 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6258 orig_rax.
6259
cc60f2e3
PA
62602010-04-17 Pedro Alves <pedro@codesourcery.com>
6261
6262 * breakpoint.c (watchpoints_triggered): Use
6263 is_hardware_watchpoint.
6264 (watchpoints_triggered): Ditto.
6265 (bpstat_check_location): Use is_watchpoint and
6266 is_hardware_watchpoint.
6267 (bpstat_check_watchpoint): Use is_watchpoint and
6268 is_hardware_watchpoint.
6269 (bpstat_stop_status): Fix comment.
6270 (user_settable_breakpoint): Use is_watchpoint.
6271 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6272 (disable_watchpoints_before_interactive_call_start): Use
6273 is_watchpoint.
6274 (enable_watchpoints_after_interactive_call_stop): Use
6275 is_watchpoint.
6276 (clear_command): Use is_watchpoint.
6277 (do_enable_breakpoint): Use is_watchpoint.
6278
cb7db0f2
MF
62792010-04-16 Mike Frysinger <vapier@gentoo.org>
6280
6281 * solib-frv.c (enable_break1_done): Delete.
6282 (enable_break2): Do not check enable_break1_done. Move the
6283 enable_break2_done setting and call to
6284 remove_solib_event_breakpoints() to the end. Return without
6285 warning when the contents of _dl_debug_addr are 0.
6286 (enable_break): Do not set enable_break1_done.
6287 (frv_clear_solib): Likewise.
6288
d77b48cf
KB
62892010-04-16 Kevin Buettner <kevinb@redhat.com>
6290
6291 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6292 instead of an error if no PLT entry is found. Return a
6293 potentially useful result.
6294 (m32c_m16c_pointer_to_address): Add code to search for function
6295 address when no .plt entry is found.
6296
f90824dc
SS
62972010-04-16 Stan Shebs <stan@codesourcery.com>
6298
6299 * tracepoint.c (trace_variable_command): Run a cleanup.
6300
9b79b476
PM
63012010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6302
6303 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6304
711e434b
PM
63052010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6306
6307 Support for Windows OS Thread Information Block.
6308 * NEWS: Document new feature.
6309 * remote.c (PACKET_qGetTIBAddr): New enum element.
6310 (remote_get_tib_address): New function.
6311 (init_remote_ops): Set to_get_tib_address field
6312 to remote_get_tib_address.
6313 (_initialize_remote): Add add_packet_config_cmd
6314 for PACKET_qGetTIBAddr.
6315 * target.c (update_current_target): Set default value for
6316 new to_get_tib_address field.
6317 * target.h (target_ops): New field to_get_tib_address.
6318 (target_get_tib_address): New macro.
6319 * windows-nat.c (thread_info): Add thread_local_base field.
6320 (windows_add_thread): Add tlb argument of type 'void *'.
6321 (fake_create_process): Adapt windows_add_thread call.
6322 (get_windows_debug_event): Idem.
6323 (windows_get_tib_address): New function.
6324 (init_windows_ops): Set to_get_tib_address field
6325 to remote_get_tib_address.
6326 (_initialize_windows_nat): Replace info_w32_cmdlist
6327 initialization by a call to init_w32_command_list.
6328 (info_w32_command, info_w32_cmdlist): Removed from here...
6329 to windows-tdep.c file.
6330 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6331 (init_w32_command_list): New external function
711e434b
PM
6332 declaration.
6333 * windows-tdep.c: Add several headers.
6334 (info_w32_cmdlist): to here, made global.
6335 (thread_information_32): New struct.
6336 (thread_information_64): New struct.
6337 (TIB_NAME): New char array.
6338 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6339 (maint_display_all_tib): New static variable.
6340 (windows_get_tlb_type): New function.
6341 (tlb_value_read, tlb_value_write): New functions.
6342 (tlb_value_funcs): New static struct.
6343 (tlb_make_value): New function.
6344 (display_one_tib): New function.
6345 (display_tib): New function.
6346 (show_maint_show_all_tib):New function.
6347 (info_w32_command): Moved from windows-nat.c.
6348 (init_w32_command_list): New function.
6349 (_initialize_windows_tdep): New function.
6350 New "maint set/show show-all-tib" command
6351 New "$_tlb" internal variable.
6352
cae3f17b
JB
63532010-04-16 Joel Brobecker <brobecker@adacore.com>
6354
6355 * tui/tui-regs.c (tui_display_register): Add comment about
6356 a couple of casts.
6357 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6358
2ce6d6bf
SS
63592010-04-15 Stan Shebs <stan@codesourcery.com>
6360
6361 * frame.c: Include tracepoint.h.
6362 (get_current_frame): Allow a trace frame to be an alternate source
6363 of stack frame data.
6364 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6365 it won't succeed.
6366
7e559477
PA
63672010-04-15 Pedro Alves <pedro@codesourcery.com>
6368
6369 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6370 flags.
6371 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6372
3f7b2faa
DE
63732010-04-15 Doug Evans <dje@google.com>
6374
fa33c3cd
DE
6375 * NEWS: Add entry for python program space support.
6376 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6377 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6378 (py-progspace.o): New rule.
6379 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6380 function.
6381 (find_pretty_printer_from_progspace): New function.
6382 (find_pretty_printer_from_gdb): New function.
6383 (find_pretty_printer): Rewrite.
6384 * python/py-progspace.c: New file.
6385 * python/python-internal.h (program_space): Add forward decl.
6386 (pspace_to_pspace_object, pspy_get_printers): Declare.
6387 (gdbpy_initialize_pspace): Declare.
6388 * python/python.c: #include "progspace.h".
6389 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6390 (_initialize_python): Call gdbpy_initialize_pspace.
6391 (GdbMethods): Add current_progspace, progspaces.
6392
3f7b2faa
DE
6393 Add -s option to source command.
6394 * NEWS: Document new option.
6395 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6396 Delete from_tty and cleanupp args. Split filep arg into file and
6397 full_pathp. New arg search_path.
6398 (source_script_from_stream): New function.
6399 (source_script_with_search): New function.
6400 (source_script): Rewrite.
6401 (source_command): Parse "-s" option.
6402 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6403 * python/python.c (source_python_script): Make file arg a const char *.
6404 Don't call fclose, leave for caller.
6405 * python/python.h (source_python_script): Update.
6406
a86988f2
PA
64072010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6408 Pedro Alves <pedro@codesourcery.com>
6409
6410 Avoid rereading shared libraries that haven't changed.
6411
6412 * solib.c (free_so_symbols): New function, from ...
6413 (free_so): ... here. Call it.
6414 (solib_read_symbols): Don't warn here if symbols have already been
6415 loaded.
6416 (solib_add): Warn here instead, if a pattern was specified.
6417 (reload_shared_libraries_1): New.
6418 (reload_shared_libraries): Rewrite to not fetch the library list.
6419
e6d9b9c2
DE
64202010-04-14 Doug Evans <dje@google.com>
6421
589390d6 6422 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6423 concatenating string to search path.
6424
516ba659
PA
64252010-04-14 Pedro Alves <pedro@codesourcery.com>
6426
6427 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6428 * objfiles.c (gdb_bfd_close_or_warn): New.
6429 * corelow.c: Include objfiles.h
6430 (core_close): Use gdb_bfd_close_or_warn.
6431 * elfread.c (build_id_verify): Ditto.
6432 * exec.c (exec_close, exec_close_1): Ditto.
6433
048d532d
PA
64342010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6435 Pedro Alves <pedro@codesourcery.com>
6436
6437 Group errors for many missing shared libraries.
6438
6439 * solist.h (struct so_list): Remove from_tty.
6440 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6441 (solib_map_sections): Take so_list argument. Return 0 if we
6442 failed to open a BFD. Add target sections here.
6443 (symbol_add_stub): Delete.
6444 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6445 not from_tty copied from the so_list. Don't warn a second time
6446 for a missing library.
6447 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6448 add to the section table here. Print out a single warning for all
6449 missing libraries.
6450 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6451 flags.
6452
044c0f87
PM
64532010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6454
6455 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6456 error/warning messages. Capitalize and use complete sentences.
6457 (blpy_block_syms_iternext): Likewise.
6458 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6459 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6460 (frame_info_to_frame_object, frapy_read_var)
6461 (gdbpy_frame_stop_reason_string): Likewise.
6462 * python/py-lazy-string.c (stpy_convert_to_value)
6463 (gdbpy_create_lazy_string_object): Likewise.
6464 * python/py-objfile.c (objfpy_set_printers): Likewise.
6465 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6466 * python/python.c (parameter_to_python): Likewise.
6467 * python/py-type.c (typy_range, typy_target): Likewise.
6468 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6469 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6470
6471
79f283fe
PM
64722010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6473
6474 PR python/11381
6475
6476 * python/py-prettyprint.c (pretty_print_one_value): Test for
6477 Py_None.
6478 (print_string_repr): Test for Py_None. Set flags accordingly.
6479 Return value depending on return type.
6480 (print_children): Take a value indicating whether data was printed
6481 before this function was called. Alter output accordingly.
6482 (apply_val_pretty_printer): Capture return value from
6483 print_string_repr and pass to print_children.
6484
4ac5d44e
MK
64852010-04-13 Mark Kettenis <kettenis@gnu.org>
6486
e1caee70 6487 PR corefiles/11481
4ac5d44e
MK
6488 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6489 register note sections.
6490 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6491 New variables.
6492 (i386_linux_init_abi): Install list of supported register note
6493 sections that matches the target description.
6494
ad91cd99
PA
64952010-04-13 Pedro Alves <pedro@codesourcery.com>
6496
6497 * remote.c (remote_get_noisy_reply): Don't error out on empty
6498 replies.
6499 (remote_start_remote): Update and merge tracepoints and trace
6500 state variables as long as the target supports tracepoints.
6501 (remote_trace_init): Fix prototype.
6502 (remote_download_trace_state_variable): Validate reply.
6503 (remote_trace_set_readonly_regions): Fix prototype.
6504 (remote_trace_start): Fix prototype. Check for empty reply.
6505 (remote_get_trace_status): Small cleanup.
6506 (remote_trace_stop): Fix prototype. Check for empty reply.
6507 (remote_trace_find): Check for empty reply.
6508 (remote_save_trace_data): Validate reply.
6509 (remote_set_disconnected_tracing): Check for empty reply, and
6510 validate reply.
6511 (remote_set_circular_trace_buffer): Ditto.
6512
ae3bccd4
PM
65132010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6514
6515 Suppress unused value warning during compilation.
6516 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6517 calls to void.
6518 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6519
523136f2
SS
65202010-04-12 Stan Shebs <stan@codesourcery.com>
6521
6522 * tracepoint.c (tfile_xfer_partial): Check read result.
6523
0d18d720
MF
65242010-04-12 Mike Frysinger <vapier@gentoo.org>
6525
6526 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6527 * remote-sim.c (gdbsim_files_info): Likewise.
6528
3b273a55
RE
65292010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6530
6531 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6532 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6533 variable.
6534 (fetch_vfp_registers): New function to fetch VFP registers.
6535 (store_vfp_registers): New function to store VFP registers.
6536 (arm_linux_fetch_inferior_registers): Add support for VFP
6537 registers.
6538 (arm_linux_store_inferior_registers): Likewise.
6539 (arm_linux_read_description): Likewise.
6540 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6541 until we need it.
6542
778c7095
L
65432010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6544
6545 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6546 tdep.
6547 (amd64_collect_xstateregset): Likewise.
6548
2114d44c
SS
65492010-04-09 Stan Shebs <stan@codesourcery.com>
6550
87290684
SS
6551 * tracepoint.c (trace_status_mi): Report frames created.
6552
2114d44c
SS
6553 * tracepoint.c (trace_dump_command): Include default-collect
6554 expressions.
6555
86da934b
UW
65562010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6557
6558 * symtab.c (find_function_start_sal): Never return SAL pointing
6559 before function start address, even if line info is missing.
6560
2d6e647a 65612010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6562
6563 * NEWS: Mention tracepoints support.
6564
a97153c7
PA
65652010-04-09 Pedro Alves <pedro@codesourcery.com>
6566
6567 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6568 circular trace buffer statuses.
6569
7a66d603
JK
65702010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6571
6572 * config/djgpp/fnchange.lst: Fix typo in translations for
6573 symbol-without-target_section.exp and symbol-without-target_section.c.
6574
2566ad2d
PA
65752010-04-09 Pedro Alves <pedro@codesourcery.com>
6576
6577 * breakpoint.c (condition_command): Pass condition expression to
6578 set_breakpoint_condition stripped from breakpoint number.
6579
adc36818
PM
65802010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6581 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6582 Tom Tromey <tromey@redhat.com>
adc36818
PM
6583
6584 * breakpoint.c (condition_command): Simplify. Move condition
6585 setting code to ...
6586 (set_breakpoint_condition): ... here. New function.
6587 * breakpoint.h (set_breakpoint_condition): Declare.
6588 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6589 (SUBDIR_PYTHON_SRCS): Likewise.
6590 (py-breakpoint.o): New rule.
6591 * python/py-breakpoint.c: New file.
6592 * python/python-internal.h (gdbpy_breakpoints)
6593 (gdbpy_initialize_breakpoints): Declare.
6594 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6595
219f2f23
PA
65962010-04-09 Pedro Alves <pedro@codesourcery.com>
6597
6598 * regformats/regdat.sh: Include server.h. Don't include
6599 regcache.h.
6600
33da3f1c
SS
66012010-04-08 Stan Shebs <stan@codesourcery.com>
6602 Pedro Alves <pedro@codesourcery.com>
6603
6604 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6605 and circular_buffer.
6606 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6607 * tracepoint.c (trace_status_command): Display target's status for
6608 disconnected tracing and circular buffer.
6609 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6610 query for non-disconnected-tracing case, remove the stop_tracing
6611 call.
6612 (tfile_open): Clear disconnected and circular buffer status.
6613 (trace_save): Save disconnected and circular buffer status.
6614 (parse_trace_status): Parse disconnected and circular buffer status,
6615 also recognize disconnected as a stop reason.
6616 * remote.c (remote_set_disconnected_tracing): Only set
6617 QTDisconnected if the remote end supports disconnected tracing.
6618 Warn otherwise, if trying to enable disconnected tracing.
6619 * infcmd.c (detach_command): Update disconnect_tracing call.
6620 * cli/cli-cmds.c (quit_command): Ditto.
6621
4e4d8374
L
66222010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6623
6624 * i387-tdep.c (i387_collect_xsave): Replace abort with
6625 internal_error.
6626
ad443146
SS
66272010-04-08 Stan Shebs <stan@codesourcery.com>
6628
6629 * breakpoint.c (default_collect_info): New function.
6630 (breakpoints_info): Call it.
6631 (maintenance_info_breakpoints): Ditto.
6632 (tracepoints_info): Ditto.
6633
40936b0d
L
66342010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6635
6636 * i387-tdep.c (i387_collect_xsave): Re-indent.
6637
3a13a53b
L
66382010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6639
6640 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6641 if HAVE_PTRACE_GETFPXREGS is defined.
6642 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6643 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6644
6645 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6646 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6647 if .reg-xfp section doesn't exist.
6648 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6649
6650 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6651
6652 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6653 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6654 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6655 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6656 (i386_gdbarch_init): Update comments.
6657 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6658
6659 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6660
6661 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6662
6663 * features/Makefile (i386/i386-mmx-expedite): New.
6664 (i386/i386-mmx-linux-expedite): Likewise.
6665 ($(outdir)/i386/i386-mmx.dat): Likewise.
6666 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6667
6668 * features/i386/i386-mmx-linux.c: New.
6669 * features/i386/i386-mmx-linux.xml: Likewise.
6670 * features/i386/i386-mmx.c: Likewise.
6671 * features/i386/i386-mmx.xml: Likewise.
6672 * regformats/i386/i386-mmx-linux.dat: Likewise.
6673 * regformats/i386/i386-mmx.dat: Likewise.
6674
6675 * features/Makefile (WHICH): Add i386/i386-mmx and
6676 i386/i386-mmx-linux.
6677
08001717
DE
66782010-04-08 Doug Evans <dje@google.com>
6679
6680 * source.c (openp): Skip $cdir in PATH.
6681
fff5cc64
PM
66822010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6683
6684 PR python/11417
fff5cc64 6685 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6686 a NULL address.
6687 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6688 address and a zero length.
fff5cc64 6689
f8c4f480
HZ
66902010-04-08 Hui Zhu <teawater@gmail.com>
6691
6692 * i386-tdep.c (i386_process_record): Add support for insn
6693 rdtsc.
6694
eb5cda86
DE
66952010-04-07 Doug Evans <dje@google.com>
6696
6697 * python/python.c (source_python_script): Use ensure_python_env
6698 to prepare environment for script.
6699
a055a187
L
67002010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6701
6702 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6703 <sys/uio.h> and "i386-xstate.h".
6704 (PTRACE_GETREGSET): New.
6705 (PTRACE_SETREGSET): Likewise.
6706 (have_ptrace_getregset): Likewise.
6707 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6708 registers.
6709 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6710 registers.
6711 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6712 (amd64_linux_store_inferior_registers): Likewise.
6713 (amd64_linux_read_description): Check and enable AVX target
6714 descriptions.
6715
6716 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6717 and "features/i386/amd64-avx-linux.c".
6718 (amd64_linux_regset_sections): New.
6719 (amd64_linux_core_read_description): Check and enable AVX
6720 target description.
6721 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6722 set_gdbarch_core_regset_sections.
6723 (_initialize_amd64_linux_tdep): Call
6724 initialize_tdesc_amd64_avx_linux.
6725
6726 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6727 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6728 (tdesc_amd64_avx_linux): New.
6729 (amd64_linux_update_xstateregset): Likewise.
6730
6731 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6732 (amd64_ymm_names): New.
6733 (amd64_ymmh_names): Likewise.
6734 (amd64_register_name): Likewise.
6735 (amd64_supply_xstateregset): Likewise.
6736 (amd64_collect_xstateregset): Likewise.
6737 (amd64_supply_xsave): Likewise.
6738 (amd64_collect_xsave): Likewise.
6739 (AMD64_NUM_REGS): Removed.
6740 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6741 %xmmN if AVX is available.
6742 (amd64_pseudo_register_name): Support pseudo YMM registers.
6743 (amd64_regset_from_core_section): Support .reg-xstate section.
6744 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6745 and ymm0h_regnum. Call set_gdbarch_register_name.
6746 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6747
6748 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6749 AMD64_YMM15H_REGNUM.
6750 (AMD64_NUM_REGS): New.
6751 (amd64_supply_xsave): Likewise.
6752 (amd64_collect_xsave): Likewise.
6753 (amd64_register_name): Removed.
6754 (amd64_register_type): Likewise.
6755
31aeac78
L
67562010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6757
6758 * i387-tdep.c: Include "i386-xstate.h".
6759 (XSAVE_XSTATE_BV_ADDR): New.
6760 (xsave_avxh_offset): Likewise.
6761 (XSAVE_AVXH_ADDR): Likewise.
6762 (i387_supply_xsave): Likewise.
6763 (i387_collect_xsave): Likewise.
6764
6765 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6766 (I387_YMM0H_REGNUM): Likewise.
6767 (I387_YMMENDH_REGNUM): Likewise.
6768 (i387_supply_xsave): Likewise.
6769 (i387_collect_xsave): Likewise.
6770
c131fcee
L
67712010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6772
6773 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6774 <sys/uio.h> and "i386-xstate.h".
6775 (PTRACE_GETREGSET): New.
6776 (PTRACE_SETREGSET): Likewise.
6777 (fetch_xstateregs): Likewise.
6778 (store_xstateregs): Likewise.
6779 (GETXSTATEREGS_SUPPLIES): Likewise.
6780 (regmap): Include 8 upper YMM registers.
6781 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6782 state.
6783 (i386_linux_store_inferior_registers): Likewise.
6784 (i386_linux_read_description): Check and enable AVX target
6785 descriptions.
6786
6787 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6788 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6789 (i386_linux_regset_sections): Add ".reg-xstate".
6790 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6791 (i386_linux_core_read_xcr0): New.
6792 (i386_linux_core_read_description): Check and enable AVX target
6793 description.
6794 (i386_linux_init_abi): Set xsave_xcr0_offset.
6795 (_initialize_i386_linux_tdep): Call
6796 initialize_tdesc_i386_avx_linux.
6797
6798 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6799 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6800 (i386_linux_core_read_xcr0): New.
6801 (tdesc_i386_avx_linux): Likewise.
6802 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6803
6804 * i386-tdep.c: Include "i386-xstate.h" and
6805 "features/i386/i386-avx.c".
6806 (i386_ymm_names): New.
6807 (i386_ymmh_names): Likewise.
6808 (i386_ymmh_regnum_p): Likewise.
6809 (i386_ymm_regnum_p): Likewise.
6810 (i386_xmm_regnum_p): Likewise.
6811 (i386_register_name): Likewise.
6812 (i386_ymm_type): Likewise.
6813 (i386_supply_xstateregset): Likewise.
6814 (i386_collect_xstateregset): Likewise.
6815 (i386_sse_regnum_p): Removed.
6816 (i386_pseudo_register_name): Support pseudo YMM registers.
6817 (i386_pseudo_register_type): Likewise.
6818 (i386_pseudo_register_read): Likewise.
6819 (i386_pseudo_register_write): Likewise.
6820 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6821 %xmmN if AVX is available.
6822 (i386_regset_from_core_section): Support .reg-xstate section.
6823 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6824 (i386_process_record): Replace i386_sse_regnum_p with
6825 i386_xmm_regnum_p.
6826 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6827 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6828 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6829 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6830 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6831 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6832 Set ymm0_regnum.
6833 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6834
6835 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6836 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6837 i386_ymm_type.
6838 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6839 (I386_AVX_NUM_REGS): New.
6840 (i386_xmm_regnum_p): Likewise.
6841 (i386_ymm_regnum_p): Likewise.
6842 (i386_ymmh_regnum_p): Likewise.
6843
6844 * common/i386-xstate.h: New.
6845
98adf0f3
L
68462010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6847
6848 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6849
6850 * features/Makefile (WHICH): Add i386/i386-avx,
6851 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6852 (i386/i386-avx-expedite): New.
6853 (i386/i386-avx-linux-expedite): Likewise.
6854 (i386/x86-64-avx-expedite):Likewise.
6855 (i386/x86-64-avx-linux-expedite): Likewise.
6856 ($(outdir)/i386/i386-avx.dat): New dependency.
6857 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6858 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6859 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6860
6861 * features/i386/32bit-avx.xml: New.
6862 * features/i386/64bit-avx.xml: Likewise.
6863 * features/i386/i386-avx-linux.c: Likewise.
6864 * features/i386/i386-avx-linux.xml: Likewise.
6865 * features/i386/i386-avx.c: Likewise.
6866 * features/i386/i386-avx.xml: Likewise.
6867 * features/i386/x86-64-avx-linux.c: Likewise.
6868 * features/i386/x86-64-avx-linux.xml: Likewise.
6869 * features/i386/x86-64-avx.c: Likewise.
6870 * features/i386/x86-64-avx.xml: Likewise.
6871 * regformats/i386/i386-avx-linux.dat: Likewise.
6872 * regformats/i386/i386-avx.dat: Likewise.
6873 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6874 * regformats/i386/x86-64-avx.dat: Likewise.
6875
05159abe
DE
68762010-04-07 Doug Evans <dje@google.com>
6877
6878 * top.c (source_file_name): Make const char *.
6879 * top.h (source_file_name): Update.
6880 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6881 const char *.
6882 (script_from_file): Change `file' arg to const char *.
6883 * cli/cli-script.h (script_from_file): Update.
6884
96e39866
DE
68852010-04-06 Doug Evans <dje@google.com>
6886
6887 * cli/cli-cmds.c (source_command): Run cleanups.
6888
3149d8c1
SS
68892010-04-06 Stan Shebs <stan@codesourcery.com>
6890
6891 * defs.h (char_ptr): Move typedef here from...
6892 * ada-lang.c (char_ptr): Remove.
6893 * charset.c (char_ptr): Remove.
6894 * tracepoint.h (struct uploaded_string): Remove.
6895 (struct uploaded_tp): Use vectors for string arrays.
6896 * tracepoint.c (trace_save): Use vectors of actions.
6897 (parse_tracepoint_definition): Ditto.
6898 (get_uploaded_tp): Clear vectors.
6899 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6900 (next_cmd): Change to an int.
6901 (read_next_cmd): Use vector of command strings.
6902
4cc23ede
DE
69032010-04-06 Doug Evans <dje@google.com>
6904
6905 * top.h (source_script, cd_command): Delete.
6906 * main.c: #include "cli/cli-cmds.h"
6907
bd333fb7
KB
69082010-04-06 Kevin Buettner <kevinb@redhat.com>
6909
6910 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6911 type in bytes, not bits.
6912
ec8a089a
PM
69132010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6914
6915 * stabsread.c (define_symbol): Add support for char
6916 and string constants.
6917
2244ba2e
PM
69182010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6919
6920 Remove remaining "%ll" uses.
6921 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6922 hex_string call.
6923 * rs6000-nat.c (rs6000_ptrace64): Idem.
6924 * solib-pa64.c (pa64_current_sos): Idem.
6925 * solib-spu.c (spu_current_sos): Idem.
6926 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6927 plongest call.
6928 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6929 phex (VAR, 8) call.
6930 * sh64-tdep.c (sh64_show_media_regs): Idem.
6931
fce3c1f0
SS
69322010-04-05 Stan Shebs <stan@codesourcery.com>
6933
6934 * tracepoint.c: Include gdbcore.h.
6935 (tfile_xfer_partial): Return partial results, also try reading
6936 from executable.
6937 (tfile_has_all_memory): New function.
6938 (init_tfile_ops): Use it.
6939
626ea16d
SDJ
69402010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6941
6942 PR gdb/10736:
6943 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6944 the changes in data-directory.
6945 (init_sysinfo): Reload the syscall XML file if the data-directory
6946 has changed.
6947
1f7ccab2
JK
69482010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6949
6950 Code cleanup.
6951 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6952
d77f58be
SS
69532010-04-04 Stan Shebs <stan@codesourcery.com>
6954 Nathan Sidwell <nathan@codesourcery.com>
6955
6956 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6957 breakpoints printed.
6958 (is_hardware_watchpoint): Make argument const.
6959 (is_watchpoint): Ditto.
6960 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6961 use it everywhere.
6962 (breakpoints_info): Pass NULL to breakpoint_1.
6963 (maintenance_info_breakpoints): Ditto.
6964 (watchpoints_info): New function.
6965 (tracepoints_info): Use breakpoint_1 filter.
6966 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6967 (_initialize_breakpoint): Make "info watchpoints" its own command.
6968 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6969 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6970
af54718e
SS
69712010-04-04 Stan Shebs <stan@codesourcery.com>
6972
6973 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6974
74d1f91e
JK
69752010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6976
6977 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6978 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6979
91d91ceb
JK
69802010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6981
6982 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6983 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6984
60531b24
JK
69852010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6988 code form.
6989
a3c4230a
HZ
69902010-04-02 Hui Zhu <teawater@gmail.com>
6991
6992 * i386-tdep.c (OT_DQUAD): New enum.
6993 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6994 SSE3, SSSE3 and SSE4.
6995
b15758fe
HZ
69962010-04-02 Hui Zhu <teawater@gmail.com>
6997
6998 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6999 "*addr = 0".
7000
afd02f27
PA
70012010-04-02 Pedro Alves <pedro@codesourcery.com>
7002
7003 * tracepoint.c (trace_dump_actions): New, factored out from
7004 trace_dump_command, and adjusted to recurse into while-stepping's
7005 action list.
7006 (trace_dump_command): Use it.
7007
5cea2a26
PA
70082010-04-02 Pedro Alves <pedro@codesourcery.com>
7009
7010 * breakpoint.h (struct counted_command_line): Moved definition to
7011 breakpoint.c, and forward declare.
7012 (breakpoint_commands): Declare.
7013 * breakpoint.c (struct counted_command_line): Moved here.
7014 (breakpoint_commands): New.
7015 * tracepoint.c (encode_actions): Use breakpoint_commands.
7016 * remote.c (remote_download_tracepoint): Ditto.
7017
7c47795c
L
70182010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7019
7020 * remote.c (remote_parse_stop_reply): Use hex_string instead
7021 of phex_nz for error.
7022
fff87407
SS
70232010-04-01 Stan Shebs <stan@codesourcery.com>
7024 Nathan Sidwell <nathan@codesourcery.com>
7025
7026 * tracepoint.h (enum actionline_type): Remove.
7027 (validate_actionline): Change return to void.
7028 * tracepoint.c (report_agent_reqs_errors): New function.
7029 (validate_actionline): Call it, change return to void, report errors
7030 more consistently.
7031 (collect_symbol): Call report_agent_reqs_errors.
7032 (encode_actions_1): Ditto.
7033 (encode_actions): Don't expect a result from validate_actionline.
7034
615bcdef
SS
70352010-04-01 Stan Shebs <stan@codesourcery.com>
7036
7037 * tracepoint.c (trace_start_command): Confirm if trace is running.
7038 (trace_stop_command): Error if trace not running.
7039
fe01d668
L
70402010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7041
7042 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7043 (AMD64_NUM_LOWER_BYTE_REGS): New.
7044 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7045 (amd64_pseudo_register_write): Likewise.
7046 (amd64_init_abi): Set num_byte_regs to 20.
7047
86b17b60
PA
70482010-04-01 Pedro Alves <pedro@codesourcery.com>
7049
7050 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7051 (prev_breakpoint_count): New.
7052 (set_breakpoint_count): Adjust.
7053 (rbreak_start_breakpoint_count): New.
7054 (start_rbreak_breakpoints): Adjust.
7055 (end_rbreak_breakpoints): Adjust.
7056 (struct commands_info) <arg>: New field.
7057 (do_map_commands_command): Tweak output to include breakpoint spec
7058 range.
7059 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7060 ARG was empty on entry. Set INFO's arg.
7061 (create_breakpoint): Adjust.
7062
7063 * NEWS: Clarify `commands' changes.
7064
2c58c0a9
PA
70652010-04-01 Pedro Alves <pedro@codesourcery.com>
7066
7067 * tracepoint.c: Include stack.h.
7068 (struct add_local_symbols_data): New.
7069 (do_collect_symbol): New.
7070 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7071 iterate_over_block_local_vars.
7072 * stack.c (print_block_frame_locals): Rewrite as ...
7073 (iterate_over_block_locals): ... this. Take a callback function
7074 pointer and generic data pointer, and call that instead of
7075 print_variable_and_value.
7076 (struct print_variable_and_value_data): New.
7077 (do_print_variable_and_value): New.
7078 (iterate_over_block_local_vars): New, abstracted out from
7079 print_frame_local_vars.
7080 (print_frame_local_vars): Rewrite using
7081 iterate_over_block_local_vars.
7082 (iterate_over_block_arg_vars): New, abstracted out from
7083 print_frame_arg_vars.
7084 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7085 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7086 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7087
d476da0e
RE
70882010-03-31 Richard Earnshaw <rearnsha@arm.com>
7089
7090 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7091 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7092 PC register.
7093
8072405b
JK
70942010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7095
7096 Fix crash on reading wrong function declaration DWARF.
7097 * dwarf2read.c (read_subroutine_type): New variable void_type.
7098 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7099 more close to their use.
7100
8bf6485c
SS
71012010-03-31 Stan Shebs <stan@codesourcery.com>
7102
7103 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7104 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7105 * tracepoint.c (save_trace_state_variables): New function.
7106 * tracepoint.h (save_trace_state_variables): Declare it.
7107
2ae2a0b7
PM
71082010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7109
1a161f72 7110 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7111
86ffb506
KS
71122010-03-30 Keith Seitz <keiths@redhat.com>
7113
7114 * c-typeprint.c (c_type_print_args): Don't print "void"
7115 for java, regardless of whether it is TYPE_PROTOTYPED.
7116 Use the passed-in language instead of current_language.
7117 (c_type_print_varspec_suffix): Use current_language instead
7118 of assuming language_c.
7119 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7120 any return type specifier from the physname.
7121
956c2c8b
PA
71222010-03-30 Pedro Alves <pedro@codesourcery.com>
7123
7124 * tui/tui-interp.c (tui_is_toplevel): New.
7125 (tui_init): Set it.
7126 (tui_allowed_p): New.
7127 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7128 enabling it.
7129 * tui/tui.h (tui_allowed_p): Declare.
7130
98e5a990
TT
71312010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7132
7133 * serial.h: Include winsock2.h before windows.h.
7134
c8d5aac9
L
71352010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7136
7137 * NEWS: Mention xmlRegisters= in qSupported packet.
7138
7139 * i386-tdep.c: Include "remote.h".
7140 (_initialize_i386_tdep): Call register_remote_support_xml.
7141
7142 * remote.c (remote_support_xml): New.
7143 (register_remote_support_xml): Likewise.
7144 (remote_query_supported_append): Likewise.
7145 (remote_query_supported): Support remote_support_xml.
7146
7147 * remote.h (register_remote_support_xml): New.
7148
76a2b958
SS
71492010-03-29 Stan Shebs <stan@codesourcery.com>
7150
42e08e69
SS
7151 * tracepoint.c (trace_find_line_command): Remove dead code.
7152
409873ef
SS
7153 * tracepoint.h (struct uploaded_string): New struct.
7154 (struct uploaded_tp): New fields for source strings.
7155 * breakpoint.c (this_utp, next_cmd): New globals.
7156 (read_uploaded_action): New function.
7157 (create_tracepoint_from_upload): Fill in more parts
7158 of a tracepoint.
7159 * tracepoint.c (encode_source_string): New function.
7160 (trace_save): Write out source strings, fix error checks.
7161 (parse_tracepoint_definition): Add source string parsing.
7162 * remote.c (PACKET_TracepointSource): New packet type.
7163 (remote_download_command_source): New function.
7164 (remote_download_tracepoint): Download source pieces also.
7165 (_initialize_remote): Add packet config command.
7166
a0405854
SS
7167 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7168 expression handler.
7169
76a2b958
SS
7170 * tracepoint.c (start_tracing): Check tracepoints before sending
7171 commands to target, don't start if all tracepoints disabled.
7172
d350db38
PA
71732010-03-28 Pedro Alves <pedro@codesourcery.com>
7174
12f2d601 7175 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7176
8b9b7ef8
SS
71772010-03-26 Stan Shebs <stan@codesourcery.com>
7178
7179 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7180
9766ced4
SS
71812010-03-26 Tom Tromey <tromey@redhat.com>
7182
7183 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7184
059acae7
UW
71852010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7186
7187 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7188 (skip_prologue_sal): Remove local definition.
7189 (resolve_sal_pc): Remove now unnecessary code.
7190 * linespec.c (minsym_found): Call skip_prologue_sal.
7191 * symtab.c (find_function_start_pc): Remove.
7192 (find_function_start_sal): Extract prologue skipping into ...
7193 (skip_prologue_sal): ... this new function. Handle code both
7194 with and without debug info. Respect SAL's explicit_pc and
7195 explicit_line flags. Inline old find_function_start_pc.
7196 * symtab.h (find_function_start_pc): Remove.
7197 (skip_prologue_sal): Add prototype.
7198
4a811a97
UW
71992010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7200
7201 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7202 for DW_TAG_imported_module children.
7203
907af001
UW
72042010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7205
7206 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7207 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7208 * completer.c (add_struct_fields): Fix inverted logic.
7209
dde2d684
UW
72102010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7211
7212 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7213
a609a0c8
PA
72142010-03-26 Pedro Alves <pedro@codesourcery.com>
7215
7216 * tracepoint.c (current_trace_status): Don't make sure error_desc
7217 is non-NULL here.
7218 (parse_trace_status): Release a previous error_desc string, and
7219 set it to NULL by default. If stop reason is tracepoint_error,
7220 make sure error_desc is not left NULL.
7221
610197fd
PA
72222010-03-26 Pedro Alves <pedro@codesourcery.com>
7223
7224 * tracepoint.c (trace_save): Remove X from tracepoint error
7225 description.
7226
99b5e152
PA
72272010-03-26 Pedro Alves <pedro@codesourcery.com>
7228
7229 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7230 the terror description. Don't expect an X prefix.
7231
6c28cbf2
SS
72322010-03-25 Stan Shebs <stan@codesourcery.com>
7233
7234 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7235 (struct trace_status): New field error_desc.
7236 * tracepoint.c (stop_reason_names): Add terror.
7237 (current_trace_status): Ensure non-NULL error description.
7238 (trace_status_command): Add error report.
7239 (trace_status_mi): Ditto.
7240 (trace_save): Add special case for error description.
7241 (parse_trace_status): Add case for errors.
7242
418835cc
KS
72432010-03-25 Keith Seitz <keiths@redhat.com>
7244
7245 * dwarf2read.c (read_subroutine_type): If the compilation unit
7246 language is Java, mark any formal parameter named "this" as
7247 artificial (GCC/43521).
7248 (dwarf2_name): Add special handling for Java constructors.
7249
aa7d318d
TT
72502010-03-25 Tom Tromey <tromey@redhat.com>
7251
7252 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7253 * infrun.c (handle_inferior_event): Change initialization of
7254 stop_stack_dummy.
7255 (handle_inferior_event): Change assignment to stop_stack_dummy.
7256 (normal_stop): Update use of stop_stack_dummy.
7257 (struct inferior_status) <stop_stack_dummy>: Change type.
7258 * inferior.h (stop_stack_dummy): Update.
7259 * infcmd.c (stop_stack_dummy): Change type.
7260 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7261 function.
7262 (call_function_by_hand): Call set_std_terminate_breakpoint.
7263 Rewrite std::terminate handling.
7264 * breakpoint.h (enum bptype) <bp_std_terminate,
7265 bp_std_terminate_master>: New.
7266 (enum stop_stack_kind): New.
7267 (struct bpstat_what) <call_dummy>: Change type.
7268 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7269 Declare.
7270 * breakpoint.c (create_std_terminate_master_breakpoint): New
7271 function.
7272 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7273 Call create_std_terminate_master_breakpoint.
7274 (print_it_typical): Handle new breakpoint kinds.
7275 (bpstat_stop_status): Handle bp_std_terminate_master.
7276 (bpstat_what): Correctly set call_dummy field. Handle
7277 bp_std_terminate_master and bp_std_terminate.
7278 (print_one_breakpoint_location): Update.
7279 (allocate_bp_location): Update.
7280 (set_std_terminate_breakpoint): New function.
7281 (delete_std_terminate_breakpoint): Likewise.
7282 (create_thread_event_breakpoint): Update.
7283 (delete_command): Update.
7284 (breakpoint_re_set_one): Update.
7285 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7286
82ccf5a5
JK
72872010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7288
7289 * symfile.c (build_section_addr_info_from_bfd): New.
7290 (build_section_addr_info_from_objfile): Base it on
7291 build_section_addr_info_from_bfd.
7292 (addrs_section_compar, addrs_section_sort): New.
7293 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7294 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7295 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7296
737c4c52
MS
72972010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7298
8d95cc3b 7299 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7300 Remove unused local variable.
7301
95a42b64
TT
73022010-03-24 Tom Tromey <tromey@redhat.com>
7303
7304 PR breakpoints/9352:
7305 * NEWS: Mention changes to `commands' and `rbreak'.
7306 * symtab.c (do_end_rbreak_breakpoints): New function.
7307 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7308 end_rbreak_breakpoints.
7309 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7310 (set_breakpoint_count): Likewise. Clear last_was_multi.
7311 (multi_start, multi_end, last_was_multi): New globals.
7312 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7313 functions.
7314 (struct commands_info): New
7315 (do_map_commands_command): New function.
7316 (commands_command_1): New function.
7317 (commands_command): Use it.
7318 (commands_from_control_command): Likewise.
7319 (do_delete_breakpoint): New function.
7320 (delete_command): Use it.
7321 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7322 (do_map_disable_breakpoint): New function.
7323 (disable_command): Use it.
7324 (do_map_enable_breakpoint): New function.
7325 (enable_command): Use it.
7326 (enable_once_breakpoint): Add argument.
7327 (enable_once_command): Update.
7328 (enable_delete_breakpoint): Add argument.
7329 (enable_delete_command): Update.
7330 (break_command_really): Set last_was_multi when needed.
7331 (check_tracepoint_command): Fix formatting.
7332 (validate_commands_for_breakpoint): New function.
7333 (breakpoint_set_commands): Use it.
7334 (tracepoint_save_command): Update.
7335 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7336 Declare.
7337
9add0f1b
TT
73382010-03-24 Tom Tromey <tromey@redhat.com>
7339
7340 * breakpoint.h (struct counted_command_line): New struct.
7341 (struct breakpoint) <commands>: Change type.
7342 (struct bpstats) <commands>: Change type.
7343 <commands_left>: New field.
7344 * breakpoint.c (alloc_counted_command_line): New function.
7345 (incref_counted_command_line): Likewise.
7346 (decref_counted_command_line): Likewise.
7347 (do_cleanup_counted_command_line): Likewise.
7348 (make_cleanup_decref_counted_command_line): Likewise.
7349 (breakpoint_set_commands): Use decref_counted_command_line and
7350 alloc_counted_command_line.
7351 (commands_command): Don't error if breakpoint commands are
7352 executing.
7353 (commands_from_control_command): Likewise.
7354 (bpstat_free): Update.
7355 (bpstat_copy): Likewise.
7356 (bpstat_clear_actions): Likewise.
7357 (bpstat_do_actions_1): Likewise.
7358 (bpstat_stop_status): Likewise.
7359 (print_one_breakpoint_location): Likewise.
7360 (delete_breakpoint): Likewise.
7361 (bpstat_alloc): Initialize new field.
7362 (tracepoint_save_command): Update.
7363 * tracepoint.c (encode_actions): Update.
7364 (trace_dump_command): Update.
7365
a6c727b2
DJ
73662010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7367
7368 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7369 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7370 (read_structure_type): For RealView, set TYPE_STUB on structures with
7371 no byte size and no children.
7372 (read_subroutine_type): Mark functions as prototyped by default.
7373 * symtab.c (producer_is_realview): New function.
7374 * symtab.h (expand_line_sal): Fix declaration formatting.
7375 (producer_is_realview): Declare.
7376
0d39a070
DJ
73772010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7378
7379 * arm-tdep.c (skip_prologue_function): New function.
7380 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7381 (thumb_analyze_prologue): Document return value. Recognize more
7382 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7383 Add debug output.
7384 (arm_skip_prologue): Remove call dummy check. Check the prologue
7385 for non-GNU compilers.
7386 (arm_instruction_changes_pc): New function.
7387 (arm_analyze_prologue): New function, broken out from
7388 arm_scan_prologue. Recognize more ARM instructions and skippable
7389 calls. Update comments. Handle NULL cache. Return the address
7390 of the first unrecognized instruction. Do not skip past other
7391 instructions which change control flow. Add debug output.
7392 (arm_scan_prologue): Use arm_analyze_prologue.
7393 (ARM_PC_32): Delete.
7394 (shifted_reg_val): Simplify ARM_PC_32 check.
7395
4baf5cf4
VP
73962010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7397
7398 * tracepoint.c (tvariables_info_1): Actually compute
7399 the number of rows in the result.
7400
4a5e7a5b
PA
74012010-03-24 Pedro Alves <pedro@codesourcery.com>
7402
7403 * remote.c (crc32): Constify `buf' parameter.
7404 (remote_verify_memory): New, abstracted out from...
7405 (compare_sections_command): ... this. Remove hardcoded target
7406 checks.
7407 (init_remote_ops): Install remote_verify_memory.
7408 * target.c (target_verify_memory): New.
7409 * target.h (struct target_ops) <to_verify_memory>: New field.
7410 (target_verify_memory): Declare.
7411
011aacb0
VP
74122010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7413
7414 Implement -trace-save.
7415
7416 * mi-cmds.h (mi_cmds_trace_save): Declare.
7417 * mi-cmds.c (mi_cmds): Register -trace-save.
7418 * mi/mi-main.c (mi_cmd_trace_save): New.
7419 * remote.c (remote_save_trace_data): Take const parameter.
7420 * target.h (struct target_ops::to_save_trace_data): Take
7421 const parameter.
7422 * target.c (update_current_target): Adjust to the above.
7423 * tracepoint.c (trave_save): New, extracted from
7424 (trace_save_command): ...this.
7425 (tfile_trace_find): Remove message that is unnecessary now
7426 that 'tfind' reports found frame.
7427 * tracepoint.h (trace_save): Declare.
7428
f197e0f1
VP
74292010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7430
7431 Implement -trace-find.
7432
7433 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7434 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7435 * mi/mi-main.c (mi_cmd_trace_find): New.
7436 * target.h (struct target_ops): Document to_trace_find.
7437 * tracepoint.h (tfind_1): Declare.
7438 * tracepoint.c (finish_tfind_command): Rename to...
7439 (tfind_1): ...this.
7440 * remote.c (remote_trace_find): Return -1 if target say
7441 there's no frame. Improve error diagnostics.
7442
40e1c229
VP
74432010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7444
7445 -trace-define-variable and -trace-list-variables.
7446
7447 * tracepoint.c (create_trace_state_variable): Make
7448 private copy of name, as opposed to assuming the
7449 pointer lives forever.
7450 (tvariables_info_1): New.
7451 (tvariables_info): Use the above.
7452 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7453 Declare.
7454 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7455 and -trace-list-variables.
7456 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7457 (mi_cmd_trace_list_variables): New.
7458 * mi/mi-main.c (mi_cmd_trace_define_variable)
7459 (mi_cmd_trace_list_variables): New.
7460
9b4c786c
VP
74612010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7462
7463 Implement -break-passcount.
7464
7465 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7466 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7467 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7468
f224b49d
VP
74692010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7470
7471 -trace-start/-trace-end/-trace-status.
7472
7473 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7474 and -trace-stop.
7475 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7476 (mi_cmd_trace_stop): Declare.
7477 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7478 (mi_cmd_trace_stop): New.
7479 * tracepoint.c (start_tracing): New, extracted from...
7480 (trace_start_command): ...this.
7481 (trace_status_mi): New.
7482 * tracepoint.h (struct trace_status): Document
7483 stopping_tracepoint.
7484 (start_tracing, stop_tracing, trace_status_mi): Declare.
7485
6534d786
VP
74862010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7487
7488 Implement creating tracepoints with -break-insert.
7489
7490 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7491 to mean that tracepoint should be created.
7492
51661e93
VP
74932010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7494
7495 * breakpoint.c (check_no_tracepoint_commands): Use
7496 current spelling of 'teval'.
7497
a7bdde9e
VP
74982010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7499
7500 Unify actions and commands
7501
7502 * defs.h (read_command_lines, read_command_lines_1): New
7503 parameters validator and closure.
7504 * tracepoint.h (struct action_line): Remove.
7505 * breakpoint.h (struct breakpoint): Remove the 'actions'
7506 field.
7507 * defs.h (enum command_control_type): New value
7508 while_stepping_control.
7509 (struct command_line): Add comments.
7510 * breakpoint.c (breakoint_is_tracepoint): New.
7511 (breakpoint_set_commands): For tracepoints,
7512 verify the commands are permissible.
7513 (check_tracepoint_commands): New.
7514 (commands_command): Require that each new line is validated using
7515 check_tracepoint_command, if we set commands for a tracepoint.
7516 (create_tracepoint_from_upload): Likewise.
7517 (print_one_breakpoint_location): Remove the code to print
7518 actions specifically.
7519 (tracepoint_save_command): Relay to print_command_lines.
7520 * cli/cli-script.c (process_next_line): New parameters validator
7521 and closure. Handle 'while-stepping'. Call validator if not null.
7522 (read_command_lines, read_command_lines1): Likewise.
7523 (recurse_read_control_structure): New parameters validator and
7524 closure. Handle while_stepping_control.
7525 (print_command_lines): Handle while-stepping.
7526 (get_command_line, define_command, document_command): Adjust.
7527 * remote.c (remote_download_tracepoint): Adjust.
7528 * tracepoint.c (make_cleanup_free_actions, read_actions)
7529 (free_actions, do_free_actions_cleanup): Remove.
7530 (trace_actions_command): Use read_command_lines.
7531 (validate_actionline): Use error in one place.
7532 (encode_actions_1): New, extracted from...
7533 (encode_actions): ...this. Also use cleanups for exception
7534 safety.
7535 (trace_dump_command): Adjust.
7536 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7537 it's tracepoint.
7538
64e3cf3d
MF
75392010-03-23 Mike Frysinger <vapier@gentoo.org>
7540
7541 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7542
52e9fde8
SS
75432010-03-22 Stan Shebs <stan@codesourcery.com>
7544
7545 * value.c (value_static_field): Be lazy about the field's value.
7546
508ccb1f
TT
75472010-03-22 Reid Kleckner <reid@kleckner.net>
7548
7549 PR gdb/11094
7550 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7551 bp_jit_event.
7552 (disable_breakpoints_in_shlibs): Likewise.
7553
acebe513
UW
75542010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7555
7556 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7557 GCC 4.1 debug info generation (GCC PR c++/28460).
7558 (determine_prefix): Likewise.
7559
957b8b5a
DJ
75602010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7561
7562 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7563 get_current_arch.
7564 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7565
3b11a015
SS
75662010-03-19 Stan Shebs <stan@codesourcery.com>
7567
7568 * ax-gdb.c (gen_fetch): Handle bool.
7569 (gen_usual_unary): Ditto.
7570 (gen_cast): Ditto.
7571 (gen_equal): New function.
7572 (gen_less): New function.
7573 (gen_expr_binop_rest): Call them, also return integer type from
7574 logical operations.
7575 (gen_expr): Ditto.
7576
20781792
TT
75772010-03-19 Tom Tromey <tromey@redhat.com>
7578
7579 * jv-lang.c (jv_dynamics_objfile_data_key)
7580 (jv_type_objfile_data_key): New globals.
7581 (class_symtab): Move earlier.
7582 (jv_per_objfile_free): New function.
7583 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7584 parameter.
7585 Remove ancient #if 1.
7586 (add_class_symbol): Remove redundant declaration.
7587 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7588 (java_link_class_type): Mark as static. Update.
7589 (jv_clear_object_type): New function.
7590 (set_java_object_type): Likewise.
7591 (get_java_object_type): Use set_java_object_type.
7592 (is_object_type): Likewise.
7593 (_initialize_java_language): Register new objfile keys.
7594 (get_java_class_symtab): Add 'gdbarch' parameter.
7595 (add_class_symtab_symbol): Update.
7596 (type_from_class): Update.
7597
cf3e25ca
SS
75982010-03-19 Stan Shebs <stan@codesourcery.com>
7599
8d95cc3b 7600 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7601
f1ae44c9 76022010-03-18 Joel Brobecker <brobecker@adacore.com>
7603
7604 GDB 7.1 released.
7605
4daf5ac0
SS
76062010-03-18 Stan Shebs <stan@codesourcery.com>
7607 Pedro Alves <pedro@codesourcery.com>
7608
7609 * target.h (struct target_ops): New method
7610 to_set_circular_trace_buffer.
7611 (target_set_circular_trace_buffer): New macro.
7612 * target.c (update_current_target): Add
7613 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7614 default behavior.
7615 * remote.c (remote_set_circular_trace_buffer): New function.
7616 (init_remote_ops): Add it to vector.
7617 * tracepoint.h (struct trace_status): New field traceframes_created,
7618 change buffer_size and buffer_free to int.
7619 * tracepoint.c (circular_trace_buffer): New global.
7620 (start_tracing): Send values of disconnected tracing and circular
7621 trace buffer settings.
7622 (set_circular_trace_buffer): New function.
7623 (parse_trace_state): Handle total space and frames created.
7624 (trace_status_command): Display total space and total frames
7625 created.
7626 (trace_save): Write out new status values.
7627 (parse_trace_status): Set traceframe_count, traceframes_created,
7628 buffer_free and buffer_size to -1 by default.
7629 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7630 * NEWS: Mention the circular trace buffer option.
7631
40c549d6
TT
76322010-03-18 Tom Tromey <tromey@redhat.com>
7633
7634 * infcmd.c (finish_command_continuation): Wrap print_return_value
7635 in TRY_CATCH.
7636
e8d05480
JB
76372010-03-18 Joel Brobecker <brobecker@adacore.com>
7638
7639 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7640 DIE has a name before creating the associated partial symbol.
7641 (read_func_scope): Emit a complaint if the subprogram does not
7642 have a name or when we can't extract the subprogram PC bounds.
7643
441b986a
UW
76442010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7645
7646 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7647 instead of selected frame architecture.
7648
4247603b
PA
76492010-03-18 Pedro Alves <pedro@codesourcery.com>
7650
7651 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7652 a valid selected thread, and that it is not running.
7653 (advance_command): Ditto.
7654 (finish_command): Ditto.
7655
400c6af0
SS
76562010-03-17 Stan Shebs <stan@codesourcery.com>
7657
3a96536b
SS
7658 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7659
573cda03
SS
7660 * infcall.c: Include tracepoint.h.
7661 (call_function_by_hand): Disallow calls in tfind mode.
7662 * infcmd.c: Include tracepoint.h.
7663 (ensure_not_tfind_mode): New function.
7664 (continue_1): Call it.
7665 (step_1) Ditto.
7666 (jump_command): Ditto.
7667 (signal_command): Ditto.
7668 (advance_command): Ditto.
7669 (until_command): Ditto.
7670 (finish_command): Ditto.
7671 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7672
400c6af0
SS
7673 * ax-gdb.h (struct axs_value): New field optimized_out.
7674 (gen_trace_for_var): Add gdbarch argument.
7675 * ax-gdb.c (gen_trace_static_fields): New function.
7676 (gen_traced_pop): Call it, add gdbarch argument.
7677 (gen_trace_for_expr): Update call to it.
7678 (gen_trace_for_var): Ditto, and report optimized-out variables.
7679 (gen_struct_ref_recursive): Check for optimized-out value.
7680 (gen_struct_elt_for_reference): Ditto.
7681 (gen_static_field): Pass gdbarch instead of expression, assume
7682 optimization if field not found.
7683 (gen_var_ref): Set the optimized_out flag.
7684 (gen_expr): Error on optimized-out variable.
7685 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7686 expressions, skip optimized-out variables with computed locations.
7687 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7688 erroring out if location expression missing.
7689 (loclist_tracepoint_var_ref): Don't error out here.
7690
a3b2a86b
TT
76912010-03-17 Tom Tromey <tromey@redhat.com>
7692
7693 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7694 DWARF data is available.
7695
38963c97
DJ
76962010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7697
7698 * symfile.c (generic_load): Reset breakpoints after loading.
7699
ddabfc73
TT
77002010-03-17 Tom Tromey <tromey@redhat.com>
7701
7702 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7703
d8c09fb5
JK
77042010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7705
7706 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7707 create_breakpoint call, adjust the parameters.
7708
bbb0eef6
JK
77092010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7710 Chandru <chandru@in.ibm.com>
7711
7712 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7713 * valarith.c (value_subscripted_rvalue): Suppress error if
7714 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7715
46956e39
HZ
77162010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7717
7718 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7719
b8d088ac
JB
77202010-03-16 Joel Brobecker <brobecker@adacore.com>
7721
7722 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7723 before doing the associated thread switch.
7724
322be962
DJ
77252010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7726
7727 * MAINTAINERS: Update my email address.
7728
8cdf0e15
VP
77292010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7730
7731 Simplify MI breakpoint setting.
7732
7733 * breakpoint.c (break_command_really): Make nonstatic and
7734 rename to...
7735 (create_breakpoint): ...this. Rename prior function by this name
7736 to...
7737 (create_breakpoint_sal): ...this.
7738 (create_breakpoints): Rename to...
7739 (create_breakpoints_sal): ...this.
7740 (set_breakpoint): Remove.
7741 * breakpoint.h: Adjust to above changes.
7742 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7743
b6e7192f
SS
77442010-03-15 Stan Shebs <stan@codesourcery.com>
7745
7746 * ax-gdb.c: Include cp-support.h.
7747 (find_field): Remove.
7748 (gen_primitive_field): New function.
7749 (gen_struct_ref_recursive): New function.
7750 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7751 of find_field.
7752 (gen_static_field): New function.
7753 (gen_struct_elt_for_reference): New.
7754 (gen_namespace_elt): New.
7755 (gen_maybe_namespace_elt): New.
7756 (gen_aggregate_elt_ref): New.
7757 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7758
1054b214
TT
77592010-03-15 Tom Tromey <tromey@redhat.com>
7760
7761 * dwarf2read.c (die_needs_namespace): Also return 0 for
7762 DW_TAG_subprogram.
7763
13387711
SW
77642010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7765
7766 PR c++/7936:
7767 * cp-support.h: Added char *declaration element to using_direct
7768 data struct.
7769 (cp_add_using): Added char *declaration argument.
7770 (cp_add_using_directive): Ditto.
7771 (cp_lookup_symbol_imports): made extern.
7772 * cp-namespace.c: Updated with the above changes.
7773 * dwarf2read.c (read_import_statement): Ditto.
7774 (read_namespace): Ditto.
7775 (read_import_statement): Support import declarations.
7776 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7777 declarations.
7778 Added support for 'declaration_only' search.
7779 (cp_lookup_symbol_namespace): Attempt to search for the name as
7780 is before consideration of imports.
7781 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7782 search at every block level search.
7783 Now takes language argument.
7784 (lookup_symbol_aux): Updated.
7785
6e31430b
TT
77862010-03-15 Tom Tromey <tromey@redhat.com>
7787
7788 * c-exp.y (name_not_typename): Add 'operator' clause.
7789
4dea3bb7 77902010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7791
7792 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7793 * configure: Regenerate.
7794
4d9743af
JK
77952010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7796
7797 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7798 and ".sdynbss". Update the comment.
7799
f75150fe
JZ
78002010-03-15 Jie Zhang <jie@codesourcery.com>
7801
7802 * MAINTAINERS: Update my email address.
7803
3c13bc11
DJ
78042010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7805
7806 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7807
43484f03
DJ
78082010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7809
7810 * charset.c [USE_WIN32API]: Include <windows.h>.
7811 (_initialize_charset): Correct type of w32_host_default_charset.
7812
5f25d77d
PA
78132010-03-14 Pedro Alves <pedro@codesourcery.com>
7814
7815 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7816
1c809c68
TT
78172010-03-12 Tom Tromey <tromey@redhat.com>
7818
7819 PR c++/9708:
7820 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7821 in a lexical block does not need a namespace.
7822 (new_symbol) <DW_TAG_variable>: Put extern variables on
7823 list_in_scope in all cases.
7824
948103cf
SS
78252010-03-12 Stan Shebs <stan@codesourcery.com>
7826
7827 * ax-gdb.c (gen_expr): Add shift expressions.
7828 (gen_expr_binop_rest): Ditto.
7829
00ae8fef
SW
78302010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7831
7832 * buildsym.c (finish_block): Reset using_directives pointer
7833 after block initialization.
7834
9cad29ac
L
78352010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7836
7837 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7838 * i386-tdep.c (i386_word_names): Likewise.
7839
2f4d8875
PA
78402010-03-12 Pedro Alves <pedro@codesourcery.com>
7841
7842 * target.c (memory_xfer_partial): Don't use the stack cache if
7843 inspecting trace frames.
7844 * tracepoint.c (finish_tfind_command): Invalidate the target
7845 dcache.
7846
ccf26247
JK
78472010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7848
7849 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7850 for the PIC displacement, print also the displacement value.
7851 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7852
477c84a7
KB
78532010-03-10 Kevin Buettner <kevinb@redhat.com>
7854
7855 * remote-mips.c (close_ports, mips_initialize_cleanups)
7856 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7857 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7858 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7859 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7860 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7861 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7862 comments describing each of these functions.
7863 (mips_enter_debug, mips_exit_debug, common_open)
7864 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7865 blank line after the comment describing the function.
7866
01c30d6e
JK
78672010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7870 parameter displacementp. Update comment.
7871 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7872 element exists. Return if svr4_exec_displacement was not successful.
7873 Update comment.
7874
09919ac2
JK
78752010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7876 Daniel Jacobowitz <dan@codesourcery.com>
7877
7878 * solib-svr4.c (read_program_header): Support type == -1 to read
7879 all program headers.
7880 (read_program_headers_from_bfd): New function.
7881 (svr4_static_exec_displacement): Remove and move the comment ...
7882 (svr4_exec_displacement): ... here. Remove variable found. New
7883 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7884 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7885 targets using read_program_headers_from_bfd. Remove the call of
7886 svr4_static_exec_displacement.
7887
d146bf1e
TT
78882010-03-10 Tom Tromey <tromey@redhat.com>
7889
7890 * dwarf2read.c (struct pubnames_header): Remove.
7891 (_PUBNAMES_HEADER): Remove.
7892 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7893 (struct aranges_header): Remove.
7894 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7895 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7896 (PUBNAMES_SECTION): Remove.
7897 (ARANGES_SECTION): Remove.
7898 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7899 (dwarf2_build_psymtabs): Remove dead code.
7900 (dwarf2_build_psymtabs_easy): Remove.
7901
be391dca
TT
79022010-03-10 Tom Tromey <tromey@redhat.com>
7903
7904 * elfread.c (elf_symfile_read): Don't call
7905 dwarf2_build_frame_info.
7906 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7907 (struct dwarf2_per_objfile) <objfile>: New field.
7908 (dwarf2_has_info): Now idempotent. Set objfile field.
7909 (dwarf2_read_section): Check and set readin field. Call
7910 posix_madvise.
7911 (dwarf2_build_psymtabs): Don't read all sections.
7912 (read_type_comp_unit_head): Read types section.
7913 (create_debug_types_hash_table): Likewise.
7914 (init_cu_die_reader): Add asserts.
7915 (process_type_comp_unit): Add assert.
7916 (dwarf2_build_psymtabs_hard): Read info section.
7917 (load_partial_comp_unit): Add assert.
7918 (create_all_comp_units): Read info section.
7919 (load_full_comp_unit): Likewise.
7920 (dwarf2_ranges_read): Read ranges section.
7921 (dwarf2_record_block_ranges): Add assert.
7922 (dwarf2_read_abbrevs): Read abbrev section.
7923 (read_indirect_string): Read str section.
7924 (dwarf_decode_line_header): Read line section.
7925 (read_signatured_type_at_offset): Read types section.
7926 (dwarf_decode_macros): Read macinfo section.
7927 (dwarf2_symbol_mark_computed): Read loc section.
7928 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7929 dwarf2_build_frame_info.
7930 (dwarf2_build_frame_info): Unconditionally set
7931 dwarf2_frame_objfile_data on the objfile.
7932 * configure.ac: Check for posix_madvise.
7933 * config.in, configure: Rebuild.
7934
ccefe4c4
TT
79352010-03-10 Tom Tromey <tromey@redhat.com>
7936
e38df1d0
TT
7937 * xcoffread.c (xcoff_start_psymtab): Update.
7938 (xcoff_end_psymtab): Update.
7939 * psymtab.c (allocate_psymtab): Remove dead code.
7940 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7941 void*.
7942 * mdebugread.c (parse_partial_symbols): Update.
7943 (new_psymtab): Likewise.
7944 * dwarf2read.c (process_psymtab_comp_unit): Update.
7945 (psymtab_to_symtab_1): Update.
7946 * dbxread.c (start_psymtab): Update.
7947 (end_psymtab): Likewise.
7948
be391dca 79492010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 7950
ccefe4c4
TT
7951 * xcoffread.c: Include psymtab.h.
7952 (xcoff_sym_fns): Update.
7953 * symtab.h (struct partial_symbol): Remove.
7954 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7955 (struct partial_symtab): Remove.
7956 (PSYMTAB_TO_SYMTAB): Remove.
7957 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7958 (find_pc_sect_psymtab): Remove.
7959 (find_pc_sect_symtab_via_partial): Declare.
7960 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7961 (find_main_psymtab): Remove.
7962 (find_main_filename): Declare.
7963 (fixup_psymbol_section): Remove.
7964 (fixup_section): Declare.
7965 * symtab.c: Include psymtab.h.
7966 (lookup_symtab): Use lookup_symtab method.
7967 (lookup_partial_symtab): Remove.
7968 (find_pc_sect_psymtab_closer): Remove.
7969 (find_pc_sect_psymtab): Remove.
7970 (find_pc_sect_symtab_via_partial): New function.
7971 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7972 (fixup_section): No longer static.
7973 (fixup_psymbol_section): Remove.
7974 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7975 (lookup_global_symbol_from_objfile): Likewise.
7976 (lookup_symbol_aux_psymtabs): Remove.
7977 (lookup_symbol_aux_quick): New function.
7978 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7979 (lookup_partial_symbol): Remove.
7980 (basic_lookup_transparent_type_quick): New function.
7981 (basic_lookup_transparent_type): Use it.
7982 (find_main_psymtab): Remove.
7983 (find_main_filename): New function.
7984 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7985 (find_line_symtab): Use expand_symtabs_with_filename method.
7986 (output_partial_symbol_filename): New function.
7987 (sources_info): Use map_partial_symbol_filenames.
7988 (struct search_symbols_data): New type.
7989 (search_symbols_file_matches): New function.
7990 (search_symbols_name_matches): Likewise.
7991 (search_symbols): Use expand_symtabs_matching method.
7992 (struct add_name_data): Rename from add_macro_name_data.
7993 (add_macro_name): Update.
7994 (add_partial_symbol_name): New function.
7995 (default_make_symbol_completion_list): Use
7996 map_partial_symbol_names.
7997 (struct add_partial_symbol_name): New type.
7998 (maybe_add_partial_symtab_filename): New function.
7999 (make_source_files_completion_list): Use
8000 map_partial_symbol_filenames.
8001 (expand_line_sal): Use expand_symtabs_with_filename method.
8002 * symmisc.c: Include psymtab.h.
8003 (print_objfile_statistics): Use print_stats method.
8004 (dump_objfile): Use dump method.
8005 (dump_psymtab, maintenance_print_psymbols)
8006 (maintenance_info_psymtabs, maintenance_check_symtabs)
8007 (extend_psymbol_list): Remove.
8008 * symfile.h (struct quick_symbol_functions): New struct.
8009 (struct sym_fns) <qf>: New field.
8010 (sort_pst_symbols): Remove.
8011 (increment_reading_symtab): Declare.
8012 * symfile.c: Include psymtab.h.
8013 (compare_psymbols, sort_pst_symbols): Remove.
8014 (psymtab_to_symtab): Remove.
8015 (increment_reading_symtab): New function.
8016 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8017 method.
8018 (set_initial_language): Use find_main_filename.
8019 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8020 (free_named_symtabs): Remove unused code.
8021 (start_psymtab_common, add_psymbol_to_bcache)
8022 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8023 Remove.
8024 * stack.c: Include psymtab.h, symfile.h.
8025 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8026 * source.h (psymtab_to_fullname): Don't declare.
8027 * source.c: Include psymtab.h.
8028 (select_source_symtab): Use find_last_source_symtab method.
8029 (forget_cached_source_info): Use forget_cached_source_info
8030 method.
8031 (find_and_open_source): No longer static.
8032 (psymtab_to_fullname): Remove.
8033 * somread.c: Include psymtab.h.
8034 (som_sym_fns): Update.
8035 * psympriv.h: New file.
8036 * psymtab.h: New file.
8037 * psymtab.c: New file.
8038 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8039 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8040 * objfiles.c: Include psymtab.h.
8041 (objfile_relocate1): Use relocate method.
8042 (objfile_has_partial_symbols): Use has_symbols method.
8043 * mipsread.c: Include psymtab.h.
8044 (ecoff_sym_fns): Update.
8045 * mi/mi-cmd-file.c: Include psymtab.h.
8046 (print_partial_file_name): New function.
8047 (mi_cmd_file_list_exec_source_files): Use
8048 map_partial_symbol_filenames.
8049 * mdebugread.c: Include psympriv.h.
8050 * machoread.c: Include psympriv.h.
8051 (macho_sym_fns): Update.
8052 * m2-exp.y (yylex): Use lookup_symtab.
8053 * elfread.c: Include psympriv.h.
8054 (elf_sym_fns): Update.
8055 * dwarf2read.c: Include psympriv.h.
8056 * dbxread.c: Include psympriv.h.
8057 (aout_sym_fns): Update.
8058 * cp-support.c: Include psymtab.h.
8059 (read_in_psymtabs): Remove.
8060 (make_symbol_overload_list_qualified): Use
8061 expand_symtabs_for_function method.
8062 * coffread.c: Include psympriv.h.
8063 (coff_sym_fns): Update.
8064 * blockframe.c: Include psymtab.h.
8065 (find_pc_partial_function): Use find_pc_sect_symtab method.
8066 * ada-lang.h (ada_update_initial_language): Update.
8067 * ada-lang.c: Include psymtab.h.
8068 (ada_update_initial_language): Remove 'main_pst' argument.
8069 (ada_lookup_partial_symbol): Remove.
8070 (struct ada_psym_data): New type.
8071 (ada_add_psyms): New function.
8072 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8073 (struct add_partial_datum): New type.
8074 (ada_add_partial_symbol_completions): New function.
8075 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8076 (ada_exception_support_info_sniffer): Update.
8077 * Makefile.in (SFILES): Add psymtab.c.
8078 (COMMON_OBS): Add psymtab.o.
8079 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8080
7d8500b7
PM
80812010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8082
8083 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8084
c0cc3a76
SW
80852010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8086
8087 PR C++/11236:
8088 * cp-namespace.c (cp_add_using): Deleted.
8089 (cp_add_using_directive): Use obstack allocations.
8090 Merged the function cp_add_using into this one.
8091 Added 'struct obstack *' argument.
8092 (cp_scan_for_anonymous_namespaces): Updated.
8093 * cp-support.h: Updated.
8094 * dwarf2read.c (read_import_statement): Updated.
8095 (read_namespace): Updated.
8096
452fa064
CF
80972010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8098
8099 * windows-nat.c (cygwin_conv_path): Remove old macro.
8100
60e1c644
PA
81012010-03-10 Pedro Alves <pedro@codesourcery.com>
8102
8103 * breakpoint.c (condition_command): Handle watchpoint conditions.
8104 (is_hardware_watchpoint): Add comment.
8105 (is_watchpoint): New.
8106 (update_watchpoint): Don't reparse the watchpoint's condition
8107 unless necessary.
8108 (WP_IGNORE): New.
8109 (watchpoint_check): Use it.
8110 (bpstat_check_watchpoint): Handle it.
8111 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8112 conditions in a frame where it makes sense.
8113 (watch_command_1): Store the innermost block of the condition
8114 expression.
8115 (delete_breakpoint): Delete the watchpoint condition expression.
8116 * breakpoint.h (struct bp_location) <cond>: Update comment.
8117 (struct breakpoint): New field `cond_exp_valid_block'.
8118
af6b7be1
JB
81192010-03-09 Joel Brobecker <brobecker@adacore.com>
8120
8121 Adjust handling of Ada DIEs after dwarf2_physname patch.
8122 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8123
60c5c021
CF
81242010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8125 Pierre Muller <muller@ics.u-strasbg.fr>
8126
8127 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8128 from/to posix/win32.
8129 (windows_make_so): Use non-Cygwin 1.7 specific function.
8130 (windows_create_inferior): Make sure that cygallargs points to
8131 original args in non Cygwin 1.7. case.
8132
60a1502a
MS
81332010-03-09 Michael Snyder <msnyder@vmware.com>
8134
8135 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8136 after target_read_memory to get host byte order.
8137 (i386_process_record): Ditto.
8138
94af9270
KS
81392010-03-09 Keith Seitz <keiths@redhat.com>
8140
8141 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8142 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8143 print out const or volatile qualifiers, too.
8144 (c_type_print_args): Add parameters show_artificial and language.
8145 Skip artificial parameters when requested.
8146 Use the appropriate language printer.
8147 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8148 parameters and pass language_c.
8149 * dwarf2read.c (die_list): New file global.
8150 (struct partial_die_info): Update comments for name field.
8151 (pdi_needs_namespace): Renamed to ...
8152 (die_needs_namespace): ... this. Rewrite.
8153 (dwarf2_linkage_name): Remove.
8154 (add_partial_symbol): Do not predicate the call to
8155 partial_die_full_name based on pdi_needs_namespace.
8156 Remove call to cp_check_possible_namespace_symbols and associated
8157 outdated comments.
8158 (guess_structure_name): Do not inspect child subprogram DIEs.
8159 (dwarf2_fullname): Update comments.
8160 Use die_needs_namespace to assist in computing the name.
8161 (read_func_scope): Use dwarf2_name to get the DIE's name.
8162 Use dwarf2_physname to get the "linkage name" of the DIE.
8163 (dwarf2_add_member_field): Use dwarf2_physname instead of
8164 dwarf2_linkage_name.
8165 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8166 (determine_class): Remove.
8167 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8168 except Ada.
8169 (new_symbol): Unconditionally call dwarf2_name.
8170 Compute the "linkage name" using dwarf2_physname.
8171 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8172 When determining to scan for anonymous C++ namespaces, ignore
8173 the linkage name.
8174 (dwarf2_physname): New function.
8175 (dwarf2_full_name): Move content to new function and call
8176 that.
8177 (dwarf2_compute_name): "New" function.
8178 (_initialize_dwarf2_read): Initialize die_list.
8179 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8180 physname.
8181 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8182 without a demangled name.
8183 Print out type information for non-virtual methods.
c8d5aac9 8184 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8185 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8186 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8187 (decode_compound): Stop consuming at an open parenthesis.
8188 Keep template parameters.
8189 Keep any overload information.
8190 Keep keywords like "const".
8191 Remove paren_pointer.
8192 Move is_quoted check from set_flags to here.
8193 Remove #if 0 code from 2000. Ten years is long enough.
8194 (find_method): Before comparing symbol names, canonicalize the string
8195 from the user.
8196 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8197 (find_method_overload_end): New function.
8198 (set_flags): Remove.
c8d5aac9
L
8199 (decode_compound): Assume that parentheses are matched.
8200 It's a lot easier.
94af9270
KS
8201 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8202 to cplus_demangle.
8203 * linespec.c (decode_line_1): Keep important keywords like
8204 "const" and "volatile".
8205 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8206 * typeprint.h (c_type_print_args): Add declaration.
8207 * ui-file.c (do_ui_file_obsavestring): New function.
8208 (ui_file_obsavestring): New function.
8209 * ui-file.h (ui_file_obsavestring): Add declaration.
8210 * valops.c (find_overload_match): Resolve the object to
8211 a non-pointer type.
8212 If the object is a data member, search the object for the member
8213 and return with staticp set.
8214 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8215 Do not attempt to extract a function name from non-function types.
8216 If the extracted function name and the original name are the same,
8217 we don't have a C++ method.
8218
8d95cc3b
PA
8219 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8220 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8221
8222 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8223 and arguments from symbol lookups.
8224 * ax-gdb.c (gen_expr): Likewise.
8225 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8226 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8227 lookup_possible_namespace_symbol): Likewise.
8228 * cp-support.c (read_in_psymtabs): Likewise.
8229 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8230 * language.h (la_lookup_symbol_nonlocal): Likewise.
8231 * scm-valprint.c (scm_inferior_print): Likewise.
8232 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8233 * solib-svr.c (elf_lookup_lib): Likewise.
8234 * solib.c (show_auto_solib_add): Likewise.
8235 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8236 * symmisc.c (maintenance_check_symtabs): Likewise.
8237 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8238 lookup_symbol_aux_local, lookup_symbol_aux_block,
8239 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8240 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8241 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8242 basic_lookup_transparent_type, find_main_psymtab,
8243 lookup_block_symbol): Likewise.
8244 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8245 lookup_symbol_global, lookup_symbol_aux_block,
8246 lookup_symbol_partial_symbol, lookup_block_symbol,
8247 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8248
9cb74f47
PM
82492010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8250
8251 * python/python-internal.h: Include symtab.h.
8252
af6b7be1
JB
82532010-03-09 Joel Brobecker <brobecker@adacore.com>
8254 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8255
8256 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8257 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8258 indentation.
8259
bad56014
TT
82602010-03-08 Tom Tromey <tromey@redhat.com>
8261
8262 * breakpoint.c (breakpoint_1): Add "QUIT".
8263
08105857
PA
82642010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8265 Pedro Alves <pedro@codesourcery.com>
8266
8267 * solib.c (solib_find): Replace extension if
8268 solib_symbols_extension is set in the target gdbarch.
8269 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8270 solib_symbols_extension to "sym".
8271 * gdbarch.sh (solib_symbols_extension): New variable.
8272 (pstring): New function.
8273 * gdbarch.h, gdbarch.c: Regenerate.
8274
7c953934
TT
82752010-03-08 Tom Tromey <tromey@redhat.com>
8276
8277 PR cli/9591:
8278 * NEWS: Update.
8279 * utils.c: Include main.h.
8280 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8281 (defaulted_query): Use default answer if `batch_flag'.
8282 * main.h (batch_flag): Declare.
8283 * main.c (batch_flag): New global.
8284 (captured_main): Remove 'batch'. Update.
8285
bbd2783e
KB
82862010-03-08 Kevin Buettner <kevinb@redhat.com>
8287
8288 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8289 and Kevin Buettner:
8290
8291 * remote-mips.c (rockhopper_ops): New target_ops struct.
8292 (MON_ROCKHOPPER): New mips_monitor_type.
8293 (read_hex_value): New function.
8294 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8295 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8296 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8297 (rockhopper_open): New function.
8298 (mips_wait): Read the PC, FP and SP fields as strings. Use
8299 read_hex_value to parse them and mips_set_register to commit them.
8300 (mips_set_register): New function.
8301 (mips_fetch_registers): Do not cast register value to "unsigned"
8302 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8303 (mips_store_registers): Use a 'T' packet to set registers when
8304 using MON_ROCKHOPPER.
8305 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8306 and expect the total to be printed before the entry address.
8307 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8308
566f3d17
KB
83092010-03-08 Kevin Buettner <kevinb@redhat.com>
8310
8311 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8312 Change return value to int. Store value fetched in location
8313 addressed by `val'. Use function's return value as success
8314 or failure indicator. Adjust all callers.
8315
9c8ee2ab 83162010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8317
8318 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8319
7155de5a
HZ
83202010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8321 Hui Zhu <teawater@gmail.com>
8322
8323 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8324 tmp_to_stopped_data_address.
8325 (record_open): Reset tmp_to_stopped_by_watchpoint and
8326 tmp_to_stopped_data_address.
8327 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8328 to_stopped_data_address.
8329
580879fc
HZ
83302010-03-08 Hui Zhu <teawater@gmail.com>
8331
8332 * i386-tdep.c (i386_process_record): Initialize regnum.
8333
b0fcb67f
JK
83342010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8337 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8338
08597104
JB
83392010-03-08 Joel Brobecker <brobecker@adacore.com>
8340
8341 Memory error when reading wrong core file.
8342 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8343 errors while reading the inferior memory, and return zero if
8344 an exception was raised.
8345
425b824a
MS
83462010-03-07 Michael Snyder <msnyder@vmware.com>
8347
ec6dbf37
MS
8348 * record.c (record_restore): Rename tmpu8 to rectype.
8349
648d0c8b
MS
8350 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8351 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8352
8353 (i386_record_push): Rename local tmpulongest to addr.
8354
8355 (i386_process_record): Rename local tmpulongest to addr.
8356
8357 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8358 addr64.
955db0c0
MS
8359
8360 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8361
10760264
JB
83622010-03-07 Joel Brobecker <brobecker@adacore.com>
8363
8364 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8365 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8366
b3c613f2
CF
83672010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8368
8369 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8370 block. Define helper macros to reduce ifdefs in code.
8371 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8372 size. Call unadorned GetModuleFileNameEx rather than
8373 GetModuleFileNameEx*.
8374 (windows_make_so): Use __PMAX to denote maximum buffer size and
8375 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8376 appropriate.
8377 (get_image_name): Use __PMAX to denote maximum buffer size.
8378 (handle_load_dll): Likewise.
8379 (windows_pid_to_exec_file): Likewise.
8380 (windows_create_inferior): Add many accommodations for older Cygwin and
8381 non-Cygwin.
8382 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8383 __USEWIDE conditional.
8384 (bad_GetModuleFileNameExA): Likewise.
8385 (_initialize_loadable): Just use real function names without the dyn_
8386 part since they are defined earlier.
8387
f870a310
TT
83882010-03-05 Corinna Vinschen <vinschen@redhat.com>
8389 Tom Tromey <tromey@redhat.com>
8390
8391 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8392 (parse_escape): Likewise.
8393 * python/py-utils.c (unicode_to_target_string): Update.
8394 (unicode_to_target_python_string): Update.
8395 (target_string_to_unicode): Update.
8396 * printcmd.c (printf_command): Update.
8397 * p-exp.y (yylex): Update.
8398 * objc-exp.y (yylex): Update.
8399 * mi/mi-parse.c: Include charset.h.
8400 (mi_parse_escape): New function.
8401 (mi_parse_argv): Use it.
8402 * jv-exp.y (yylex): Update.
8403 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8404 function.
8405 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8406 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8407 * gdbarch.c: Rebuild.
8408 * gdbarch.h: Rebuild.
8409 * defs.h (parse_escape): Update.
8410 * cli/cli-setshow.c: Include arch-utils.h.
8411 (do_setshow_command): Update.
8412 * cli/cli-cmds.c (echo_command): Update.
8413 * charset.h (target_charset, target_wide_charset): Update.
8414 * charset.c: Include arch-utils.h.
8415 (target_charset_name): Default to "auto".
8416 (target_wide_charset_name): Likewise.
8417 (show_target_charset_name): Handle "auto".
8418 (show_target_wide_charset_name): Likewise.
8419 (be_le_arch): New global.
8420 (set_be_le_names): Add 'gdbarch' argument.
8421 (validate): Likewise. Don't call set_be_le_names.
8422 (set_charset_sfunc, set_host_charset_sfunc)
8423 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8424 Update.
8425 (target_charset): Add 'gdbarch' argument.
8426 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8427 (auto_target_charset_name): New global.
8428 (default_auto_charset, default_auto_wide_charset): New functions.
8429 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8430 for target charsets. Copy result of nl_langinfo. Use GetACP if
8431 USE_WIN32API.
8432 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8433 remove 'byte_order' argument. Update.
8434 (classify_type): Likewise.
8435 (c_emit_char): Update.
8436 (c_printchar): Update.
8437 (c_printstr): Update.
8438 (c_get_string): Update.
8439 (evaluate_subexp_c): Update.
8440 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8441 Declare.
8442 * python/python.c (gdbpy_target_charset): New function.
8443 (gdbpy_target_wide_charset): Likewise.
8444 (GdbMethods): Update.
8445 * NEWS: Update.
8446
4e7386b0
UW
84472010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8448
8449 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8450 off high address bits.
8451
aab48ede
UW
84522010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8453
8454 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8455 address as UnsignedLongLong, not LongLong.
8456
8eeafb51 84572010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8458 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8459
8460 * remote-mips.c (gdbthread.h): Include.
8461 (remote_mips_ptid): Declare.
8462 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8463 (common_open): Set inferior_ptid, add it as an inferior, and
8464 as a thread too. Delete FIXME comment regarding start_remote().
8465 (mips_close): Invoke generic_mourn_inferior().
8466 (mips_kill): Make sure that target_mourn_inferior is invoked.
8467 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8468 it's now invoked from mips_close().
8469 (mips_load): Don't null out inferior_ptid. Don't call
8470 clear_symtab_users().
8471 (mips_thread_alive, mips_pid_to_str): New functions.
8472 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8473 to_thread_alive and to_pid_to_str operations.
8474
ae411497
TT
84752010-03-04 Tom Tromey <tromey@redhat.com>
8476
8477 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8478 in DWARF 3 and later.
8479 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8480
0e0b460e
KS
84812010-03-04 Keith Seitz <keiths@redhat.com>
8482
8483 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8484 If the filename portion of the linespec was quoted, recheck the
8485 remainder for additional quoting.
8486 (locate_first_half): Skip over completer chars, too.
8487
1b93ff13
TT
84882010-03-04 Tom Tromey <tromey@redhat.com>
8489
8490 * printcmd.c (printf_command): Pass dummy argument to
8491 printf_filtered.
8492
fc36e839
DE
84932010-03-04 Doug Evans <dje@google.com>
8494
111f853c
DE
8495 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8496 unwound_fp.
8497
fc36e839
DE
8498 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8499
c7437ca6
PA
85002010-03-04 Pedro Alves <pedro@codesourcery.com>
8501
8502 * breakpoint.c (update_watchpoint): Create a sentinel location if
8503 the software watchpoint isn't watching any memory.
8504 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8505
58dadb1b
PA
85062010-03-04 Pedro Alves <pedro@codesourcery.com>
8507
8508 * utils.c (fputs_maybe_filtered): Check if there's already a top
8509 level interpreter before dereferencing it. If there isn't one,
8510 don't paginate either.
8511
50e98be4
DJ
85122010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8513
8514 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8515 the state right when single stepping.
8516 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8517 Get the next PC along with the instruction state.
8518 (thumb_get_next_pc): Remove.
8519 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8520
2e3ceee9
HZ
85212010-03-04 Hui Zhu <teawater@gmail.com>
8522
8523 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8524
390a8aca
PA
85252010-03-03 Pedro Alves <pedro@codesourcery.com>
8526
8527 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8528 top level interpreter is MI.
8529
9355b391
SS
85302010-03-03 Stan Shebs <stan@codesourcery.com>
8531
8532 * remote.c (remote_download_tracepoint): Iterate over locations.
8533 * tracepoint.c (validate_actionline): Ditto.
8534 (encode_actions): Add location argument.
8535 (trace_dump_command): Check all locations to see if stepping
8536 frame.
390a8aca 8537
8685c86f
L
85382010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8539 Eli Zaretskii <eliz@gnu.org>
8540
8541 * NEWS: Add X86 general purpose registers section.
8542
e8f781e2
TT
85432010-03-03 Tom Tromey <tromey@redhat.com>
8544
8545 PR mi/11098:
8546 * varobj.c (install_new_value): Handle case where new print_value
8547 is NULL.
8548
a0e0ef55
TT
85492010-03-03 Dainis Jonitis <jonitis@gmail.com>
8550
8551 PR gdb/11345:
8552 * printcmd.c (printf_command): Print end of format string using
8553 printf_filtered.
8554
a58d7472
TT
85552010-03-02 Tom Tromey <tromey@redhat.com>
8556
8557 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8558 * defs.h (read_command_lines_1): Add missing 'void'.
8559 * cli/cli-script.c (recurse_read_control_structure): Add missing
8560 'void'.
8561 (read_next_line): Likewise.
8562 (read_command_lines_1): Likewise.
8563
ce50d78b
UW
85642010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8565
8566 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8567 store backchain as part of prologue.
8568
7e9af34a
DJ
85692010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8570
8571 * progspace.c (update_address_spaces): Update inferior address spaces
8572 also.
8573
01637564
DE
85742010-03-02 Doug Evans <dje@google.com>
8575
8576 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8577 lowpc,highpc args to addrmap_set_empty.
8578
1ba53b71
L
85792010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8580
8581 * amd64-tdep.c (amd64_byte_names): New.
8582 (amd64_word_names): Likewise.
8583 (amd64_dword_names): Likewise.
8584 (amd64_pseudo_register_name): Likewise.
8585 (amd64_pseudo_register_read): Likewise.
8586 (amd64_pseudo_register_write): Likewise.
8587 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8588 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8589 set_gdbarch_pseudo_register_write and
8590 set_tdesc_pseudo_register_name. Don't call
8591 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8592
8593 * i386-tdep.c (i386_num_mmx_regs): Removed.
8594 (i386_num_pseudo_regs): Likewise.
8595 (i386_byte_names): New.
8596 (i386_word_names): Likewise.
8597 (i386_byte_regnum_p): Likewise.
8598 (i386_word_regnum_p): Likewise.
8599 (i386_mmx_regnum_p): Updated.
8600 (i386_pseudo_register_name): Make it global. Handle byte and
8601 word pseudo-registers.
8602 (i386_pseudo_register_read): Likewise.
8603 (i386_pseudo_register_write): Likewise.
8604 (i386_pseudo_register_type): Handle byte, word and dword
8605 pseudo-registers
8606 (i386_register_reggroup_p): Don't include pseudo
8607 registers, except for MXX, in any register groups. Don't
8608 include pseudo byte, word, dword registers in general_reggroup.
8609 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8610 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8611 pseudo-registers after word pseudo-registers. Call
8612 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8613
8614 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8615 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8616 eax_regnum.
8617 (i386_byte_regnum_p): New.
8618 (i386_word_regnum_p): Likewise.
8619 (i386_dword_regnum_p): Likewise.
8620 (i386_pseudo_register_name): Likewise.
8621 (i386_pseudo_register_read): Likewise.
8622 (i386_pseudo_register_write): Likewise.
8623
a6f5ef51
L
86242010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8625
8626 * target-descriptions.c (tdesc_type): Remove
8627 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8628 (tdesc_predefined_types): Likewise.
8629 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8630 if flag name is empty.
8631 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8632
8633 * features/i386/32bit-core.xml: Define i386_eflags.
8634 * features/i386/64bit-core.xml: Likewise.
8635
8636 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8637 * features/i386/64bit-sse.xml: Likewise.
8638
8639 * features/i386/amd64-linux.c: Regenerated.
8640 * features/i386/amd64.c: Likewise.
8641 * features/i386/i386-linux.c: Likewise.
8642 * features/i386/i386.c: Likewise.
8643
f5dff777
DJ
86442010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8645
8646 * gdbtypes.c (append_composite_type_field_raw): New.
8647 (append_composite_type_field_aligned): Use the new function.
8648 * gdbtypes.h (append_composite_type_field_raw): Declare.
8649 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8650 (struct tdesc_type_flag): New type.
8651 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8652 kind. Add size to u.u. Add u.f for flags.
8653 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8654 (tdesc_free_type): Likewise.
8655 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8656 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8657 (tdesc_add_bitfield, tdesc_add_flag): New.
8658 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8659 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8660 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8661 current_type. Add current_type_size and current_type_is_flags.
8662 (tdesc_start_union): Clear the new fields.
8663 (tdesc_start_struct, tdesc_start_flags): New.
8664 (tdesc_start_field): Handle struct fields, including bitfields.
8665 (field_attributes): Make type optional. Add start and end.
8666 (union_children): Rename to struct_union_children.
8667 (union_attributes): Rename to struct_union_attributes. Add optional
8668 size.
8669 (flags_attributes): New.
8670 (feature_children): Add struct and flags.
8671 * features/gdb-target.dtd: Add flags and struct to features.
8672 Make field type optional. Add field start and end.
8673
90884b2b
L
86742010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8677 (amd64_linux_read_description): Likewise.
8678 (_initialize_amd64_linux_nat): Set to_read_description to
8679 amd64_linux_read_description.
8680
8681 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8682 (amd64_linux_register_name): Removed.
8683 (amd64_linux_register_type): Likewise.
8684 (amd64_linux_core_read_description): New.
8685 (amd64_linux_init_abi): Set target description to
8686 tdesc_amd64_linux if needed. Support orig_rax in target
8687 description. Don't call set_gdbarch_register_name nor
8688 set_gdbarch_register_type. Call
8689 set_gdbarch_core_read_description.
8690 (_initialize_amd64_linux_tdep): Call
8691 initialize_tdesc_amd64_linux.
8692
8693 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8694
8695 * amd64-tdep.c: Include "features/i386/amd64.c".
8696 (amd64_register_names): Removed.
8697 (amd64_register_name): Likewise.
8698 (amd64_register_type): Likewise.
8699 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8700 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8701 set_gdbarch_register_name nor set_gdbarch_register_type.
8702 (_initialize_amd64_tdep): New.
8703
8704 * i386-linux-nat.c (i386_linux_read_description): New.
8705 (_initialize_i386_linux_nat): Set to_read_description to
8706 i386_linux_read_description.
8707
8708 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8709 (i386_linux_register_name): Removed.
8710 (i386_linux_core_read_description): New.
8711 (i386_linux_read_description): Likewise.
8712 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8713 Set target description to tdesc_i386_linux if needed. Support
8714 orig_eax. Set register_reggroup_p. Call
8715 set_gdbarch_core_read_description.
8716 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8717
8718 * i386-linux-tdep.h (tdesc_i386_linux): New.
8719
8720 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8721 with I387_NUM_REGS.
8722
8723 * i386-tdep.c: Include "features/i386/i386.c".
8724 (i386_register_names): Make it const.
8725 (i386_mmx_names): Likewise.
8726 (i386_num_register_names): Removed.
8727 (i386_register_name): Likewise.
8728 (i386_eflags_type): Likewise.
8729 (i386_mxcsr_type): Likewise.
8730 (i386_sse_type): Likewise.
8731 (i386_register_type): Likewise.
8732 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8733 (i386_pseudo_register_name): New.
8734 (i386_pseudo_register_type): Likewise.
8735 (i386_mmx_type): Make it static.
8736 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8737 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8738 call set_gdbarch_register_name nor set_gdbarch_register_type.
8739 Set register_reggroup_p. Set target description to tdesc_i386
8740 if needed. Call set_tdesc_pseudo_register_type,
8741 set_tdesc_pseudo_register_name and tdesc_use_registers.
8742 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8743 initialize_tdesc_x86_64.
8744
8745 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8746 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8747 register_names, tdesc and register_reggroup_p.
8748 (I386_NUM_FREGS): Removed.
8749 (i386_eflags_type): Likewise.
8750 (i386_mxcsr_type): Likewise.
8751 (i386_mmx_type): Likewise.
8752 (i386_sse_type): Likewise.
8753 (i386_register_name): Likewise.
8754 (i386_regnum): Add I386_MXCSR_REGNUM.
8755 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8756
8757 * i387-tdep.h (I387_NUM_REGS): New.
8758
8759 * regformats/i386/i386-linux.dat: Generated.
8760 * regformats/i386/i386.dat: Likewise.
8761 * regformats/i386/amd64-linux.dat: Likewise.
8762 * regformats/i386/amd64.dat: Likewise.
8763
8764 * regformats/reg-i386-linux.dat: Removed.
8765 * regformats/reg-i386.dat: Likewise.
8766 * regformats/reg-x86-64-linux.dat: Likewise.
8767 * regformats/reg-x86-64.dat: Likewise.
8768
d0d0ab16
CV
87692010-03-01 Corinna Vinschen <vinschen@redhat.com>
8770
8771 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8772 cygwin_conv_path API rather than the deprecated
8773 cygwin_conv_to_full_posix_path.
8774 * windows-nat.c:
8775 (GetModuleFileNameExA): Undefine for Cygwin.
8776 (GetModuleFileNameExW): Define for Cygwin.
8777 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8778 Call GetModuleFileNameExW and convert path to POSIX using
8779 cygwin_conv_path.
8780 (windows_make_so): Always define p. Drop unused variable m.
8781 Don't use Win32 functions to check file existance, rather use
8782 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8783 Use canonicalize_file_name to get full path.
8784 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8785 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8786 use correct target buffer size in call to WideCharToMultiByte.
8787 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8788 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8789 (windows_create_inferior): Convert all paths and arguments to wchar_t
8790 and use CreateProcessW on Cygwin.
8791 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8792 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8793 (bad_GetModuleFileNameExW): Define for Cygwin.
8794 (_initialize_loadable): Load GetModuleFileNameExW into
8795 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8796
dc00d89f
PM
87972010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8798
8799 PR python/11036
8800 * python/py-frame.c (frapy_read_var): Add block argument and logic
8801 to cope with user provided blocks.
8802
0e095b7e
JK
88032010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8804
8805 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8806 New comment.
8807
2f9e05b4
CV
88082010-02-28 Corinna Vinschen <vinschen@redhat.com>
8809
8810 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8811 (COMMON_OBS): ... to here since it's used unconditionally.
8812 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8813 (SFILES): To here.
8814
eb195664
DD
88152010-02-26 David Daney <ddaney@caviumnetworks.com>
8816
8817 * mips-linux-tdep.c: Update struct sigframe comments.
8818 (SIGFRAME_CODE_OFFSET): Delete macro.
8819 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8820 this_frame's sp.
8821 (mips_linux_n32n64_sigframe_init): Same.
8822
97b0f3e2
KB
88232010-02-26 Kevin Buettner <kevinb@redhat.com>
8824
8825 * remote-mips.c (mips_load): Don't use pseudo-register when
8826 invalidating regcache.
8827
4069ebbe
DJ
88282010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8829
8830 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8831
05071a4d
PA
88322010-02-26 Pedro Alves <pedro@codesourcery.com>
8833
8834 * NEWS: Add "New targets" section, and mention ARM Symbian
8835 support.
8836
6063c216
UW
88372010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8838
8839 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8840 add ADDR_SIZE member.
8841 (allocate_piece_closure): Update.
8842 (copy_pieced_value_closure): Likewise.
8843 (dwarf2_evaluate_loc_desc): Likewise.
8844 (read_pieced_value): Use DWARF address size instead of
8845 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8846
5107b149 88472010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8848 Tom Tromey <tromey@redhat.com>
5107b149
PM
8849
8850 * python/py-type.c (typy_lookup_typename): Add in block argument.
8851 If provided restrict lookup to specified blocks.
8852 (gdbpy_lookup_type): Likewise.
8853 (typy_lookup_type): Likewise.
8854
78664fa3 88552010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8856
78664fa3
PA
8857 Symbian config
8858
8859 gdb/
8860 * arm-symbian-tdep.c: New.
8861 * configure.tgt (arm*-*-symbianelf*): New target.
8862 (*-*-symbianelf*): New OS.
8863 * osabi.c (gdb_osabi_names): Add Symbian.
8864 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8865 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8866 (ALLDEPFILES): Add arm-symbian-tdep.c.
8867
eb73e134
DJ
88682010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8869
8870 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8871
46ef47e5
PA
88722010-02-24 Pedro Alves <pedro@codesourcery.com>
8873
8874 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8875
f3e9a817 88762010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 8877 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
8878 Thiago Jung Bauermann <bauerman@br.ibm.com>
8879
8880 * python/python.c (_initialize_python): Call
8881 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8882 gdbpy_initialize_blocks.
8883 * python/python-internal.h: Declare struct symbol, block and
8884 symtab_and_line. Declare block_object_type and
8885 symbol_object_type
8886 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8887 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8888 (symbol_to_symbol_object, block_to_block_object)
8889 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8890 (gdbpy_initialize_blocks ): Declare.
8891 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8892 (frapy_select): Add methods.
8893 (frapy_read_var): Add symbol branch.
8894 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8895 py-block.
8896 (SUBDIR_PYTHON_SRCS): Likewise.
8897 (py-symbol.o): New rule.
8898 (py-symtab.o): Likewise.
8899 (py-block.o): Likewise.
8900 * python/py-symbol.c: New file.
8901 * python/py-symtab.c: Likewise.
8902 * python/py-block.c: Likewise.
8903
24291992
PA
89042010-02-24 Pedro Alves <pedro@codesourcery.com>
8905
8906 PR gdb/11321
8907
8908 * inferior.h (prepare_for_detach): Declare.
8909 (struct inferior) <detaching>: New field.
8910 * infrun.c (prepare_for_detach): New.
8911 (handle_inferior_event) <random signal>: Don't stop if detaching.
8912 * target.c (target_detach): Call prepare_for_detach.
8913
fc1cf338
PA
89142010-02-24 Pedro Alves <pedro@codesourcery.com>
8915
8916 Per-process displaced stepping queue.
8917
8918 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8919 (displaced_step_gdbarch, displaced_step_closure,
8920 (displaced_step_original, displaced_step_copy): Move globals to
8921 this...
8922 (struct displaced_step_inferior_state): ... new structure.
8923 (displaced_step_inferior_states): New global.
8924 (get_displaced_stepping_state, add_displaced_stepping_state)
8925 (remove_displaced_stepping_state, infrun_inferior_exit): New
8926 functions.
8927 (displaced_step_clear): Add displaced_step_inferior_state
8928 parameter, and adjust to handle it.
8929 (displaced_step_clear_cleanup): Parameter is now a
8930 displaced_step_inferior_state. Adjust.
8931 (displaced_step_prepare): Adjust.
8932 (displaced_step_fixup, displaced_step_fixup)
8933 (infrun_thread_ptid_changed, resume): Adjust.
8934 (init_wait_for_inferior): Don't call displaced_step_clear.
8935 (infrun_thread_stop_requested): Rewrite.
8936 (_initialize_infrun): Install infrun_inferior_exit as
8937 inferior_exit observer.
8938
0723dbf5
PA
89392010-02-24 Pedro Alves <pedro@codesourcery.com>
8940
8941 * inferior.h (ptid_match): Declare.
8942 * infrun.c (ptid_match): New.
8943 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8944 (handle_notification): Add debug output.
8945 * linux-nat.c (ptid_match): Delete.
8946
09de9781
DM
89472010-02-24 David S. Miller <davem@davemloft.net>
8948
8949 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8950 * syscalls/sparc-linux.xml: New.
8951 * syscalls/sparc64-linux.xml: New.
8952 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8953 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8954 (sparc32_linux_get_syscall_number): New function.
8955 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8956 syscall number fetcher.
8957 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8958 (sparc64_linux_get_syscall_number): New function.
8959 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8960 syscall number fetcher.
8961
a79b8f6e
VP
89622010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8963
8964 Multiexec MI
8965
8966 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8967 * inferior.c (add_inferior_silent): Notify inferior_added
8968 observer.
8969 (delete_inferior_1): Notify inferior_removed observer.
8970 (exit_inferior_1): Pass inferior, not pid, to observer.
8971 (inferior_appeared): Likewise.
8972 (add_inferior_with_spaces): New.
8973 (add_inferior_command): Use the above.
8974 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8975 Declare.
8976
8977 * inflow.c (inflow_inferior_exit): Likewise.
8978 * jit.c (jit_inferior_exit_hook): Likewise.
8979
8980 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8981 remove-inferior.
8982 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8983 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8984 (report_initial_inferior): New.
8985 (mi_inferior_removed): Register the above. Make sure
8986 inferior_added observer is called on the first inferior.
8987 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8988 inferior number, not pid.
8989 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8990 affected.
8991 * mi/mi-main.c (current_context): New.
8992 (proceed_thread_callback): Use typed closure.
8993 Proceed everything if pid is 0. Most implementation split into
8994 (proceed_thread): ... this.
8995 (run_one_inferior): New.
8996 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8997 Adjust for multiexec behaviour.
8998 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8999 (mi_cmd_execute): Handle the 'thread-group' option here.
9000 Do some extra checks.
9001 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9002 options.
9003 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9004
115d30f9
VP
90052010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9006
9007 Make -exec-run a proper MI commands.
9008
9009 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9010 * mi/mi-cmds.c (mi_cmds): Adjust.
9011 * mi/mi-main.c (mi_cmd_exec_run): New.
9012
06cd862c
PA
90132010-02-24 Pedro Alves <pedro@codesourcery.com>
9014 Stan Shebs <stan@codesourcery.com>
9015
9016 * tracepoint.h (set_traceframe_number)
9017 (cleanup_restore_current_traceframe): Declare.
9018 * tracepoint.c (set_traceframe_number): New.
9019 (struct current_traceframe_cleanup): New.
9020 (do_restore_current_traceframe_cleanup)
9021 (restore_current_traceframe_cleanup_dtor)
9022 (make_cleanup_restore_current_traceframe): New.
9023 * infrun.c: Include tracepoint.h.
9024 (fetch_inferior_event): Switch out and in of tfind mode.
9025
ab92d69b
PA
90262010-02-24 Pedro Alves <pedro@codesourcery.com>
9027
9028 * breakpoint.c (breakpoint_init_inferior): Also delete
9029 bp_shlib_event breakpoints.
9030 * solib-frv.c (enable_break): Remove call to
9031 remove_solib_event_breakpoints.
9032 * solib-svr4.c (enable_break): Ditto.
9033 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9034 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9035 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9036 * solib-spu.c (spu_enable_break): Ditto.
9037
e707a91d
PA
90382010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9039
9040 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9041
cfce2ea2
PA
90422010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9043
9044 * varobj.c (varobj_update): Avoid non-constants in initializers.
9045
05566b3b
TT
90462010-02-23 Tom Tromey <tromey@redhat.com>
9047
9048 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9049 handle big-endian values.
9050 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9051
85d721b8
PA
90522010-02-22 Pedro Alves <pedro@codesourcery.com>
9053
9054 PR9605
9055
9056 gdb/
9057 * breakpoint.c (insert_bp_location): If inserting the read
9058 watchpoint failed, fallback to an access watchpoint.
9059 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9060 if the value changed, if not watching the same memory for writes.
9061 (watchpoint_locations_match): Add comment.
9062 (update_global_location_list): Copy the location's watchpoint type.
9063 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9064 handle read watchpoints here.
9065 (i386_insert_watchpoint): Read watchpoints aren't supported.
9066 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9067 packets.
9068 * target.h (target_insert_watchpoint): Update description.
9069
48ea67a7
TT
90702010-02-19 Tom Tromey <tromey@redhat.com>
9071
9072 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9073 * m2-typeprint.c (m2_print_type): Update.
9074 * gdbtypes.c (recursive_dump_type): Update.
9075 (copy_type_recursive): Update.
9076 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9077 (c_type_print_base): Update.
9078 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9079 Remove.
9080 (struct cplus_struct_type) <ntemplate_args>: Remove.
9081 <struct template_arg>: Remove.
9082 <is_dynamic>: Move earlier.
9083 (TYPE_TEMPLATE_ARGS): Remove.
9084 (TYPE_NTEMPLATE_ARGS): Remove.
9085 (TYPE_TEMPLATE_ARG): Remove.
9086
48e32051
TT
90872010-02-19 Tom Tromey <tromey@redhat.com>
9088
9089 PR c++/8693, PR c++/9496:
9090 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9091 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9092 write_dollar_variable. Don't try to classify NAME tokens.
9093 (token_and_value): New type.
9094 (token_fifo, popping, name_obstack): New globals.
9095 (classify_name): New function.
9096 (classify_inner_name): Likewise.
9097 (yylex): Likewise.
9098 (VARIABLE): Now has type sval.
9099 (exp : VARIABLE): Call write_dollar_variable.
9100 (qualified_name): Use TYPENAME, not typebase. Add production for
9101 multiple "::" instances.
9102 (variable): Use name_not_typename.
9103 (qualified_type): Remove.
9104 (typebase): Update.
9105
672d9c23
JK
91062010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9107
9108 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9109 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9110 found by bfd_get_section_by_name.
9111 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9112
bfbf3774
JB
91132010-02-19 Joel Brobecker <brobecker@adacore.com>
9114
9115 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9116 7.0 section" into "Changes in 7.1".
9117
6756b09b 91182010-02-19 Joel Brobecker <brobecker@adacore.com>
9119
9120 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9121 * version.in: Bump version to 7.1.50.20100219-cvs.
9122
202b96c1
PA
91232010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9124
9125 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9126 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9127
de2e5182
TT
91282010-02-17 Tom Tromey <tromey@redhat.com>
9129
9130 * NEWS: Add Python API Improvements section.
9131
7280022e
DJ
91322010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9133
9134 * NEWS: Correct typo.
9135
6f451e5e
TT
91362010-02-17 Tom Tromey <tromey@redhat.com>
9137
9138 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9139
012836ea
JK
91402010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9141
9142 * symfile.c (build_section_addr_info_from_objfile): Include sections
9143 only if they are SEC_ALLOC or SEC_LOAD.
9144
d182d057
L
91452010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9146
9147 PR shlibs/11293
9148 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9149 of ULONGEST for address size.
9150
4eef138c
TT
91512010-02-17 Tom Tromey <tromey@redhat.com>
9152
9153 * NEWS: Add C++ improvements section.
9154
548a926a
UW
91552010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9156
9157 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9158 PyThreadState_Swap): Avoid "statement with no effect" warning.
9159
ad3a0e5b
JK
91602010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9161
9162 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9163 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9164
243e2c5d 91652010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9166 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9167
9168 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9169 gdb_assert. Fix info->size for SIG prologue.
9170
275f2e57
DJ
91712010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9172
9173 * infcmd.c (show_inferior_tty_command): Check for NULL.
9174 Correct output message.
9175
791dfb64
DJ
91762010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9177
9178 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9179 FUNCTION contains parentheses. Improve removal of a trailing
9180 single quote.
9181
14d1346b
DJ
91822010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9183
9184 * gcore.c (do_bfd_delete_cleanup): New function.
9185 (gcore_command): Use it. Discard the cleanup after success.
9186 (gcore_copy_callback): Delete dead code.
9187
e76ab67f
DJ
91882010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9189
9190 * symfile.c (addr_info_make_relative): Always use
9191 find_lowest_section.
9192
71dee663
SW
91932010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9194
9195 * NEWS: Added entry for namespace fixes.
9196
a9854bd5
TT
91972010-02-15 Tom Tromey <tromey@redhat.com>
9198
9199 * dwarf2read.c (guess_structure_name): Allocate name on the
9200 objfile obstack.
9201
fd9e29b5
TT
92022010-02-15 Tom Tromey <tromey@redhat.com>
9203
9204 * c-typeprint.c (c_type_print_base): Reverse order of test.
9205
4e1fc9c9
JK
92062010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9207
9208 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9209 initialize it from ELF BFD. Extend the prelink condition by it.
9210
74164c56
JK
92112010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9212
9213 * defs.h (parse_pid_to_attach): New.
9214 * utils.c (parse_pid_to_attach): New.
9215 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9216 * gnu-nat.c (gnu_attach): Likewise.
9217 * nto-procfs.c (procfs_attach): Likewise.
9218 * procfs.c (procfs_attach): Likewise.
9219 * windows-nat.c (windows_attach): Likewise.
9220 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9221 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9222 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9223 check.
9224
bf6adea8
MM
92252010-02-14 Masaki Muranaka <monaka@monami-software.com>
9226
9227 * MAINTAINERS: Add myself for write after approval privileges.
9228
28f34a8f
JK
92292010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9230
9231 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9232 block.
9233
701ed6dc
JK
92342010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9235
9236 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9237 only if INFO_VERBOSE.
9238
e5829bee
MS
92392010-02-12 Tomas Holmberg <th@virtutech.com>
9240
9241 * mi/mi-main.c: Added the --reverse flag to the following MI
9242 commands: exec-continue, exec-finish, exec-next, exec-step,
9243 exec-next-instruction, exec-step-instruction. This is to
9244 support reverse execution over the MI interface to gdb.
9245
081dfbf7
PA
92462010-02-12 Pedro Alves <pedro@codesourcery.com>
9247
9248 * tracepoint.c (_initialize_tracepoint): Specify that the address
9249 range of `tfind outsize' is exclusive, and that the address range
9250 of `tfind range' is inclusive, in the commands' help strings.
9251
ecc13e53
JB
92522010-02-12 Joel Brobecker <brobecker@adacore.com>
9253
9254 Spurious "dll not found" error messages on x64-windows.
9255 * windows-nat.c: Add include of complaints.h.
9256 (handle_unload_dll): Change dll-not-found error into a complaint.
9257
15c3d785
PA
92582010-02-12 Pedro Alves <pedro@codesourcery.com>
9259
9260 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9261 bp_tracepoint and bp_fast_tracepoint, not
9262 bp_loc_software_breakpoint.
9263 (update_global_location_list): Tracepoints are never duplicates of
9264 anything.
9265
fd9b8c24
PA
92662010-02-12 Pedro Alves <pedro@codesourcery.com>
9267
9268 * breakpoint.c (break_command_really): Change return type to int.
9269 Return false if no breakpoint was created, true otherwise.
9270 (trace_command): Don't set the tracepoint count if no tracepoint
9271 was created.
9272 (ftrace_command): Ditto.
9273 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9274 created in the breakpoints table.
9275
5c0d192f
JK
92762010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9277 Ulrich Weigand <uweigand@de.ibm.com>
9278
9279 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9280
5d5b640e
PA
92812010-02-11 Pedro Alves <pedro@codesourcery.com>
9282
9283 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9284 the offset value isn't of integral type.
9285
e5a0a904
JK
92862010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9287
9288 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9289 New.
9290
be636754
PA
92912010-02-11 Pedro Alves <pedro@codesourcery.com>
9292
9293 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9294 non-subscriptable types.
9295 * valarith.c (binop_types_user_defined_p): New, abstracted out
9296 from ...
9297 (binop_user_defined_p): ... this.
9298 * value.h (binop_types_user_defined_p): Declare.
9299
10ef8d6a
PA
93002010-02-11 Pedro Alves <pedro@codesourcery.com>
9301
9302 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9303 Merge uploaded TSVs before merging uploaded tracepoints.
9304
b1028c8e
PA
93052010-02-11 Pedro Alves <pedro@codesourcery.com>
9306
9307 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9308
7a93fb82 93092010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9310
7a93fb82
VP
9311 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9312 whitespace character after a dot in comment.
9313 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9314 Likewise.
9315 (list_args_or_locals): For the 'all' (that is
9316 -stack-list-variables) case, always output list of tuples.
9317 Output 'arg' field if variable is argument.
84d90c10 9318
92981e24
TT
93192010-02-10 Tom Tromey <tromey@redhat.com>
9320
9321 * parser-defs.h (parser_debug): Declare.
9322 * parse.c (_initialize_parse): Install "debug parser" set/show
9323 command.
9324 (parser_debug): New global.
9325 (show_parserdebug): New function.
9326 * c-exp.y (c_parse): Set yydebug.
9327
9fd3625f
L
93282010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9329
9330 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9331 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9332 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9333 i386_mxcsr.
9334 (tdesc_find_type): New.
9335 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9336 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9337
9338 * target-descriptions.h (tdesc_find_type): New.
9339
2fe842e5
MS
93402010-02-10 Michael Snyder <msnyder@vmware.com>
9341
9342 * gdb-gdb.py: Comment fix.
9343
f18b4cab
TG
93442010-02-09 Tristan Gingold <gingold@adacore.com>
9345
9346 * machoread.c (macho_symfile_relocate): New function.
9347 (macho_sym_fns): Use macho_symfile_relocate instead of
9348 default_symfile_relocate.
9349 (macho_oso_data): New type.
9350 (current_oso): New variable.
9351 (macho_add_oso_symfile): Do not compute section_addr_info, but
9352 instead set vma of sections.
9353 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9354 Set and clear current_oso.
9355
31dbc1c5
JB
93562010-02-09 Joel Brobecker <brobecker@adacore.com>
9357
9358 Wrong type description for tagged type parameter.
9359 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9360 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9361 reference to a tagged type.
9362
399f313b
TG
93632010-02-09 Tristan Gingold <gingold@adacore.com>
9364
9365 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9366 brothers of the parent.
9367
714f19d5
TT
93682010-02-08 Tom Tromey <tromey@redhat.com>
9369
9370 PR c++/8017:
9371 * value.h: Update.
9372 * valops.c (search_struct_field): Make 'name' const.
9373 (search_struct_method): Likewise.
9374 (find_method_list): Make 'method' const.
9375 (value_struct_elt): Make 'name' and 'err' const.
9376 (value_find_oload_method_list): Make 'method' const.
9377 (find_overload_match): Make 'name' const.
9378 * eval.c (evaluate_subexp_standard): New locals function,
9379 function_name.
9380 <OP_FUNCALL>: Handle OP_SCOPE specially.
9381
de0a0249
UW
93822010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9383
9384 * infrun.c (handle_inferior_event): Do not look up regcache
9385 for exited processes.
9386
8d95cc3b 93872010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9388
9389 PR gdb/10728
9390 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9391 warn if found, and assume length = 1.
83b10087 9392
99903ae3
CM
93932010-02-08 Chris Moller <cmoller@redhat.com>
9394
9395 PR gdb/9067
9396 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9397 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9398
e3e9f5a2
PA
93992010-02-08 Pedro Alves <pedro@codesourcery.com>
9400
9401 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9402 resumed LWPs as resumed.
9403 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9404 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9405 of throwing an internal error. If an LWP of a process we're not
9406 waiting for reports a signal, don't force collecting a SIGSTOP,
9407 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9408 go through all LWPs cancelling breakpoints in non-stop mode.
9409 (resume_stopped_resumed_lwps): New.
9410 (linux_nat_wait): Use it.
9411
46763423
L
94122010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9413
9414 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9415 i386/amd64 and i386/amd64-linux.
9416 (i386/i386-expedite): New.
9417 (i386/i386-linux-expedite): Likewise.
9418 (i386/amd64-expedite):Likewise.
9419 (i386/amd64-linux-expedite): Likewise.
9420 ($(outdir)/i386/i386-linux.dat): Likewise.
9421 ($(outdir)/i386/amd64.dat): Likewise.
9422 ($(outdir)/i386/amd64-linux.dat): Likewise.
9423
9424 * features/i386/32bit-core.xml: New.
9425 * features/i386/32bit-linux.xml: Likewise.
9426 * features/i386/32bit-sse.xml: Likewise.
9427 * features/i386/64bit-core.xml: Likewise.
9428 * features/i386/64bit-linux.xml: Likewise.
9429 * features/i386/64bit-sse.xml: Likewise.
9430 * features/i386/i386-linux.xml: Likewise.
9431 * features/i386/i386.xml: Likewise.
9432 * features/i386/amd64-linux.xml: Likewise.
9433 * features/i386/amd64.xml: Likewise.
9434 * features/i386/i386-linux.c: Likewise.
9435 * features/i386/i386.c: Likewise.
9436 * features/i386/amd64-linux.c: Likewise.
9437 * features/i386/amd64.c: Likewise.
9438
82856980
SW
94392010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9440
9441 PR c++/7935:
9442 * cp-support.h: Added char* alias element to using_direct data
9443 struct.
9444 (cp_add_using): Added char* alias argument.
9445 (cp_add_using_directive): Ditto.
9446 * cp-namespace.c: Updated with the above changes.
9447 (cp_lookup_symbol_imports): Check for aliases.
9448 * dwarf2read.c (read_import_statement): Figure out local alias
9449 for the import and pass it on to cp_add_using.
9450 (read_namespace): Pass alias argument to cp_add_using.
9451
d18b8b7a
HZ
94522010-02-05 Hui Zhu <teawater@gmail.com>
9453
9454 * defs.h (gdb_bfd_errmsg): New extern.
9455 * exec.c (exec_file_attach): Change bfd_errmsg to
9456 gdb_bfd_errmsg.
9457 * utils.c (AMBIGUOUS_MESS1): New macro.
9458 (AMBIGUOUS_MESS2): New macro.
9459 (gdb_bfd_errmsg): New function.
9460
48379de6
DE
94612010-02-04 Doug Evans <dje@google.com>
9462
9463 * solib-svr4.c (enable_break): Add comment.
9464
4ee73e90
AG
94652010-02-04 Anthony Green <green@moxielogic.com>
9466
9467 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9468 gracefully.
9469
1a334831
TT
94702010-02-04 Tom Tromey <tromey@redhat.com>
9471
9472 * valops.c (search_struct_field): Account for
9473 value_embedded_offset. Fix check for virtual base past the end of
9474 the object. Use value_copy when making a slice of the value.
9475
1180b2c8
L
94762010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9477
9478 PR tui/9622
9479 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9480 only if gdb_stdout is a tty.
9481
c3f08eb7
L
94822010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9483
9484 * target-descriptions.c: Include "osabi.h".
9485 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9486 OSABI.
9487
2d33f7b8
TG
94882010-02-04 Tristan Gingold <gingold@adacore.com>
9489
9490 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9491 (macho_symtab_read): Adjust calls to macho_add_oso.
9492 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9493 (macho_symfile_read): Adjust call to macho_oso_symfile.
9494 (macho_new_init): Move this function after declarations.
9495 (macho_symfile_init): Ditto.
9496 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9497 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9498
11334b82
VP
94992010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9500
9501 Include MI command in remotelog.
9502
9503 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9504
ff97be06
L
95052010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9506
9507 * remote.c (remote_state): Remove gdbarch.
9508 (init_remote_state): Don't set gdbarch.
9509 (remote_query_supported): Pass target_gdbarch instead of
9510 rs->gdbarch to gdbarch_qsupported.
9511
75cebea9
L
95122010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9513
9514 * gdbarch.sh: Add qsupported.
9515
9516 * gdbarch.c: Regenerated.
9517 * gdbarch.h: Likewise.
9518
9519 * remote.c (remote_state): Add gdbarch.
9520 (init_remote_state): Set gdbarch.
9521 (remote_query_supported): Support gdbarch_qsupported.
9522
c1dec97b
DJ
95232010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9524
9525 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9526 __FreeBSD_kernel_version.
9527
ac8035ab
TG
95282010-02-03 Tristan Gingold <gingold@adacore.com>
9529
9530 * symfile.h (struct sym_fns): Add sym_relocate field.
9531 (default_symfile_relocate): New prototype.
9532 (symfile_relocate_debug_section): First argument is now an objfile.
9533 * symfile.c (default_symfile_relocate): Rename from
9534 symfile_relocate_debug_section, first argument is now an objfile.
9535 (symfile_relocate_debug_section): New function.
9536 * coffread.c (coff_sym_fns): Set sym_relocate field.
9537 * somread.c (som_sym_fns): Ditto.
9538 * mipsread.c (ecoff_sym_fns): Ditto.
9539 * machoread.c (macho_sym_fns): Ditto.
9540 * elfread.c (elf_sym_fns): Ditto.
9541 * dwarf2read.c (dwarf2_read_section): Ditto.
9542 * xcoffread.c (xcoff_sym_fns): Ditto.
9543 * dbxread.c (aout_sym_fns): Ditto.
9544 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9545 (elfstab_build_psymtabs): Ditto.
9546
be52b756
L
95472010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9548
9549 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9550
9c3c02fd
TT
95512010-02-02 Tom Tromey <tromey@redhat.com>
9552
9553 * valops.c (value_cast_structs): Try downcasting using the RTTI
9554 type.
9555
f23f4c59
TT
95562010-02-02 Tom Tromey <tromey@redhat.com>
9557
9558 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9559 (gnuv2_baseclass_offset): Now static.
9560 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9561 * gnu-v2-abi.h: Remove.
9562
0cc2414c
TT
95632010-02-02 Tom Tromey <tromey@redhat.com>
9564
9565 * m2-typeprint.c (m2_record_fields): Don't use
9566 TYPE_DECLARED_TYPE.
9567 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9568 (struct main_type) <flag_declared_class>: New field.
9569 (struct cplus_struct_type) <declared_type>: Remove.
9570 <ntemplate_args>: Move earlier.
9571 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9572 (DECLARED_TYPE_TEMPLATE): Remove.
9573 (TYPE_DECLARED_TYPE): Remove.
9574 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9575 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9576 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9577 TYPE_DECLARED_TYPE.
9578
edf3d5f3
TT
95792010-02-02 Tom Tromey <tromey@redhat.com>
9580
9581 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9582 * valops.c (search_struct_field): Compute nbases after calling
9583 CHECK_TYPEDEF.
9584 (check_field): Call CHECK_TYPEDEF.
9585 * cp-valprint.c (cp_print_value): Pass correct address to
9586 baseclass_offset. Fix check for virtual base past the end of the
9587 object. Don't offset address passed to cp_print_value_fields or
9588 apply_val_pretty_printer.
9589 (cp_print_value_fields): Fix call to val_print.
9590 (cp_print_value_fields_rtti): New function.
9591 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9592 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9593 val_print.
9594 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9595 offset to address.
9596 * language.h (struct language_defn) <la_val_print>: Document.
9597 * c-lang.h (cp_print_value_fields_rtti): Declare.
9598
e4b7f41c
JK
95992010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9600
9601 PR libc/11214:
9602 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9603 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9604 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9605
7618e12b
DJ
96062010-02-01 Michael Matz <matz@suse.de>
9607 Daniel Jacobowitz <dan@codesourcery.com>
9608
e4b7f41c 9609 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9610 functions use a frame pointer.
9611
b381ea14
JK
96122010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9613
9614 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9615 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9616 * config/djgpp/fnchange.lst: Add translations for
9617 symbol-without-target_section.exp and symbol-without-target_section.c.
9618
0e05dfcb
DJ
96192010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9620
9621 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9622 (remote_breakpoint_for_pc): Correct invalid_p check.
9623 * gdbarch.c: Regenerated.
9624
f9d67f43
DJ
96252010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9626
9627 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9628 arm_pc_is_thumb.
9629 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9630 (extend_buffer_earlier): New function.
9631 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9632 (arm_adjust_breakpoint_address): New function.
9633 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9634
177321bd
DJ
96352010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9636
9637 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9638 (arm_linux_thumb2_le_breakpoint): New constants.
9639 (arm_linux_init_abi): Set thumb2_breakpoint and
9640 thumb2_breakpoint_size.
9641 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9642 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9643 Implement support for single stepping through IT blocks if
9644 a 32-bit Thumb breakpoint instruction is available.
9645 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9646 is available, use it when needed.
9647 (arm_remote_breakpoint_from_pc): New function.
9648 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9649 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9650 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9651
a1dcb23a
DJ
96522010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9653
9654 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9655 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9656 * gdbarch.c, gdbarch.h: Regenerated.
9657 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9658 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9659 gdbarch_remote_breakpoint_from_pc.
9660
2b009048
DJ
96612010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9662
9663 * infrun.c (prepare_to_proceed): Handle other signals which might
9664 match a breakpoint.
9665 (handle_inferior_event): Move the check for unusual breakpoint
9666 signals earlier.
9667
e4e2711a
JB
96682010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9669
9670 amd64 - function returning record with field straddling 2 registers.
9671 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9672 a record of length <= 16 in which a field straddles the two
9673 eightbytes.
9674
cba6fab5
JB
96752010-01-29 Joel Brobecker <brobecker@adacore.com>
9676
9677 Implement return values on amd64-windows.
9678 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9679 (amd64_windows_return_value): New function.
9680 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9681 amd64_windows_return_value.
9682
3af6ddfe
JB
96832010-01-29 Joel Brobecker <brobecker@adacore.com>
9684
9685 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9686 parameter registers.
3af6ddfe
JB
9687 * i386-tdep.h (struct gdbarch_tdep): Add new field
9688 integer_param_regs_saved_in_caller_frame.
9689 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9690 tdep->integer_param_regs_saved_in_caller_frame to 1.
9691 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9692 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9693
80d19a06
JB
96942010-01-29 Joel Brobecker <brobecker@adacore.com>
9695
9696 amd64-windows: memory args passed by pointer during function calls.
9697 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9698 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9699 where tdep->memory_args_by_pointer is non-zero.
9700 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9701 tdep->memory_args_by_pointer to 1.
9702
ba581dc1
JB
97032010-01-29 Joel Brobecker <brobecker@adacore.com>
9704
4966b6c2 9705 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9706 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9707 amd64-tdep.c.
9708 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9709 call_dummy_integer_regs, and classify.
9710 * amd64-tdep.h (amd64_classify): Add declaration.
9711 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9712 (amd64_reg_class): Delete, moved to i386-tdep.h.
9713 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9714 Replace call to amd64_classify by call to tdep->classify.
9715 (amd64_push_arguments): Get the list of registers to use for
9716 passing integer parameters from the gdbarch tdep structure,
9717 rather than using a hardcoded one. Replace calls to amd64_classify
9718 by calls to tdep->classify.
9719 (amd64_push_dummy_call): Get the register number used for
9720 the "hidden" argument from tdep->call_dummy_integer_regs.
9721 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9722 and tdep->call_dummy_integer_regs. Set tdep->classify.
9723 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9724 (amd64_windows_dummy_call_integer_regs): New static global.
9725 (amd64_windows_classify): New function.
9726 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9727 tdep->call_dummy_integer_regs and tdep->classify.
9728
d37346f0
DJ
97292010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9730
9731 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9732 for the new regcache. All callers updated.
9733 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9734 (get_thread_arch_regcache): Do not set aspace here.
9735 * regcache.h (regcache_xmalloc): Update declaration.
9736
9737 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9738 regcache_xmalloc updated.
9739
7434dadd
JB
97402010-01-28 Joel Brobecker <brobecker@adacore.com>
9741
9742 Another -Wunused-function error in procfs.c (sparc-solaris)
9743 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9744 Only define if SYS_syssgi is defined.
9745 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9746 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9747 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9748 is itself defined.
9749
16d905e2
CF
97502010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9751
9752 * windows-nat.c (windows_initialization_done): New variable.
9753 (get_windows_debug_event): Issue error when process dies before
9754 completely initializing.
9755 (do_initial_windows_stuff): Set flag to indicate when we are done with
9756 the initial steps of attaching to the child.
9757
cd55e50f
JK
97582010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9761
99cc78aa
DE
97622010-01-27 Doug Evans <dje@google.com>
9763
4c7dcb84
DE
9764 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9765
99cc78aa
DE
9766 * breakpoint.c (bpstat_stop_status): Delete useless code.
9767
52334bf5
JK
97682010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9769
9770 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9771 objfile via SYMBOL_SYMTAB.
9772
708ead4e
TT
97732010-01-26 Tom Tromey <tromey@redhat.com>
9774
9775 PR exp/7643:
9776 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9777 coerce_array on result.
9778
b14e635e
SW
97792010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9780
9781 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9782 search_parent argument.
9783 (cp_add_using): Initialize 'searched' field.
9784 (reset_directive_searched): New function.
9785 * cp-support.h: Add 'searched' field to using_direct struct.
9786 (cp_lookup_symbol_imports): Ditto.
9787 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9788 Perform recursive search.
9789 Implement non parent search.
9790 * valops.c (value_maybe_namespace_elt): Updated.
9791
8540c487
SW
97922010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9793
9794 PR gdb/10929:
9795 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9796 scopes which contain using directives even if they contain no
9797 declarations.
9798 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9799 la_lookup_symbol_nonlocal.
9800 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9801 cp_lookup_symbol_namespace.
9802 (cp_lookup_symbol_namespace): Perform an import lookup at every
9803 block level.
9804 (cp_lookup_symbol_imports): New function.
9805 (cp_lookup_symbol_in_namespace): New function.
9806
421d5d99
TT
98072010-01-25 Tom Tromey <tromey@redhat.com>
9808
9809 PR gdb/11049:
9810 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9811 result.
9812
6bcc772d
RO
98132010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9814
9815 * configure.ac: Only use host_os part when disabling TUI on osf.
9816 Use test to check variables, prefix strings with x.
9817 * configure: Regenerate.
9818
9819 * solib-osf.c (osf_current_sos): Initialize tail.
9820
1c1238a5
TG
98212010-01-25 gingold <gingold@adacore.com>
9822
c8d5aac9
L
9823 * windows-nat.c (windows_continue): Use %x to print thread id.
9824 (get_windows_debug_event): Ditto.
1c1238a5 9825
0b92b5bb
TT
98262010-01-22 Tom Tromey <tromey@redhat.com>
9827
9828 PR symtab/11199:
9829 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9830 type and arguments. Use smash_to_methodptr_type.
9831 (read_structure_type): Call quirk_gcc_member_function_pointer
9832 later.
9833 * gdbtypes.h (smash_to_methodptr_type): Declare.
9834 * gdbtypes.c (smash_to_methodptr_type): New function.
9835 (lookup_methodptr_type): Use it.
9836
0d5392b8
TT
98372010-01-21 Tom Tromey <tromey@redhat.com>
9838
9839 PR symtab/11198:
9840 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9841 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9842 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9843 (glibc_skip_solib_resolver): Use
9844 lookup_minimal_symbol_and_objfile.
9845
e6d088ec
KT
98462010-01-21 Kai Tietz <kai.tietz@onevision.com>
9847
9848 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9849 WIN32 targets.
9850
b966cb8a
TT
98512010-01-20 Tom Tromey <tromey@redhat.com>
9852
9853 PR backtrace/10770:
9854 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9855 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9856 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9857 dwarf_stack_values, not CORE_ADDRs.
9858 (execute_stack_op): Change DW_OP_div and comparison operators to
9859 use signed operands.
9860
3f81c18a
VP
98612010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9862
9863 Per-inferior args and tty and environment.
9864
9865 * infcmd.c (inferior_args): Rename to ...
9866 (inferior_args_scratch): ... this.
9867 (inferior_io_terminal): Rename to ...
9868 (inferior_io_terminal_scratch): ... this.
9869 (inferior_argc, inferior_argv): Remove.
9870 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9871 inside current_inferior().
9872 (set_inferior_tty_command, show_inferior_tty_command): New.
9873 (get_inferior_args, set_inferior_args): Store inside
9874 current_inferior().
9875 (notice_args_set): Likewise and rename to...
9876 (set_args_command): ... this.
9877 (set_inferior_args_vector): Likewise.
9878 (notice_args_read): Rename to...
9879 (show_args_command): ...new.
9880 (tty_command): Remove.
9881 (run_command_1): Don't free old args, as they are freed by
9882 set_inferior_arg now.
9883 (run_no_args_command): Likewise.
9884 (inferior_environ): Remove.
9885 (run_command_1): Use environment of the current inferior.
9886 (environment_info, set_environment_command)
9887 (unset_environment_command, path_info, path_command): Likewise.
9888 (_initialize_infcmd): Adjust for function and variable renames.
9889 Do not init inferior_environ.
9890 * inferior.h (set_inferior_arg): Adjust prototype.
9891 (struct inferior): New fields args, argc, argv, terminal, environment.
9892 (inferior_environ): Remove declaration.
9893 * inferior.c (free_inferior): Free new fields.
9894 (add_inferior_silent): Initialize 'environment' field.
9895 * main.c (captured_main): Set arguments only after the initial
9896 inferior has been created. Set set_inferior_io_terminal,
9897 not tty_command.
9898 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9899 inferior.
9900 (_initialize_mi_cmd_env): Adjust for disappearance of global
9901 inferior_environ.
9902 * solib.c (solib_find): Use environment of the current inferior.
9903
d8b65138
JK
99042010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9905
9906 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9907 HAVE_PYTHON.
9908 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9909
692465f1
JB
99102010-01-20 Joel Brobecker <brobecker@adacore.com>
9911
9912 Get rid of ada-lang.c:function_name_from_pc.
9913 * ada-lang.c: Add "stack.h" #include.
9914 (function_name_from_pc): Delete.
9915 (is_known_support_routine): Replace call to function_name_from_pc
9916 by call to find_frame_funname.
9917 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9918
95519e0e
TT
99192010-01-19 Tom Tromey <tromey@redhat.com>
9920
9921 PR c++/11026:
9922 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9923 objfile obstack.
9924
95c11dc7
TT
99252010-01-19 Tom Tromey <tromey@redhat.com>
9926
9927 * top.c (stop_sig, float_handler, do_nothing): Remove.
9928
a0f49112
JK
99292010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9930
9931 * breakpoint.c (watchpoint_check): Check the call
9932 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9933 Extend the comment.
8d95cc3b 9934 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
9935 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9936 watchpoint-cond-gone-stripped.c.
9937
ceeb3d5a
TT
99382010-01-19 Tom Tromey <tromey@redhat.com>
9939
9940 PR c++/8000:
9941 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9942 into parent scope, and enumerator into grandparent scope.
9943
2b71fc8e
JB
99442010-01-19 Joel Brobecker <brobecker@adacore.com>
9945
9946 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9947
03564ed9
JB
99482010-01-19 Joel Brobecker <brobecker@adacore.com>
9949
9950 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9951 i[34567]86-*-solaris2.1[0-9]*.
9952 * configure.tgt: Likewise.
9953
fb2e7cb4
JB
99542010-01-19 Joel Brobecker <brobecker@adacore.com>
9955
9956 * NEWS: Document the source command enhancement allowing it
9957 to load Python scripts. Document the "set/show script-extension"
9958 commands.
9959
1cb5e2a4
JB
99602010-01-19 Joel Brobecker <brobecker@adacore.com>
9961
9962 Add -Wunused-function to compile flags.
9963 * configure.ac: Add -Wunused-function to build_warnings.
9964 * configure: Regenerate.
9965
0ec6cd0c
JB
99662010-01-19 Joel Brobecker <brobecker@adacore.com>
9967
9968 "delete" ada-lex.c:input function, not used.
9969 * ada-lex.l: #define YY_NO_INPUT.
9970
b74845da
JB
99712010-01-19 Joel Brobecker <brobecker@adacore.com>
9972
9973 Delete free_named_symtabs and associated cleanup.
9974 * symfile.h (free_named_symtabs): Delete declaration.
9975 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9976 (cashier_psymtab): Comment function out.
9977 Delete declaration.
9978 (free_named_symtabs): Delete.
9979 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9980 * dbxread.c (end_psymtab): Likewise.
9981 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9982 * exec.c (exec_close_1): Ditto.
9983 * xcoffread.c (xcoff_end_psymtab): Likewise.
9984
65c06092
JB
99852010-01-19 Joel Brobecker <brobecker@adacore.com>
9986
9987 * stack.c (print_block_frame_labels): Comment function out.
9988
d5cd6034
JB
99892010-01-19 Joel Brobecker <brobecker@adacore.com>
9990
9991 Delete unused or undefined functions.
9992 * breakpoint.c (ep_parse_optional_filename): Delete.
9993 * dcache.c (dcache_write_line): Remove declaration.
9994 * infrun.c (build_infrun): Remove declaration.
9995 * tracepoint.c (tracepoint_save_command): Remove declaration.
9996 * linux-nat.c (init_lwp_list): Delete. No longer used.
9997 * event-loop.c (check_async_signal_handlers): Delete declaration.
9998 * infrun.c (init_execution_control_state): Delete.
9999 (proceed): Update comment to avoid mentioning
10000 init_execution_control_state.
10001 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10002 * ada-lang.c (ada_to_static_fixed_value): Delete.
10003 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10004 * cp-namespace.c (cp_copy_usings): Delete.
10005 * xml-syscall.c (xml_number_of_syscalls): Delete.
10006 * progspace.c (find_program_space_by_num): Delete.
10007 * inflow.c (handle_sigio): Delete declaration.
10008 * hppa-tdep.c (hppa_alignof): Delete.
10009 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10010 (mipsnbsd_core_osabi_sniffer): Delete.
10011
4e8f195d
TT
100122010-01-18 Tom Tromey <tromey@redhat.com>
10013
10014 PR c++/9680:
10015 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10016 (CONST_CAST): New tokens.
10017 (exp): Add new productions.
10018 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10019 reinterpret_cast.
10020 (is_cast_operator): New function.
10021 (yylex): Handle cast operators specially.
10022 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10023 UNOP_REINTERPRET_CAST>: New cases.
10024 * expprint.c (print_subexp_standard): Likewise.
10025 (op_name_standard): Likewise.
10026 (dump_subexp_body_standard): Likewise.
10027 * parse.c (operator_length_standard): Likewise.
10028 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10029 UNOP_REINTERPRET_CAST.
10030 * gdbtypes.c (class_types_same_p): New function.
10031 (is_ancestor): Use it.
10032 (is_public_ancestor): New function.
10033 (is_unique_ancestor_worker): Likewise.
10034 (is_unique_ancestor): Likewise.
10035 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10036 (is_unique_ancestor): Declare.
10037 * valops.c (value_reinterpret_cast): New function.
10038 (dynamic_cast_check_1): Likewise.
10039 (dynamic_cast_check_2): Likewise.
10040 (value_dynamic_cast): Likewise.
10041 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10042
d9c57d9f
JB
100432010-01-18 Joel Brobecker <brobecker@adacore.com>
10044
10045 Fix build failure when building without Python support.
10046 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10047 is not defined.
10048
f80d3ff2
JB
100492010-01-18 Joel Brobecker <brobecker@adacore.com>
10050
10051 Use XVS field type instead of doing a parallel lookup.
10052 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10053 if it is a reference type instead of doing a type lookup using
10054 the XVS field name.
10055
5bf03f13
JB
100562010-01-18 Joel Brobecker <brobecker@adacore.com>
10057
10058 Trust PAD types instead of using PAD___XVS.
10059 * ada-lang.c (trust_pad_over_xvs): New static variable.
10060 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10061 parallel XVS type, follow the XVS type instead of the PAD type.
10062 (unwrap_value): Make sure that there is no parallel XVE type
10063 before returning the value as is.
10064 (set_ada_list, show_ada_list): New static variables.
10065 (set_ada_command, show_ada_command): New functions.
10066 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10067 Add new "set/show ada trust-PAD-over-XVS" setting.
10068
973817a3
JB
100692010-01-18 Tom Tromey <tromey@redhat.com>
10070 Thiago Jung Bauermann <bauerman@br.ibm.com>
10071
10072 Allow "source" to load python scripts.
10073 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10074 * python/python.c (source_python_script): New function.
10075 * python/python.h (source_python_script): Add declaration.
10076 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10077 (script_ext_off, script_ext_soft, script_ext_strict)
10078 (script_ext_enums, script_ext_mode): New static constants.
10079 (show_script_ext_mode, find_and_open_script): New functions.
10080 (source_script): Enhance to handle Python scripts.
10081 (init_cli_cmds): Add set/show script-extension commands.
10082
98e03262
SS
100832010-01-16 Stan Shebs <stan@codesourcery.com>
10084
10085 * tracepoint.h (struct trace_status): Use unsigned long long
10086 instead of size_t.
10087 * tracepoint.c (trace_status_command): Fix printf directive.
10088 (trace_save_command): Check fwrite returns, fix printf directive.
10089 (trace_filename): New global.
10090 (tfile_open): Set it, check read returns.
10091 (tfile_close): Free trace_filename.
10092 (tfile_get_traceframe_address): Check read returns.
10093 (tfile_trace_find): Ditto.
10094 (tfile_fetch_registers): Ditto.
10095 (tfile_xfer_partial): Ditto.
10096 (tfile_get_trace_state_variable_value): Ditto.
10097
00bf0b85
SS
100982010-01-15 Stan Shebs <stan@codesourcery.com>
10099
10100 Add trace file support.
10101 * tracepoint.h (enum trace_stop_reason): New enum.
10102 (struct trace_status): New struct.
10103 (parse_trace_status): Declare.
10104 (struct uploaded_tp): Move here from remote.c,
10105 add fields for actions.
10106 (struct uploaded_tsv): New struct.
10107 * tracepoint.c (tfile_ops): New target vector.
10108 (trace_fd): New global.
10109 (tfile_open): New function.
10110 (tfile_close): New function.
10111 (tfile_files_info): New function.
10112 (tfile_get_trace_status): New function.
10113 (tfile_get_traceframe_address): New function.
10114 (tfile_trace_find): New function.
10115 (tfile_fetch_registers): New function.
10116 (tfile_xfer_partial): New function.
10117 (tfile_get_trace_state_variable_value): New function.
10118 (init_tfile_ops): New function.
10119 (_initialize_tracepoint): Call it, add tfile target.
10120 (trace_status): New global.
10121 (current_trace_status): New function.
10122 (trace_running_p): Remove, change all users to get from
10123 current_trace_status()->running.
10124 (get_trace_status): Remove.
10125 (trace_status_command): Call target_get_trace_status directly,
10126 report more detail including tracing stop reasons.
10127 (trace_find_command): Always allow tfind on a file.
10128 (trace_find_pc_command): Ditto.
10129 (trace_find_tracepoint_command): Ditto.
10130 (trace_find_line_command): Ditto.
10131 (trace_find_range_command): Ditto.
10132 (trace_find_outside_command): Ditto.
10133 (trace_frames_offset, cur_offset): Declare as off_t.
10134 (trace_regblock_size): Rename from reg_size, update users.
10135 (parse_trace_status): New function.
10136 (tfile_interp_line): New function.
10137 (disconnect_or_stop_tracing): Ensure current trace
10138 status before asking what to do.
10139 (stop_reason_names): New global.
10140 (trace_save_command): New command.
10141 (get_uploaded_tp): Move here from remote.c.
10142 (find_matching_tracepoint): Ditto.
10143 (merge_uploaded_tracepoints): New function.
10144 (parse_trace_status): Use stop_reason_names.
10145 (_initialize_tracepoint): Define tsave command.
10146 * target.h (target_ops): New fields to_save_trace_data,
10147 to_upload_tracepoints, to_upload_trace_state_variables,
10148 to_get_raw_trace_data, change to_get_trace_status
10149 to take a pointer to a status struct.
10150 (target_save_trace_data): New macro.
10151 (target_upload_tracepoints): New macro.
10152 (target_upload_trace_state_variables): New macro.
10153 (target_get_raw_trace_data): New macro.
10154 * target.c (update_current_target): Add new methods, change
10155 signature of to_get_trace_status.
10156 * remote.c (hex2bin): Make globally visible.
10157 (bin2hex): Ditto.
10158 (remote_download_trace_state_variable): Download name also.
10159 (remote_get_trace_status): Update parameter, use
10160 parse_trace_status.
10161 (remote_save_trace_data): New function.
10162 (remote_upload_tracepoints): New function.
10163 (remote_upload_trace_state_variables): New function.
10164 (remote_get_raw_trace_data): New function.
10165 (remote_start_remote): Use them.
10166 (_initialize_remote_ops): Add operations.
10167 * ax-gdb.c: Include breakpoint.h.
10168 * breakpoint.c (create_tracepoint_from_upload): Use
10169 break_command_really, return tracepoint, warn about unimplemented
10170 parts.
10171 * NEWS: Mention trace file addition.
10172
d904de5b
JK
101732010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10174
10175 Fix compilation warning on gcc-3.4.
10176 * exec.c (print_section_info): Move the `displacement' variable
10177 initialization to its declaration.
10178
64aa9731
JK
101792010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10180
10181 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10182 comparison.
10183
ca1f5def 101842010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10185
10186 "info tasks" broken by typedefs in ATCB type definitions.
10187 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10188 ada_check_typedef before retrieving the length of the type for
10189 regular fields.
10190
12ab9e09
JB
101912010-01-15 Joel Brobecker <brobecker@adacore.com>
10192
10193 Do not use name-based lookup for unconstrained packed arrays.
10194 * ada-lang.c (find_parallel_type_by_descriptive_type):
10195 Limit the fallback to name-based lookups to the case where
10196 the type is a constrained packed array.
10197
c389c3dc
JB
101982010-01-15 Joel Brobecker <brobecker@adacore.com>
10199
10200 Enhance gdb-gdb.py to handle main_type.type_specific.
10201 * gdb-gdb.py: Print the type-specific part of struct main_type.
10202
7991dee7
JK
102032010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10204
10205 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10206 * configure: Regenerate.
10207 * config.in: Regenerate.
10208 * utils.c: Include sys/resource.h.
10209 (dump_core, can_dump_core): New.
10210 (internal_vproblem): Update the comment. Check can_dump_core while
10211 setting dump_core_p. Replace two abort calls by dump_core calls.
10212
93c26624
JK
102132010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10214 Eli Zaretskii <eliz@gnu.org>
10215
10216 * NEWS: Document the PIE support.
10217
55235ad7
JK
102182010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10219
10220 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10221 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10222
41752192
JK
102232010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10224
10225 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10226 Replace exec_entry_point call by bfd_get_start_address.
10227
9f2982ff
JK
102282010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10229
10230 Support Valgrind attachments broken by the PIE support.
10231 * auxv.c: Include gdbcore.h.
10232 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10233 parameters ops, object and annex. Remove their assertions.
10234 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10235 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10236 (memory_xfer_auxv): ... here.
10237 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10238 memory_xfer_auxv.
10239 * procfs.c (procfs_xfer_partial): Likewise.
10240 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10241 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10242 (svr4_solib_create_inferior_hook): Conditionalize the
10243 svr4_relocate_main_executable call.
10244
61f0d762
JK
102452010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10246
10247 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10248 target_section. Find SECT in current_target_sections, gdb_assert it.
10249 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10250 New variable abfd.
10251 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10252 of separate debug info file.
10253
51bee8e9
JK
102542010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 Support PIEs with no symfile_objfile.
10257 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10258 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10259
b8040f19
JK
102602010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10261
10262 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10263 code part to ...
10264 (svr4_static_exec_displacement): ... a new function.
10265 (svr4_exec_displacement): New function.
10266 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10267 new_offsets using alloca now. Remove variable old_chain and changed.
10268 Call objfile_relocate unconditionally now.
10269
eb90ce83
DE
102702010-01-14 Doug Evans <dje@google.com>
10271
10272 * gdbtypes.c (arch_flags_type): Fix comment.
10273 * gdbtypes.h (arch_composite_type): Fix comment.
10274
bdfed3bc
TG
102752009-01-14 Tristan Gingold <gingold@adacore.com>
10276
10277 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10278 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10279 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10280 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10281 macho_add_oso_symfile.
10282 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10283
1596ad23
JB
102842010-01-14 Joel Brobecker <brobecker@adacore.com>
10285
10286 Tru64: Dead threads are never deleted.
10287 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10288 (dec_thread_count_gdb_threads): Fix counter increment.
10289 (dec_thread_add_gdb_thread): Fix *listp increment.
10290 (resync_thread_list): Fix bug in deletion of dead threads that
10291 caused all threads to be deleted, instead of just the dead ones.
10292
be759fcf
PM
102932010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10294
10295 PR python/10705
10296
10297 * python/python-internal.h: Add lazy_string_object_type
10298 definition.
10299 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10300 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10301 * python/py-value.c (valpy_lazy_string): New function.
10302 (convert_value_from_python): Add lazy string conversion.
10303 * python/py-prettyprint.c (pretty_print_one_value): Check if
10304 return is also a lazy string.
10305 (print_string_repr): Add lazy string printing branch.
10306 (print_children): Likewise.
10307 * python/py-lazy-string.c: New file. Implement lazy strings.
10308 * python/python.c (_initialize_python): Call
10309 gdbpy_initialize_lazy_string.
10310 * varobj.c (value_get_print_value): Add lazy string printing
10311 branch. Account for encoding.
10312 * c-lang.c (c_printstr): Account for new encoding argument. If
10313 encoding is NULL, find encoding suited for type, otherwise use
10314 user encoding.
10315 * language.h (language_defn): Add encoding argument.
10316 (LA_PRINT_STRING): Likewise.
10317 * language.c (unk_lang_printstr): Update to reflect new encoding
10318 argument to language_defn.
10319 * ada-lang.h (ada_printstr): Likewise.
10320 * c-lang.h (c_printstr): Likewise.
10321 * p-lang.h (pascal_printstr);
10322 * f-lang.c (f_printstr): Likewise.
10323 * m2-lang.c (m2_printstr): Likewise.
10324 * objc-lang.c (objc_printstr): Likewise.
10325 * p-lang.c (pascal_printstr): Likewise.
10326 * scm-lang.c (scm_printstr): Likewise.
10327 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10328 encoding argument.
10329 * ada-valprint.c (ada_printstr): Likewise.
10330 * f-valprint.c (f_val_print): Likewise
10331 * m2-valprint.c (m2_val_print): Likewise.
10332 * p-valprint.c (pascal_val_print): Likewise.
10333 * expprint.c (print_subexp_standard): Likewise.
10334 * valprint.c (val_print_string): Likewise.
10335 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10336 (SUBDIR_PYTHON_SRCS): Likewise.
10337 (py-lazy-string.o): New rule.
10338
1fe72117 103392010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10340
10341 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10342 uninitialized" warning from gcc on local `tree'.
10343
dc146f7c
VP
103442010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10345
10346 Implement core awareness.
10347
10348 * bcache.c (compare_ints): Remove
10349 (print_percentage): Use compare_positive_ints.
10350 * defs.h (compare_positive_ints): Declare.
10351 * linux-nat.h (struct lin_lwp): New field core.
10352 (linux_nat_core_of_thread_1): Declare.
10353 * linux-nat.c (add_lwp): Init the 'core' field.
10354 (linux_nat_wait_1): Record the core.
10355 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10356 (linux_nat_add_target): Register the above.
10357 * linux-thread-db.c (update_thread_core): New.
10358 (thread_db_find_new_threads): Update core information for
10359 every thread.
10360 * remote.c (struct private_thread_info): New.
10361 (free_private_thread_info, demand_private_info): New.
10362 (PACKET_qXfer_threads, use_osdata_threads): New.
10363 (struct thread_item, threads_parsing_context
10364 (start_thread, end_thread, thread_attributes)
10365 (thread_children, threads_children, threads_elements): New.
10366 (remote_threads_info): Try qXfer:threads before anything
10367 else.
10368 (remote_protocol_packets): Register qXfer:threads.
10369 (remote_open_1): Init use_osdata_threads.
10370 (struct stop_reply): New field 'core'.
10371 (remote_parse_stop_reply): Parse core number.
10372 (process_stop_reply): Record core number.
10373 (remote_xfer_partial): Handle qXfer:threads.
10374 (remote_core_of_thread): New.
10375 (init_remote_ops): Register remote_core_of_thread.
10376 (_initialize_remote): Register qXfer:read.
10377 * target.c (target_core_of_thread): New
10378 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10379 (struct target_ops): New field to_core_of_threads.
10380 (target_core_of_thread): Declare.
10381 * gdbthread.h (struct thread_info): New field private_dtor.
10382 * thread.c (print_thread_info): Report the core.
10383 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10384 * utils.c (compare_positive_ints): New.
10385 * features/threads.dtd: New.
10386 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10387 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10388 (do_nothing, free_vector_of_osdata_items)
10389 (splay_tree_int_comparator, free_splay_tree): New.
10390 (print_one_inferior_data): Implemented printing of selected
10391 inferiors. Collect and print cores.
10392 (output_cores): New.
10393 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10394 thread groups together with --available.
10395
d30c5336
JK
103962010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10397
10398 * configure: Regenerate (for _STRUCTURED_PROC).
10399
02893727
JB
104002010-01-12 Joel Brobecker <brobecker@adacore.com>
10401
10402 Delete dead function.
10403 * ada-lang.c (extract_string): Delete. No longer used.
10404
46ed2d6f
JB
104052010-01-12 Joel Brobecker <brobecker@adacore.com>
10406
10407 Fix -Wunused warning in dec-thread.c.
10408 * dec-thread.c (dec_thread_count_gdb_threads)
10409 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10410
606b8d1a
JB
104112010-01-12 Joel Brobecker <brobecker@adacore.com>
10412
10413 * ada-valprint.c (ada_print_floating): Remove trailing space.
10414
b4ba55a1
JB
104152010-01-12 Joel Brobecker <brobecker@adacore.com>
10416
10417 Add support for DW_AT_GNAT_descriptive_type.
10418 * gdbtypes.h (enum type_specific_kind): New enum.
10419 (struct main_type) [type_specific_field]: New component.
10420 [type_specific]: Add new component "gnat_stuff".
10421 (struct gnat_aux_type): New type.
10422 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10423 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10424 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10425 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10426 (TYPE_SPECIFIC_FIELD): New macros.
10427 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10428 type does not hold any cplus-specific data.
10429 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10430 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10431 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10432 cplus-specific data.
10433 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10434 Set new component TYPE_SPECIFIC_FIELD (type).
10435 (gnat_aux_default): New constant.
10436 (allocate_gnat_aux_type): New function.
10437 (init_type): Add initialization the type-specific stuff for
10438 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10439 (print_gnat_stuff): New function.
10440 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10441 specific data. Adjust code that prints the contents of the
10442 type-specific union using the TYPE_SPECIFIC_FIELD value.
10443 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10444 the type cplus stuff for Ada types.
10445 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10446 Error out if these routines are called with an Ada type.
10447 (read_structure_type, read_array_type, read_subrange_type):
10448 Add call to set_descriptive_type.
10449 (set_die_type): Initialize the gnat-specific data if necessary.
10450 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10451 New functions.
10452 * ada-lang.c (decode_constrained_packed_array_type): Use
10453 decode_constrained_packed_array_type instead of doing a standard
10454 lookup to locate a parallel type.
10455 (find_parallel_type_by_descriptive_type): New function.
10456 (ada_find_parallel_type_with_name): New function.
10457 (ada_find_parallel_type): Reimplement using
10458 ada_find_parallel_type_with_name.
10459 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10460 to check if type has a cplus stuff.
10461 * linespec.c (total_number_of_methods): Likewise.
10462 * mdebugread.c (new_type): Likewise.
10463
b0f02ee9
JK
104642010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10465
10466 * NEWS: Document the 0b binary number prefix parsing.
10467
b260e109
JK
104682010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10469
10470 * objfiles.c (objfile_relocate1): Change the return type to int.
10471 Describe the new return value. Return non-zero if data changed.
10472 (objfile_relocate): New variable changed. Set it. Call
10473 breakpoint_re_set depending on CHANGED.
10474
b5cfddf5
JK
104752010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10476
10477 Implement binary numbers parsing.
10478 * c-exp.y (parse_number): New case 'b' and 'B'.
10479
e0ae4240
JK
104802010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10481 Tristan Gingold <gingold@adacore.com>
10482
10483 * solib.c (info_sharedlibrary_command): Replace
10484 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10485 objfile_has_symbols.
10486
6e0e5977
JB
104872010-01-10 Joel Brobecker <brobecker@adacore.com>
10488
10489 * NEWS: Document the improvements made to the mips-irix port.
10490
7348c5e1
JB
104912010-01-09 Joel Brobecker <brobecker@adacore.com>
10492
10493 Fix the documentation of valprint.c:value_print.
10494 * valprint.c (value_print): Update the function description to
10495 mention that the syntax of the output follows the current_language,
10496 not necessarily C.
10497
567995e1
JK
104982010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10499
10500 Fix displacement of separate debug info files.
10501 * objfiles.c (objfile_relocate): Rename to ...
10502 (objfile_relocate1): ... here and make it static. Extend the comment.
10503 (objfile_relocate): New function.
10504 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10505 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10506 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10507 allocated using alloca.
10508 * symfile.c (copy_section_addr_info): Remove.
10509 (build_section_addr_info_from_objfile): Make it global. New variables
10510 addr_bit and mask, use them.
10511 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10512 (copy_section_addr_info): Remove.
10513
6d8eadbd
JB
105142010-01-09 Joel Brobecker <brobecker@adacore.com>
10515
10516 Signal unwinder for mips-irix N32.
10517 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10518 tramp-frame.h.
10519 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10520 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10521 (SIGCONTEXT_LO_OFF): New macros.
10522 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10523 (mips_irix_n32_tramp_frame): New static constant.
10524 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10525
27087a3d
JB
105262010-01-09 Joel Brobecker <brobecker@adacore.com>
10527
10528 Breakpoint in shared library does not work on mips-irix.
10529 * procfs.c: #include "observer.h".
10530 (procfs_inferior_created): New function, moving here the code
10531 which unsets the syssgi syscall-exit notifications.
10532 (procfs_create_inferior): Remove the code which unsets the syssgi
10533 syscall-exit notifications. It is too early to do this here.
10534 (_initialize_procfs): Attach the procfs_inferior_created observer.
10535
f08877ba
JB
105362010-01-09 Joel Brobecker <brobecker@adacore.com>
10537
10538 Wrong return convention for arrays (mips-irix).
10539 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10540 128 bits or smaller are returned the same way as structs
10541 and unions of the the same size.
10542
e4b97d48
JB
105432010-01-09 Joel Brobecker <brobecker@adacore.com>
10544
10545 Cannot set the PC on mips-irix.
10546 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10547 register number, no the cooked one.
10548
11377e68
JB
105492010-01-09 Joel Brobecker <brobecker@adacore.com>
10550
10551 Error while loading core file on mips-irix.
10552 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10553 if debugging from a core file.
10554
b2391021
JB
105552010-01-09 Joel Brobecker <brobecker@adacore.com>
10556
10557 GDB hangs when attaching to process on mips-irix.
10558 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10559 attaching to a process.
10560
f2ec0ecf
JB
105612010-01-09 Joel Brobecker <brobecker@adacore.com>
10562
10563 Use the correct breakpoint instruction on mips-irix.
10564 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10565 containing the correct breakpoint instruction to use on mips-irix.
10566 Use it when the osabi is GDB_OSABI_IRIX.
10567
3c95f01c
JB
105682010-01-09 Joel Brobecker <brobecker@adacore.com>
10569
10570 -Wunused warning in procfs.c (mips-irix only).
10571 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10572 throughout instead of using praddset and prdelset respectively.
10573
4b7703ad
JB
105742010-01-09 Joel Brobecker <brobecker@adacore.com>
10575
10576 GDB crash while stepping into function.
10577 * infrun.c (handle_inferior_event): Refetch the current frame
10578 after handling what.main_action, in case that pointer became
10579 dangling.
10580
12c89474
JB
105812010-01-09 Joel Brobecker <brobecker@adacore.com>
10582
10583 Fix build failure of solaris-hosted cross debuggers.
10584 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10585
1a3fd262 105862010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10587
10588 Fix build failure on sparc-solaris.
10589 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10590
75242ef4
JK
105912010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 Move some symfile code into subroutines.
10594 * symfile.h (relative_addr_info_to_section_offsets)
10595 (addr_info_make_relative): New prototypes.
10596 * symfile.c (default_symfile_offsets): Move a part to ...
10597 (relative_addr_info_to_section_offsets): ... this new function.
10598 (default_symfile_offsets): Call it.
10599 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10600 this part to ...
10601 (addr_info_make_relative): ... this new function.
10602
268a4a75
JK
106032010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 Add from_tty to solib_create_inferior_hook.
10606 * infcmd.c (post_create_inferior): Move solib_add after
10607 solib_create_inferior_hook. Pass from_tty to
10608 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10609 0 from_tty and comment why.
10610 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10611 * linux-nat.c (linux_child_follow_fork): Likewise.
10612 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10613 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10614 from_tty.
10615 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10616 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10617 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10618 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10619 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10620 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10621 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10622 Pass it to svr4_so_ops.solib_create_inferior_hook.
10623 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10624 from_tty.
10625 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10626 solib_add.
10627 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10628 enable_break.
10629 * solib-target.c (solib_target_solib_create_inferior_hook): New
10630 parameter from_tty.
10631 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10632 it to ops->solib_create_inferior_hook.
10633 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10634 Move solib_add after solib_create_inferior_hook, call it now with
10635 from_tty as 0. New comment there.
10636 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10637 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10638 Likewise.
10639
cf00dfa7
VP
106402010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10641
10642 Fix multiexec race.
10643 * infrun.c (handle_inferior_event): Use get_thread_regcache
10644 with events ptid, not get_current_regcache.
10645
f91e5ac3
JB
106462009-01-08 Joel Brobecker <brobecker@adacore.com>
10647
10648 GDB crash with empty executable name (MinGW).
10649 * source.c (openp): Add assert that parameter string is not NULL.
10650 if parameter string is an empty string, then return with a failure
10651 immediately.
10652
92b9ce5b
JB
106532009-01-08 Joel Brobecker <brobecker@adacore.com>
10654
10655 Get rid of support for VAX Floats.
10656 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10657 (ada_vax_float_print_function): Delete.
10658 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10659 (ada_vax_float_print_function): Delete.
10660 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10661 (ada_print_type): Remove support for VAX floats.
10662 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10663
268a4a75 106642010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10665
10666 * stabsread.c (read_args): Handle zero arguments.
10667
f0f20949
JB
106682009-01-08 Joel Brobecker <brobecker@adacore.com>
10669
10670 Cannot find in-tree libiconv.a after reconfigure.
10671 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10672 that we can use, then cache the path to this archive.
10673 * configure: Regenerate.
10674
6b6218c5
SS
106752010-01-07 Stan Shebs <stan@codesourcery.com>
10676
35b1e5cc
SS
10677 Make tracepoint operations go through target vector.
10678 * target.h (enum trace_find_type): New enum.
10679 (struct target_ops): New fields to_trace_init,
10680 to_download_tracepoint, to_download_trace_state_variable,
10681 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10682 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10683 to_set_disconnected_tracing.
10684 (target_trace_init): New macro.
10685 (target_download_tracepoint): New macro.
10686 (target_download_trace_state_variable): New macro.
10687 (target_trace_start): New macro.
10688 (target_trace_set_readonly_regions): New macro.
10689 (target_get_trace_status): New macro.
10690 (target_trace_stop): New macro.
10691 (target_trace_find): New macro.
10692 (target_get_trace_state_variable_value): New macro.
10693 (target_set_disconnected_tracing): New macro.
10694 * target.c (update_current_target): Inherit and set defaults for
10695 tracepoint operations.
10696 * tracepoint.c (default_collect): Make globally visible.
10697 (target_is_remote): Remove, along with all calls.
10698 (tvariables_info): Call target_get_trace_state_variable_value.
10699 (remote_set_transparent_ranges): Remove.
10700 (trace_start_command): Call target_trace_init,
10701 target_download_tracepoint, etc.
10702 (download_tracepoint): Remove.
10703 (trace_stop_command): Simplify.
10704 (stop_tracing): Call target_trace_stop.
10705 (get_trace_status): Call target_get_trace_status.
10706 (trace_status_command): Add case for targets that cannot trace.
10707 (finish_tfind_command): Change to take numerical arguments, call
10708 target_trace_find.
10709 (trace_find_command): Update call to finish_tfind_command.
10710 (trace_find_pc_command): Ditto.
10711 (trace_find_tracepoint_command): Ditto.
10712 (trace_find_line_command): Ditto.
10713 (trace_find_range_command): Ditto.
10714 (trace_find_outside_command): Ditto.
10715 (set_disconnected_tracing_value): Call
10716 target_set_disconnected_tracing.
10717 * remote.c: Add protocol encoding bits from tracepoint.c.
10718 (trace_error): Move from tracepoint.c.
10719 (remote_get_noisy_reply): Ditto.
10720 (free_actions_list_cleanup_wrapper): Ditto.
10721 (free_actions_list): Ditto.
10722 (remote_trace_init): New function.
10723 (remote_download_tracepoint): New function.
10724 (remote_download_trace_state_variable): New function.
10725 (remote_trace_set_readonly_regions): New function.
10726 (remote_trace_start): New function.
10727 (remote_get_trace_status): New function.
10728 (remote_trace_stop): New function.
10729 (remote_trace_find): New function.
10730 (remote_download_trace_state_variable): New function.
10731 (remote_set_disconnected_tracing): New function.
10732 (init_remote_ops): Add tracepoint operations.
10733
6b6218c5
SS
10734 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10735
089b4803
TG
107362010-01-07 Tristan Gingold <gingold@adacore.com>
10737
10738 * symfile.c (build_section_addr_info_from_objfile): New function.
10739 (symbol_file_add_separate): Don't use offsets from objfile but
10740 built an addr info.
10741
d5551862
SS
107422010-01-06 Stan Shebs <stan@codesourcery.com>
10743
10744 Support disconnected tracing.
10745 * infcmd.c (detach_command): Ask whether to stop tracing.
10746 * cli/cli-cmds.c (quit_command): Ditto.
10747 * breakpoint.h (struct breakpoint): New field number_on_target.
10748 * breakpoint.c (create_tracepoint_from_upload): New function.
10749 (get_tracepoint_by_number_on_target): New function.
10750 * remote.c (struct remote): New field disconnected_tracing.
10751 (remote_disconnected_tracing_feature): New function.
10752 (remote_protocol_features): Add DisconnectedTracing.
10753 (struct uploaded_tp): New struct.
10754 (uploaded_tps): New global.
10755 (get_uploaded_tp): New function.
10756 (find_matching_tracepoint): New function.
10757 (remote_get_tracing_state): New function.
10758 (remote_start_remote): Call it.
10759 * tracepoint.c (disconnected_tracing): New global.
10760 (trace_start_command): Initialize number_on_target.
10761 (stop_tracing): New function, split out from...
10762 (trace_stop_command): Call stop_tracing.
10763 (get_trace_status): New function, split out from...
10764 (trace_status_command): Call get_trace_status, add info on
10765 disconnection behavior.
10766 (disconnect_or_stop_tracing): New function.
10767 (finish_tfind_command): Translate from number on target.
10768 (trace_find_tracepoint_command): Translate to number on target.
10769 (send_disconnected_tracing_value): New function.
10770 (set_disconnected_tracing): New function.
10771 (_initialize_tracepoint): Add disconnected-tracing variable.
10772 * NEWS: Mention disconnected tracing.
10773
15d123c9
TG
107742010-01-06 Tristan Gingold <gingold@adacore.com>
10775
10776 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10777 parameter to main_objfile. Iterate on all separate debug objfiles.
10778 * symfile.h (symbol_file_add_separate)
10779 (find_separate_debug_file_by_debuglink): Remove parameter names.
10780 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10781 (reread_symbols): Use free_objfile_separate_debug.
10782 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10783 Adjust comment.
10784 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10785 (free_objfile_separate_debug): New prototypes.
10786 * objfiles.c (objfile_separate_debug_iterate): New function.
10787 (add_separate_debug_objfile, free_objfile_separate_debug): New
10788 functions.
10789 (free_objfile): Use free_objfile_separate_debug. Adjust for
10790 multiple separate debug objfile.
10791 (objfile_has_symbols): Adjust comment. Iterate on all separate
10792 debug objfiles.
10793 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10794 debug objfile.
10795 (lookup_minimal_symbol_text): Ditto.
10796 (lookup_minimal_symbol_by_pc_name): Ditto.
10797 (lookup_minimal_symbol_solib_trampoline): Ditto.
10798 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10799 debug objfiles.
10800
7a697b8d
SS
108012010-01-05 Stan Shebs <stan@codesourcery.com>
10802
10803 Add fast tracepoints.
10804 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10805 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10806 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10807 * breakpoint.c (tracepoint_type): New function.
10808 (ALL_TRACEPOINTS): Use it.
10809 (should_be_inserted): Ditto.
10810 (bpstat_check_location): Ditto.
10811 (print_one_breakpoint_location): Ditto.
10812 (user_settable_breakpoint): Ditto.
10813 (set_breakpoint_location_function): Ditto.
10814 (disable_breakpoints_in_shlibs): Ditto.
10815 (delete_trace_command): Ditto.
10816 (print_it_typical): Add bp_fast_tracepoint case.
10817 (bpstat_what): Ditto.
10818 (print_one_breakpoint_location): Ditto.
10819 (allocate_bp_location): Ditto.
10820 (mention): Ditto.
10821 (breakpoint_re_set_one): Ditto.
10822 (disable_command): Ditto.
10823 (enable_command): Ditto.
10824 (check_fast_tracepoint_sals): New function.
10825 (break_command_really): Call it.
10826 (ftrace_command): New function.
10827 (_initialize_breakpoint): Add ftrace command.
10828 * gdbarch.sh (fast_tracepoint_valid_at): New.
10829 * gdbarch.h, gdbarch.c: Regenerate.
10830 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10831 (i386_gdbarch_init): Use it.
10832 * remote.c (struct remote_state): New field fast_tracepoints.
10833 (PACKET_FastTracepoints): New packet config type.
10834 (remote_fast_tracepoint_feature): New function.
10835 (remote_protocol_features): Add FastTracepoints.
10836 (remote_supports_fast_tracepoints): New function.
10837 (_initialize_remote): Add FastTracepoints.
10838 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10839 * NEWS: Mention fast tracepoints.
10840
737a160e
JB
108412010-01-06 Joel Brobecker <brobecker@adacore.com>
10842
10843 * gdb-gdb.py: New file.
10844
ce6cca6d
MS
108452010-01-05 Michael Snyder <msnyder@vmware.com>
10846
10847 * infrun.c (handle_inferior_event): Fix typo in comment.
10848
0d15807d
JK
108492010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10850
10851 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10852
7803799a
UW
108532010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10854
c8d5aac9 10855 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10856 and s390x-linux64.
10857 (s390-linux32-expedite): Define.
10858 (s390-linux64-expedite): Define.
10859 (s390x-linux64-expedite): Define.
10860 * features/s390-acr.xml: New file.
10861 * features/s390-fpr.xml: New file.
10862 * features/s390-core32.xml: New file.
10863 * features/s390-core64.xml: New file.
10864 * features/s390x-core64.xml: New file.
10865 * features/s390-linux32.xml: New file.
10866 * features/s390-linux64.xml: New file.
10867 * features/s390x-linux64.xml: New file.
10868 * features/s390-linux32.c: New generated file.
10869 * features/s390-linux64.c: New generated file.
10870 * features/s390x-linux64.c: New generated file.
10871
10872 * regformats/s390-linux32.dat: New generated file.
10873 * regformats/s390-linux64.dat: New generated file.
10874 * regformats/s390x-linux64.dat: New generated file.
10875 * regformats/reg-s390.dat: Remove.
10876 * regformats/reg-s390x.dat: Remove.
10877
10878 * s390-nat.c: Include "auxv.h" and <elf.h>.
10879 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10880 (s390_target_wordsize): New function.
10881 (s390_auxv_parse): Likewise.
10882 (s390_get_hwcap): Likewise.
10883 (s390_read_description): Likewise.
10884 (_initialize_s390_nat): Install s390_auxv_parse and
10885 s390_read_description.
10886
10887 * s390-tdep.c: Include "features/s390-linux32.c",
10888 "features/s390-linux64.c", and "features/s390x-linux64.c".
10889 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10890 (s390_register_call_saved): New function.
10891 (s390_register_name): Remove.
10892 (s390_register_type): Remove.
10893 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10894 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10895 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10896 (s390_pseudo_register_name): New function.
10897 (s390_pseudo_register_type): New function.
10898 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10899 Handle full GPR pesudos and varying pseudo register numbers.
10900 (s390_pseudo_register_write): Likewise
10901 (s390x_pseudo_register_read): Remove.
10902 (s390x_pseudo_register_write): Likewise.
10903 (s390_register_group): Remove.
10904 (s390_pseudo_register_group): New function.
10905 (s390_regmap_gregset): Add GPR upper halves.
10906 (s390x_regmap_gregset): Likewise.
10907 (s390_regmap_fpregset): Likewise.
10908 (s390_regmap_upper): New global variable.
10909 (s390_upper_regset): New global variable.
10910 (s390_upper_regset_sections): New global variable.
10911 (s390_regset_from_core_section): Handle GPR upper halves.
10912 (s390_core_read_description): New function.
10913 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10914 register information. Handle varying pseudo register numbers.
10915 (s390_backchain_frame_unwind_cache): Likewise.
10916 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10917 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10918 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10919 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10920 Handle varying pseudo register numbers.
10921 (s390_unwind_pc): Handle varying pseudo register numbers.
10922 (s390_dwarf2_prev_register): New function.
10923 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10924 register information. Handle varying pseudo register numbers.
10925 Install s390_dwarf2_prev_register to unwind full GPRs.
10926 (s390_gdbarch_init): Handle target descriptions. Assign varying
10927 pseudo register numbers. Install s390_adjust_frame_regnum.
10928 (_initialize_s390_tdep): Initialize target descriptions.
10929
10930 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10931 (S390_NUM_REGS): Redefine to include upper half registers.
10932 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10933 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10934 (tdesc_s390_linux32): Add declaration.
10935 (tdesc_s390_linux64): Likewise.
10936 (tdesc_s390x_linux64): Likewise.
10937
1b1818e4
UW
109382010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10939
10940 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10941 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10942 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10943 (ppc_linux_vmx_regset_sections): Likewise.
10944 (ppc_linux_fp_regset_sections): Likewise.
10945
10946 * corelow.c (get_core_register_section): Constify arguments.
10947 (get_core_registers): Use gdbarch_core_regset_sections instead
10948 of hard-coded platform-specific register section names.
10949
dcbf108f
UW
109502010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10951
10952 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 10953 a register, assume the least-significant part is used.
dcbf108f
UW
10954 (write_pieced_value): Likewise.
10955
704e9165
UW
109562010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10957
10958 * printcmd.c: Include "arch-utils.h".
10959 (do_one_display): Re-parse expression if current architecture changed.
10960
c54eabfa
JK
109612010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10962 Joel Brobecker <brobecker@adacore.com>
10963
10964 * gdbtypes.c (check_typedef): New comment on type length.
10965 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10966 comment on type length.
10967 (value_primitive_field): Keep the original TYPE value, new comment.
10968
50cb2941
JK
109692010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10970
10971 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10972 p_start. Change != comparisons to > and < comparisons.
10973
be66db07
JK
109742010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10975
10976 * cli/cli-script.c (process_next_line): Check P2 overrun.
10977
abd775ce
JB
109782009-01-01 Joel Brobecker <brobecker@adacore.com>
10979
10980 Update the copyright hearder to add year 2010 for most GDB files.
10981
6479260d
JB
109822009-01-01 Joel Brobecker <brobecker@adacore.com>
10983
10984 Fix build failure in inf-ptrace.c.
10985 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10986
4a70f654
JB
109872010-01-01 Joel Brobecker <brobecker@adacore.com>
10988
10989 * top.c (print_gdb_version): Update copyright year.
10990
595939de 109912010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
10992
10993 Fix break *FUN'address thread NUM.
10994 * ada-lex.l (task): Expand rule to also match the thread keyword.
10995
70575d34
JB
109962010-01-01 Joel Brobecker <brobecker@adacore.com>
10997
10998 Fix break *FUN'address task NUM.
10999 * ada-lex.l (task): New rule.
11000 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11001 been built before using it.
11002
e1e4d4a4 11003For older changes see ChangeLog-2009.
c906108c
SS
11004\f
11005Local Variables:
11006mode: change-log
11007left-margin: 8
11008fill-column: 74
11009version-control: never
57da7796 11010coding: utf-8
c906108c 11011End:
This page took 1.713043 seconds and 4 git commands to generate.