Add `_finalizer' to the list of known GNAT auxilary routines.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
df30368d
JB
12010-11-22 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
4 "_finalizer" to the list.
5
4889bbbc
JB
62010-11-22 Joel Brobecker <brobecker@adacore.com>
7
8 * symfile.c: Remove all "#if 0"/"#endif" blocks.
9
0d14a781
JB
102010-11-22 Joel Brobecker <brobecker@adacore.com>
11
12 * symfile.c: Add missing second space after period in various comments.
13
feb864b7
JB
142010-11-22 Joel Brobecker <brobecker@adacore.com>
15
16 * ada-typeprint.c (print_array_type): Fix formatting in comment.
17 (print_selected_record_field_types): Fix formatting in function
18 documentation.
19
04f9d4d0
JB
202010-11-22 Joel Brobecker <brobecker@adacore.com>
21
22 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
23 in name of "show ravenscar" prefix command name.
24
b64edec4
JB
252010-11-22 Joel Brobecker <brobecker@adacore.com>
26
27 * ravenscar-thread.c (show_ravenscar_task_switching_command):
28 Add missing '\n' in output.
29
7f39f34a
JB
302010-11-22 Joel Brobecker <brobecker@adacore.com>
31
32 * ravenscar-thread.c (running_thread_name): Change value.
33 (read_thread_id): Remove advance declaration.
34 (get_running_thread_msymbol): New function.
35 (has_ravenscar_runtime): Use get_running_thread_msymbol to
36 compute msym_running_thread.
37 (get_running_thread_id): Renames read_thread_id. Slight modifications
38 to not take any argument anymore, using get_running_thread_msymbol
39 to determine which symbol to use instead.
40 (ravenscar_running_thread): Use get_running_thread_id instead of
41 read_thread_id.
42
f3890d59
JB
432010-11-22 Joel Brobecker <brobecker@adacore.com>
44
45 * ravenscar-sparc-thread.c (supply_register_at_address):
46 Fix passing of buf in call to regcache_raw_supply.
47
594e8718
JK
482010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
51
7ba86c9e
TT
522010-11-22 Tom Tromey <tromey@redhat.com>
53
54 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
55
1bfda48e
KS
562010-11-19 Keith Seitz <keiths@redhat.com>
57
58 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
59 Remove extraneous '/' after $(DESTDIR).
60 (PYTHON_INSTALL_DIR): Likewise.
61
3f1eff0a
JK
622010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
63
64 Fix stale memory references.
65 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
66 xfree, new comment.
67
954d8cae
TT
682010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
69 Tom Tromey <tromey@redhat.com>
70
71 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
72 (.PHONY): Remove for .y outputs.
73
d53d4ac5
TT
742010-11-19 Will Drewry <wad@google.com>
75 Tavis Ormandy <taviso@google.com>
76 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 * dwarf2read.c (decode_locdesc): Enforce location description stack
79 boundaries.
80
77bc0675
PM
812010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
82
83 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
84 instruction is found.
85
ba19bb4d
TT
862010-11-17 Tom Tromey <tromey@redhat.com>
87
88 * value.c (value_entirely_optimized_out): Check the
89 'check_any_valid' field.
90
19f220c3
JK
912010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
92
93 * ada-lang.c (modify_general_field): Remove.
94 (make_array_descriptor): Replace all modify_general_field calls by
95 modify_field.
96 * value.c (modify_field): Update comment. New variable bytesize.
97 Normalize BITPOS. Initialize BYTESIZE, use it.
98
87df528e
JK
992010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
100
101 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
102 elements after xfree.
103
97924a97
TT
1042010-11-16 Tom Tromey <tromey@redhat.com>
105
106 * gdb-add-index.sh: Really remove.
107
9816fde3
JK
1082010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
109
110 Code cleanup.
111 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
112 (init_one_comp_unit): ... this one.
113 (prepare_one_comp_unit): New prototype.
114 (dw2_require_line_header, process_psymtab_comp_unit): Use
115 init_one_comp_unit.
116 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
117 (load_partial_comp_unit): Remove variable attr. Use
118 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
119 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
120 prepare_one_comp_unit.
121 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
122 Use prepare_one_comp_unit.
123 (alloc_one_comp_unit): Rename to ...
124 (init_one_comp_unit): ... here and remove there calloc, new parameter
125 cu.
126 (prepare_one_comp_unit): New function.
127
73c964d6
PM
1282010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
129
130 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
131 possible used of uninitialized variable.
132
74af9197
NF
1332010-11-12 Nathan Froyd <froydnj@codesourcery.com>
134
135 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
136 (rs6000_gdbarch_init): Call it.
137
e52d5016
NF
1382010-11-12 Nathan Froyd <froydnj@codesourcery.com>
139
140 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
141 instructions if debugging an E500 binary.
142
621c8364
TT
1432010-11-12 Tom Tromey <tromey@redhat.com>
144
145 * varobj.c (value_get_print_value): Rearrange. Pass stream to
146 apply_varobj_pretty_printer.
147 * c-lang.c: Include exceptions.h.
148 (c_get_string): Throw MEMORY_ERROR when appropriate.
149 * python/py-prettyprint.c (enum string_repr_result): New.
150 (print_stack_unless_memory_error): New function.
151 (print_string_repr): Change return type. Use
152 print_stack_unless_memory_error.
153 (print_children): Use print_stack_unless_memory_error.
154 (apply_val_pretty_printer): Update. Don't print children if
155 string representation threw an exception.
156 (apply_varobj_pretty_printer): Add 'stream' argument. Use
157 print_stack_unless_memory_error.
158 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
159 globals.
160 (_initialize_python): Initialize them.
161 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
162 gdbpy_convert_exception.
163 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
164 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
165 (gdbpy_convert_exception): Declare.
166 (apply_varobj_pretty_printer): Update.
167 * python/py-utils.c (gdbpy_convert_exception): New function.
168
f1b9e6e7
MK
1692010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
170
171 * mi/mi-main.c (mi_cmd_target_detach): Accept new
172 thread-group id format.
173
74884f7b
JK
1742010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
177
84f4c1fe
PM
1782010-11-11 Phil Muldoon <pmuldoon@redhat.com>
179
180 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
181 NULL.
182 (BPPY_SET_REQUIRE_VALID): Ditto.
183 (bpnum_is_valid): Delete function.
184 (bppy_get_visibility): New function.
185 (bppy_new): Parse for, and validate internal keyword. Pass
186 internal keyword to breakpoint or watchpoint functions.
187 (build_bp_list): New function.
188 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
189 iterate_over_breakpoints.
190 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
191 look-aside vector.
192 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
193 to internal breakpoint chain.
194
195 * breakpoint.c (set_breakpoint_number): New function.
196 (breakpoint_1): Check if breakpoint number is more than zero.
197 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
198 (create_breakpoint_sal): Take a new parameter called internal.
199 Call set_breakpoint_number with internal parameter. Do not
200 mention internal breakpoints. All callers updated.
201 (create_breakpoint): Ditto.
202 (create_breakpoints_sal): Ditto.
203 (watch_command_1): Ditto.
204 (watch_command_wrapper): Take a new parameter called internal.
205 All callers updated.
206 (rwatch_command_wrapper): Ditto.
207 (awatch_command_wrapper): Ditto.
208 (save_breakpoints): Update breakpoint save condition check.
209 (iterate_over_breakpoints): New function.
210 * breakpoint.h: Add conditional python includes. Add py_bp_object
211 and comment to struct breakpoint. Update all callers.
212 * defs.h: Add PyObject definition for GDB builds without Python.
213
4dfea560
DE
2142010-11-10 Doug Evans <dje@google.com>
215
f61a2da7
DE
216 * python/lib/gdb/command/pretty_printers.py
217 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
218
4dfea560
DE
219 * value.c (set_value_enclosing_type): Renamed from
220 value_change_enclosing_type. All callers updated.
221 * value.h (set_value_enclosing_type): Update.
222 * valops.c (value_full_object): Always return a copy if we need to
223 make changes to the input value.
224
a1442452
PA
2252010-11-09 Pedro Alves <pedro@codesourcery.com>
226
227 * breakpoint.c (watch_command_1): Get a pointer of the lazy
228 version of the expression's value, even if reading the value from
229 memory fails. When creating a -location watchpoint, get the
230 value's address from the lazy value pointer.
231
803b5f95
JK
2322010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
233
234 * infrun.c (restore_inferior_thread_state): Use
235 discard_inferior_thread_state to free the data.
236 (discard_inferior_thread_state): xfree also siginfo_data.
237
99e7ae30
DE
2382010-11-05 Doug Evans <dje@google.com>
239
240 Make gdb.parameter("directories") work.
241 New command "set directories".
242 * NEWS: Document them.
243 * source.c (set_directories_command): New function.
244 (show_directories_1): Renamed from show_directories.
245 All callers updated.
246 (show_directories_command): New function.
247 (_initialize_source): Install "directories" as a set/show
248 variable instead of just a show command.
249
f4b8a18d
KW
2502010-11-05 Ken Werner <ken.werner@de.ibm.com>
251
252 * NEWS: Mention OpenCL C language support.
253 * Makefile.in (SFILES): Add opencl-lang.c.
254 (COMMON_OBS): Add opencl-lang.o.
255 * opencl-lang.c: New File
256 * defs.h (enum language): Add language_opencl.
257 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
258 IBM XL C OpenCL compiler.
259 * c-lang.h: Include "parser-defs.h".
260 (evaluate_subexp_c): Declare.
261 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
262 (c_op_print_tab): Add declaration.
263 * eval.c (binop_promote): Handle language_opencl.
264 * c-exp.y: Lookup the primitive types instead of referring to the
265 builtins.
266
075ff26d
JK
2672010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
268
269 Fix configure --enable-plugins --without-python.
270 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
271 * configure: Regenerate.
272
14ad3217
JK
2732010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
274
275 * solib.c (solib_read_symbols): Call exception_fprintf even without
276 FROM_TTY. Print also so->so_name.
277
a9d5ef47
SW
2782010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
279
280 * gdbtypes.h (struct rank): Created subrank.
281 * gdbtypes.c: Initialized subrank for all
282 'BADNESS' constants.
283 (distance_to_ancestor): New function.
284 (is_ancestor): Use distance_to_ancestor.
285 (is_public_ancestor): Ditto.
286 (sum_ranks): Handle subrank.
287 (compare_ranks): Ditto.
288 (rank_one_type): Subrank base conversions.
289
6403aeea
SW
2902010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
291
292 * gdbtypes.h: Create struct rank.
293 Convert all 'BADNESS' macros to const struct rank declarations.
294 (sum_ranks): New function.
295 (compare_ranks): New function.
296 * valops.c (find_oload_champ): Updated.
297 (classify_oload_match): Use compare_ranks.
298 Improved comments.
299 (compare_parameters): Use compare_ranks.
300 * gdbtypes.c: Initialize 'BADNESS' constants.
301 (sum_ranks): New function.
302 (compare_ranks): New function.
303 (compare_badness): Use compare_ranks.
304 (rank_function): Use global constants instead of literals.
305 (rank_one_type): Ditto.
306 Return struct rank.
307 Use sum_ranks.
308
23fa7f66
DE
3092010-11-04 Doug Evans <dje@google.com>
310
311 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
312 (find_pretty_printer): Fix comments.
313
608bcef2
HZ
3142010-11-04 Hui Zhu <teawater@gmail.com>
315
316 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
317
9addb3b9
JB
3182010-11-03 Joel Brobecker <brobecker@adacore.com>
319
320 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
321 and `len' declaration and computation inside block where they
322 are being used.
323
75be741b
JB
3242010-11-03 Joel Brobecker <brobecker@adacore.com>
325
326 * valprint.c (val_print_array_elements): Put back handling of
327 empty arrays.
328
dbc98a8b
KW
3292010-11-03 Ken Werner <ken.werner@de.ibm.com>
330
331 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
332 DIE and set the length of the type.
333 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
334 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
335 return 0 if the corresponding bounds of the type are undefined.
336 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
337 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
338 (val_print_array_elements): Use get_array_bounds to compute the number
339 of array elements instead of dividing the length of the array by the
340 length of the element types.
341 * valarith.c (vector_binop): Likewise.
342 * valops.c (value_cast): Likewise.
343 * c-valprint.c (c_val_print): Likewise.
344 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
345
120bd360
KW
3462010-11-03 Ken Werner <ken.werner@de.ibm.com>
347
348 * valarith.c (value_pos, value_neg, value_complement): Handle
349 vector types.
350 * valops.c (value_one): Likewise.
351
c37f7098
KW
3522010-11-03 Ken Werner <ken.werner@de.ibm.com>
353
354 * value.h (value_non_lval): Declare.
355 * value.c (value_non_lval): New function.
356 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
357 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
358 non-lvalue.
359
7b51bc51
DE
3602010-11-02 Doug Evans <dje@google.com>
361
362 New python module gdb.printing, and new commands info pretty-printer,
363 enable pretty-printer, disable pretty-printer.
364 * NEWS: Mention them.
365 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
366 gdb/command/__init__.py, gdb/command/pretty_printers.py.
367 * python/lib/gdb/__init__.py: Install pretty-printer commands.
368 * python/lib/gdb/printing.py: New file.
369 * python/lib/gdb/command/__init__.py: New file.
370 * python/lib/gdb/command/pretty_printers.py: New file.
371
50c97f38
TT
3722010-11-02 Tom Tromey <tromey@redhat.com>
373
374 * NEWS: Mention Guile removal.
375 * defs.h (enum language) <language_scm>: Remove.
376 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
377 scm-valprint.c.
378 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
379 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
380 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
381 Remove.
382
9dea9163
DE
3832010-11-02 Doug Evans <dje@google.com>
384
385 * top.c: #include "python/python.h".
386 (gdb_init): Add a comment regarding initialize_all_files.
387 Call finish_python_initialization at the end.
388 * python/python.h (finish_python_initialization): Declare.
389 * python/python.c (finish_python_initialization): New function.
390 (_initialize_python): Move python-implemented initialization there
391 and call it.
392 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
393
a289b8f6
JK
3942010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
395
396 Revert:
397 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
398 Pedro Alves <pedro@codesourcery.com>
399 * gdbthread.h (currently_stepping): New declaration.
400 * infrun.c (currently_stepping): Remove the forward declaration.
401 (currently_stepping): Make it global.
402 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
403 variables tp and step, initialized them. Pass STEP to to_resume.
404 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
405 * remote.c (currently_stepping_callback): New.
406 (remote_vcont_resume)
407 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
408 New variable tp. Call currently_stepping_callback and step such
409 thread.
410
2209c807
HZ
4112010-11-01 Hui Zhu <teawater@gmail.com>
412
413 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
414
0a2a54b8
HZ
4152010-10-28 Hui Zhu <teawater@gmail.com>
416
417 * tracepoint.c (trace_save): Change utp->actions to
418 utp->step_actions.
419
284a3db3
JB
4202010-10-26 Joel Brobecker <brobecker@adacore.com>
421
422 * (_FILE_OFFSET_BITS): Fix typo in comment.
423
aed1781d
JB
4242010-10-26 Joel Brobecker <brobecker@adacore.com>
425
426 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
427 (PyEval_InitThreads): Remove duplicate. Define as nothing.
428 (PyEval_ReleaseLock): Define as nothing.
429
1e3fad37
JB
4302010-10-26 Joel Brobecker <brobecker@adacore.com>
431
432 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
433 by call to FILENAME_CMP.
434
558b1900
JB
4352010-10-26 Joel Brobecker <brobecker@adacore.com>
436
437 * dictionary.c (dict_hash): Move assignment out of if condition.
438
f474844c
JZ
4392010-10-22 Jie Zhang <jie@codesourcery.com>
440
441 * Makefile.in (install): Remove dependency of install-only and
442 recursively invoke make for install-only.
443 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
444 (install): Pass FLAGS_TO_PASS when recursively make install-only.
445
8991e9fa
HZ
4462010-10-20 Hui Zhu <teawater@gmail.com>
447
448 * tracepoint.c (tfile_get_traceframe_address): Call
449 extract_signed_integer.
450 (tfile_trace_find): Call extract_signed_integer and
451 extract_unsigned_integer. Change data_size to unsigned int.
452 (tfile_fetch_registers): Call extract_unsigned_integer.
453 (tfile_xfer_partial): Ditto.
454 (tfile_get_trace_state_variable_value): Call
455 extract_signed_integer and extract_unsigned_integer.
456
21bce120
VP
4572010-10-20 Vladimir Prus <vladimir@codesourcery.com>
458
459 * remote.c (remote_get_threadlist): If we got empty
460 response, bail out immediately, and don't emit any
461 warnings.
462
ad8b5167
UW
4632010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
464
465 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
466 for "mov pc, REG" as well.
467 (thumb_instruction_changes_pc): Likewise.
468
79afc5ef
SW
4692010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
470
471 PR C++/11500:
472 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
473 * eval.c (evaluate_subexp_standard): Check for overload of
474 'operator->'.
475 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
476 (value_x_unop): Ditto.
477 * valops.c: Include "exceptions.h".
478 (find_overload_match): Throw NOT_FOUND_ERROR.
479 (value_struct_elt): Ditto.
480
cca56ac7
TT
4812010-10-19 Tom Tromey <tromey@redhat.com>
482
483 * python/py-cmd.c (cmdpy_function): Unreference exception state.
484
026ffab7
SW
4852010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
486
487 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
488 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
489 for conversion.
490 Make all other conversions illegal.
491
8c540a24
DE
4922010-10-18 Doug Evans <dje@google.com>
493
494 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
495 assumptions of when this case happens. Print "<unnamed typedef>".
496
3a772aa4
TT
4972010-10-18 Tom Tromey <tromey@redhat.com>
498
499 * valprint.c (val_print_string): Pass 'encoding' to
500 LA_PRINT_STRING.
501
01f8c46d
JK
5022010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
503
504 Fix the `stopped language detection' testcase for gcc-4.5.
505 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
506 * symfile.c (set_initial_language): Move variable filename to a more
507 inner block. Prefer LANGUAGE_OF_MAIN.
508 * symtab.c (language_of_main): New variable.
509 (set_main_name): Always reset LANGUAGE_OF_MAIN.
510 * symtab.h (language_of_main): New declaration.
511
8aeb23f3
JK
5122010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
513 Pedro Alves <pedro@codesourcery.com>
514
515 * gdbthread.h (currently_stepping): New declaration.
516 * infrun.c (currently_stepping): Remove the forward declaration.
517 (currently_stepping): Make it global.
518 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
519 variables tp and step, initialized them. Pass STEP to to_resume.
520 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
521 * remote.c (currently_stepping_callback): New.
522 (remote_vcont_resume)
523 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
524 New variable tp. Call currently_stepping_callback and step such
525 thread.
526
c1e56572
JK
5272010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
528
529 * infrun.c (follow_exec): Replace symbol_file_add_main by
530 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
531 breakpoint_re_set.
532 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
533 clear_symtab_users.
534 * objfiles.c (free_all_objfiles): Likewise.
535 * remote-m32r-sdi.c (m32r_load): Likewise.
536 * solib-som.c (som_solib_create_inferior_hook): Likewise.
537 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
538 clear_symtab_users with ADD_FLAGS.
539 (reread_symbols): Use parameter 0 for clear_symtab_users.
540 (clear_symtab_users): New parameter add_flags. Do not call
541 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
542 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
543 * symtab.h (clear_symtab_users): New parameter add_flags.
544
3a182a69
JK
5452010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 Fix GCC false warning.
548 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
549
3a9d7214
PM
5502010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
551
552 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
553 display of type of method arguments.
554
09ca9e2e
TT
5552010-10-15 Tom Tromey <tromey@redhat.com>
556
557 PR python/11948:
558 * varobj.c (value_get_print_value): Use val_print_string to print
559 lazy strings.
560 * python/py-prettyprint.c (print_string_repr): Use
561 val_print_string to print lazy strings. Fix cleanup logic.
562 (print_children): Likewise.
563 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
564 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
565 Change return type to 'void', add 'addr' argument.
566 * value.h (val_print_string): Update.
567 * valprint.c (val_print_string): Add 'encoding' argument.
568 * printcmd.c (print_formatted): Update.
569 * p-valprint.c (pascal_val_print): Update.
570 * m2-valprint.c (print_unpacked_pointer): Update.
571 (m2_print_array_contents): Likewise.
572 * jv-valprint.c (java_value_print): Update.
573 * f-valprint.c (f_val_print): Update.
574 * c-valprint.c (c_val_print): Update.
575 * auxv.c (fprint_target_auxv): Update.
576
92163a10
JK
5772010-10-15 Doug Evans <dje@google.com>
578 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 PR exp/12117
581 * gdbtypes.c (check_typedef): Clean up function comment.
582 Keep track of instance flags as we strip typedefs and create a new
583 type to preserve them if necessary.
584 * gdbtypes.h (type) <instance_flags>: Extend the comment.
585
dae71413
PM
5862010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
587
588 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
589
7062b0a0
SW
5902010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
591
592 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
593 * gdbtypes.c (rank_one_type): Move type comparison code out of here
594 to...
595 (types_equal): ...here. And changed it as follows:
596 Outside of typedefs type must be of the same TYPE_CODE.
597 When compairing two pointers or references they are equal if their
598 targets are equal.
599 Correct pointer conversions.
600
5c3da5ea
PM
6012010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
602
603 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
604 having fields without names.
605
577ce03a
TT
6062010-10-13 Tom Tromey <tromey@redhat.com>
607
608 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
609
a737a51b
DE
6102010-10-13 Doug Evans <dje@google.com>
611
0e3509db
DE
612 New python module gdb.types.
613 * NEWS: Document it.
614 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
615 * python/lib/gdb/types.py: New file.
616
a737a51b
DE
617 * c-typeprint.c: Whitespace cleanup.
618 (cp_type_print_method_args): Remove unnecessary forward decl.
619 (cp_type_print_derivation_info): Ditto.
620 (c_type_print_varspec_prefix): Mark as static at definition.
621 (c_type_print_modifier): Fix arg descriptions.
622
8dc78533
JK
6232010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 * python/py-breakpoint.c (bppy_set_condition): New comment.
626 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
627 failed PyUnicode_Decode.
628 (cmdpy_completer): Skip element for failed
629 python_string_to_host_string.
630 (cmdpy_init): Return -1 on failed python_string_to_host_string.
631 * python/py-frame.c (frapy_read_var): Extend the function comment.
632 * python/py-function.c (fnpy_init): Return -1 on failed
633 python_string_to_host_string.
634 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
635 the function comment.
636 (infpy_search_memory): Extend the function comment. Remove the
637 PyErr_SetString call on already set error state.
638 * python/py-param.c (set_parameter_value): Extend the function
639 comment. Return -1 on failed python_string_to_host_string, twice.
640 (set_attr): Extend the function comment.
641 (compute_enum_values): Extend the function comment. New variable
642 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
643 failed python_string_to_host_string.
644 (get_doc_string): Call gdbpy_print_stack on failed
645 python_string_to_host_string.
646 (parmpy_init): Extend the function comment.
647 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
648 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
649 failed python_string_to_host_string.
650 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
651 (valpy_binop, valpy_richcompare): Extend the function comment.
652 * python/python.c
653 (struct python_env) <error_type, error_value, error_traceback>: New
654 fields.
655 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
656 (ensure_python_env): Call PyErr_Fetch.
657 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
658 failed convert_value_from_python.
659 (value_get_print_value): Call gdbpy_print_stack on failed
660 python_string_to_target_python_string.
661
1bdb0c54
TT
6622010-10-12 Tom Tromey <tromey@redhat.com>
663
664 * python/py-prettyprint.c (search_pp_list): Fix error checking.
665
0526b37a
SW
6662010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
667
668 * gdbtypes.c (do_is_ancestor): New function.
669 (is_ancestor): Use do_is_ancestor.
670 (is_public_ancestor): Use do_is_ancestor.
671
c1b5be38
PM
6722010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
673
674 * ser-go32.c (struct dos_ops): Add missing fdopen field.
675
68770265
MGD
6762010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
677
678 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
679
64b00020
DE
6802010-10-11 Doug Evans <dje@google.com>
681
682 * c-typeprint.c (c_type_print_modifier): Add note that this prints
683 the address space id too.
684
43b8e241
JK
6852010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
686
687 Fix attaching to re-prelinked executables on ppc64.
688 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
689 initialize it, try to adjust FILESZ field by it.
690
417b5110
DJ
6912010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
692
693 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
694 messages if info_verbose.
695
3bdf2bbd
KW
6962010-10-08 Ken Werner <ken.werner@de.ibm.com>
697
698 * valops.c (value_cast): Handle vector types.
699 * valarith.c (value_binop): Widen scalar to vector if appropriate.
700
ec3d575a
UW
7012010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
702
703 * arm-tdep.c (thumb_expand_immediate): New function.
704 (thumb_instruction_changes_pc): Likewise.
705 (thumb2_instruction_changes_pc): Likewise.
706 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
707 prologue parsing. Improved support for optimized code.
708 (thumb_scan_prologue): Do not reply on line-number information,
709 use same heuristics as arm_scan_prologue insead.
710 (skip_prologue_function): Accept functions
711 "__tls_get_addr" and "__aeabi_read_tp".
712
4024ca99
UW
7132010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
714 Daniel Jacobowitz <dan@codesourcery.com>
715
716 * arm-tdep.c (thumb_in_function_epilogue_p)
717 (arm_in_function_epilogue_p): New.
718 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
719 gdbarch_in_function_epilogue_p callback.
720
855c153f
DE
7212010-10-07 Doug Evans <dje@google.com>
722
00e14314
DE
723 * cc-with-index.sh (output_file): Default to a.out.
724
3876f04e
DE
725 * dwarf2read.c (mapped_index): Rename member index_table to
726 symbol_table and index_table_slots to symbol_table_slots.
727 All uses updated.
728 (create_symbol_hash_table): Renamed from create_index_table.
729 All callers updated.
730 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
731 (write_hash_table): Rename local index_table to symbol_hash_table.
732
855c153f
DE
733 * addrmap.h (addrmap_foreach_fn): New typedef.
734 (addrmap_foreach): Declare.
735 * addrmap.c (struct addrmap_funcs): New member foreach.
736 (addrmap_foreach): New function.
737 (addrmap_fixed_foreach): New function.
738 (addrmap_fixed_funcs): Update.
739 (struct mutable_foreach_data): New struct.
740 (addrmap_mutable_foreach_worker): New function.
741 (addrmap_mutable_foreach): New function.
742 (addrmap_mutable_funcs): Update.
743
1d2a4540
PH
7442010-10-07 Paul Hilfinger <hilfinger@adacore.com>
745
746 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
747 more cases.
748
40658b94
PH
7492010-10-07 Paul Hilfinger <hilfinger@adacore.com>
750
751 * ada-lang.c (full_match): Declare.
752 (ada_match_name): Rename to match_name (we should avoid prefixing static
753 symbols with "ada_").
754 (match_name): New name for ada_match_name.
755 (struct ada_psym_data): Remove and replace with...
756 (struct match_data): User data for map_matching_symbols.
757 (ada_add_psyms): Remove.
758 (aux_add_nonlocal_symbols): New function, used as callback for
759 map_matching_symbols.
760 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
761 symbols.
762 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
763 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
764 Rework to use map_matching_symbols instead of map_ada_symtabs.
765 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
766 * psymtab.c: Include dependency on dictionary.h.
767 (match_partial_symbol): New function.
768 (ada_lookup_partial_symbol): Remove.
769 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
770 (map_matching_symbols_psymtab): New function.
771 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
772 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
773
c4d840bd
PH
7742010-10-06 Paul Hilfinger <hilfinger@adacore.com>
775
776 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
777 (wild_match): Change API to be consistent with that of strcmp_iw;
778 return 0 for a match, and switch operand order.
779 (full_match): New function.
780 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
781 matching to allow use of hashing.
782 * dictionary.c (struct dict_vector): Generalize iter_name_first,
783 iter_name_next ot iter_match_first, iter_match_next.
784 (iter_name_first_hashed): Replace with iter_match_first_hashed.
785 (iter_name_next_hashed): Replace with iter_match_next_hashed.
786 (iter_name_first_linear): Replace with iter_match_first_linear.
787 (iter_name_next_linear): Replace with iter_match_next_linear.
788 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
789 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
790 (dict_iter_match_first): New function.
791 (dict_iter_match_next): New function.
792 (dict_hash): New function.
793 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
794 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 795
543ecec7
DE
7962010-10-06 Doug Evans <dje@google.com>
797
798 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
799
2f608a3a
KW
8002010-10-06 Ken Werner <ken.werner@de.ibm.com>
801
802 * dwarf2read.c (read_tag_const_type): Handle const arrays.
803
aa2e2d8d
DE
8042010-10-06 Doug Evans <dje@google.com>
805
9c9606fb
DE
806 * Makefile.in (REQUIRED_SUBDIRS): New var.
807 (subdir_do): Verify required subdir Makefiles exist.
808
aa2e2d8d
DE
809 Create subdir data-directory.
810 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
811 data-directory/Makefile.in.
812 (SUBDIRS): Add data-directory.
813 (all): Remove xml-syscall-copy dependency.
814 (xml-syscall-copy): Moved to data-directory/Makefile.in as
815 stamp-syscalls.
816 (xml-syscall-install): Moved to data-directory/Makefile.in as
817 install-syscalls.
818 (install-only): Remove xml-syscall-install dependency.
819 (all-data-directory): New rule.
820 (data-directory/Makefile): New rule.
821 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
822 * configure: Regenerate.
823 * data-directory/Makefile.in: New file.
824 * python/lib/gdb/__init__.py: New file.
825
aa27d0b3
JB
8262010-10-06 Joel Brobecker <brobecker@adacore.com>
827
828 Fix ARI warnings in advance_wild_match.
829 * ada-lang.c (advance_wild_match): Delete local variable t2.
830 Adjust code accordingly. Minor reformatting.
831
2844d6b5
KW
8322010-10-06 Ken Werner <ken.werner@de.ibm.com>
833
834 * gdbtypes.h (struct main_type): Remove flag_nottext.
835 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
836 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
837 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
838 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
839 of TYPE_FLAG_NOTTEXT.
840 (init_type): Remove the initialization of the flag_nottext field.
841 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
842 TYPE_FLAG_NOTTEXT.
843 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
844
2fdf6df6
DE
8452010-10-04 Doug Evans <dje@google.com>
846
ea65fe05
DE
847 * cc-with-index.sh: New file.
848
2fdf6df6
DE
849 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
850 function comment.
851 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
852 (create_cus_from_index, create_addrmap_from_index): Ditto.
853 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
854 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
855 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
856 (eq_strtab_entry, create_strtab, add_string): Ditto.
857 (hash_strtab_entry): Ditto.
858 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
859 (create_index_table, create_mapped_symtab, find_slot): Ditto.
860 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
861 (write_hash_table, add_address_entry, write_psymbols): Ditto.
862 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
863 (write_psymtabs_to_index): Ditto.
2fdf6df6 864
40bc484c
JB
8652010-10-04 Joel Brobecker <brobecker@adacore.com>
866
867 * ada-lang.c: #include "value.h".
868 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
869 arguments. Implement using value_allocate_space_in_inferior
870 instead of allocating memory from the stack.
871 (make_array_descriptor): Remove gdbarch and sp parameters. Update
872 calls to ensure_lval.
873 (ada_convert_actual): Remove gdbarch and sp parameters. Update
874 calls to make_array_descriptor and ensure_lval.
875 * ada-lang.h (ada_convert_actual): Update declaration.
876 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
877
f17618ea
DE
8782010-10-04 Doug Evans <dje@google.com>
879
880 * python/python.c (_initialize_python): Define new function
881 GdbSetPythonDirectory in python. Use it to update sys.path and
882 gdb.__path__.
883
83e3a93c
PH
8842010-10-03 Paul Hilfinger <hilfinger@adacore.com>
885
886 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
887 incorporating and generalizing print_record_field_types.
888 (print_record_field_types): Change return value and update comment.
889 Re-implement using print_selected_record_field_types.
890 (print_choices): Print "=>" here.
891 Handle case of unencoded variant branch.
892 (print_variant_clauses): Reformat comment.
893 Special-case unencoded variant branch.
894
8952010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
896
897 * ada-lang.c (wild_match): Reimplement.
898 Change API to eliminate unused length argument, reverse arguments and
899 make 0 the 'true' return value.
900 (advance_wild_match): New auxiliary function for wild_match to improve
901 readability.
902 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
903 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
904 API for wild_match.
905 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
906 wild_match.
907 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
908
11570e71
DE
9092010-10-01 Doug Evans <dje@google.com>
910
911 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
912 for `save gdb-index' command.
913
72b9f47f
TT
9142010-10-01 Tom Tromey <tromey@redhat.com>
915
916 * symfile.h (allocate_symtab): Update.
917 * symfile.c (allocate_symtab): Make 'filename' const.
918 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
919 (add_psymbol_to_list): Likewise.
920 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
921 const.
922 (add_psymbol_to_list): Update.
923 * mdebugread.c (new_symtab): Make 'name' const.
924 (psymtab_to_symtab_1): Make 'filename' const.
925 * elfread.c (elfstab_offset_sections): Update.
926 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
927 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
928 (psymtab_include_file_name): Update.
929 * dbxread.c (find_stab_function_addr): Make 'filename' const.
930 * buildsym.h (start_subfile): Update.
931 * buildsym.c (start_subfile): Make arguments const.
932
55e39473
MS
9332010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
934
935 * fork-child.c (breakup_args): Fix crash if shell forking is
936 disabled at compile time.
937
05e522ef
JB
9382010-10-01 Joel Brobecker <brobecker@adacore.com>
939
940 * ada-lang.c (desc_bounds): Add handling of the case where
941 the P_BOUNDS field is a pointer to a stub.
942 (desc_data_target_type): Same for P_ARRAY field.
943 (ada_check_typedef): Strip the typedef layers from the type
944 found by ada_find_any_type.
945
49a45ecf
JB
9462010-10-01 Joel Brobecker <brobecker@adacore.com>
947
948 * sparc-tdep.c (sparc32_frame_align): New function.
949 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
950 * sparc64-tdep.c (sparc64_frame_align): New function.
951 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
952
a5916a62
L
9532010-09-30 H.J. Lu <hongjiu.lu@intel.com>
954
955 * defs.h (MAX_REGISTER_SIZE): Set to 64.
956
00b5771c
TT
9572010-09-30 Tom Tromey <tromey@redhat.com>
958
959 * symfile.h (struct sym_fns) <next>: Remove.
960 (add_symtab_fns): Update.
961 * symfile.c (sym_fns_ptr): New typedef.
962 (symtab_fns): Now a VEC.
963 (add_symtab_fns): Update. Change argument type.
964 (find_sym_fns): Update. Change return type.
965 (get_symfile_segment_data): Update.
966 * objfiles.h (struct objfile) <sf>: Now const.
967 * somread.c (som_sym_fns): Now const. Update.
968 * xcoffread.c (xcoff_sym_fns): Now const. Update.
969 * mipsread.c (ecoff_sym_fns): Now const. Update.
970 * machoread.c (macho_sym_fns): Now const. Update.
971 * elfread.c (elf_sym_fns): Now const. Update.
972 (elf_sym_fns_gdb_index): Likewise.
973 * dbxread.c (aout_sym_fns): Now const. Update.
974 * coffread.c (coff_sym_fns): Now const. Update.
975
38f12cfc
TT
9762010-09-30 Tom Tromey <tromey@redhat.com>
977
978 * value.c (value_primitive_field): Take 'offset' into account for
979 packed field.
980
9ae8282d
TT
9812010-09-30 Tom Tromey <tromey@redhat.com>
982
983 * completer.c (count_struct_fields): Handle anonymous structs and
984 unions.
985 (add_struct_fields): Likewise.
986
e9e07ba6
JK
9872010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
988
989 Fix printing parameters of inlined functions.
990 * ada-lang.c (is_known_support_routine)
991 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
992 for find_frame_funname.
993 * python/py-frame.c (frapy_name): Likewise.
994 * stack.c (find_frame_funname): New parameter funcp. Update the
995 function comment. Fill it in.
996 (print_frame): New variable func. Initialize it by
997 find_frame_funname. Print arguments only if FUNC is not NULL. Use
998 FUNC as the parameter of print_args_stub.
999 * stack.h (find_frame_funname): New parameter funcp. Remove the
1000 function declaration comment.
1001
cd2effb2
JK
10022010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 PR corefiles/12071.
1005 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1006 tp. Iterate INFERIOR_LIST and call target_has_execution.
1007
bceffbf3
JK
10082010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1009
1010 Fix GDB crash on inferior calls with self-referencing classes.
1011 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1012 member fields.
1013
abc72ce4
DE
10142010-09-29 Doug Evans <dje@google.com>
1015
1016 Workaround for gcc/45682.
1017 * dwarf2read.c (partial_die_info): New fields fixup_called,
1018 linkage_name.
1019 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1020 Move definition next to use. Use linkage_name to determine if class
1021 is in a namespace. All callers updated.
1022 (fixup_partial_die): Return early if already called.
1023 Set fixup_called when done.
1024 (guess_full_die_structure_name): New function.
1025 (determine_prefix): Call it for class/struct/union dies if c++ and
1026 .debug_types section is present and parent is DW_TAG_compile_unit.
1027
0ac7be25
JB
10282010-09-28 Joel Brobecker <brobecker@adacore.com>
1029
1030 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1031 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1032
6e1bb179
JB
10332010-09-28 Joel Brobecker <brobecker@adacore.com>
1034
1035 * NEWS: Announce Ravenscar Profile support.
1036
036b1ba8
JB
10372010-09-28 Joel Brobecker <brobecker@adacore.com>
1038 Jerome Guitton <guitton@adacore.com>
1039
1040 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1041 New files.
1042 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1043 ravenscar-sparc-thread.o to gdb_target_obs.
1044
474011fb
JB
10452010-09-28 Joel Brobecker <brobecker@adacore.com>
1046
1047 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1048 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1049
99e24b90
PM
10502010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1051
1052 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1053 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1054 skip_main_prologue method.
1055
987d643c
TT
10562010-09-27 Tom Tromey <tromey@redhat.com>
1057
1058 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1059 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1060 Only emit a given psymbol once.
1061 (struct signatured_type_index_data) <psyms_seen>: New field.
1062 (write_one_signatured_type): Update.
1063 (cleanup_htab): New function.
1064 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1065 version to 3.
1066 (save_gdb_index_command): Update index documentation.
1067
d3aff959
TT
10682010-09-27 Tom Tromey <tromey@redhat.com>
1069
1070 * bcache.c (expand_hash_table): Use hash_function, not hash.
1071
716b65bf
TT
10722010-09-27 Tom Tromey <tromey@redhat.com>
1073
1074 * gdb_wchar.h: Change minimum libiconv to 0x108.
1075
1736ad11
JK
10762010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1077
1078 Fix lost siginfo_t for inferior calls.
1079 * infrun.c
1080 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1081 (save_inferior_thread_state): New variables regcache, gdbarch and
1082 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1083 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1084 using REGCACHE.
1085 (restore_inferior_thread_state): New variables regcache and gdbarch.
1086 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1087 REGCACHE. Free also SIGINFO_DATA.
1088
4b5246aa
TT
10892010-09-24 Tom Tromey <tromey@redhat.com>
1090
1091 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1092 MAYBE_SWAPs.
1093 (dw2_map_symbol_names): Likewise.
1094
2a7d6a25
SW
10952010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1096
1097 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1098 discard_cleanups do_cleanups.
1099
b53a1623
PA
11002010-09-24 Pedro Alves <pedro@codesourcery.com>
1101
e6ee044d
PA
1102 PR gdb/11842
1103
b53a1623
PA
1104 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1105 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1106 si_code is < 0. Check for si_code == SI_TIMER before checking for
1107 si_code < 0.
1108
96a8853a
PA
11092010-09-24 Pedro Alves <pedro@codesourcery.com>
1110
1111 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1112
39383a48
JB
11132010-09-22 Joel Brobecker <brobecker@adacore.com>
1114
1115 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1116 debugging a core file.
1117
d31d2fc3
JK
11182010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 Code cleanup.
1121 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1122 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1123 xfree.
1124 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1125 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1126 Remove.
1127 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1128 Remove the conditional.
1129 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1130
7f6130ff
JK
11312010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1132
1133 * main.c: Include objfiles.h.
1134 (captured_main): New variable objfile. Call
1135 load_auto_scripts_for_objfile for ALL_OBJFILES.
1136
c2b0a229
JK
11372010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1138
1139 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1140 DW_TAG_constant.
1141
72929c62
JB
11422010-09-22 Joel Brobecker <brobecker@adacore.com>
1143
1144 * dwarf2read.c (scan_partial_symbols): Add handling of
1145 DW_TAG_constant DIEs.
1146 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1147
496c0e1b
JB
11482010-09-22 Joel Brobecker <brobecker@adacore.com>
1149
1150 * configure.ac: Add support for --enable-gdbserver.
1151 * configure: Regenerate.
1152
ec322823
SW
11532010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1154
1155 PR C++/12028
1156 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1157 'old_cleanups' reassignment.
1158
1558ab4c
JK
11592010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1162 characters.
1163
875b4ff5
PM
11642010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1165
1166 PR mi/11407
1167 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1168 read_var_value and common_val_print and print a warning.
1169
65dedcb2
JK
11702010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1171
1172 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1173 keep the list in alphabetical order. Use longer e-mail address.
1174
0e780a22
TT
11752010-09-15 Tom Tromey <tromey@redhat.com>
1176
1177 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1178
62234ccc
TT
11792010-09-15 Tom Tromey <tromey@redhat.com>
1180
1181 * charset.c (iconv_open): New define.
1182 (iconv): Likewise.
1183 (iconv_close): Likewise.
1184 (phony_iconv_open): Add "phony_" prefix.
1185 (phony_iconv_close): Likewise.
1186 (phony_iconv): Likewise.
1187 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1188 Change how INTERMEDIATE_ENCODING is defined.
1189
4950bc1c
DE
11902010-09-15 Doug Evans <dje@google.com>
1191
1192 * dwarf2read.c (struct die_info): Fix comment.
1193
349126ea
AM
11942010-09-15 Alan Modra <amodra@gmail.com>
1195
1196 PR 4606
1197 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1198 than setting SEC_NEVER_LOAD on sections that need not be copied.
1199
923c6a3d
TT
12002010-09-14 Tom Tromey <tromey@redhat.com>
1201
1202 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1203 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1204 Declare.
1205 * symfile.h (extend_psymbol_list): Remove.
1206 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1207 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1208 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1209
a9e6a4bb
JK
12102010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1211
1212 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1213 Update the comment.
1214
7155d578
TT
12152010-09-14 Tom Tromey <tromey@redhat.com>
1216
1217 PR symtab/8399:
1218 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1219 for unrecognized frame base expression.
1220
515ed532
TT
12212010-09-14 Tom Tromey <tromey@redhat.com>
1222
1223 PR exp/11803:
1224 * value.c (value_static_field): Use value_of_variable.
1225
b467f580
PM
12262010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1227
1228 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1229 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1230
450ca57c
SW
12312010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1232
1233 PR symtab/11992:
1234 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1235 UNKNOWN_CPP_NAME.
1236
1aee7009
JB
12372010-09-13 Joel Brobecker <brobecker@adacore.com>
1238
1239 * NEWS: Add x86-lynxos to the list of platforms supported by
1240 gdbserver.
1241
5ec6ebf9
JB
12422010-09-13 Joel Brobecker <brobecker@adacore.com>
1243
1244 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1245
1863c96c
TT
12462010-09-13 Tom Tromey <tromey@redhat.com>
1247
1248 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1249
0c5acf93
L
12502010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1251
1252 * i386-tdep.c (i386_ymm_type): Set type name to
1253 builtin_type_vec256i.
1254
1c6272a6
MS
12552010-09-12 Michael Snyder <msnyder@vmware.com>
1256
1257 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1258
e866c497
L
12592010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1260
1261 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1262
9191d390
L
12632010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1264
1265 * amd64-tdep.c (amd64_register_name): Removed.
1266 (amd64_init_abi): Don't call set_gdbarch_register_name.
1267
1268 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1269
1270 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1271
8d4d924b
JK
12722010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1273 Paul Bolle <pebolle@tiscali.nl>
1274
1275 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1276 * cli-logging.c (struct saved_output_files) <targerr>: New.
1277 (set_logging_redirect, pop_output_files, handle_redirections):
1278 Redirect also gdb_stdtargerr.
1279 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1280 declarations.
1281 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1282 also gdb_stdtargerr.
1283 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1284 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1285 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1286 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1287 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1288 New functions.
1289
3329c4b5
PM
12902010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1291
1292 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1293 to display a host address.
1294 * monitor.c (monitor_read_memory): Likewise.
1295 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1296
5e8db398
PM
12972010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1298
1299 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1300 `CORE_ADDRESS' as it might contain target addresses.
1301
37049e31
PM
13022010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1303
1304 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1305 before cast to pointer to avoid warning.
1306
351a3e56
KB
13072010-09-09 Kevin Buettner <kevinb@redhat.com>
1308
1309 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1310 type to be signed.
349126ea 1311
6afafb54
UW
13122010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1313
1314 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1315 anonymous class partial DIEs.
1316
60430eff
DJ
13172010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1318
1319 * dwarf2read.c (dwarf2_compute_name): Check that the first
1320 argument is a pointer.
1321
f1078f66
DJ
13222010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1323
1324 * dwarf2read.c (read_func_scope, read_structure_type)
1325 (read_common_block): Check for a NULL return from new_symbol.
1326
82430852
JK
13272010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1330
c767944b
DJ
13312010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1332
1333 * dwarf2read.c (read_structure_type): Move processing of
1334 fields and member functions from here...
1335 (process_structure_scope): ... to here.
1336
561d3825
DJ
13372010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1338
1339 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1340 the domain type.
1341 (gnuv3_make_method_ptr): Likewise.
1342
9bd89d67
TT
13432010-09-08 Tom Tromey <tromey@redhat.com>
1344
1345 * breakpoint.c (create_breakpoint): Add missing _().
1346
1d040b0d
DE
13472010-09-08 Doug Evans <dje@google.com>
1348
1349 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1350
774b6a14
TT
13512010-09-08 Tom Tromey <tromey@redhat.com>
1352
1353 Revert:
1354 2010-09-01 Tom Tromey <tromey@redhat.com>
1355 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1356 symtab.h: Revert earlier change.
1357
fc956729
SW
13582010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1359
1360 * psymtab.c (add_psymbol_to_bcache): Initialize
1361 obj_section.
1362 memset psymbol.ginfo.value to 0.
1363
48f9886d
PA
13642010-09-06 Pedro Alves <pedro@codesourcery.com>
1365
1366 * infrun.c (resume): Extend comment on ignoring single-step
1367 requests on vfork parents waiting for a vfork-done.
1368
423ec54c
JK
13692010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1370 Pedro Alves <pedro@codesourcery.com>
1371
1372 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1373 is NULL.
1374 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1375 target_signal type.
1376 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1377 calling strsignal. Use enum target_signal type for saved_signo.
1378 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1379 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1380 target_signal_to_host before calling strsignal.
1381 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1382 TARGET_SIGNAL_0.
1383
a6eb9bc8
JK
13842010-09-06 Pedro Alves <pedro@codesourcery.com>
1385 Jan Kratochvil <jan.kratochvil@redhat.com>
1386
1387 * common/signals.c (ANY): Remove.
1388 (SET): No longer use ANY.
1389
74609e71
YQ
13902010-09-06 Yao Qi <yao@codesourcery.com>
1391
1392 * infrunc(resume): When inferior is waiting_for_vfork_done,
1393 clear step and don't use displaced stepping.
1394
8464be76
DJ
13952010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1396
1397 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1398 value specially.
1399
33d62d64
JK
14002010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1401
1402 Code cleanup - split print_stop_reason.
1403 * infrun.c (enum inferior_stop_reason): Remove.
1404 (print_stop_reason): Remove by splitting into ...
1405 (print_exited_reason, print_signal_exited_reason)
1406 (print_no_history_reason, print_signal_received_reason)
1407 (print_end_stepping_range_reason): ... these new functions. Update
1408 the preceding comment.
1409 (handle_inferior_event): Change the calls to print_exited_reason,
1410 print_signal_exited_reason, print_no_history_reason,
1411 print_signal_received_reason, print_end_stepping_range_reason.
1412 (handle_step_into_function, handle_step_into_function_backward):
1413 Change the calls to print_end_stepping_range_reason.
1414
14dba4b4
JK
14152010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1416
1417 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1418 * cli-out.c: Include vec.h.
1419 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1420 variable stream, initialize it, use it.
1421 (cli_redirect): New function comment. Replace the stream and
1422 original_stream fields by the new streams field. Remove the
1423 original_stream != NULL conditional, assert error on NULL instead.
1424 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1425 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1426 original_stream fields by the new streams field.
1427 (cli_out_set_stream): Replace the stream field by the new streams
1428 field.
1429 * cli-out.h: Include vec.h.
1430 (ui_filep): New typedef, call DEF_VEC_P for it.
1431 (struct cli_ui_out_data): Replace the stream and original_stream
1432 fields by the new streams field.
1433 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1434 NULL first. Extend the comment.
1435 (handle_redirections): Call ui_out_redirect with output.
1436 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1437 calls outside of the TRY_CATCH block.
1438
b04bc5d4 14392010-09-03 Joel Brobecker <brobecker@adacore.com>
1440
1441 GDB 7.2 released.
1442
080db4e0
JB
14432010-09-02 Joel Brobecker <brobecker@adacore.com>
1444
1445 Back out the following change:
1446 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1447 | * record.c (set_record_pic_cmdlist,
1448 | show_record_pic_cmdlist): New variables.
1449 | (set_record_pic_command,
1450 | show_record_pic_command): New functions.
1451 | (record_pic_function, record_pic_line, record_pic_enum,
1452 | set_record_pic_type, record_pic_hide_nofunction,
1453 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1454 | (record_pic_fputs): New function.
1455 | (function_list, node_list, edge_list): New struct.
1456 | (function_list, node_list, edge_list): New variables.
1457 | (record_pic_cleanups, record_pic_node,
1458 | record_pic_edge, cmd_record_pic): New functions.
1459 | (_initialize_record): Add new commands for record pic.
1460
0a4f61e3
DJ
14612010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1462
1463 * config.in, configure: Regenerated.
1464 * configure.ac: Check for waitpid.
1465 * ser-pipe.c (pipe_close): Wait for the program to exit.
1466
58b61394
JK
14672010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1468
ba720883 1469 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1470 (set_logging_overwrite): New function.
1471 (logging_redirect): New comment.
1472 (logging_no_redirect_file, set_logging_redirect)
1473 (pop_output_files) <logging_no_redirect_file>: New.
1474 (handle_redirections) <!logging_redirect>: New variable
1475 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1476 discard cleanup for the close of former OUTPUT. Set
1477 LOGGING_NO_REDIRECT_FILE.
1478 (handle_redirections) <logging_redirect>: gdb_assert
1479 LOGGING_NO_REDIRECT_FILE.
1480 (show_logging_command) <logging_redirect handling>: Adjust messages
1481 for SAVED_FILENAME not NULL.
1482 (_initialize_cli_logging): Install set_logging_overwrite and
1483 set_logging_redirect.
1484
706774f2
JK
14852010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1488
9a35ccf7
JK
14892010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1490
1491 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1492 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1493 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1494 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1495
ba9b2ec3
YQ
14962010-09-02 Yao Qi <yao@codesourcery.com>
1497
1498 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1499 number from a WIFSIGNALED status.
1500
faf68db7
TT
15012010-09-01 Tom Tromey <tromey@redhat.com>
1502
1503 * symtab.h (lookup_type_symbol): Declare.
1504 * symtab.c (lookup_symbol_in_language_full): Rename from
1505 lookup_symbol_in_language. Add 'for_type' argument.
1506 (lookup_symbol_in_language): New function.
1507 (lookup_type_symbol): Likewise.
1508 (lookup_symbol_aux): Add 'for_type' argument.
1509 (match_symbol_aux): New function.
1510 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1511 (match_transparent_type): New function.
1512 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1513 * symfile.h (struct quick_symbol_functions)
1514 <pre_expand_symtabs_matching>: Remove.
1515 <expand_one_symtab_matching>: New field.
1516 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1517 (pre_expand_symtabs_matching_psymtabs): Remove.
1518 (psym_functions): Update.
1519 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1520 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1521 (dw2_pre_expand_symtabs_matching): Remove.
1522 (dw2_expand_one_symtab_matching): New function.
1523 (dwarf2_gdb_index_functions): Update.
1524
248c9dbc
JB
15252010-09-01 Joel Brobecker <brobecker@adacore.com>
1526
1527 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1528
f75d858b
MK
15292010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1530
1531 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1532 as a feature reported by -list-target-features.
1533
0482b03b
JB
15342010-09-01 Joel Brobecker <brobecker@adacore.com>
1535
1536 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1537 (powerpc-32.o, powerpc-32.c): New rules.
1538 (clean): Also remove powerpc-32.c.
1539 * regformats/rs6000/powerpc-32.dat: Generate.
1540
710e1a31
SW
15412010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1542
1543 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1544 psymbol_bcache_init.
1545 * psymtab.h (psymbol_bcache_init): New function prototype.
1546 (psymbol_bcache_free): New function prototype.
1547 (psymbol_bcache_get_bcache): New function prototype.
1548 * psymtab.c (psymbol_bcache_init): New function.
1549 (psymbol_bcache_free): New function.
1550 (psymbol_bcache_full): New function.
1551 (psymbol_bcache_get_bcache): New function.
1552 (add_psymbol_to_bcache): use psymbol_bcache_full.
1553 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1554 psymbol_bcache.
1555 * symmisc.c (print_symbol_bcache_statistics): Updated.
1556 (print_objfile_statistics): Updated.
1557 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1558 psymbol_cache.
1559 (free_objfile): Use psymbol_bcache_free.
1560
64382290
TT
15612010-08-31 Tom Tromey <tromey@redhat.com>
1562
1563 PR c++/11961:
1564 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1565 Don't set TYPE_NAME on the type.
1566
8bbed405
MS
15672010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1568
1569 * infrun.c (set_exec_direction_func): Error out if target does not
1570 support reverse execution.
1571
06253dd3
JK
15722010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1573
1574 Make linux_get_siginfo_type `type *' unique.
1575 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1576 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1577 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1578 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1579 (_initialize_linux_tdep): New.
1580
b8edc417
JK
15812010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 Code cleanup.
1584 * defs.h (find_memory_region_ftype): New typedef.
1585 (exec_set_find_memory_regions): Use it.
1586 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1587 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1588 * gcore.c (objfile_find_memory_regions): Likewise.
1589 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1590 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1591 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1592 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1593 find_memory_region_ftype.
1594 (insert_dbx_link_bpt_in_region): Likewise.
1595 (iterate_over_mappings): Likewise. Drop the comment part about the
1596 function prototype.
1597 (find_memory_regions_callback): Use find_memory_region_ftype.
1598 (proc_find_memory_regions): Likewise.
1599 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1600 find_memory_region_ftype.
1601 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1602 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1603
cbd70537
SW
16042010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1605
1606 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1607 'static partial_symbol psymbol'.
1608 (psymbol_hash): New function.
1609 (psymbol_compare): New function.
1610 * bcache.c (hash_continue): New.
1611 (hash): Use hash_continue.
1612 * bcache.c: Add hash_function and compare_function
1613 pointers to bcache struct.
1614 (bcache_full): Use bcache->hash_function, and
1615 bcache->compare_function.
1616 (bcache_compare): New function.
1617 (bcache_xmalloc): Take hash_function and
1618 compare_function arguments and initialize the
1619 bcach's pointers.
1620 Updated comment.
1621 * objfiles.c (allocate_objfile): Updated.
1622 * symfile.c (reread_symbols): Updated.
1623 * python/py-type.c (typy_richcompare): Updated.
1624
03f17ccf
TT
16252010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1626 Tom Tromey <tromey@redhat.com>
1627
1628 PR python/11792:
1629 * python/py-value.c (valpy_get_dynamic_type): New function.
1630 (value_object_getset): Add "dynamic_type".
1631 (valpy_get_type): Fail on error.
1632
25b41d01
YQ
16332010-08-30 Yao Qi <yao@codesourcery.com>
1634
1635 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1636 (arm_linux_syscall_next_pc): New.
1637 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1638 (arm_linux_init_abi): Initialize syscall_next_pc.
1639 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1640 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1641 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1642 Declare arm_frame_is_thumb.
1643
5760d0ab
JK
16442010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1645
1646 Code cleanup.
1647 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1648 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1649 code.
1650 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1651 calls of bpstat_alloc. Remove explicit bs chain termination.
1652
46a96992
JK
16532010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1654
1655 Code cleanup.
1656 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1657 (my_waitpid): Likewise.
1658
36374493
DE
16592010-08-27 Doug Evans <dje@google.com>
1660
1661 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1662 as appropriate.
1663
8b93c54c
TT
16642010-08-27 Tom Tromey <tromey@redhat.com>
1665
1666 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1667 TYPE_FIELD_IGNORE_BITS.
1668
16be1145
DE
16692010-08-27 Doug Evans <dje@google.com>
1670
1671 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1672 the order they're defined in. munmap .debug_types buffer.
1673
e254ef6a
DE
16742010-08-26 Doug Evans <dje@google.com>
1675
1676 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1677 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1678 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1679 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1680 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1681 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1682 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1683 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1684 (write_psymtabs_to_index): Ditto.
1685
ae53ffa4
PA
16862010-08-26 Pedro Alves <pedro@codesourcery.com>
1687
1688 * NEWS: Mention libthread_db debugging with core files.
1689
c6da4cef
DE
16902010-08-26 Doug Evans <dje@google.com>
1691
1692 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1693 forward decl. Pass pst->dirname to dwarf_decode_lines.
1694 (psymtab_include_file_name): New function.
1695 (dwarf_decode_lines): Call it. Update comments.
1696
cd02d79d
PA
16972010-08-25 Pedro Alves <pedro@codesourcery.com>
1698
1699 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1700 compilation unit being different from target die's.
1701
673bfd45
DE
17022010-08-24 Doug Evans <dje@google.com>
1703
1704 PR symtab/11942
1705 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1706 debug_types_type_hash.
1707 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1708 All uses updated.
1709 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1710 appropriate type_hash table. All callers updated.
1711 (allocate_signatured_type_table): Renamed from
1712 allocate_signatured_type_hash_table. All callers updated.
1713 (create_signatured_type_table_from_index): Renamed from
1714 create_signatured_type_hash_from_index. All callers updated.
1715 (read_die_type): Add comment. Move actual reading to ...
1716 (read_die_type_1): ... here. New function.
1717 (follow_die_ref_or_sig): Tweak comment.
1718 (set_die_type): Rewrite to use appropriate choice of
1719 debug_info_type_hash or debug_types_type_hash.
1720 (get_die_type_at_offset): New function.
1721 (get_die_type): Call it.
1722
e8fd65ef
JK
17232010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1724
1725 * python/py-type.c (typy_richcompare): Initialize worklist.
1726
9779414d
DJ
17272010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1728 Kazu Hirata <kazu@codesourcery.com>
1729 Jonathan Larmour <jifl@eCosCentric.com>
1730
1731 * arm-tdep.c: Include features/arm-with-m.c.
1732 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1733 call this function.
1734 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1735 Check is_m after force-mode.
1736 (arm_gdbarch_init): Check the binary before the target description.
1737 Add check for M profile attribute. If we have an M-profile device,
1738 but no target register description, use arm-with-m. Recognize the
1739 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1740 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1741 * arm-tdep.h (XPSR_T): Define.
1742 (struct gdbarch_tdep): Add is_m member.
1743 * features/arm-m-profile.xml, features/arm-with-m.c,
1744 features/arm-with-m.xml: New files.
1745
9dc481d3
DE
17462010-08-23 Doug Evans <dje@google.com>
1747
1748 * dwarf2read.c (read_structure_type): Add comment.
1749 (read_enumeration_type): Add comment.
1750 (process_enumeration_scope): Move definition of some locals
1751 closer to their use.
1752 (read_namespace_type): Add comment.
e71ec853 1753 (set_die_type): Fix typo in comment.
9dc481d3 1754
f9ffd4bb
TT
17552010-08-23 Tom Tromey <tromey@redhat.com>
1756
1757 PR python/11145:
1758 * python/py-value.c: Include expression.h.
1759 (valpy_do_cast): New function.
1760 (valpy_cast): Use it.
1761 (valpy_dynamic_cast): New function.
1762 (valpy_reinterpret_cast): Likewise.
1763 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1764
96f73ba5
TT
17652010-08-23 Tom Tromey <tromey@redhat.com>
1766
1767 PR python/11391:
1768 * python/py-value.c (valpy_nonzero): Don't throw error for other
1769 Value types.
1770
d839c8a4
TT
17712010-08-23 Tom Tromey <tromey@redhat.com>
1772
1773 PR python/10676:
1774 * python/py-type.c: Include bcache.h, vec.h.
1775 (struct type_equality_entry): New.
1776 (compare_strings): New function.
1777 (check_types_equal): Likewise.
1778 (check_types_worklist): Likewise.
1779 (typy_richcompare): Likewise.
1780 (type_object_type): Set tp_richcompare field.
1781
05d0e1e7
TT
17822010-08-23 Tom Tromey <tromey@redhat.com>
1783
1784 PR python/10953:
1785 * python/py-type.c (typy_fields): Call check_typedef.
1786 (typy_template_argument): Add TRY_CATCH.
1787
702c2711
TT
17882010-08-23 Tom Tromey <tromey@redhat.com>
1789
1790 PR python/11915:
1791 * python/py-type.c (typy_array): New function.
1792 (type_object_methods): Add "array".
1793
4a532131
PA
17942010-08-20 Pedro Alves <pedro@codesourcery.com>
1795
1796 * python/python.c: Include "serial.h".
1797 (gdbpy_event_fds): Change type to `struct serial *' a array from
1798 int array.
1799 (gdbpy_run_events): Change parameters. Use serial_readchar in
1800 place of read.
1801 (gdbpy_post_event): Use serial_write in place of write.
1802 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1803 serial_async in place of add_file_handler.
1804
58f07bae
PA
18052010-08-20 Pedro Alves <pedro@codesourcery.com>
1806
1807 * serial.h (gdb_pipe, serial_pipe): Declare.
1808 * serial.c (serial_interface_lookup): Take a const char pointer.
1809 (serial_fdopen): Rename to ...
1810 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1811 Call the OPS' fdopen function if there is one.
1812 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1813 (serial_pipe): New.
1814 (struct serial_ops) <fdopen>: New field.
1815
1816 * ser-mingw.c (free_pipe_state):
1817 (free_pipe_state): Close output on non-pex pipes.
1818 (pipe_windows_fdopen): New.
1819 (gdb_pipe): New.
1820 (_initialize_ser_windows): Register pipe_windows_fdopen.
1821 * ser-go32.c (gdb_pipe): New.
1822 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1823 no state pointer.
1824 (pipe_ops): Delete.
1825 (gdb_pipe): New.
1826
3da10d80
KS
18272010-08-20 Keith Seitz <keiths@redhat.com>
1828
1829 PR symtab/11465:
889bf7c5 1830 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1831 (struct dwarf2_cu): Add vector method_list.
1832 (scan_partial_symbols): Count methods for union, class, structure,
1833 and interface types.
1834 (add_to_method_list): New function.
1835 (free_delayed_list): New function.
1836 (compute_delayed_physnames): New function.
1837 (process_full_comp_unit): Make a cleanup for the CU's delayed
1838 physname list, compute the delayed physnames, and free the
1839 the list.
1840 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1841 of the physname until after the CU is read.
1842
1843 * dwarf2read.c (read_structure_type): Check if the current
1844 DIE's type was already completed after dwarf2_full_name
1845 was called.
889bf7c5 1846
ca11e899
SS
18472010-08-19 Stan Shebs <stan@codesourcery.com>
1848
1849 * NEWS: Mention some additional changes.
1850
4d2dc20a
TT
18512010-08-19 Tom Tromey <tromey@redhat.com>
1852
1853 * Makefile.in (install-python): Add DESTDIR.
1854
d30f5e1f
DE
18552010-08-19 Doug Evans <dje@google.com>
1856
1857 PR exp/11926
1858 * parser-defs.h (parse_float, parse_c_float): Declare.
1859 * parse.c (parse_float, parse_c_float): New function.
1860 * c-exp.y (parse_number): Call parse_c_float.
1861 * objc-exp.y (parse_number): Ditto.
1862 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1863 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1864
2837d59e
JB
18652010-08-19 Joel Brobecker <brobecker@adacore.com>
1866
1867 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1868 the arguments in the correct order.
1869 * symtab.c (maybe_add_partial_symtab_filename): Declare
1870 the arguments in the correct order.
1871
35633fef
JK
18722010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1875 initialize it by null_frame_id, wrap its usage by get_frame_id,
1876 frame_id_p and frame_find_by_id.
1877
94f7449c
TT
18782010-08-18 Tom Tromey <tromey@redhat.com>
1879
1880 PR python/11900:
1881 * configure: Rebuild.
1882 * configure.ac: Add install-python to CONFIG_INSTALL.
1883 * Makefile.in (install-python): New.
1884
f3574227
DE
18852010-08-18 Doug Evans <dje@google.com>
1886
1887 * gdb_assert.h (gdb_assert_not_reached): New macro.
1888 (gdb_assert_fail): Fix typo in comment.
1889 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1890 gdb_assert (0).
1891 * darwin-nat.c (darwin_check_new_threads): Ditto.
1892 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1893 (munmap_section_buffer): Ditto.
1894 * m32c-tdep.c (make_types): Ditto.
1895 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1896 * macroexp.c (get_character_constant): Ditto.
1897 (get_string_literal): Ditto.
1898 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1899 (mep_pseudo_cr_index, mep_register_type): Ditto.
1900 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1901 (mep_get_insn, mep_analyze_prologue): Ditto.
1902 * objfiles.c (qsort_cmp): Ditto.
1903 * prologue-value.c (pv_is_identical): Ditto.
1904 * record.c (record_get_loc): Ditto.
1905 * value.c (value_static_field): Ditto.
1906 * xtensa-tdep.c (call0_track_op): Ditto.
1907
c92817ce
TT
19082010-08-18 Tom Tromey <tromey@redhat.com>
1909
1910 PR symtab/11919:
1911 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1912 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1913 name-copying lower. Document exception behavior.
1914 * completer.c (expression_completer): Catch exceptions from
1915 parse_field_expression.
1916
856d6f99
PA
19172010-08-18 Pedro Alves <pedro@codesourcery.com>
1918
1919 PR corefile/8210
1920
1921 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1922 workaround on core files.
1923 (try_thread_db_load_1): Don't try enabling thread event reporting
1924 on core files.
1925 (thread_db_load): Allow thread_db on core files.
1926 (attach_thread): Don't check thread signals on core files, nor try
1927 really attaching to the thread, nor enabling thread event event
1928 reporting.
1929 (thread_db_detach): Don't try disabing thread event reporting or
1930 removing thread event breakpoints when debugging a core file.
1931 (find_new_threads_callback): Don't try enabling thread event
1932 reporting on core files.
1933 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1934 debugging a core file.
1935 (thread_db_find_new_threads): Don't update thread
1936 cores (processors) when debugging a core (dump).
1937
261b8d08
PA
19382010-08-18 Pedro Alves <pedro@codesourcery.com>
1939
1940 PR corefile/8210
1941
1942 * corelow.c (add_to_thread_list): Don't use
1943 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1944 (get_core_register_section): Don't use
1945 gdbarch_core_reg_section_encodes_pid.
1946
1947 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1948 * gdbarch.h, gdbarch.c: Regenerate.
1949 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1950 gdbarch_core_reg_section_encodes_pid.
1951 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1952 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1953 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1954
f9b42018
YQ
19552010-08-18 Yao Qi <yao@codesourcery.com>
1956
1957 * MAINTAINERS : Add myself under Write After Approval.
1958
def98928
TT
19592010-08-17 Tom Tromey <tromey@redhat.com>
1960
1961 * NEWS: Mention template parameter support.
1962
0807b50c
PA
19632010-08-17 Pedro Alves <pedro@codesourcery.com>
1964
1965 PR breakpoints/11371
1966
1967 * breakpoint.c (decref_bp_location): Assert the reference count is
1968 sane.
1969
f431efe5
PA
19702010-08-17 Pedro Alves <pedro@codesourcery.com>
1971
1972 PR breakpoints/11371
1973
1974 * breakpoint.c (breakpoint_init_inferior): Decrement the
1975 location's reference count instead of deleting right away.
1976 (bpstat_free): Decrement the location's reference count. Make
1977 static.
1978 (bpstat_copy): Increment the location's reference count.
1979 (bpstat_find_breakpoint): Adjust.
1980 (bpstat_num): Adjust.
1981 (print_it_typical): Adjust. Use the breakpoint pointer in the
1982 bpstat instead of the location's owner.
1983 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1984 Adjust to record the location's owner in the bpstat.
1985 (watchpoint_check): Use the breakpoint pointer in the bpstat
1986 instead of the location's owner.
1987 (bpstat_check_breakpoint_conditions): Don't handle
1988 bp_watchpoint_scope here. Use the breakpoint pointer in the
1989 bpstat instead of the location's owner.
1990 (bpstat_stop_status): Defer inferior function calls to after
1991 building the bpstat list. Handle bp_watchpoint_scope here. Use
1992 the breakpoint pointer in the bpstat instead of the location's
1993 owner.
1994 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1995 the location's owner.
1996 (free_bp_location): Don't walk bpstats clearing locations.
1997 (incref_bp_location): New.
1998 (decref_bp_location): New.
1999 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2000 instead of the location's owner.
2001 (update_global_location_list): Clear the location's owner, and
2002 decrement the location's reference count instead of deleting it
2003 right away.
2004 (breakpoint_retire_moribund): Decrement the location's reference
2005 count instead of deleting it right away.
2006 (bpstat_remove_bp_location): Delete.
2007 (bpstat_remove_breakpoint): New.
2008 (bpstat_remove_bp_location_callback): Delete.
2009 (bpstat_remove_breakpoint_callback): New.
2010 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2011 clearing references to the breakpoint that is being deleted.
2012
2013 * breakpoint.h (struct bp_location) <refc>: New field.
2014 <owner>: Update comments.
2015 (bpstat_free): Delete declaration.
2016 (struct bpstats): Change the type of the breakpoint_at field to
2017 struct breakpoint point, from struct bp_location pointer. Add new
2018 field bp_location_at.
2019
14c0d4e1
TT
20202010-08-16 Tom Tromey <tromey@redhat.com>
2021
2022 * NEWS: Fix typo.
2023
b56df873
TT
20242010-08-16 Tom Tromey <tromey@redhat.com>
2025
2026 * NEWS: Mention watch -location.
2027
d63d0675
JK
20282010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2029
2030 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2031 EXP_STRING_REPARSE to EXP_STRING.
2032 (watch_command_1): Set also EXP_STRING_REPARSE.
2033 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2034 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2035 Update comment for exp_string.
2036
06a64a0b
TT
20372010-08-16 Tom Tromey <tromey@redhat.com>
2038
2039 * value.c (release_value): Clear 'next' pointer.
2040 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2041 (watch_command_wrapper): Update.
2042 (watch_maybe_just_location): New function.
2043 (watch_command): Update.
2044 (rwatch_command_wrapper): Update.
2045 (rwatch_command): Update.
2046 (awatch_command_wrapper): Update.
2047 (awatch_command): Update.
2048 (check_for_argument): New function.
2049 (_initialize_breakpoint): Update help text.
2050
f96b8fa0
UW
20512010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2052
2053 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2054 typedef'ed function types correctly.
2055
4eb54052
TT
20562010-08-13 Tom Tromey <tromey@redhat.com>
2057
2058 * python/python-internal.h (gdbpy_get_hook_function): Don't
2059 declare.
2060
44be957e
JK
20612010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2062
ba720883 2063 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2064 static.
2065
76d8b686
KW
20662010-08-13 Ken Werner <ken.werner@de.ibm.com>
2067
2068 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2069 the format strings to be compatible with Python 2.4.
2070
8dedea02
VP
20712010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2072
2073 Easier and more stubborn MI memory read commands.
2074
2075 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2076 and data-write-memory-bytes.
2077 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2078 (mi_cmd_data_write_memory_bytes): New.
2079 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2080 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2081 New.
2082 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2083 * target.c (target_read_until_error): Remove.
2084 (read_whatever_is_readable, free_memory_read_result_vector)
2085 (read_memory_robust): New.
2086 * target.h (target_read_until_error): Remove.
2087 (struct memory_read_result, free_memory_read_result_vector)
2088 (read_memory_robust): New.
2089
1d9ec526
HZ
20902010-08-13 Hui Zhu <teawater@gmail.com>
2091
2092 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2093 (read_comp_unit): Initialize back_to.
2094
98bfdba5
PA
20952010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2096 Pedro Alves <pedro@codesourcery.com>
2097
2098 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2099 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2100 (struct partial_die_info) <has_template_arguments>: New field.
2101 <num_attrs>: Change type to unsigned char.
2102 <building_fullname>: New field.
2103 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2104 allocate a CU if we don't have one already. Add a cleanup for the
2105 CU.
2106 (partial_die_full_name): Handle template arguments not in
2107 DW_AT_name.
2108 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2109 (load_full_comp_unit): Only allocate a CU if we don't have one
2110 already.
2111 (do_ui_file_peek_last): New.
2112 (dwarf2_compute_name): Handle template parameters not in
2113 DW_AT_name.
2114 (read_comp_unit): Read and free abbrevs if not read yet.
2115 (load_partial_dies): Handle template arguments not in DW_AT_name.
2116 (find_partial_die): If we have a CU, but no a partial dies yet,
2117 also read in the CU.
2118 (dwarf2_const_value_attr): New, abstracted out from
2119 dwarf2_const_value.
2120 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2121 dwarf2_const_value_attr.
2122 (determine_prefix): Detect and break loops created by RCVT's debug
2123 info.
2124 (maybe_queue_comp_unit): Bail out early if reading partial
2125 symbols.
2126 (follow_die_offset): Load full CU if we have no dies.
2127 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2128 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2129
ca5c20b6 21302010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2131 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2132
2133 * python/python.c (gdbpy_run_events): New function.
2134 (gdbpy_post_event): Likewise.
2135 (gdbpy_initialize_events): Likewise.
2136 (_initialize_python): Call gdbpy_initialize_events.
2137
7346b668
KW
21382010-08-11 Ken Werner <ken.werner@de.ibm.com>
2139
2140 * gdb/valarith.c (vector_binop): New function.
2141 (scalar_binop): Likewise.
2142 (value_binop): Call scalar_binop or vector_binop depending on the types.
2143 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2144 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2145 to pointers.
2146 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2147
62183e15
TT
21482010-08-11 Brad Roberts <braddr@puremagic.com>
2149
2150 * d-lang.c (extract_identifiers): Handle multiple digits.
2151
39d7b0e2
JK
21522010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2153
2154 Code cleanup.
2155 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2156 Rename to dummy_frame_unwind.
2157 (dummy_frame_unwind): Remove.
2158 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2159 * frame-unwind.c (frame_unwind_init): Use address of
2160 dummy_frame_unwind and inline_frame_unwind.
2161 * frame.c (create_sentinel_frame): Use address of
2162 sentinel_frame_unwind.
2163 * inline-frame.c (inline_frame_unwinder): Rename to
2164 inline_frame_unwind.
2165 (inline_frame_unwind): Remove.
2166 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2167 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2168 sentinel_frame_unwind.
2169 (sentinel_frame_unwind): Remove.
2170 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2171 struct.
2172
9f9a8002
JK
21732010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 Code cleanup.
2176 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2177 and returned value. New comment from frame-unwind.h.
2178 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2179 Extend the comment.
2180 * frame.c (get_frame_id, frame_unwind_register_value)
2181 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2182 (get_frame_type, frame_unwind_arch): Do not use the return value of
2183 frame_unwind_find_by_frame.
2184
cb2e07a6 21852010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2186 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2187 Tom Tromey <tromey@redhat.com>
2188
2189 * python/python.c (gdbpy_solib_address): New function.
2190 (gdbpy_decode_line): Likewise.
2191
c29c521f
TT
21922010-08-10 Tom Tromey <tromey@redhat.com>
2193
2194 Revert gdb-add-index addition:
2195 * Makefile.in (install-only): Don't install gdb-add-index.
2196 * gdb-add-index.sh: Remove.
2197
0c012db1
KB
21982010-08-09 Kevin Buettner <kevinb@redhat.com>
2199
2200 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2201 `target_has_execution' check with `to_has_memory' check.
2202 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2203 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2204 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2205
db04efe6
KB
22062010-08-09 Kevin Buettner <kevinb@redhat.com>
2207
2208 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2209 (resume_siggnal, resume_step): Move these static globals...
2210 (struct sim_inferior_data): ...into this new struct.
2211 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2212 New static globals.
2213 (gdb_callback, callbacks_initialized): Move these globals to
2214 a point earlier in the file.
2215 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2216 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2217 (gdbsim_close_inferior, gdbsim_resume_inferior)
2218 (gdbsim_stop_inferior): New functions.
2219 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2220 New constants.
2221 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2222 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2223 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2224 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2225 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2226 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2227 new local variable `sim_data' in each of these functions. Use
2228 `sim_data' to reference former globals `program_loaded',
2229 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2230 `resume_step'.
2231 (gdbsim_open): Remove local variable `argv'. Put results of call
2232 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2233 make a cleanup for it. Free it though when a sim instance cannot
2234 be obtained.
2235 (gdbsim_close): Free sim_argv and null it out as appropriate.
2236 Close sim instances in all inferiors.
2237 (gdbsim_cntrl_c): Stop all inferiors.
2238 (gdbsim_wait):
2239 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2240
e37fd15a
SW
22412010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2242
2243 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2244 function after symbol construction is complete.
2245 Do the same for template symbol addition to template_symbols list.
2246
45c58896
SW
22472010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2248
2249 * symtab.c (symbol_get_demangled_name): Remove assertion and
2250 return NULL when language_specific.cplus_specific is not initialized.
2251 * stabsread.c (define_symbol): Set the name before calling
2252 cp_scan_for_anonymous_namespaces.
2253
33e5013e
SW
22542010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2255
2256 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2257 SYMBOL_SET_LANGUAGE.
2258 (symbol_init_language_specific): Renamed to symbol_set_language.
2259 * symtab.c (symbol_init_language_specific): Removed redundant check
2260 for language_cplus.
2261 Renamed to symbol_set_language.
2262 * stabsread.c (define_symbol): Updated.
2263 (read_enum_type): Updated
2264 * psymtab.c (add_psymbol_to_bcache): Updated.
2265 * minsyms.c (install_minimal_symbols): Updated.
2266 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2267 SYMBOL_LANGUAGE to set the language.
2268 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2269 * mdebugread.c (new_symbol): Ditto.
2270 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2271 * dwarf2read.c (new_symbol_full): Ditto.
2272 * jv-lang.c (add_class_symbol): Ditto.
2273
5da1313b
JK
22742010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2275
2276 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2277 (make_cleanup_restore_page_info)
2278 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2279 * gdbcmd.h (execute_command_to_string): New declaration.
2280 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2281 (make_cleanup_restore_ui_file): Move to utils.c
2282 (execute_gdb_command) <to_string>: Move ...
2283 * top.c (execute_command_to_string): ... here. Call
2284 set_batch_flag_and_make_cleanup_restore_page_info.
2285 * utils.c (make_cleanup_restore_integer): New source file blank line.
2286 (make_cleanup_restore_uinteger): New.
2287 (struct restore_ui_file_closure, do_restore_ui_file)
2288 (make_cleanup_restore_ui_file): Move here from python/python.c.
2289 (init_page_info) <batch_flag>
2290 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2291 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2292
c820c52a
PA
22932010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2294
2295 * thread.c (add_thread_silent): Use null_ptid instead of
2296 minus_one_ptid while getting rid of stale inferior_ptid.
2297
8da614df
CV
22982010-08-06 Corinna Vinschen <vinschen@redhat.com>
2299
2300 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2301 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2302 (decode_frame_entry_1): Remove redundant setting of
2303 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2304 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2305 on examined frame section. Add comment to explain why.
2306 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2307 comment to explain usage.
2308 * gdbarch.c: Regenerate.
2309 * gdbarch.h: Regenerate.
2310
2311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2312
e4195b40
JK
23132010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2314
2315 Code cleanup.
2316 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2317 a more inner block.
2318
a3217aa0
PA
23192010-08-05 Pedro Alves <pedro@codesourcery.com>
2320
2321 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2322 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2323 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2324 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2325 linux-tdep.o to gdb_target_obs.
2326
e2b4a699 23272010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2328
2329 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2330 argument.
889bf7c5 2331
50e8a0d5
HZ
23322010-08-05 Hui Zhu <teawater@gmail.com>
2333
2334 * mips-linux-tdep.c(regset.h): New include.
2335 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2336 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2337 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2338 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2339 mips_linux_regset_from_core_section): New functions.
2340 (fetch_core_registers, regset_core_fns): Deleted.
2341 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2342 Deleted regset_core_fns.
2343 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2344 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2345 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2346 and fpregset64.
2347
70728992
PA
23482010-08-04 Pedro Alves <pedro@codesourcery.com>
2349
2350 * s390-tdep.c: Include linux-tdep.h.
2351 (s390_gdbarch_init): Call linux_init_abi.
2352
a5ee0f0c
PA
23532010-08-04 Pedro Alves <pedro@codesourcery.com>
2354
2355 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2356 instead of printing "Thread" here.
2357 * linux-tdep.c: Include inferior.h.
2358 (linux_core_pid_to_str): New.
2359 (linux_init_abi): New.
2360 * linux-tdep.h (linux_init_abi): Declare.
2361 * alpha-linux-tdep.c: Include linux-tdep.h.
2362 (alpha_linux_init_abi): Call linux_init_abi.
2363 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2364 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2365 * frv-linux-tdep.c: Include linux-tdep.h
2366 (frv_linux_init_abi): Call linux_init_abi.
2367 * hppa-linux-tdep.c: Include linux-tdep.h
2368 (hppa_linux_init_abi): Call linux_init_abi.
2369 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2370 * ia64-linux-tdep.c: Include linux-tdep.h.
2371 (ia64_linux_init_abi): Call linux_init_abi.
2372 * m32r-linux-tdep.c: Include linux-tdep.h.
2373 (m32r_linux_init_abi): Call linux_init_abi.
2374 * m68klinux-tdep.c: Include linux-tdep.h.
2375 (m68k_linux_init_abi): Call linux_init_abi.
2376 * microblaze-linux-tdep.c: Include linux-tdep.h.
2377 (microblaze_linux_init_abi): Call linux_init_abi.
2378 * mips-linux-tdep.c: Include linux-tdep.h.
2379 (mips_linux_init_abi): Call linux_init_abi.
2380 * mn10300-linux-tdep.c: Include linux-tdep.h.
2381 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2382 'gdbinfo' parameter to 'info'.
2383 * ppc-linux-tdep.c: Include linux-tdep.h.
2384 (ppc_linux_init_abi): Call linux_init_abi.
2385 * sh-linux-tdep.c: Include linux-tdep.h.
2386 (sh_linux_init_abi): Call linux_init_abi.
2387 * sparc-linux-tdep.c: Include linux-tdep.h.
2388 (sparc32_linux_init_abi): Call linux_init_abi.
2389 * sparc64-linux-tdep.c: Include linux-tdep.h.
2390 (sparc64_linux_init_abi): Call linux_init_abi.
2391 * xtensa-linux-tdep.c: Include linux-tdep.h.
2392 (xtensa_linux_init_abi): Call linux_init_abi.
2393 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2394 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2395 callback.
2396
bc043ef3
DE
23972010-08-03 Doug Evans <dje@google.com>
2398
2399 * breakpoint.c (bpdisp_text): Constify bpdisps.
2400 * solib-svr4.c (solib_break_names): Constify.
2401 (bkpt_names, main_name_list): Constify.
2402 (match_main): Constify soname arg.
63cdd227
DE
2403 (bfd_lookup_symbol): Remove unnecessary forward decl.
2404 Constify symname arg.
bc043ef3
DE
2405 (enable_break): Constify bkpt_namep.
2406 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2407 (symtab_symbol_info): Constify classnames.
2408
585d1eb8
PM
24092010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2410
2411 * NEWS: Document Python value inferior function calls.
2412
2de00c64
DE
24132010-08-02 Doug Evans <dje@google.com>
2414
2415 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2416
02d868e8
PP
24172010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2418
2419 * linux-thread-db.c (libthread_db_debug): New variable.
2420 (thread_db_find_new_threads_silently): Control verbosity with it.
2421 (try_thread_db_load_1, try_thread_db_load): Likewise.
2422 (find_new_threads_once): Likewise.
2423 (_initialize_thread_db): Set/show it.
2424
a19cae16
JK
24252010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2426
2427 * common/signals.c (signals): Move the content to signals.def.
2428 Include it. Remove the INDENT comments.
2429
c2bbed2a
TT
24302010-07-30 Tom Tromey <tromey@redhat.com>
2431
2432 * Makefile.in (install-only): Install gdb-add-index.
2433 * gdb-add-index.sh: New file.
2434
f32b2f09
CR
24352010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2436
2437 * MAINTAINERS: Add myself for write after approval privileges.
2438
1276c759
JK
24392010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2440
2441 * symfile.c (addr_section_name): New function.
2442 (addrs_section_compar): Use it.
2443 (addr_info_make_relative): Use it. Move variable sect_name into a more
2444 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2445
420697bb
TT
24462010-07-30 Tom Tromey <tromey@redhat.com>
2447
2448 * configure: Rebuild.
2449 * configure.ac: Add missing case for Python 2.7.
2450
d0d99561
DD
24512010-07-29 DJ Delorie <dj@redhat.com>
2452
2453 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2454 conditions.
2455
0b29bdde
PA
24562010-07-29 Pedro Alves <pedro@codesourcery.com>
2457
2458 * PROBLEMS: Remove mention of all problems.
2459
110ed339
PA
24602010-07-28 Pedro Alves <pedro@codesourcery.com>
2461
2462 PR build/11848
2463 * configure.ac: Check for wresize.
2464 * configure, config.in: Regenerate.
2465 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2466 with HAVE_WRESIZE.
2467
326fd672
TT
24682010-07-28 Tom Tromey <tromey@redhat.com>
2469
2470 PR python/11060:
2471 * python/py-type.c (typy_legacy_template_argument): New function,
2472 extracted from typy_template_argument.
2473 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2474 value when needed.
2475
4ac8c4da
TT
24762010-07-28 Oleg Nesterov <oleg@redhat.com>
2477
2478 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2479
053315c2
TT
24802010-07-27 Tom Tromey <tromey@redhat.com>
2481
2482 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2483
3ce3b1ba
PA
24842010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2485
2486 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2487 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2488
2bb4f988
TT
24892010-07-28 Tom Tromey <tromey@redhat.com>
2490
2491 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2492
74232302
JB
24932010-07-28 Joel Brobecker <brobecker@adacore.com>
2494
2495 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2496 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2497
385d04dc
JB
24982010-07-28 Joel Brobecker <brobecker@adacore.com>
2499
2500 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2501 down, just before the block that parse the breakpoint addr_string.
2502
34eaf542
TT
25032010-07-28 Tom Tromey <tromey@redhat.com>
2504
2505 PR c++/9946:
2506 * symfile.c (reread_symbols): Clear template_symbols.
2507 * symtab.h (struct symbol) <is_cplus_template_function>: New
2508 field.
2509 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2510 (struct template_symbol): New.
2511 * symtab.c (lookup_symbol_aux_local): Use
2512 cp_lookup_symbol_imports_or_template.
2513 * objfiles.h (struct objfile) <template_symbols>: New field.
2514 * objfiles.c (relocate_one_symbol): New function.
2515 (objfile_relocate1): Use it. Relocate isolated symbols.
2516 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2517 template_arguments>: New fields.
2518 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2519 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2520 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2521 (lookup_typename): Update.
2522 * gdbtypes.c (lookup_typename): Constify "block" argument.
2523 * dwarf2read.c: Include vec.h.
2524 (symbolp): New typedef.
2525 (read_func_scope): Read template arguments. Allocate a
2526 template_symbol when needed.
2527 (read_structure_type): Read template arguments.
2528 (new_symbol_full): New function, from new_symbol. Handle
2529 DW_TAG_template_type_param and DW_TAG_template_value_param.
2530 (new_symbol): Rewrite as wrapper.
2531 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2532 * cp-namespace.c: Include language.h.
2533 (search_symbol_list): New function.
2534 (cp_lookup_symbol_imports_or_template): Likewise.
2535
d27b3be4
PA
25362010-07-28 Balazs Kezes <rlblaster@gmail.com>
2537
2538 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2539 the command window to the new size and position.
2540
0036e657
PA
25412010-07-28 Balazs Kezes <rlblaster@gmail.com>
2542
a782f43e 2543 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2544 coordinates.
2545
36900355
PA
25462010-07-28 Balazs Kezes <rlblaster@gmail.com>
2547
a782f43e 2548 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2549 after a detecting a resize.
a782f43e 2550 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2551 call.
2552
db5e03ae
PA
25532010-07-28 Pedro Alves <pedro@codesourcery.com>
2554
2555 * configure.ac: Check for resize_term.
2556 * configure, config.in: Regenerate.
2557
b71fff68
JB
25582010-07-27 Joel Brobecker <brobecker@adacore.com>
2559
2560 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2561
9b1c24c8
PA
25622010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2563
2564 * dwarf2read.c (read_string): Rename to ...
2565 (read_direct_string): ... this.
2566 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2567 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2568
00390b84
JK
25692010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2572 (count_events_callback, select_event_lwp_callback)
2573 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2574
26ab7092
JK
25752010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2578 (_initialize_ia64_linux_nat): Install it.
2579 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2580 (linux_nat_set_status_is_event): New.
2581 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2582 cancel_breakpoints_callback, linux_nat_filter_event)
2583 (linux_nat_wait_1): Use linux_nat_status_is_event.
2584 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2585
283e6a52
TT
25862010-07-27 Tom Tromey <tromey@redhat.com>
2587
2588 * NEWS: Mention labels, .gdb_index.
2589
53a71c06
CR
25902010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2591
2592 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2593 "start,+length" form of arguments.
53a71c06
CR
2594 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2595 since GDB 7.1"; and merge two separated paragraphs of disassemble
2596 description in "Changes in GDB 7.0".
2597
c63a1f86
JK
25982010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2601 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2602 (fputs_maybe_filtered): Do not do filtering also on
2603 ! INPUT_FROM_TERMINAL_P.
2604
abebb8b0
JB
26052010-07-27 Joel Brobecker <brobecker@adacore.com>
2606
2607 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2608 in warning message.
2609
5374244e
PM
26102010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2611
2612 * python/py-value.c (valpy_call): New Function.
2613
ac0b195c
KW
26142010-07-27 Ken Werner <ken.werner@de.ibm.com>
2615
889bf7c5 2616 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2617 types_list_elements variables.
2618
09d8bd00
TT
26192010-07-26 Tom Tromey <tromey@redhat.com>
2620
2621 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2622 TLS with DW_OP_const4u or DW_OP_const8u.
2623
9fe70b4f
TJB
26242010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2625
2626 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2627 VSX registers contents.
2628
caac4577
JG
26292010-07-26 Jerome Guitton <guitton@adacore.com>
2630
2631 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2632 its adress is null. Add comment to explain why.
2633 (new_symbol): Ditto.
2634
857d11d0
JK
26352010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2636
2637 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2638 the host signal first.
2639
1fd400ff
TT
26402010-07-23 Tom Tromey <tromey@redhat.com>
2641
2642 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2643 type_comp_units>: New fields.
2644 (dw2_get_cu): New function.
2645 (create_cus_from_index): Remove unused argument.
2646 (create_signatured_type_hash_from_index): New function.
2647 (create_addrmap_from_index): Update.
2648 (dwarf2_read_index): Handle version 2.
2649 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2650 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2651 (dw2_print_stats, dw2_expand_all_symtabs)
2652 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2653 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2654 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2655 (allocate_signatured_type_hash_table): New function.
2656 (add_signatured_type_cu_to_list): Likewise.
2657 (create_debug_types_hash_table): Use them. Set type_comp_units.
2658 (read_signatured_type): Ensure section data is available.
2659 (add_address_entry): Don't record empty ranges.
2660 (struct signatured_type_index_data): New.
2661 (write_one_signatured_type): New function.
2662 (write_psymtabs_to_index): Write type CUs.
2663 (save_gdb_index_command): Update comment.
2664 (process_type_comp_unit): Move inititalization of
2665 from_debug_types...
2666 (create_debug_types_hash_table): ... here.
2667
3a674486
JK
26682010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2669
2670 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2671 cleanup and generating of gdb script to it.
2672 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2673 and terminal size. Convert $tmpfile to a series of -ex-es.
2674
54ec275a
KS
26752010-07-23 Keith Seitz <keiths@redhat.com>
2676
2677 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2678 hook for STATIC_BLOCK types, too.
2679
8fd447e6
KS
26802010-07-23 Keith Seitz <keiths@redhat.com>
2681
2682 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2683 and vector definition.
2684
25b72dde
JK
26852010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2688
96d19272
JK
26892010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2690
2691 * dwarf2read.c: Include completer.h.
2692 (save_gdb_index_command): Use matching usage command name.
2693 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2694 Set filename_completer for it.
2695
ca1f3406
TT
26962010-07-22 Tom Tromey <tromey@redhat.com>
2697
2698 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2699 type signature's per-CU data.
2700
ba25b921
PA
27012010-07-22 Pedro Alves <pedro@codesourcery.com>
2702
2703 * NEWS: Mention target reported shared libraries support by
2704 default.
2705
23bd0f7c
PA
27062010-07-21 Pedro Alves <pedro@codesourcery.com>
2707
2708 PR symtab/11827
2709
2710 Revert:
2711 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2712 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2713 and DW_TAG_volatile_type.
2714 (new_symbol): Likewise.
2715
883df6dd
SW
27162010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2717
2718 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2719 function symbols before overload resolution.
2720
269b11a2
PA
27212010-07-21 Pedro Alves <pedro@codesourcery.com>
2722
2723 * breakpoint.c (bptype_string): New, abstracted out from
2724 print_one_breakpoint_location.
2725 (print_one_breakpoint_location): Adjust.
2726 (breakpoint_1): Adjust the type column width dynamically.
2727
569b05a5
JK
27282010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2729
2730 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2731 a gdb_assert call, new comment.
2732
ad34eb2f
JK
27332010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 * linux-nat.c (linux_handle_extended_wait): Handle case when
2736 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2737
33355866
JK
27382010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2739
2740 Code cleanup.
2741 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2742 linux_nat_wait_1. Use always LP->STATUS afterwards.
2743
26590820
HZ
27442010-07-20 Hui Zhu <teawater@gmail.com>
2745
2746 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2747 (inf_ptrace_attach): Ditto.
2748
c0edd9ed
JK
27492010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 Make core files the process_stratum.
2752 * corefile.c (core_target): New variable.
2753 (core_file_command): Remove variable t, use core_target.
2754 * corelow.c (core_ops): Make it static.
2755 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2756 * defs.h (make_cleanup_unpush_target): New prototype.
2757 * gdbarch.h: Regenerate.
2758 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2759 * gdbcore.h (core_target): New declaration.
2760 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2761 variables ops_already_pushed and back_to. Use push_target,
2762 make_cleanup_unpush_target and discard_cleanups calls.
2763 * record.c (record_open): Replace core_stratum by a core_bfd check.
2764 * target.c (target_is_pushed): New function.
2765 (find_core_target): Remove.
2766 * target.h (enum strata) <core_stratum>: Remove.
2767 (target_is_pushed): New declaration.
2768 (find_core_target): Remove declaration.
2769 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2770 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2771
f02253f1
HZ
27722010-07-19 Hui Zhu <teawater@gmail.com>
2773
2774 * breakpoint.c (single_step_breakpoints_inserted): New
2775 function.
2776 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2777 * infrun.c (maybe_software_singlestep): Add check code.
2778 * record.c (record_resume): Add code for software single step.
2779 (record_wait): Ditto.
2780
78768c4a
JK
27812010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2784 a more inner block. Remove its unused declaration initializer.
2785
431e49aa
TJB
27862010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2787
2788 * NEWS: Mention support for the new ptrace interface and hardware
2789 accelerated watchpoint conditions on powerpc-linux.
2790
bd91e7ae
OS
27912010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2792
2793 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2794 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2795 and host_address_to_string() and %s for pointers.
2796 (debug_to_remove_breakpoint): Likewise.
2797 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2798 (debug_to_can_accel_watchpoint_condition): Likewise.
2799 (debug_to_stopped_data_address): Likewise.
2800 (debug_to_watchpoint_addr_within_range): Likewise.
2801 (debug_to_insert_hw_breakpoint): Likewise.
2802 (debug_to_remove_hw_breakpoint): Likewise.
2803 (debug_to_insert_watchpoint): Likewise.
2804 (debug_to_remove_watchpoint): Likewise.
2805
29df156d
SW
28062010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2807
2808 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2809 argument.
2810 (cplus_specific): New struct.
2811 * symtab.c (symbol_set_demangled_name): Updated.
2812 Use cplus_specific for cplus symbols.
2813 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2814 struct for cplus symbols.
2815 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2816 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2817 * symtab.c (symbol_init_cplus_specific): New function.
2818
b250c185
SW
28192010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2820
2821 * symtab.h (symbol_set_demangled_name): New function.
2822 (symbol_get_demangled_name): New function.
2823 * symtab.c (symbol_set_demangled_name): New function.
2824 (symbol_get_demangled_name): New function.
2825 (symbol_init_language_specific): Use demangled_name setter and getter.
2826 (symbol_set_names): Ditto.
2827 (symbol_natural_name): Ditto.
2828 (symbol_demangled_name): Ditto.
2829 * dwarf2read.c (new_symbol): Ditto.
2830
afa16725
SW
28312010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2832
2833 * symtab.h: Renamed cplus_specific to mangled_lang.
2834 * symtab.c (symbol_init_language_specific): Updated.
2835 (symbol_set_names): Updated.
2836 (symbol_natural_name): Updated.
2837 (symbol_demangled_name): Updated.
2838 * ada-lang.c (ada_decode_symbol): Updated.
2839 * dwarf2read.c (new_symbol): Updated.
2840
3cbaedff
KW
28412010-07-14 Ken Werner <ken.werner@de.ibm.com>
2842
2843 * valops.c (value_assign): Do not call to value_coerce_to_target.
2844 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2845
c932f1be
KW
28462010-07-14 Ken Werner <ken.werner@de.ibm.com>
2847
2848 * MAINTAINERS: Add myself for write after approval privileges.
2849
91158a56
TT
28502010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2851
2852 * c-valprint.c (c_val_print): Add embedded_offset to address in
2853 call to val_print_array_elements.
2854
b3b272e1
TT
28552010-07-13 Tom Tromey <tromey@redhat.com>
2856
2857 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2858
bb3fa9d0
TT
28592010-07-13 Tom Tromey <tromey@redhat.com>
2860
2861 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2862 objfile.
2863
dd786858
TT
28642010-07-13 Tom Tromey <tromey@redhat.com>
2865
2866 * symfile.c (set_initial_language): Update.
2867 (deduce_language_from_filename): Argument type now const.
2868 * symtab.h (find_main_filename): Update.
2869 (deduce_language_from_filename): Update.
2870 * symtab.c (find_main_filename): Make result const.
2871 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2872 * psymtab.c (find_symbol_file_from_partial): Change return type.
2873 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2874 Make result const.
2875
9291a0cd
TT
28762010-07-13 Tom Tromey <tromey@redhat.com>
2877
2878 * breakpoint.c (save_cmdlist): No longer static.
2879 * gdbcmd.h (save_cmdlist): Declare.
2880 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2881 OBJF_READNOW on objfile if readnow_symbol_files.
2882 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2883 (elf_sym_fns_gdb_index): New global.
2884 * dwarf2read.c: Include exceptions.h.
2885 (offset_type): New.
2886 (struct mapped_index): New.
2887 (dwarf2_per_cu_data_ptr): New typedef.
2888 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2889 New fields.
2890 (GDB_INDEX_SECTION): New define.
2891 (struct dwarf2_per_cu_quick_data): New.
2892 (struct dwarf2_per_cu_data) <objfile>: New field.
2893 <psymtab>: Removed.
2894 <v>: New field.
2895 (byte_swap): New function.
2896 (MAYBE_SWAP): New macro.
2897 (INDEX_SUFFIX): New macro.
2898 (dw2_do_instantiate_symtab): New function.
2899 (dw2_instantiate_symtab): Likewise.
2900 (create_cus_from_index): Likewise.
2901 (create_addrmap_from_index): Likewise.
2902 (mapped_index_string_hash): Likewise.
2903 (find_slot_in_mapped_hash): Likewise.
2904 (dwarf2_read_index): Likewise.
2905 (dw2_setup): Likewise.
2906 (dw2_require_line_header): Likewise.
2907 (dw2_require_full_path): Likewise.
2908 (dw2_find_last_source_symtab): Likewise.
2909 (dw2_forget_cached_source_info): Likewise.
2910 (dw2_lookup_symtab): Likewise.
2911 (dw2_lookup_symbol): Likewise.
2912 (dw2_do_expand_symtabs_matching): Likewise.
2913 (dw2_pre_expand_symtabs_matching): Likewise.
2914 (dw2_print_stats): Likewise.
2915 (dw2_dump): Likewise.
2916 (dw2_relocate): Likewise.
2917 (dw2_expand_symtabs_for_function): Likewise.
2918 (dw2_expand_all_symtabs): Likewise.
2919 (dw2_expand_symtabs_with_filename): Likewise.
2920 (dw2_find_symbol_file): Likewise.
2921 (dw2_map_ada_symtabs): Likewise.
2922 (dw2_expand_symtabs_matching): Likewise.
2923 (dw2_find_pc_sect_symtab): Likewise.
2924 (dw2_map_symbol_names): Likewise.
2925 (dw2_map_symbol_filenames): Likewise.
2926 (dw2_has_symbols): Likewise.
2927 (dwarf2_gdb_index_functions): New global.
2928 (dwarf2_initialize_objfile): New function.
2929 (process_psymtab_comp_unit): Update.
2930 (add_partial_subprogram): Likewise.
2931 (dwarf2_psymtab_to_symtab): Likewise.
2932 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2933 (process_full_comp_unit): Update.
2934 (find_file_and_directory): New function.
2935 (read_file_scope): Use find_file_and_directory.
2936 (dwarf2_per_cu_objfile): Update.
2937 (dwarf2_per_cu_addr_size): Update.
2938 (dwarf2_per_cu_offset_size): Update.
2939 (dwarf2_free_objfile): Free the index, if needed.
2940 (dwarf2_per_objfile_free): Unmap the index, if needed.
2941 (struct strtab_entry): New.
2942 (hash_strtab_entry): New function.
2943 (eq_strtab_entry): Likewise.
2944 (create_strtab): Likewise.
2945 (add_string): Likewise.
2946 (struct symtab_index_entry): New.
2947 (struct mapped_symtab): New.
2948 (hash_symtab_entry): New function.
2949 (eq_symtab_entry): Likewise.
2950 (delete_symtab_entry): Likewise.
2951 (create_index_table): Likewise.
2952 (create_mapped_symtab): Likewise.
2953 (cleanup_mapped_symtab): Likewise.
2954 (find_slot): Likewise.
2955 (hash_expand): Likewise.
2956 (add_index_entry): Likewise.
2957 (add_indices_to_cpool): Likewise.
2958 (write_hash_table): Likewise.
2959 (add_address_entry): Likewise.
2960 (write_psymbols): Likewise.
2961 (write_obstack): Likewise.
2962 (unlink_if_set): Likewise.
2963 (write_psymtabs_to_index): Likewise.
2964 (save_gdb_index_command): Likewise.
2965 (_initialize_dwarf2_read): Install "save gdb-index"
2966 command.
2967 (create_all_comp_units): Initialize 'objfile' field of CU.
2968 (dwarf2_locate_sections): Check for .gdb_index.
2969 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2970 * symfile.h (dwarf2_initialize_objfile): Declare.
2971
58b6ab13
TT
29722010-07-13 Tom Tromey <tromey@redhat.com>
2973
2974 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2975 (basic_lookup_transparent_type): Likewise.
2976 * symfile.h (struct quick_symbol_functions)
2977 <pre_expand_symtabs_matching>: New field.
2978 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2979 (psym_functions): Update.
2980
0f5238ed
TT
29812010-07-13 Tom Tromey <tromey@redhat.com>
2982
2983 PR breakpoints/8357:
2984 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2985 * linespec.c (decode_line_1): Update comment. Call decode_label.
2986 (decode_label): New function.
2987 (symbol_found): Handle LOC_LABEL.
2988 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2989 domain. Call add_symbol_to_list.
2990
9aa1f1e3
TT
29912010-07-13 Tom Tromey <tromey@redhat.com>
2992
2993 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2994 * dwarf2loc.c (find_location_expression): Use
2995 dwarf2_per_cu_text_offset.
2996 (dwarf2_evaluate_loc_desc): Likewise.
2997 (dwarf2_loc_desc_needs_frame): Likewise.
2998 (compile_dwarf_to_ax): Likewise.
2999 (loclist_describe_location): Likewise.
3000 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3001 (dwarf2_per_cu_objfile): Update comment.
3002
953ac07e
JK
30032010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3004
3005 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3006 * p-lang.c (pascal_printstr): Likewise.
3007
f04e4012
TT
30082010-07-09 Tom Tromey <tromey@redhat.com>
3009
3010 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3011 'hint' if it is NULL.
3012
f4dfd9c0
HZ
30132010-07-09 Hui Zhu <teawater@gmail.com>
3014
3015 * source.c (print_source_lines_base): Add check for noprint.
3016
7e6e39e5
JB
30172010-07-08 Joel Brobecker <brobecker@adacore.com>
3018
3019 * python/python-config.py: Resync with Python 2.7 version of this
3020 script.
3021
76b8507d
JB
30222010-07-08 Joel Brobecker <brobecker@adacore.com>
3023
3024 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3025
797054e6
JB
30262010-07-07 Joel Brobecker <brobecker@adacore.com>
3027
3028 * NEWS: Create a new section for the next release branch.
3029 Rename the section of the current branch, now that it has
3030 been cut.
3031
c80befee 30322010-07-07 Joel Brobecker <brobecker@adacore.com>
3033
3034 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3035 * version.in: Bump version to 7.2.50.20100707-cvs.
3036
ac56253d
TT
30372010-07-07 Tom Tromey <tromey@redhat.com>
3038
3039 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3040 LOC_COMPUTED symbol.
3041 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3042 (dwarf2_loc_desc_needs_frame): Likewise.
3043 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3044 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3045 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3046 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3047 'offset' argument.
3048 (struct dwarf2_frame_cache) <text_offset>: New field.
3049 (dwarf2_frame_cache): Set new field.
3050 (dwarf2_frame_prev_register): Update.
3051 (dwarf2_frame_sniffer): Update.
3052 (dwarf2_frame_base_sniffer): Update.
3053 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3054
0cf6dd15
TJB
30552010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3056 Thiago Jung Bauermann <bauerman@br.ibm.com>
3057
3058 Support for hw accelerated condition watchpoints in booke powerpc.
3059
3060 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3061 and move to eval.c. Change callers.
3062 (insert_bp_location): Pass watchpoint condition in
3063 target_insert_watchpoint.
3064 (remove_breakpoint_1) Pass watchpoint condition in
3065 target_remove_watchpoint.
3066 (watchpoint_locations_match): Call
3067 target_can_accel_watchpoint_condition.
3068 * eval.c: Include wrapper.h.
3069 (fetch_subexp_value): Moved from breakpoint.c.
3070 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3071 Formatting fix.
3072 (can_use_watchpoint_cond_accel): New function.
3073 (calculate_dvc): Likewise.
3074 (num_memory_accesses): Likewise.
3075 (check_condition): Likewise.
3076 (ppc_linux_can_accel_watchpoint_condition): Likewise
3077 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3078 check_condition and calculate_dvc.
3079 (ppc_linux_remove_watchpoint): Likewise.
3080 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3081 ppc_linux_can_accel_watchpoint_condition
3082 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3083 condition.
3084 (debug_to_remove_watchpoint): Likewise.
3085 (debug_to_can_accel_watchpoint_condition): New function.
3086 (update_current_target): Set to_can_accel_watchpoint_condition.
3087 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3088 * target.h: Add opaque declaration for struct expression.
3089 (struct target_ops) <to_insert_watchpoint>,
3090 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3091 <to_can_accel_watchpoint_condition>: New member.
3092 condition. Update all callers and implementations.
3093 (target_can_accel_watchpoint_condition): New macro.
3094 * value.c (free_value_chain): New function.
3095 * value.h (fetch_subexp_value): New prototype.
3096 (free_value_chain): Likewise.
3097
2f2241f1
UW
30982010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3099
3100 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3101 from gdbarch_core_regset_sections also for .reg if present.
3102
3103 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3104 section size for .reg.
3105 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3106 (ppc_linux_vmx_regset_sections): Likewise.
3107 (ppc_linux_fp_regset_sections): Likewise.
3108 (ppc64_linux_vsx_regset_sections): New variable.
3109 (ppc64_linux_vmx_regset_sections): Likewise.
3110 (ppc64_linux_fp_regset_sections): Likewise.
3111 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3112 for current word size.
3113
1fd7cdc2
JB
31142010-07-06 Joel Brobecker <brobecker@adacore.com>
3115
3116 * server.c (myresume): Make static.
3117
11763c18
TT
31182010-07-06 Tom Tromey <tromey@redhat.com>
3119
3120 * configure, config.in: Rebuild.
3121 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3122 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3123
a6cc4789
AS
31242010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3125
3126 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3127 "clear".
3128
f9e9243a
UW
31292010-07-06 Ken Werner <ken.werner@de.ibm.com>
3130
3131 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3132 * gdbtypes.c (floatformats_ieee_half): New variable.
3133 * doublest.c (floatformat_from_length): Set format to
3134 gdbarch_half_format if length matches.
3135 * gdbarch.sh (half_bit): New architecture method.
3136 (half_format): Likewise.
3137 * gdbarch.h: Regenerate.
3138 * gdbarch.c: Likewise.
3139
4e5799b6
JK
31402010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3141 Joel Brobecker <brobecker@adacore.com>
3142
3143 Fix re-run of PIE executable, PR shlibs/11776.
3144 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3145 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3146
86e4bafc
JK
31472010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3148 Joel Brobecker <brobecker@adacore.com>
3149
3150 * auxv.c (memory_xfer_auxv): Update attach comment.
3151 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3152 svr4_relocate_main_executable.
3153 (svr4_solib_create_inferior_hook): Make the call to
3154 svr4_relocate_main_executable unconditional.
3155
3cd07d20
JK
31562010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 Joel Brobecker <brobecker@adacore.com>
3158
3159 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3160
0a1e94c7
JK
31612010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3162 Joel Brobecker <brobecker@adacore.com>
3163
3164 Fix attaching to PIEs prelinked on the disk after the process was
3165 started.
3166 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3167 Verify it against bfd_get_arch_size. Try to match arbitrary
3168 displacement for the phdrs comparison.
3169
5387647f
TT
31702010-07-02 Tom Tromey <tromey@redhat.com>
3171
3172 PR exp/11780:
3173 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3174 value as optimized-out.
3175
38b6c3b3
TJB
31762010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3177 Thiago Jung Bauermann <bauerman@br.ibm.com>
3178
3179 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3180 represent?" question in comment. Change comment to a proper sentence.
3181
a17ac5b0
TT
31822010-07-02 Ken Werner <ken.werner@de.ibm.com>
3183
3184 * c-valprint.c (c_val_print): Fix printing of character vectors.
3185
bddaafad
JK
31862010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3187
3188 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3189 create_breakpoint prototype.
3190
d41c0fc8
PA
31912010-07-01 Pedro Alves <pedro@codesourcery.com>
3192
3193 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3194 usefulness suggestion of multiple breakpoints at same location.
3195
dc10affe
PA
31962010-07-01 Pedro Alves <pedro@codesourcery.com>
3197
3198 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3199
cabe9ab6
PA
32002010-07-01 Pedro Alves <pedro@codesourcery.com>
3201
3202 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3203 (loclist_tracepoint_var_ref): Handle optimized out values.
3204
cce7e648
PA
32052010-07-01 Pedro Alves <pedro@codesourcery.com>
3206
3207 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3208 unnecessary space in string.
3209 * filesystem.c (_initialize_filesystem): Ditto.
3210 * frame.c (_initialize_frame): Ditto.
3211 * infcmd.c (step_once): Ditto.
3212 * infrun.c (_initialize_infrun): Ditto.
3213 * linux-nat.c (linux_child_follow_fork): Ditto.
3214 * maint.c (maintenance_deprecate): Ditto.
3215 * memattr.c (_initialize_mem): Ditto.
3216 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3217 * monitor.c (monitor_open): Ditto.
3218 * procfs.c (procfs_xfer_memory): Ditto.
3219 * reverse.c (bookmarks_info): Ditto.
3220 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3221 * stack.c (_initialize_stack): Ditto.
3222 * tracepoint.c (_initialize_tracepoint): Ditto.
3223 * xtensa-tdep.c (xtensa_supply_gregset,
3224 xtensa_regset_from_core_section): Ditto.
3225
b65c7efe
TT
32262010-07-01 Tom Tromey <tromey@redhat.com>
3227
3228 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3229 check_all_valid.
3230 * value.c (value_entirely_optimized_out): Invert result. Update
3231 for new function name.
3232
0fb4aa4b
PA
32332010-07-01 Pedro Alves <pedro@codesourcery.com>
3234
3235 Static tracepoints support.
3236
3237 * NEWS: Mention new support for static tracepoints.
3238 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3239 qXfer:statictrace:read.
3240 (New features in the GDB remote stub, GDBserver): Mention static
3241 tracepoints support using an UST based backend.
3242 (New commands): Mention "info static-tracepoint-markers" and
3243 "strace".
3244 * breakpoint.c (is_marker_spec): New.
3245 (is_tracepoint): Handle static tracepoints.
3246 (validate_commands_for_breakpoint): Static tracepoints can't do
3247 while-stepping.
3248 (static_tracepoints_here): New.
3249 (bpstat_what): Handle static tracepoints.
3250 (print_one_breakpoint_location, allocate_bp_location, mention):
3251 Ditto.
3252 (create_breakpoint_sal): Ditto.
3253 (decode_static_tracepoint_spec): New.
3254 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3255 `type_wanted'. Adjust. Handle static tracepoint marker
3256 locations.
3257 (break_command_1): Adjust.
3258 (update_static_tracepoint): New.
3259 (update_breakpoint_locations): Handle static tracepoints.
3260 (breakpoint_re_set_one): Handle static tracepoint marker
3261 locations.
3262 (disable_command, enable_command): Handle static tracepoints.
3263 (trace_command, ftrace_command): Adjust.
3264 (strace_command): New.
3265 (create_tracepoint_from_upload): Adjust.
3266 (save_breakpoints): Handle static tracepoints.
3267 (_initialize_breakpoint): Install the "strace" command.
3268 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3269 (struct breakpoint): New fields static_trace_marker_id and
3270 static_trace_marker_id_idx.
3271 (breakpoints_here_p): Declare.
3272 (create_breakpoint): Adjust.
3273 (static_tracepoints_here): Declare.
3274 * remote.c (struct remote_state) <static_tracepoints>: New field.
3275 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3276 (remote_static_tracepoint_marker_at): New.
3277 (remote_static_tracepoint_markers_by_strid): New.
3278 (remote_static_tracepoint_feature): New.
3279 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3280 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3281 (remote_supports_static_tracepoints): New.
3282 (remote_download_tracepoint): Download static tracepoints.
3283 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3284 remote_static_tracepoint_markers_by_strid.
3285 (_initialize_remote): Install set|show remote static-tracepoints,
3286 and set|show remote read-sdata-object commands.
3287 * target.c (update_current_target): Inherit and default
3288 to_static_tracepoint_marker_at, and
3289 to_static_tracepoint_markers_by_strid.
3290 * target.h (static_tracepoint_marker): Forward declare.
3291 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3292 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3293 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3294 (struct target_ops): New fields to_static_tracepoint_marker_at and
3295 to_static_tracepoint_markers_by_strid.
3296 (target_static_tracepoint_marker_at)
3297 (target_static_tracepoint_markers_by_strid): New.
3298 * tracepoint.c: Include source.h.
3299 (validate_actionline): Handle $_sdata.
3300 (struct collection_list): New field strace_data.
3301 (add_static_trace_data): New.
3302 (clear_collection_list): Clear strace_data.
3303 (stringify_collection_list): Account for a possible static trace
3304 data collection.
3305 (encode_actions_1): Encode an $_sdata collection.
3306 (parse_tracepoint_definition): Handle static tracepoints.
3307 (parse_static_tracepoint_marker_definition): New.
3308 (release_static_tracepoint_marker): New.
3309 (print_one_static_tracepoint_marker): New.
3310 (info_static_tracepoint_markers_command): New.
3311 (sdata_make_value): New.
3312 (_initialize_tracepoint): Create the $_sdata convenience variable.
3313 Add the "info static-tracepoint-markers" command.
3314 Mention $_sdata in the "collect" command's help output.
3315 * tracepoint.h (struct static_tracepoint_marker): New.
3316 (parse_static_tracepoint_marker_definition)
3317 (release_static_tracepoint_marker): Declare.
3318 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3319 * python/py-breakpoint.c (bppy_new): Adjust.
3320
aac63f0f
JB
33212010-06-30 Joel Brobecker <brobecker@adacore.com>
3322
3323 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3324 including Python.h.
3325
e68994a7
DE
33262010-06-29 Doug Evans <dje@google.com>
3327
3863f96c
DE
3328 PR gdb/11702
3329 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3330 DW_AT_external is present.
3331
254e6b9e
DE
3332 PR gdb/11702
3333 * NEWS: Add entry.
3334 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3335 create a symbol for the field and record the value.
3336 (new_symbol): Handle DW_TAG_member.
3337 * gdbtypes.c (field_is_static): Remove FIXME.
3338 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3339 only ignore LOC_CONST symbols that are enums.
3340
6e70227d
DE
3341 * dwarf2read.c: Remove trailing whitespace.
3342
e68994a7
DE
3343 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3344 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3345 (struct main_type, field loc): Delete dwarf_block.
3346 (FIELD_DWARF_BLOCK): Delete.
3347 (SET_FIELD_DWARF_BLOCK): Delete.
3348 (TYPE_FIELD_DWARF_BLOCK): Delete.
3349 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3350 Update.
3351
a480d2f6
HZ
33522010-06-29 Hui Zhu <teawater@gmail.com>
3353
3354 * record.c (set_record_pic_cmdlist,
3355 show_record_pic_cmdlist): New variables.
3356 (set_record_pic_command,
3357 show_record_pic_command): New functions.
3358 (record_pic_function, record_pic_line, record_pic_enum,
3359 set_record_pic_type, record_pic_hide_nofunction,
3360 record_pic_hide_nosource, record_pic_hide_same): New variables.
3361 (record_pic_fputs): New function.
3362 (function_list, node_list, edge_list): New struct.
3363 (function_list, node_list, edge_list): New variables.
3364 (record_pic_cleanups, record_pic_node,
3365 record_pic_edge, cmd_record_pic): New functions.
3366 (_initialize_record): Add new commands for record pic.
3367
a0d7a4ff
JK
33682010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3369
3370 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3371 ALLOCATE_CPLUS_STRUCT_TYPE.
3372
595939de 33732010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3374 Tom Tromey <tromey@redhat.com>
3375 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3376
3377 * value.c (pack_unsigned_long): New function.
3378 (value_from_ulongest): New function.
3379 * value.h (value_from_ulongest): Declare.
3380 * python/python.c (_initialize_python): Call
3381 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3382 * python/python-internal.h: Define thread_object.
3383 (gdbpy_inferiors, gdbpy_selected_thread)
3384 (frame_info_to_frame_object, create_thread_object)
3385 (find_thread_object, find_inferior_object)
3386 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3387 (gdbpy_is_value_object, get_addr_from_python): Declare.
3388 * python/py-value.c (builtin_type_upylong): Define.
3389 (convert_value_from_python): Add logic for ulongest.
3390 (gdbpy_is_value_object): New function.
3391 * python/py-utils.c (get_addr_from_python): New function.
3392 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3393 (gdbpy_selected_frame): Use PyObject over frame_info.
3394 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3395 py-infthread.
3396 (SUBDIR_PYTHON_SRCS): Likewise.
3397 (py-inferior.o): New Rule.
3398 (py-infthread.o): New Rule.
3399 * python/py-inferior.c: New File.
3400 * python/py-infthread.c: New File.
3401
98751a41
JK
34022010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3403
3404 * c-typeprint.c (c_type_print_base): For no fields check include also
3405 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3406 * dwarf2read.c (struct typedef_field_list)
3407 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3408 (dwarf2_add_typedef): New.
3409 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3410 Copy also FI.TYPEDEF_FIELD_LIST.
3411 * gdbtypes.h (struct typedef_field)
3412 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3413 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3414 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3415
41f62f39
JK
34162010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3417
3418 * cp-namespace.c (cp_lookup_nested_type): New variable
3419 concatenated_name. Turn the current return condition into a reverse
3420 one. Call also lookup_static_symbol_aux on the constructed qualified
3421 name.
3422 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3423 other files into a called ...
3424 (lookup_static_symbol_aux): ... new function here.
3425 * symtab.h (lookup_static_symbol_aux): New prototype.
3426 * valops.c (value_maybe_namespace_elt): Call also
3427 lookup_static_symbol_aux if we failed otherwise.
3428
af53d231
JK
34292010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 Fix PR c++/11703 and PR gdb/1448.
3432 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3433 FIRST_ITER check.
3434
9655fd1a
JK
34352010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3436
3437 Fix modification of cplus_struct_default.
3438 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3439 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3440 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3441
9279c692
JB
34422010-06-28 Joel Brobecker <brobecker@adacore.com>
3443
3444 * NEWS: Add entry announcing the python directory.
3445
d3f41bb1
TT
34462010-06-28 Tom Tromey <tromey@redhat.com>
3447
3448 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3449
23e7acfb
DE
34502010-06-28 Doug Evans <dje@google.com>
3451
3452 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3453 All callers updated.
3454
6036c742
JK
34552010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3458 obstack_begin after each obstack_free.
3459
9f18a3b3
DE
34602010-06-27 Doug Evans <dje@google.com>
3461
1596cb5d
DE
3462 * value.c (value_static_field): Use `switch' instead of `if'.
3463 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3464
9f18a3b3
DE
3465 * valops.c (search_struct_field): Fix typo in error message.
3466
43dabe42
UW
34672010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3468
3469 * dwarf2expr.c (execute_stack_op): Place preprocessor
3470 directives at the start of the source line.
3471
0f3bb72e
PH
34722010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3473
6036c742
JK
3474 * defs.h (make_command_stats_cleanup): Declare.
3475 (set_display_time): Declare.
3476 (set_display_space): Declare.
3477 * event-top.c (command_handler): Use make_command_stats_cleanup.
3478 * main.c (display_time, display_space): Move definitions to utils.c.
3479 (captured_main): Use make_command_stats_cleanup to get start-up
3480 statistics.
3481 Use set_display_time and set_display_space for processing OPT_STATISTICS
3482 case.
3483 * maint.c (maintenance_time_display): Use set_display_time.
3484 (maintenance_space_display): Use set_display_space.
3485 * top.c (execute_command): Remove obsolete 'maint time' code.
3486 (command_loop): Use make_command_stats_cleanup.
3487 * utils.c (struct cmd_stats): Structure for storing initial time
3488 and space usage.
3489 (display_time, display_space): Move definitions here from utils.c.
3490 (set_display_time): New function.
3491 (set_display_space): New function.
3492 (make_command_stats_cleanup): New function.
3493 (report_command_stats): New auxiliary function for
3494 make_command_stats_cleanup.
0f3bb72e 3495
070c8028
UW
34962010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3497
3498 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3499 hosts where CORE_ADDR is long long.
3500
bc9f0842
TT
35012010-06-25 Tom Tromey <tromey@redhat.com>
3502
3503 PR python/10808:
3504 * python/python.c (execute_gdb_command): Add keywords. Accept
3505 "to_string" argument.
3506 (struct restore_ui_file_closure): New.
3507 (restore_ui_file): New function.
3508 (make_cleanup_restore_ui_file): Likewise.
3509 (GdbMethods) <execute>: Update.
3510
c0cc4c83
UW
35112010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3512
3513 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3514 during inferior call stack frame setup.
3515
f1d8ee66
UW
35162010-06-25 Ken Werner <ken.werner@de.ibm.com>
3517
3518 * solib-spu.c: Include "exception.h".
3519 (ocl_program_data_key): New variable.
3520 (append_ocl_sos): New function.
3521 (ocl_enable_break): Likewise.
3522 (spu_current_sos): Call append_ocl_sos.
3523 (spu_solib_loaded): Call ocl_enable_break.
3524 (_initialize_spu_solib): Register ocl_program_data_key.
3525
19c0c0f8
UW
35262010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3527
3528 * cp-support.c (reset_directive_searched): New function.
3529 (make_symbol_overload_list_using): Prevent recursive calls.
3530
0f6a939d
PM
35312010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3532
3533 * printcmd.c (print_variable_and_value): Print error message on
3534 caught exception.
3535
f2c7657e
UW
35362010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3537
3538 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3539 of stack values.
3540 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3541 "value" member.
3542 (dwarf_expr_push): Change input type to ULONGEST.
3543 (dwarf_expr_fetch): Change return type to ULONGEST.
3544 (dwarf_expr_fetch_address): Add prototype.
3545 (dwarf2_read_address): Remove prototype.
3546 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3547 Truncate stack values to ctx->addr_size bytes.
3548 (dwarf_expr_fetch): Change return value to ULONGEST.
3549 (dwarf_expr_fetch_address): New function.
3550 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3551 when appropriate. Update for struct dwarf_expr_piece changes.
3552 (dwarf2_read_address): Remove.
3553 (unsigned_address_type): Remove.
3554 (signed_address_type): Remove.
3555 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3556 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3557 values. Perform operations on ULONGEST instead of on GDB values,
3558 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3559 values and DW_OP_deref results as unsigned integers.
3560 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3561 changes.
3562 (write_pieced_value): Likewise.
3563 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3564 dwarf_expr_fetch when appropriate.
3565 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3566 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3567 instead of dwarf_expr_fetch when appropriate.
3568
b1d61bc9
PM
35692010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3570
3571 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3572
b14285f6
JB
35732010-06-24 Joel Brobecker <brobecker@adacore.com>
3574
3575 * python/python.c (_initialize_python): Add new "constant"
3576 PYTHONDIR in gdb module. Insert this path at the head of
3577 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3578 exec its __init__.py script if it exists in that directory.
3579
fd60dc69
KB
35802010-06-24 Kevin Buettner <kevinb@redhat.com>
3581
3582 * rx-tdep.c (RX_ACC_REGNUM): Define.
3583 (RX_NUM_REGS): Redefine to 26.
3584 (rx_register_name): Add register "acc". Change order of several
3585 registers. Change name of "vct" register to "fintv" to match RX
3586 documentation.
3587 (rx_register_type): Add case for RX_ACC_REGNUM.
3588
18430289
TT
35892010-06-24 Tom Tromey <tromey@redhat.com>
3590
3591 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3592
40618926
JK
35932010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3594 Tom Tromey <tromey@redhat.com>
3595
3596 Fix GDB startup on readonly filesystem.
3597 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3598
628fe4e4
JK
35992010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3600 Pedro Alves <pedro@codesourcery.com>
3601
3602 Fix PR 9436.
3603 * breakpoint.c (handle_jit_event): New function.
3604 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3605 jit, err, table and bs_class. New variables shlib_event, jit_event,
3606 this_action and bptype. Change bs_class assignments to this_action
3607 assignments. new unhandled bptype internal error. Move here
3608 shlib_event and jit_event handling from handle_inferior_event.
3609 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3610 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3611 BPSTAT_WHAT_CHECK_JIT.
3612 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3613 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3614 (handle_inferior_event): Reinitialize frame and gdbarch after
3615 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3616 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3617 gdbarch when frame gets reinitialized.
3618
f1421989
HZ
36192010-06-24 Hui Zhu <teawater@gmail.com>
3620
3621 * printcmd.c (ui_printf): New function.
3622 (printf_command): Call ui_printf.
3623 (_initialize_printcmd): New command "eval".
3624
d03285ec
UW
36252010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3626
3627 * infrun.c (handle_inferior_event): Handle presence of single-step
3628 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3629 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3630 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3631 * breakpoint.c (detach_single_step_breakpoints): New function.
3632 (detach_breakpoints): Call it.
3633 (cancel_single_step_breakpoints): New function.
3634 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3635
3636 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3637 (spu_gdbarch_init): Install it.
3638
38f6b338
JK
36392010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3640
3641 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3642 * configure: Regenerate.
3643
bb08c432
HZ
36442010-06-22 Hui Zhu <teawater@gmail.com>
3645
3646 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3647 (i386_process_record): Ditto.
3648 * record.c (record_memory_query): New variable.
3649 (_initialize_record): New command "set record memory-query".
3650 * record.h (record_memory_query): New extern.
3651
b55078be
DE
36522010-06-21 Doug Evans <dje@google.com>
3653
3654 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3655 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3656 (i386_syscall_p): Change type of lengthp to int.
3657 (i386_displaced_step_fixup): Handle kernels that run one past a
3658 syscall insn.
3659 * i386-linux-tdep.c (i386_linux_init_abi): Use
3660 i386_displaced_step_copy_insn instead of
3661 simple_displaced_step_copy_insn.
3662
75079b2b
TT
36632010-06-21 Tom Tromey <tromey@redhat.com>
3664
3665 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3666 (dwarf_type_encoding_name): Likewise.
3667
b00fdb78
TT
36682010-06-21 Tom Tromey <tromey@redhat.com>
3669
3670 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3671 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3672 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3673 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3674 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3675 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3676 * dwarf2read.c (tag_type_to_type): Create a new error type on
3677 failure.
3678 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3679 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3680
84951ab5
MS
36812010-06-21 Michael Snyder <msnyder@vmware.com>
3682
889bf7c5 3683 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3684 not add_abbrev_prefix_cmd, for "enable breakpoints".
3685
d4a087c7
UW
36862010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3687
3688 * dwarf2loc.c (find_location_expression): Add relocation offset
3689 to base-address-selection entry base addresses. Read addresses
3690 (and offsets) as signed/unsigned integers, depending on the
3691 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3692 (loclist_describe_location): Likewise.
3693 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3694 unsigned integer. Do not call dwarf2_read_address.
3695 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3696
13def385
UW
36972010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3698
3699 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3700 value instead of hard-coded SPU_LS_SIZE.
3701 (spu_software_single_step): Likewise.
3702 * spu-tdep.h (SPU_LS_SIZE): Remove.
3703
d2ed6730
UW
37042010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3705
3706 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3707 limit on local store memory accesses.
3708 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3709 * spu-tdep.c (spu_lslr): Remove.
3710 (spu_pointer_to_address): Do not truncate addresses.
3711 (spu_integer_to_address): Likewise.
3712 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3713 * spu-tdep.h: Add comments.
3714 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3715 (SPU_OVERLAY_LMA): Define.
3716
6aed2dbc
SS
37172010-06-18 Stan Shebs <stan@codesourcery.com>
3718
a61408f8
SS
3719 * osdata.c (get_osdata): Warn separately if target does not report
3720 type list.
3721 (info_osdata_command): Allow empty type, report error if target
3722 does not return available types of OS data.
3723 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3724 types if no annex supplied.
3725
6aed2dbc
SS
3726 * thread.c (thread_id_make_value): Make a value representing the
3727 current thread.
3728 (_initialize_thread): Create $_thread.
3729
ec61707d
JB
37302010-06-17 Joel Brobecker <brobecker@adacore.com>
3731
3732 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3733 last local variable declaration. No real code change.
3734
60606b2c
TT
37352010-06-17 Tom Tromey <tromey@redhat.com>
3736
3737 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3738 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3739 temporary obstack.
3740
65d79d4b
SDJ
37412010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3742 Jan Kratochvil <jan.kratochvil@redhat.com>
3743
3744 * breakpoint.c: Include parser-defs.h.
3745 (watchpoint_exp_is_const): New function.
3746 (watch_command_1): Call watchpoint_exp_is_const to check
3747 if the expression is constant.
3748
0407b3f1
AS
37492010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3750
3751 * configure.ac: Check for RDYNAMIC also for cross builds.
3752 * configure: Regenerate.
3753
98d64339
PA
37542010-06-15 Pedro Alves <pedro@codesourcery.com>
3755
3756 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3757 (SFILES): Remove solib-null.c, add solib-target.c.
3758 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3759 (ALLDEPFILES): Remove solib-target.c.
3760 * solib-target.c (_initialize_solib_target): Set
3761 current_target_so_ops to solib_target_so_ops if not already set.
3762 * solib-null.c: Delete.
3763
6a271cae
PA
37642010-06-14 Pedro Alves <pedro@codesourcery.com>
3765
3766 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3767 bytecode.
3768
1e9beacb
UW
37692010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3770
3771 * cp-valprint.c (cp_print_static_field): Members of
3772 dont_print_stat_array_obstack are of type "struct type *".
3773 (_initialize_cp_valprint): Likewise.
3774
21a176fb
UW
37752010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3776
3777 * frame.c (frame_register_unwind): Do not access contents
3778 of "optimized out" unwound register value.
3779
25b524e8
JK
37802010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 * ada-lang.h (ada_print_type): Make varstring const.
3783 * ada-typeprint.c (print_func_type): Make name const.
3784 (ada_print_type): Make varstring const.
3785 * c-lang.h (c_print_type): Make varstring const.
3786 * c-typeprint.c (c_print_type): Likewise.
3787 * f-lang.h (f_print_type): Likewise.
3788 * f-typeprint.c (f_print_type): Likewise.
3789 * jv-lang.h (java_print_type): Likewise.
3790 * jv-typeprint.c (java_print_type): Likewise.
3791 * language.c (unk_lang_print_type): Likewise.
3792 * language.h (struct language_defn) <la_print_type>: Likewise.
3793 * m2-lang.h (m2_print_type): Likewise.
3794 * m2-typeprint.c (m2_print_type): Likewise.
3795 * p-lang.h (pascal_print_type): Likewise.
3796 * p-typeprint.c (pascal_print_type): Likewise.
3797
d914c394
SS
37982010-06-11 Stan Shebs <stan@codesourcery.com>
3799
3800 Add per-operation permission flags.
3801
3802 * target.h (struct target_ops): New method to_set_permissions.
3803 (target_set_permissions): New macro.
3804 (target_insert_breakpoint): Change macro to function.
3805 (target_remove_breakpoint): Ditto.
3806 (target_stop): Ditto.
3807 (may_write_registers): Declare.
3808 (may_write_memory): Declare.
3809 (may_insert_breakpoints): Declare.
3810 (may_insert_tracepoints): Declare.
3811 (may_insert_fast_tracepoints): Declare.
3812 (may_stop): Declare.
3813 * target.c (may_write_registers, may_write_registers_1): New globals.
3814 (may_write_memory, may_write_memory_1): New globals.
3815 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3816 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3817 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3818 globals.
3819 (may_stop, may_stop_1): New global.
3820 (target_xfer_partial): Test for write permission.
3821 (target_store_registers): Ditto.
3822 (target_insert_breakpoint): New function.
3823 (target_remove_breakpoint): New function.
3824 (target_stop): New function.
3825 (_initialize_targets): Add new set/show variables.
3826 (set_write_memory_permission): New function.
3827 (update_target_permissions): New function.
3828 (set_target_permissions): New function.
3829 (update_current_target): Default to_set_permissions.
3830 (_initialize_targets): Use new globals and setter function.
3831 * tracepoint.c (start_tracing): Test for permission.
3832 * inferior.h (update_observer_mode): Declare.
3833 * infrun.c (non_stop_1): Define earlier.
3834 (observer_mode, observer_mode_1): New globals.
3835 (set_observer_mode, show_observer_mode): New functions.
3836 (update_observer_mode): New function.
3837 (_initialize_infrun): Define "set observer" command.
3838 * remote.c (PACKET_QAllow): New optional packet.
3839 (remote_protocol_features): Add QAllow.
3840 (remote_set_permissions): New function.
3841 (remote_start_remote): Call it.
3842 (init_remote_ops): Add it to target vector.
3843 (_initialize_remote): Add config command for QAllow.
3844
aec5aa8b
TT
38452010-06-11 Tom Tromey <tromey@redhat.com>
3846
3847 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3848 DW_AT_vtable_elem_location even when GCC extension is seen.
3849
0e03807e
TT
38502010-06-11 Tom Tromey <tromey@redhat.com>
3851
3852 PR gdb/9977, PR exp/11636:
3853 * value.h (value_offset): Update.
3854 (struct lval_funcs) <check_validity>: New field.
3855 <copy_closure>: Make argument const.
3856 (value_computed_closure): Update.
3857 (value_contents_for_printing): Declare.
3858 (value_bits_valid): Likewise.
3859 (val_print): Likewise.
3860 (set_value_component_location): Update.
3861 (value_entirely_optimized_out): Declare.
3862 * value.c (value_offset): Argument now const.
3863 (require_not_optimized_out): New function.
3864 (value_contents_for_printing): New function.
3865 (value_contents_all): Call require_not_optimized_out.
3866 (value_contents): Likewise.
3867 (value_bits_valid): New function.
3868 (value_computed_closure): Argument now const.
3869 (set_value_component_location): Make 'whole' argument const.
3870 (value_entirely_optimized_out): New function.
3871 (value_bitsize): Argument now 'const'.
3872 (value_bitpos): Likewise.
3873 (value_type): Likewise.
3874 * valprint.h (val_print_array_elements): Update.
3875 * valprint.c (val_print): Add 'val' argument. Use
3876 valprint_check_validity.
3877 (valprint_check_validity): New function.
3878 (value_check_printable): Use value_entirely_optimized_out.
3879 (common_val_print): Update.
3880 (value_print): Likewise.
3881 (val_print_array_elements): Add 'val' argument.
3882 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3883 value_bits_valid. Reinit frame cache for lval_computed.
3884 * sh64-tdep.c (sh64_do_register): Update.
3885 * scm-valprint.c (scm_val_print): Add 'val' argument.
3886 * scm-lang.h (scm_val_print): Update.
3887 * python/python.h (apply_val_pretty_printer): Update.
3888 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3889 argument. Call set_value_component_location.
3890 * printcmd.c (print_scalar_formatted): Update.
3891 * p-valprint.c (pascal_val_print): Add 'val' argument.
3892 (pascal_object_print_value_fields): Likewise.
3893 (pascal_object_print_value): Likewise.
3894 (pascal_object_print_static_field): Update.
3895 * p-lang.h (pascal_val_print): Update.
3896 (pascal_object_print_value_fields): Update.
3897 * mt-tdep.c (mt_registers_info): Update.
3898 * mi/mi-main.c (get_register): Update.
3899 (mi_cmd_data_evaluate_expression): Use common_val_print.
3900 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3901 (m2_print_unbounded_array): Likewise.
3902 (m2_val_print): Likewise.
3903 * m2-lang.h (m2_val_print): Update.
3904 * language.h (struct language_defn) <la_val_print>: Add 'val'
3905 argument.
3906 (LA_VAL_PRINT): Likewise.
3907 * language.c (unk_lang_val_print): Add 'val' argument.
3908 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3909 (java_val_print): Likewise.
3910 * jv-lang.h (java_val_print): Add 'val' argument.
3911 * infcmd.c (default_print_registers_info): Update.
3912 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3913 (f77_print_array): Likewise.
3914 (f_val_print): Likewise.
3915 * f-lang.h (f_val_print): Add 'val' argument.
3916 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3917 value_bitpos.
3918 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3919 set_value_optimized_out.
3920 (write_pieced_value): Use value_bitsize and value_bitpos.
3921 <default>: Don't exit loop.
3922 (check_pieced_value_validity): New function.
3923 (pieced_value_funcs): Reference check_pieced_value_validity,
3924 check_pieced_value_invalid.
3925 (copy_pieced_value_closure): Update.
3926 (check_pieced_value_bits): New function.
3927 (check_pieced_value_invalid): New function.
3928 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3929 (d_val_print): Likewise.
3930 * d-lang.h (d_val_print): Update.
3931 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3932 (cp_print_value_fields_rtti): Likewise.
3933 (cp_print_value): Likewise.
3934 (cp_print_static_field): Update.
3935 * c-valprint.c (c_val_print): Add 'val' argument.
3936 (c_value_print): Update.
3937 * c-lang.h (c_val_print): Update.
3938 (cp_print_value_fields): Likewise.
3939 (cp_print_value_fields_rtti): Likewise.
3940 * ada-valprint.c (struct ada_val_print_args): Remove.
3941 (val_print_packed_array_elements): Add 'val' argument.
3942 (ada_val_print): Likewise. Rewrite.
3943 (ada_val_print_stub): Remove.
3944 (ada_val_print_array): Add 'val' argument.
3945 (ada_val_print_1): Likewise.
3946 (print_variant_part): Likewise.
3947 (ada_value_print): Update.
3948 (print_record): Add 'val' argument.
3949 (print_field_values): Likewise.
3950 * ada-lang.h (ada_val_print): Update.
3951
3cf03773
TT
39522010-06-11 Tom Tromey <tromey@redhat.com>
3953
3954 * vec.h (VEC_cleanup): New macro.
3955 (DEF_VEC_ALLOC_FUNC_I): Update.
3956 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3957 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3958 * dwarf2loc.c (struct axs_var_loc): Remove.
3959 (unimplemented): New function.
3960 (translate_register): Likewise.
3961 (access_memory): Likewise.
3962 (compile_dwarf_to_ax): Likewise.
3963 (dwarf2_tracepoint_var_loc): Remove.
3964 (dwarf2_tracepoint_var_access): Likewise.
3965 (dwarf2_tracepoint_var_ref): Likewise.
3966 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3967 (loclist_tracepoint_var_ref): Likewise.
3968 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3969 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3970 require_composition. No longer static.
3971 (execute_stack_op): Update.
3972 * ax-gdb.h (trace_kludge): Declare.
3973
2bdf28a0
JK
39742010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3975
3976 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3977 (should_be_inserted): Return zero also on NULL OWNER.
3978 (breakpoint_program_space_exit): New OWNER comment.
3979 (insert_breakpoint_locations): Extend comment for OWNER.
3980 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3981 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3982 New OWNER comment.
3983 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3984 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3985 (bpstat_check_location): New assert on OWNER.
3986 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3987 and B initializations to the code block. New assert on them.
3988 (print_one_breakpoint_location): New OWNER comment.
3989 (watchpoint_locations_match): Assert on OWNER.
3990 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3991 initializations to the code block. New assert on OWNER.
3992 (set_breakpoint_location_function): New assert on OWNER.
3993 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3994 (bp_location_compare, update_global_location_list)
3995 (update_global_location_list): New OWNER comment.
3996
5b9a19af
UW
39972010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3998
3999 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4000
669211f5
UW
40012010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4002
4003 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4004 (lin_thread_get_thread_signals): Remove prototype.
4005 (GET_THREAD_SIGNALS): Remove.
4006 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4007 * linux-thread-db.c (check_thread_signals): Directly call
4008 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4009
b7a8b4ef
UW
40102010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4011
4012 * gregset.h (GDB_FPXREGSET_T): Remove.
4013 (gdb_fpxregset_t): Likewise.
4014 (supply_fpxregset): Remove prototype.
4015 (fill_fpxregset): Likewise.
4016 * i386-linux-nat.c (supply_fpxregset): Remove.
4017 (fill_fpxregset): Likewise.
4018 (fetch_fpxregs): Inline supply_fpxregset call.
4019 (store_fpxregs): Inline fill_fpxregset call.
4020
4021 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4022 * config/i386/nm-linux.h: Remove file.
4023
82892036
MS
40242010-06-09 Michael Snyder <msnyder@vmware.com>
4025
4026 * target.c (update_current_target): Fix spelling error in comment.
4027 (target_mourn_inferior): Fix spelling error in error message.
4028
5ddb52fa
PH
40292010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4030
4031 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4032 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4033
0f2caa1b
MS
40342010-06-08 Michael Snyder <msnyder@vmware.com>
4035
4036 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4037
3bebe2f2
JK
40382010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 * configure.ac <"${have_libpython}" != no>: New workaround of
4041 python#4434.
4042 * configure: Regenerate.
4043
eaaffdf4
HZ
40442010-06-08 Hui Zhu <teawater@gmail.com>
4045
4046 * record.c (record_wait): Move signal out of replay code.
4047
5c631832
JK
40482010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
4050 Fix PR 10640.
4051 * dwarf2-frame.c (no_dwarf_call): New function.
4052 (execute_stack_op): Set CTX->DWARF_CALL.
4053 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4054 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4055 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4056 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4057 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4058 (needs_frame_dwarf_call): New function.
4059 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4060 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4061 Update the comment. Move variables die, offset and error call to ...
4062 (follow_die_ref): ... a new function.
4063 (dwarf2_fetch_die_location_block): New function.
4064 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4065
17ea53c3
JK
40662010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4067
4068 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4069 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4070 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4071 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4072 this change.
4073 (struct needs_frame_baton): New field per_cu.
4074 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4075 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4076
245040d7
SW
40772010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4078
4079 * cp-support.c (make_symbol_overload_list_namespace): Only search
4080 static and global blocks.
4081 (make_symbol_overload_list_block): New function.
4082 (make_symbol_overload_list): Separate namespace search from block
4083 search.
4084 (make_symbol_overload_list_qualified): Use
4085 make_symbol_overload_list_block.
4086
4c3376c8
SW
40872010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4088
4089 * value.h: Created oload_search_type enum.
4090 (find_overload_match): Use oload_search_type enum.
4091 * valops.c (find_overload_match): Support combined member and
4092 non-member search.
4093 * eval.c (evaluate_subexp_standard): Calls to
4094 find_overload_match now use oload_search_type enum.
4095 (oload_method_static): Verify index is a proper value.
4096 * valarith.c (value_user_defined_cpp_op): Search for and handle
4097 both member and non-member operators.
4098 (value_user_defined_cpp_op): New function.
4099 (value_user_defined_op): New function.
4100 (value_x_unop): Use value_user_defined_op.
4101 (value_x_binop): Ditto.
4102 * cp-support.c (make_symbol_overload_list_using): Added block
4103 iteration.
4104 Add check for namespace aliases and imported declarations.
4105
ee55da67
JK
41062010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4107
4108 * breakpoint.h (owner): Extend the comment.
4109
1a2ab13a
JK
41102010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4111
4112 Clear stale specific bp_location from former whole breakpoint.
4113 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4114 code ...
4115 (free_bp_location): ... here. Rename there the called function to
4116 bpstat_remove_bp_location_callback.
4117 (bpstat_remove_breakpoint_callback): Rename to ...
4118 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4119 to struct bp_location. Change the called function to
4120 bpstat_remove_bp_location. Create new declaration for the function.
4121 (bpstat_remove_breakpoint): Rename to ...
4122 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4123 code for the new parameter type.
4124
16d6b4b7
NS
41252010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4126
4127 * README: Make version-agnostic.
4128
7e314c57
JK
41292010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4130
4131 Fix duplicate types for single DIE.
4132 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4133 set_die_type.
4134 (read_array_type): Remove type initialization. Recheck get_die_type
4135 after initial die_type. Move set_die_type before set_descriptive_type.
4136 (read_set_type): New variable domain_type. Recheck get_die_type after
4137 initial die_type. Move attr initialization later.
4138 (read_tag_pointer_type, read_tag_reference_type): New variable
4139 target_type. Recheck get_die_type after initial die_type.
4140 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4141 die_type and die_containing_type.
4142 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4143 Recheck get_die_type after initial die_type.
4144 (read_subrange_type): Recheck get_die_type after initial die_type.
4145 Move set_die_type before set_descriptive_type.
4146 (set_die_type): Extend the function comment. Call complaint if DIE has
4147 some type already set.
4148
2f296114
VP
41492010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4150
4151 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4152 for current naming of thread groups (iN, not N).
4153
554794dc
SDJ
41542010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4155
4156 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4157 * parse.c (operator_length): Likewise.
4158 (operator_length_standard): Likewise.
4159 * parser-defs.h (operator_length): Likewise.
4160 (operator_length_standard): Likewise.
4161 (struct exp_descriptor <operator_length>): Likewise.
4162
967cf477
DE
41632010-06-04 Doug Evans <dje@google.com>
4164
bddaacb9 4165 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4166 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4167 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4168 * python/python.c (gdbpy_enabled_cst): Define.
4169 (_initialize_python): Initialize gdbpy_enabled_cst.
4170 * NEWS: Add entry.
4171
2dec564e
JK
41722010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4173
4174 * breakpoint.c (update_global_location_list): Fix comment typo.
4175
44b5680a
HZ
41762010-06-04 Hui Zhu <teawater@gmail.com>
4177
4178 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4179
e7a30f46
DE
41802010-06-03 Doug Evans <dje@google.com>
4181
4182 * configure.ac: Don't fail if python is unusable when
4183 configured with --with-python=auto.
4184 * configure: Regenerate.
4185
84b4420f
SW
41862010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4187
889bf7c5 4188 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4189
df178451
PM
41902010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4191
4192 * valprint.h (get_array_bounds): Change low and high parameter types
4193 to LONGEST *.
0407b3f1 4194 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4195 compute bounds.
4196 (val_print_array_elements): Adapt to change above.
4197 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4198 * p-valprint.c (pascal_val_print): Likewise.
4199
fd5700c7
JK
42002010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4201
4202 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4203 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4204 .F08.
4205
f55ee35c
JK
42062010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4207
4208 Support DW_TAG_module as separate namespaces.
4209 * dwarf2read.c (typename_concat): New parameter physname.
4210 (read_module_type): New function and declaration.
4211 (scan_partial_symbols): Scan also DW_TAG_module children.
4212 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4213 to typename_concat backward compatible physname value 0.
4214 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4215 backward compatible physname value 0.
4216 (add_partial_module, read_module): Remove FIXME comment.
4217 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4218 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4219 DIEs under DW_TAG_module.
4220 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4221 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4222 && physname and return there instead of just setting NAME. Extend
4223 the main block for language_fortran. Pass physname parameter to the
4224 typename_concat call.
4225 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4226 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4227 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4228 missing from SYMBOL_SET_NAMES in the language_fortran case.
4229 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4230 variables.
4231 (read_type_die) <DW_TAG_module>: New.
4232 (MAX_SEP_LEN): Increase to 7.
4233 (typename_concat): New parameter physname. New variable lead. Support
4234 also language_fortran.
4235 * f-exp.y (yylex): Consider : also as a symbol name character class.
4236 * f-lang.c: Include cp-support.h.
4237 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4238 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4239 f_word_break_characters and f_make_symbol_completion_list.
4240 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4241 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4242 * symtab.c (symbol_init_language_specific): Support language_fortran.
4243 (symbol_find_demangled_name): New comment on language_fortran.
4244 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4245 for language_fortran.
4246 (lookup_symbol_aux_local): Check imports also for language_fortran.
4247 (default_make_symbol_completion_list): Rename to ...
4248 (default_make_symbol_completion_list_break_on): ... this name. New
4249 parameter break_on, use it.
4250 (default_make_symbol_completion_list): New stub.
4251 * symtab.h (default_make_symbol_completion_list_break_on): New
4252 prototype.
4253
cb91c06a
JB
42542010-06-02 Joel Brobecker <brobecker@adacore.com>
4255
4256 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4257 to error.
4258
5c315b68
JK
42592010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4260
4261 * dwarf2read.c (typename_concat): Add const to the variable sep.
4262
9eae7c52
TT
42632010-06-02 Tom Tromey <tromey@redhat.com>
4264
4265 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4266 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4267 type is const. Add 'def' argument. Add missing operators, remove
4268 unhandled ones.
4269 (decode_locdesc): Update.
4270 (dwarf2_always_disassemble): New global.
4271 (show_dwarf2_always_disassemble): New function.
4272 (_initialize_dwarf2_read): Add always-disassemble.
4273 (dwarf2_per_cu_offset_size): New function.
4274 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4275 (piece_end_p): New function.
4276 (locexpr_describe_location_piece): Replace 'size' argument with
4277 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4278 some constants. Remove errors.
4279 (disassemble_dwarf_expression): New function.
4280 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4281 Add 'offset_size' argument.
4282 (loclist_describe_location): Change output formatting.
4283 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4284
7d3fe98e
SW
42852010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4286
4287 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4288 anonymous type case.
4289
e77813c8
PM
42902010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4291
4292 * dwarf2read.c (read_subrange_type): Handle missing base type
4293 according to Dwarf-2 specifications.
4294
7cf3118a
SDJ
42952010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4296
4297 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4298 BINOP_EXCL.
4299 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4300 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4301 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4302 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4303 UNOP_CHMAX, UNOP_CHMIN.
4304 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4305 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4306 UNOP_CHMIN>: Remove opcodes.
4307
ae4d0c03
PM
43082010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4309
4310 * dwarf2read.c (read_func_scope): Do not complain for
4311 external function if bounds are not found.
4312
fa593d66
PA
43132010-06-01 Pedro Alves <pedro@codesourcery.com>
4314
4315 * NEWS: Mention gdbserver fast tracepoints support.
4316
cd44747c
PM
43172010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4318
4319 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4320 New macros.
4321 (windows_set_console_info): New function.
4322 (windows_create_inferior): Call windows_set_console_info
4323 if NEW_CONSOLE is true.
4324 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4325 (_initialize_loadable): Initialize GetConsoleFontSize and
4326 GetCurrentConsoleFont.
4327
f6528abd
JK
43282010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 * Makefile.in (RDYNAMIC): New.
4331 (SFILES): Add proc-service.list.
4332 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4333 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4334 * config/arm/linux.mh: Likewise.
4335 * config/i386/linux.mh: Likewise.
4336 * config/i386/linux64.mh: Likewise.
4337 * config/ia64/linux.mh: Likewise.
4338 * config/m32r/linux.mh: Likewise.
4339 * config/m68k/linux.mh: Likewise.
4340 * config/mips/linux.mh: Likewise.
4341 * config/pa/linux.mh: Likewise.
4342 * config/powerpc/linux.mh: Likewise.
4343 * config/powerpc/ppc64-linux.mh: Likewise.
4344 * config/s390/s390.mh: Likewise.
4345 * config/sparc/linux.mh: Likewise.
4346 * config/sparc/linux64.mh: Likewise.
4347 * config/xtensa/linux.mh: Likewise.
4348 * configure.ac: New RDYNAMIC on native host and GCC.
4349 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4350 * configure: Regenerate.
4351 * proc-service.list: New.
4352
ca2a87a0
JK
43532010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4354
4355 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4356 CONTENT.
4357
1e225492
JK
43582010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4359
4360 * linux-nat.c (linux_nat_wait_1): Do not call
4361 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4362 TARGET_WAITKIND_SIGNALLED.
4363
e802dbe0
JB
43642010-05-27 Joel Brobecker <brobecker@adacore.com>
4365
4366 * ada-lang.c (ada_inferior_data): New struct.
4367 (ada_inferior_data): New static global.
4368 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4369 (ada_get_tsd_type): New functions.
4370 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4371 to look the tsd type up.
4372 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4373 event. Set ada_inferior_data.
4374
176a6961
PA
43752010-05-27 Pedro Alves <pedro@codesourcery.com>
4376
4377 * remote.c (unpack_varlen_hex): Remove forward declaration.
4378 (remote_console_output): Make static, and add forward declaration.
4379 * remote.h: Drop FIXME comment.
4380 (unpack_varlen_hex): Declare.
4381 (remote_console_output, remote_cisco_objfile_relocate)
4382 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4383 Delete declarations.
4384 * tracepoint.c: Include "remote.h".
4385 (unpack_varlen_hex): Delete declaration.
4386
88bfdde4
TT
43872010-05-27 Tom Tromey <tromey@redhat.com>
4388
4389 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4390 (allocate_piece_closure): Initialize refc.
4391 (copy_pieced_value_closure): Use refc.
4392 (free_pieced_value_closure): Likewise.
4393
8c6363cf
TT
43942010-05-27 Tom Tromey <tromey@redhat.com>
4395
4396 * arm-tdep.c (push_stack_item): 'contents' now const.
4397 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4398 value_contents_writeable. Introduce new temporary.
4399
7ecb917e
TT
44002010-05-27 Tom Tromey <tromey@redhat.com>
4401
4402 * findcmd.c (parse_find_args): Use value_contents, not
4403 value_contents_raw.
4404
f42a0a33
TT
44052010-05-27 Tom Tromey <tromey@redhat.com>
4406
4407 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4408 const. Use value_contents, not value_contents_writeable.
4409
12b795ad
JB
44102010-05-27 Joel Brobecker <brobecker@adacore.com>
4411
4412 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4413 by call to value_contents.
4414
5a2e11c7
OS
44152010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4416
4417 * MAINTAINERS: Add myself for write after approval privileges.
4418
ec685c5e
DE
44192010-05-26 Doug Evans <dje@google.com>
4420
0c4a4063
DE
4421 Allow python to find its files if moved from original location.
4422 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4423 (GDB_AC_WITH_DIR): Call it.
4424 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4425 python installation directory.
4426 * config.in: Regenerate.
4427 * configure: Regenerate.
4428 * defs.h (python_libdir): Declare.
4429 * main.c (python_libdir): Define.
4430 (captured_main): Initialize python_libdir.
4431 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4432 call Py_SetProgramName to make sure python can find its libraries
4433 and modules.
4434
ec685c5e
DE
4435 * configure.ac: Try to use python's distutils to fetch compilation
4436 parameters.
4437 * configure: Regenerate.
4438 * python/python-config.py: New file.
4439
363a6e9f
OS
44402010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4441
4442 * ser-tcp.c (net_open): Check error return from socket() call by its
4443 equality to -1 not by it being negative.
4444 (net_close): Likewise.
4445
dde08ee1
PA
44462010-05-26 Pedro Alves <pedro@codesourcery.com>
4447
4448 * NEWS: Mention the `qRelocInsn' feature.
4449 * gdbarch.sh (relocate_instruction): New.
4450 * amd64-tdep.c (rip_relative_offset): New.
4451 (append_insns): New.
4452 (amd64_relocate_instruction): New.
4453 (amd64_init_abi): Install it.
4454 * i386-tdep.c (append_insns): New.
4455 (i386_relocate_instruction): New.
4456 (i386_gdbarch_init): Install it.
4457 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4458 * gdbarch.h, gdbarch.c: Regenerate.
4459
947bb88f
TT
44602010-05-26 Tom Tromey <tromey@redhat.com>
4461
4462 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4463 (struct dwarf2_loclist_baton) <data>: Likewise.
4464 * dwarf2loc.c (find_location_expression): Constify return type.
4465 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4466 (dwarf2_loc_desc_needs_frame): Likewise.
4467 (loclist_read_variable): Constify.
4468 (loclist_describe_location): Likewise.
4469 (loclist_tracepoint_var_ref): Likewise.
4470
0d45f56e
TT
44712010-05-25 Tom Tromey <tromey@redhat.com>
4472
4473 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4474 (dwarf_expr_frame_base_1): Likewise.
4475 (read_pieced_value): Update.
4476 (needs_frame_frame_base): Constify.
4477 (dwarf2_tracepoint_var_loc): Likewise.
4478 (dwarf2_tracepoint_var_access): Likewise.
4479 (locexpr_describe_location_piece): Likewise.
4480 (locexpr_describe_location_1): Likewise.
4481 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4482 Constify.
4483 (data): Now const.
4484 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4485 (dwarf_expr_eval, read_uleb128, read_sleb128)
4486 (dwarf2_read_address): Update.
4487 * dwarf2expr.c (dwarf_expr_eval): Constify.
4488 (read_uleb128): Likewise.
4489 (read_sleb128): Likewise.
4490 (dwarf2_read_address): Likewise.
4491 (require_composition): Likewise.
4492 (execute_stack_op): Likewise.
4493 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4494 "const gdb_byte *".
4495 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4496 Now const.
4497 (no_get_frame_base): Constify.
4498 (execute_stack_op): Likewise.
4499 (execute_cfa_program): Likewise.
4500 (read_encoded_value): Likewise.
4501
07ca107c
DE
45022010-05-25 Doug Evans <dje@google.com>
4503
e34838f0
DE
4504 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4505
01f69b38
DE
4506 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4507 * event-loop.c: ... here.
4508 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4509 `error' for clarity.
4510 (tui_getc): Pass correct value for `error' parameter to
4511 tui_readline_output.
4512
07ca107c
DE
4513 Add python gdb.GdbError and gdb.string_to_argv.
4514 * NEWS: Document them.
4515 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4516 the exception is gdb.GdbError. Print a second traceback if there's
4517 an error computing the error message.
4518 (gdbpy_string_to_argv): New function.
4519 * python/py-utils.c (gdbpy_obj_to_string): New function.
4520 (gdbpy_exception_to_string): New function.
4521 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4522 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4523 (gdbpy_gdberror_exc): Declare.
4524 * python/python.c (gdbpy_gdberror_exc): New global.
4525 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4526 gdb.GdbError.
4527 (GdbMethods): Add string_to_argv.
4528
5572ce1f
PM
45292010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4530
4531 * windows-nat.c (display_selector): Call GetLastError to give better
4532 failure explanation.
4533
acd5838a
PA
45342010-05-24 Pedro Alves <pedro@codesourcery.com>
4535
4536 * config.in: Regenerate.
4537
b26a4dcb
JK
45382010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4539
4540 Code cleanup.
4541 * target.c (push_target): Return only void. Remove the return value
4542 comment.
4543 * target.h (push_target): Return only void.
4544
f434ba03
PA
45452010-05-23 Pedro Alves <pedro@codesourcery.com>
4546
4547 Update gnulib from latest git.
4548 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4549
4550 * gnulib/memcmp.c: Removed.
4551 * gnulib/memchr.valgrind: New.
4552 * gnulib/stddef.in.h: New.
4553 * gnulib/Makefile.am: Updated.
4554 * gnulib/memchr.c: Updated.
4555 * gnulib/memmem.c: Updated.
4556 * gnulib/stdint.in.h: Updated.
4557 * gnulib/str-two-way.h: Updated.
4558 * gnulib/string.in.h: Updated.
4559 * gnulib/wchar.in.h: Updated.
4560
4561 * gnulib/extra/link-warning.h: Removed.
4562 * gnulib/extra/c++defs.h: New.
4563 * gnulib/extra/warn-on-use.h: New.
4564 * gnulib/extra/arg-nonnull.h: Updated.
4565
4566 * gnulib/m4/extensions.m4: Updated.
4567 * gnulib/m4/gnulib-cache.m4: Updated.
4568 * gnulib/m4/gnulib-common.m4: Updated.
4569 * gnulib/m4/gnulib-comp.m4: Updated.
4570 * gnulib/m4/gnulib-tool.m4: Updated.
4571 * gnulib/m4/include_next.m4: Updated.
4572 * gnulib/m4/longlong.m4: Updated.
4573 * gnulib/m4/memchr.m4: Updated.
4574 * gnulib/m4/memmem.m4: Updated.
4575 * gnulib/m4/stdint.m4: Updated.
4576 * gnulib/m4/string_h.m4: Updated.
4577 * gnulib/m4/memcmp.m4: Removed.
4578 * gnulib/m4/onceonly_2_57.m4: Removed.
4579 * gnulib/m4/00gnulib.m4: New.
4580 * gnulib/m4/mmap-anon.m4: New.
4581 * gnulib/m4/multiarch.m4: New.
4582 * gnulib/m4/onceonly.m4: New.
4583 * gnulib/m4/stddef_h.m4: New.
4584 * gnulib/m4/warn-on-use.m4: New.
4585 * gnulib/m4/wchar.m4: Removed.
4586 * gnulib/m4/wchar_h.m4: New.
4587 * gnulib/m4/wchar_t.m4: New.
4588 * gnulib/m4/wint_t.m4: New.
4589
4590 * aclocal.m4: Regenerate.
4591 * config.in: Likewise.
4592 * configure: Likewise.
4593 * gnulib/Makefile.in: Likewise.
4594
d3b1e874
TT
45952010-05-21 Tom Tromey <tromey@redhat.com>
4596
4597 * dwarf2loc.c (extract_bits_primitive): New function.
4598 (extract_bits): Likewise.
4599 (insert_bits): Likewise.
4600 (copy_bitwise): Likewise.
4601 (read_pieced_value): Do all operations in bits.
4602 (write_pieced_value): Likewise.
4603 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4604 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4605 Always use xrealloc to resize piece array.
4606 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4607 <DW_OP_piece>: Update.
4608 <DW_OP_bit_piece>: New case.
4609
cb826367
TT
46102010-05-21 Tom Tromey <tromey@redhat.com>
4611
4612 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4613 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4614 * dwarf2expr.h (enum dwarf_value_location)
4615 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4616 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4617 (add_piece): Handle empty piece.
4618 (execute_stack_op) <DW_OP_piece>: Handle
4619 DWARF_VALUE_OPTIMIZED_OUT.
4620
74de6778
TT
46212010-05-21 Tom Tromey <tromey@redhat.com>
4622
4623 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4624 evaluate_subexp, not evaluate_subexp_with_coercion.
4625
f346a30d
PM
46262010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4627
4628 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4629 attribute.
4630
afd74c5f
TT
46312010-05-21 Tom Tromey <tromey@redhat.com>
4632
4633 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4634 offset.
4635 (write_pieced_value): Likewise.
4636
90e7c2c5
PM
46372010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4638
4639 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4640 and DW_TAG_volatile_type.
4641 (new_symbol): Likewise.
4642
8148cf8d
PM
46432010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4644
4645 * p-valprint.c (pascal_val_print): Call get_array_bounds
4646 to obtain the number of elements in an array.
4647
3a1d4620
DE
46482010-05-19 Doug Evans <dje@google.com>
4649
0bf0f8c4
DE
4650 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4651
3a1d4620
DE
4652 * python.c (source_python_script): Add comment.
4653 (source_python_script_for_objfile): Remove unnecessary call to
4654 gdbpy_print_stack.
4655
dc21167c
JK
46562010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4657 Sergio Durigan Junior <sergiodj@redhat.com>
4658
4659 Code cleanup.
4660 * parse.c (exp_iterate): Use operator_length wrapper function.
4661
5b4ee69b
MS
46622010-05-18 Michael Snyder <msnyder@vmware.com>
4663
4664 * ada-lang.c: White space.
4665 * ada-typeprint.c: White space.
4666 * ada-valprint.c: White space.
4667 * addrmap.c: White space.
4668 * auxv.c: White space.
4669 * ax-gdb.c: White space.
4670
e17c9e56
HZ
46712010-05-18 Hui Zhu <teawater@gmail.com>
4672
4673 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4674 for oldfp.
4675 (inferior_call_waitpid): Move make_cleanup out of check.
4676 Check the return of waitpid.
4677 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4678
a109c7c1
MS
46792010-05-17 Michael Snyder <msnyder@vmware.com>
4680
1c5313c5
MS
4681 * tui/tui.c: White space.
4682 * tui/tui-data.c: White space.
4683 * tui/tui-disasm.c: White space.
4684 * tui/tui-file.c: White space.
4685 * tui/tui-interp.c: White space.
4686 * tui/tui-main.c: White space.
4687 * tui/tui-out.c: White space.
4688 * tui/tui-regs.c: White space.
4689 * tui/tui-source.c: White space.
4690 * tui/tui-stack.c: White space.
4691 * tui/tui-win.c: White space.
4692 * tui/tui-winsource.c: White space.
4693
f4a14ae6
MS
4694 * procfs.c: White space.
4695
d59b6f6c
MS
4696 * python/py-auto-load.c: White space.
4697 * python/py-block.c: White space.
4698 * python/py-breakpoint.c: White space.
4699 * python/py-cmd.c: White space.
4700 * python/py-function.c: White space.
4701 * python/py-lazy-string.c: White space.
4702 * python/py-objfile.c: White space.
4703 * python/py-param.c: White space.
4704 * python/py-prettyprint.c: White space.
4705 * python/py-progspace.c: White space.
4706 * python/py-symtab.c: White space.
4707 * python/python.c: White space.
4708 * python/py-type.c: White space.
4709 * python/py-utils.c: White space.
4710 * python/py-value.c: White space.
4711
102040f0
MS
4712 * mi/mi-cmd-break.c: White space.
4713 * mi/mi-cmd-env.c: White space.
4714 * mi/mi-cmds.c: White space.
4715 * mi/mi-cmd-stack.c: White space.
4716 * mi/mi-cmd-var.c: White space.
4717 * mi/mi-console.c: White space.
4718 * mi/mi-getopt.c: White space.
4719 * mi/mi-interp.c: White space.
4720 * mi/mi-main.c: White space.
4721 * mi/mi-out.c: White space.
4722 * mi/mi-parse.c: White space.
4723
cdb27c12
MS
4724 * cli/cli-cmds.c: White space.
4725 * cli/cli-decode.c: White space.
4726 * cli/cli-dump.c: White space.
4727 * cli/cli-interp.c: White space.
4728 * cli/cli-logging.c: White space.
4729 * cli/cli-script.c: White space.
4730 * cli/cli-setshow.c: White space.
4731
a109c7c1
MS
4732 * valarith.c: White space.
4733 * valops.c: White space.
4734 * valprint.c: White space.
4735 * value.c: White space.
4736 * varobj.c: White space.
4737 * xcoffread.c: White space.
4738 * xml-support.c: White space.
4739 * xml-tdesc.c: White space.
4740
3872d37d
AS
47412010-05-17 Andreas Schwab <schwab@redhat.com>
4742
4743 PR gdb/11092
4744 * c-lang.c (c_printstr): Compute real length of NUL terminated
4745 string at first.
4746
0cce5bd9
JB
47472010-05-17 Joel Brobecker <brobecker@adacore.com>
4748
4749 * parse.c (parse_exp_in_context): When block is not NULL, use
4750 its associated language to parse the expression instead of
4751 the current_language.
4752
5f19d646
JB
47532010-05-17 Joel Brobecker <brobecker@adacore.com>
4754
4755 * jv-lang.c (java_lookup_class): Remove commented out code.
4756 (type_from_class): Likewise.
4757 (java_op_print_tab): Remove commented-out elements.
4758
28c85d6c
JB
47592010-05-17 Joel Brobecker <brobecker@adacore.com>
4760
4761 * ada-lang.c (to_fixed_range_type): The the raw index type as
4762 argument instead of the raw type name. Remove orig_type parameter.
4763 Update calls throughout.
4764 (ada_fixup_array_indexes_type): New function.
4765 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4766 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4767 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4768 Remove name parameter.
4769 (print_array_type): Add call to ada_fixup_array_indexes_type.
4770 Update calls to print_range_type.
4771 (ada_print_type): Update calls to print_range_type.
4772
d09039dd
PM
47732010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4774
4775 * dwarf2read.c (read_set_type): Set type length if
4776 DW_AT_byte_size attribute is present.
4777
7a081a30
PM
47782010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4779
4780 * p-valprint.c (pascal_val_print): Handle set type if range limits
4781 are undefined but size is known.
4782
77382aee
PA
47832010-05-17 Pedro Alves <pedro@codesourcery.com>
4784
4785 * procfs.c: Reformat.
4786
433759f7
MS
47872010-05-16 Michael Snyder <msnyder@vmware.com>
4788
5d502164
MS
4789 * target.c: White space.
4790 * target-descriptions.c: White space.
4791 * target-memory.c: White space.
4792 * thread.c: White space.
4793 * top.c: White space.
4794 * tracepoint.c: White space.
4795 * trad-frame.c: White space.
4796 * tramp-frame.c: White space.
4797 * ui-file.c: White space.
4798 * ui-out.c: White space.
4799 * user-regs.c: White space.
4800 * utils.c: White space.
4801
433759f7
MS
4802 * scm-exp.c: White space.
4803 * scm-lang.c: White space.
4804 * scm-valprint.c: White space.
4805 * sentinel-frame.c: White space.
4806 * ser-base.c: White space.
4807 * ser-go32.c: White space.
4808 * serial.c: White space.
4809 * ser-mingw.c: White space.
4810 * ser-pipe.c: White space.
4811 * ser-tcp.c: White space.
4812 * ser-unix.c: White space.
4813 * solib.c: White space.
4814 * solib-darwin.c: White space.
4815 * solib-frv.c: White space.
4816 * solib-irix.c: White space.
4817 * solib-osf.c: White space.
4818 * solib-pa64.c: White space.
4819 * solib-som.c: White space.
4820 * solib-spu.c: White space.
4821 * solib-svr4.c: White space.
4822 * solib-target.c: White space.
4823 * source.c: White space.
4824 * stabsread.c: White space.
4825 * stack.c: White space.
4826 * std-regs.c: White space.
4827 * symfile.c: White space.
4828 * symmisc.c: White space.
4829 * symtab.c: White space.
4830
dd304d53
MS
48312010-05-16 Michael Snyder <msnyder@vmware.com>
4832
4833 * source.c (_initialize_source): Add "rev" as an abbreviation
4834 for the "reverse-search" command.
4835
a744cf53
MS
48362010-05-16 Michael Snyder <msnyder@vmware.com>
4837
123f5f96
MS
4838 * record.c: White space.
4839 * regcache.c: White space.
4840 * reggroups.c: White space.
4841 * remote-fileio.c: White space.
4842 * remote-m32r-sdi.c: White space.
4843 * remote-mips.c: White space.
4844 * remote-sim.c: White space.
a744cf53
MS
4845 * remote.c: White space.
4846 (process_g_packet): Remove orphan braces.
4847
b8d56208
MS
48482010-05-15 Michael Snyder <msnyder@vmware.com>
4849
ad3bbd48
MS
4850 * parse.c: White space.
4851 * p-lang.c: White space.
4852 * posix-hdep.c: White space.
4853 * printcmd.c: White space.
4854 * progspace.c: White space.
4855 * prologue-value.c: White space.
4856 * psymtab.c: White space.
4857 * p-typeprint.c: White space.
4858 * p-valprint.c: White space.
4859
5cc80db3
MS
4860 * objc-lang.c: White space.
4861 * objfiles.c: White space.
4862 * observer.c: White space.
4863 * osabi.c: White space.
4864 * osdata.c: White space.
4865
b8d56208
MS
4866 * m2-lang.c: White space.
4867 * m2-valprint.c: White space.
4868 * macrocmd.c: White space.
4869 * macroexp.c: White space.
4870 * macroscope.c: White space.
4871 * macrotab.c: White space.
4872 * main.c: White space.
4873 * maint.c: White space.
4874 * mdebugread.c: White space.
4875 * memattr.c: White space.
4876 * minsyms.c: White space.
4877 * monitor.c: White space.
4878
9a619af0
MS
48792010-05-14 Michael Snyder <msnyder@vmware.com>
4880
e0881a8e
MS
4881 * jv-lang.c: White space.
4882 * jv-typeprint.c: White space.
4883 * jv-valprint.c: White space.
4884 * language.c: White space.
4885 * libunwind-frame.c: White space.
4886 * linespec.c: White space.
4887 * linux-nat.c: White space.
4888 * linux-record.c: White space.
4889 * linux-thread-db.c: White space.
4890
abbb1732
MS
4891 * infcall.c: White space.
4892 * inf-child.c: White space.
4893 * infcmd.c: White space.
4894 * inferior.c: White space.
4895 * inf-loop.c: White space.
4896 * inflow.c: White space.
4897 * inline-frame.c: White space.
4898 * interps.c: White space.
4899
d8734c88
MS
4900 * gcore.c: White space.
4901 * gdb.c: White space.
4902 * gdbtypes.c: White space.
4903 * gnu-nat.c: White space.
4904 * gnu-v2-abi.c: White space.
4905 * gnu-v3-abi.c: White space.
4906
bb9bcb69
MS
4907 * findcmd.c: White space.
4908 * findvar.c: White space.
4909 * fork-child.c: White space.
4910 * frame-base.c: White space.
4911 * frame.c: White space.
4912 * frame-unwind.c: White space.
4913 * f-valprint.c: White space.
4914
d7f9d729
MS
4915 * elfread.c: White space.
4916 * environ.c: White space.
4917 * eval.c: White space.
4918 * event-loop.c: White space.
4919 * event-top.c: White space.
4920 * exceptions.c: White space.
4921 * exec.c: White space.
4922 * expprint.c: White space.
4923
9a619af0
MS
4924 * dbxread.c: White space.
4925 * dcache.c: White space.
4926 * disasm.c: White space.
4927 * doublest.c: White space.
4928 * dsrec.c: White space.
4929 * dummy-frame.c: White space.
4930 * dwarf2expr.c: White space.
4931 * dwarf2-frame.c: White space.
4932 * dwarf2loc.c: White space.
4933 * dwarf2read.c: White space.
4934
88d4aea7
PM
49352010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4936
889bf7c5 4937 PR python/11482
88d4aea7
PM
4938
4939 * python/py-value.c (valpy_hash): New function.
4940 (value_object_type): Register valpy_hash.
4941
7a298875 49422010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4943 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4944
4945 * linux-fork.c (gdbthread.h): New include.
4946 (fork_info): Add parent_ptid.
4947 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4948 functions.
4949 (delete_checkpoint_command): Call inferior_call_waitpid.
4950 (checkpoint_command): Set parent_ptid.
4951
c14feecc
MS
49522010-05-13 Michael Snyder <msnyder@vmware.com>
4953
6595d32b
MS
4954 * dictionary.c: Re-indent to GNU coding standard.
4955
c5504eaf
MS
4956 * charset.c: White space.
4957 * c-lang.c: White space.
4958 * cli-out.c: White space.
4959 * coffread.c: White space.
4960 * complaints.c: White space.
4961 * completer.c: White space.
4962 * corefile.c: White space.
4963 * corelow.c: White space.
4964 * cp-abi.c: White space.
4965 * cp-namespace.c: White space.
4966 * cp-support.c: White space.
4967 * cp-valprint.c: White space.
4968 * c-typeprint.c: White space.
4969 * c-valprint.c: White space.
cc59ec59
MS
4970 * blockframe.c: White space.
4971 * breakpoint.c: White space.
4972 * buildsym.c: White space.
4973 * blockframe.c: White space.
b6de9da4 4974 * bcache.c: White space.
05c547f6
MS
4975 * gdbarch.sh: White space, add blank lines.
4976 * arch-utils.c: Ditto.
4977 * gdbarch.c: Regenerate.
1c4d3f96 4978 * frame.c: White space, add blank lines.
f89b749f
MS
4979 * stack.c: White space, add blank lines.
4980 (initialize_stack): Remove long-dead code.
c14feecc 4981
a2d33775
JK
49822010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4983
4984 Code cleanup.
4985 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4986 (locexpr_read_variable, loclist_read_variable): Update the callers.
4987
33ac96f0
JK
49882010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4989
4990 Code cleanup.
4991 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4992 Remove check of NULL returned by tag_type_to_type.
4993 (die_containing_type): Remove variable type. Remove type_die variable
4994 initialization. Remove check of NULL returned by tag_type_to_type.
4995
f5a010c0
PM
49962010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4997
4998 PR exp/11530.
4999 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5000 names of unnamed structures or unions.
5001
bf701c2c
PM
50022010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5003
5004 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5005 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5006 find_procinfo_or_die call.
5007 (procfs_stopped_data_address): New function.
5008 (procfs_use_watchpoints): Register new watchpoint related function.
5009
d02691ef
TT
50102010-05-11 Tom Tromey <tromey@redhat.com>
5011
5012 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5013
e0627e85
MS
50142010-05-10 Michael Snyder <msnyder@vmware.com>
5015
5016 * utils.c: White space cleanup.
5017
cc73bb8c
TT
50182010-05-10 Tom Tromey <tromey@redhat.com>
5019
5020 * eval.c (ptrmath_type_p): Add 'lang' argument.
5021 (evaluate_subexp_standard): Update.
5022 (evaluate_subexp_with_coercion): Update.
5023 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5024
c02866a0
MS
50252010-05-10 Michael Snyder <msnyder@vmware.com>
5026
5027 * utils.c (do_fclose_cleanup) Restore local variable.
5028
06280d23
DE
50292010-05-09 Doug Evans <dje@google.com>
5030
5031 * record.c (init_record_core_ops): Rename record_core to record-core.
5032
fa07e785
JB
50332010-05-08 Joel Brobecker <brobecker@adacore.com>
5034
5035 Implement task switching on pa-hpux.
5036 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5037 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5038
4c680d1d
PM
50392010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5040
5041 * valops.c (find_overload_match): Add missing i18n markup.
5042
28e176a6
PM
50432010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5044
5045 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5046
48cb83fd
JK
50472010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5050 list for the obconcat call.
5051 * mdebugread.c (parse_symbol): Likewise.
5052 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5053 Likewise.
5054 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5055 New variable ap. Remove variables len and val.
5056 * symfile.h (obconcat): Likewise for the prototype.
5057
f92adf3c
MS
50582010-05-07 Michael Snyder <msnyder@vmware.com>
5059
5060 * python/python.c (execute_gdb_command): Remove unused variables.
5061 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5062 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5063 Remove unused variable.
5064 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5065 (cmdpy_completer): Remove unused variable.
5066 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5067 * python/py-function.c (fnpy_call): Remove unused variable.
5068 * python/py-objfile.c (objfile_to_objfile_object):
5069 Remove unused variable.
5070 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5071 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5072 Remove unused variable.
5073 (gdbpy_default_visualizer): Remove unused variable.
5074 * python/py-progspace.c (pspace_to_pspace_object):
5075 Remove unused variable.
0407b3f1 5076 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5077 Remove unused variable.
0407b3f1 5078 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5079 Remove unused variable.
5080 * python/py-value.c (valpy_string): Remove unused variable.
5081 (convert_value_from_python): Remove unused variables.
5082
d160942f
MS
50832010-05-07 Michael Snyder <msnyder@vmware.com>
5084
5085 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5086 and use it to compute variable 't1'.
5087
587542ab
JB
50882010-05-07 Joel Brobecker <brobecker@adacore.com>
5089
5090 * ada-lang.c (assign_aggregate): Remove unused variable.
5091
7322dca9
SW
50922010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5093
5094 PR C++/7943:
5095 * valops.c (find_overload_match): Handle fsym == NULL case.
5096 Add int no_adl argument.
5097 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5098 when appropriate.
5099 Add int no_adl argument.
5100 (find_oload_champ_namespace): Add int no_adl argument.
5101 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5102 expression.
5103 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5104 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5105 Evaluate arguments and use them to perform ADL lookup.
5106 Pass no_adl argument to find_overload_match.
5107 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5108 * cp-support.h: Added prototype for
5109 make_symbol_overload_list_namespace.
5110 * cp-support.c (make_symbol_overload_list_namespace): New function.
5111 (make_symbol_overload_list_adl_namespace): New function.
5112 (make_symbol_overload_list_adl): New function.
5113 (make_symbol_overload_list_using): Moved code to add function to
5114 overload set to make_symbol_overload_list_namespace.
5115 * c-exp.y: create UNKNOWN_CPP_NAME token.
5116 Add parse rule for ADL functions.
5117 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5118
3f1f6884
JK
51192010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5120
5121 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5122 sentinel.
5123
3caf13b4
JB
51242010-05-07 Joel Brobecker <brobecker@adacore.com>
5125
5126 Implement task switching on solaris targets.
5127 * sol-thread.c (thread_db_find_thread_from_tid)
5128 (sol_get_ada_task_ptid): New functions.
5129 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5130
94b0dee1
PA
51312010-05-07 Pedro Alves <pedro@codesourcery.com>
5132
5133 * remote.c (remote_query_supported_append): Use reconcat.
5134 (remote_query_supported): Install a cleanup. Use reconcat.
5135
1408c251
PA
51362010-05-07 Pedro Alves <pedro@codesourcery.com>
5137
5138 * gdbarch.sh (qsupported): Delete.
5139 * gdbarch.h, gdbarch.c: Regenerate.
5140 * remote.c (remote_query_supported): Remove use of
5141 gdbarch_qsupported.
5142
f8e50cfe
SDJ
51432010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5144
5145 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5146 function.
5147
8ea13695
MS
51482010-05-06 Michael Snyder <msnyder@vmware.com>
5149
c6913b7d
MS
5150 * xml-support.c (xinclude_start_include): Delete unused variable.
5151 (xml_process_xincludes): Delete unused variable.
5152 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5153 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5154 (tdesc_find_arch_register): Delete unused variable.
5155 (tdesc_use_registers): Delete unused variable.
5156 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5157 * inferior.c (print_inferior): Delete unused variable.
5158 * record.c (record_open_1): Delete unused variable.
5159 (record_restore): Delete unused variable.
5160 (cmd_record_save): Delete unused variable.
5161 * gcore.c (derive_heap_segment): Delete unused variable.
5162 (objfile_find_memory_regions): Use unused variable.
5163 * jit.c (jit_inferior_init): Delete unused variable.
5164 * progspace.c (clone_program_space): Delete unused variable.
5165 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5166
5167 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5168 Delete unused variable.
5169 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5170 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5171 (method_name_from_physname): Delete unused variable.
5172 (cp_func_name): Delete unused variable.
5173 (cp_validate_operator): Delete unused variable.
0407b3f1 5174 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5175 Delete unused variable.
0407b3f1 5176 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5177 Delete unused variable.
5178 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5179
1be757cf
MS
5180 * serial.c (serial_for_fd): Delete unused variable.
5181 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5182 * top.c (execute_command): Delete unused variable.
5183 (init_main): Delete unused variable.
5184 * utils.c (do_fclose_cleanup): Delete unused variable.
5185 (do_all_inferior_continuations): Delete unused variable.
5186 (initialize_utils): Delete unused variable.
5187 (internal_problem_mode): Delete unused global.
5188 * frame.c (get_prev_frame): Delete unused global.
5189 (get_frame_locals_address): Delete unused global.
5190 (get_frame_args_address): Delete unused global.
5191
9216103f
MS
5192 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5193 (pascal_type_print_varspec_prefix): Delete unused variable.
5194 * f-typeprint.c (f_type_print_base): Delete unused variable.
5195 (f_type_print_varspec_suffix): Delete unused variable.
5196 * m2-typeprint.c (m2_print_type): Delete unused variable.
5197 (m2_long_set): Delete unused variable.
5198 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5199 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5200 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5201 Delete unused variable.
5202 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5203 * m2-valprint.c (m2_val_print): Delete unused variable.
5204
34fa1d9d
MS
5205 * ui-out.c (ui_out_field_int): Delete unused variable.
5206 (ui_out_field_fmt_int): Delete unused variable.
5207 * varobj.c (varobj_list_children): Delete unused variable.
5208 (varobj_set_value): Delete unused variable.
5209 (install_new_value_visualizer): Delete unused variable.
5210 (varobj_set_visualizer): Delete unused variable.
5211 (varobj_update): Delete unused variable.
5212 (varobj_editable_p): Delete unused variable.
5213 (c_value_of_root): Delete unused variable.
5214 (cplus_describe_child): Delete unused variable.
5215
b5385fc0
MS
5216 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5217 (decode_constrained_packed_array_type): Delete unused variable.
5218 (add_defn_to_vec): Delete unused variable.
5219 (symbol_completion_match): Delete unused variable.
5220 (value_tag_from_contents_and_address): Delete unused variable.
5221 (ada_evaluate_subexp): Delete unused variable.
5222 * c-lang.c (classify_type): Delete unused variable.
5223 * f-lang.c (f_printstr): Delete unused variable.
5224 * objc-lang.c (objc_printstr): Delete unused variable.
5225 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5226 * jv-lang.c (type_from_class): ifdef unused variable.
5227 (java_class_name_from_physname): Delete unused variable.
5228 * m2-lang.c (m2_printstr): Delete unused variable.
5229
4fc06681
MS
5230 * objfiles.c (objfile_relocate): Delete unused variable.
5231 * maint.c (_initialize_maint_cmds): Delete unused variable.
5232 * demangle.c (_initialize_demangler): Delete unused variable.
5233 * corefile.c (reopen_exec_file): Delete unused variable.
5234 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5235 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5236
6b4398f7
MS
5237 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5238 * memattr.c (mem_delete): Delete unused variable.
5239 (invalidate_target_mem_regions): Delete unused variable.
5240 * mem-break.c (default_memory_insert_breakpoint):
5241 Delete unused variable.
5242 * target.c (target_get_osdata): Delete unused variable.
5243 * parse.c (length_of_subexp): Delete unused variable.
5244 (prefixify_subexp): Delete unused variable.
5245 (exp_iterate): Delete unused variable.
5246 * reverse.c (delete_bookmark_command): Delete unused variable.
5247
308d96ed
MS
5248 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5249 * macroexp.c (gather_arguments): Delete unused variable.
5250 (substitute_args): Delete unused variable.
5251 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5252 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5253 (_initialize_gdbarch): Delete unused variable.
5254 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5255 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5256 Delete unused variable.
5257 (_initialize_gdbarch_utils): Delete unused variable.
5258 * gdbtypes.c (make_cv_type): Delete unused variable.
5259 (make_type_with_address_space): Delete unused variable.
5260
167e4384
MS
5261 * linespec.c (decode_compound): Delete unused variable.
5262 * dictionary.c (iterator_next_hashed): Delete unused variable.
5263 * infcall.c (call_function_by_hand): Delete unused variable.
5264 * infcmd.c (step_1): Delete unused variable.
5265 (registers_info): Delete unused variable.
5266 (attach_command): Delete unused variable.
5267 * infrun.c (follow_exec): Delete unused variable.
5268 (handle_step_into_function_backwards): Delete unused variable.
5269 (_initialize_infrun): Delete unused variable.
5270 * stack.c (parse_frame_specification_1): Delete unused variable.
5271 (frame_info): Delete unused variable.
5272 (backtrace_command_1): Delete unused variable.
5273 (catch_info): Delete unused variable.
5274
8f78b329
MS
5275 * eval.c (evaluate_subexp_standard): Delete unused variable.
5276 * valops.c (value_cast_pointers): Delete unused variable.
5277 (value_dynamic_cast): Delete unused variable.
5278 (value_array): Delete unused variable.
5279 (find_overload_match): Delete unused variable.
5280 * valarith.c (value_subscript): Delete unused variable.
5281 (value_binop): Delete unused variable.
5282 * valprint.c (_initialize_valprint): Delete unused variable.
5283 * printcmd.c (print_command_1): Delete unused variable.
5284 (address_info): Delete unused variable.
5285 (printf_command): Delete unused variable.
5286
8ea13695
MS
5287 * auxv.c (target_auxv_search): Delete unused variable.
5288 * blockframe.c (get_frame_block): Delete unused variable.
5289 * regcache.c (regcache_cpy): Delete unused variable.
5290 (regcache_cpy_no_passthrough): Delete unused variable.
5291 * charset.c (wchar_iterate): Delete unused variable.
5292 (find_charset_names): Delete unused variable.
5293 (_initialize_charset): Delete unused variable.
0407b3f1 5294 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5295 Delete unused variable.
0407b3f1 5296 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5297 Delete unused variable.
5298 (set_substitute_path_command): Delete unused variable.
5299 * value.c (preserve_values): Delete unused variable.
5300 (value_from_double): Delete unused variable.
5301
afe38095
MS
53022010-05-05 Michael Snyder <msnyder@vmware.com>
5303
952a6d41
MS
5304 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5305 (find_last_source_symtab_from_partial): Delete unused variable.
5306 * symfile.c (place_section): Delete unused variable.
5307 (default_symfile_offsets): Delete unused variable.
5308 (get_debug_link_info): Delete unused variable.
5309 (find_separate_debug_file_by_debuglink): Delete unused variable.
5310 (add_symbol_file_command): Delete unused variable.
5311 (symfile_find_segment_sections): Delete unused variable.
5312 * symmisc.c (free_symtab): Delete unused variable.
5313 (dump_symtab_1): Delete unused variable.
5314 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5315 (find_pc_sect_symtab): Delete unused variable.
5316 (skip_prologue_using_lineinfo): Delete unused variable.
5317 (sources_info): Delete unused variable.
5318 (completion_list_add_name): Delete unused variable.
5319 (expand_line_sal): Delete unused variable.
5320
0407b3f1 5321 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5322 Delete unused variables.
5323 (insert_catchpoint): Delete unused variable.
5324 (update_watchpoint): Delete unused variable.
5325 (insert_bp_location): Delete unused variable.
5326 (insert_breakpoint_locations): Delete unused variable.
5327 (remove_breakpoint_1): Delete unused variable.
5328 (software_breakpoint_inserted_here_p): Delete unused variable.
5329 (watchpoints_triggered): Delete unused variable.
5330 (bpstat_check_watchpoint): Delete unused variable.
5331 (bpstat_stop_status): Delete unused variable.
5332 (print_one_breakpoint_location): Delete unused variable.
5333 (allocate_bp_location): Delete unused variable.
5334 (create_breakpoint): Delete unused variable.
5335 (watch_command_1): Delete unused variable.
5336 (catch_exception_command_1): Delete unused variable.
5337 (catch_ada_exception_command): Delete unused variable.
5338 (delete_breakpoint): Delete unused variable.
5339 (breakpoint_re_set_one): Delete unused variable.
5340 (do_enable_breakpoint): Delete unused variable.
5341
eda5a4d7
PA
53422010-05-06 Pedro Alves <pedro@codesourcery.com>
5343
5344 * amd64-tdep.c: Include disasm.h.
5345 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5346 (amd64_insn_length): Moved to disasm.c and renamed.
5347 (fixup_riprel): Adjust.
5348 * disasm.c (do_ui_file_delete): New.
5349 (gdb_insn_length): New.
5350 (gdb_buffered_insn_length_fprintf)
5351 (gdb_buffered_insn_length_init_dis)
5352 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5353 renamed.
5354 * disasm.h (gdb_insn_length): Declare.
5355 (gdb_buffered_insn_length): Declare.
5356
02357a4a
PA
53572010-05-06 Pedro Alves <pedro@codesourcery.com>
5358
5359 * remote.c (clear_threads_parsing_context): New.
5360 (remote_threads_info): Delete unused null_cleanup. Install a
5361 cleanup to clear the threads_parsing_context in case parsing
5362 throws.
5363
8c5630cb
MS
53642010-05-05 Michael Snyder <msnyder@vmware.com>
5365
5366 * c-exp.y (parse_string_or_char): Delete unused variable.
5367 (c_lex): Delete unused variable.
5368 * cp-name-parser.y (cpname_lex): Delete unused variable.
5369 * ada-exp.y (find_primitive_type): Delete unused variable.
5370 (write_var_or_type): Delete unused variable.
5371 * jv-exp.y (java_parse): Delete unused variable.
5372 (push_expression_name): Delete unused variable.
5373 * p-exp.y (pascal_lex): Delete unused variable.
5374
46c162d4
PA
53752010-05-05 Pedro Alves <pedro@codesourcery.com>
5376
5377 * remote.c (remote_threads_info): Really revert previous previous
5378 change.
5379
0043e6a5
MS
53802010-05-05 Michael Snyder <msnyder@vmware.com>
5381
fa238c03
MS
5382 * elfread.c (elf_symtab_read): Delete unused variable.
5383 (find_separate_debug_file_by_buildid): Delete unused variables.
5384 (elf_symfile_read): Delete unused variable.
5385
5386 * coffread.c (coff_symfile_read): Delete unused variables.
5387
5388 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5389 (read_pe_exported_syms): Delete unused variable.
5390
5391 * stabsread.c (define_symbol): Delete unused variable.
5392
5393 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5394 (process_psymtab_comp_unit): Delete unused variable.
5395 (dwarf2_build_psymtabs_hard): Delete unused variable.
5396 (load_partial_comp_unit): Delete unused variable.
5397 (create_all_comp_units): Delete unused variable.
5398 (scan_partial_symbols): Delete unused variable.
5399 (add_partial_symbol): Delete unused variable.
5400 (add_partial_namespace): Delete unused variable.
5401 (add_partial_enumeration): Delete unused variable.
5402 (load_full_comp_unit): Delete unused variable.
5403 (process_full_comp_unit): Delete unused variable.
5404 (read_file_scope): Delete unused variable.
5405 (read_type_unit_scope): Delete unused variable.
5406 (process_structure_scope): Delete unused variable.
5407 (process_enumeration_scope): Delete unused variable.
5408 (read_tag_ptr_to_member_type): Delete unused variable.
5409 (read_typedef): Delete unused variable.
5410 (read_partial_die): Delete unused variable.
5411 (decode_locdesc): Delete unused variable.
5412 (zeroed_partial_die): Delete unused global variable.
5413
0407b3f1 5414 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5415 Delete unused variable.
0407b3f1 5416 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5417 Delete unused variable.
5418 (tui_check_register_values): Delete unused variable.
5419 (tui_register_format): Delete unused variable.
5420 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5421 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5422 Delete unused variables.
5423 (tui_vertical_data_scroll): Delete unused variables.
5424
75721c66
MS
54252010-05-05 Michael Snyder <msnyder@vmware.com>
5426
c31a71f4
MS
5427 * remote.c (remote_threads_info): Revert questionable part of
5428 the previous change.
5429
54302010-05-05 Michael Snyder <msnyder@vmware.com>
5431
5432 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5433 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5434 (mi_cmd_var_list_children): Delete unused variable.
5435 (varobj_update_one): Delete unused variable.
5436 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5437 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5438 Delete unused variable.
5439 (mi_cmd_stack_list_variables): Delete unused variable.
5440 (list_args_or_locals): Delete unused variable.
0407b3f1 5441 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5442 Delete unused variables.
5443 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5444 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5445 Delete unused variable.
5446 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5447 (mi_cmd_interpreter_exec): Delete unused variable.
5448 (mi_on_normal_stop): Delete unused variable.
5449 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5450 (print_one_inferior): Delete unused variables.
5451 (mi_execute_command): Delete unused variable.
5452 (mi_cmd_execute): Delete unused variable.
5453 (timestamp): Delete unused variable.
5454
5455 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5456 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5457 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5458 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5459 (recurse_read_control_structure): Delete unused variable.
5460 (script_from_file): Delete unused variable.
c31a71f4 5461 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5462 (disassemble_command): Delete unused variable.
5463
5464 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5465 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5466 Delete unused variables.
5467 (encode_actions_1): Delete unused variables.
5468 (start_tracing): Delete unused variable.
5469 (trace_status_mi): Delete unused variable.
5470 (tfind_1): Delete unused variable.
5471 (trace_find_pc_command): Delete unused variable.
5472 (trace_find_line_command): Delete unused variables.
5473 (trace_find_range_command): Delete unused variables.
5474 (trace_find_outside_command): Delete unused variables.
5475 (parse_tracepoint_definition): Delete unused variables.
5476 (tfile_fetch_registers): Delete unused variable.
5477
9128a503
MS
5478 * dcache.c (dcache_init): Delete unused variable.
5479 (dcache_info): Delete unused variable.
5480
aa369b55 5481 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5482 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5483 (remote_get_trace_status): Delete unused variables.
5484
9e9547e4
MS
5485 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5486 (thread_from_lwp): Delete unused variable.
5487 (enable_thread_event_reporting): Delete unused variable.
5488 (check_for_thread_db): Delete unused variables.
5489 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5490
9e9547e4
MS
5491 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5492 (checkpoint_command): Delete unused variable.
5493 (linux_fork_context): Delete unused variables.
5494
fa238c03 5495 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5496 (linux_tracefork_child): Delete unused variable.
5497 (linux_child_follow_fork): Delete unused variable.
5498 (linux_nat_detach): Delete unused variable.
5499 (linux_handle_extended_wait): Delete unused variable.
5500 (linux_nat_has_pending_sigint): Delete unused variable.
5501 (linux_nat_find_memory_regions): Delete unused variable.
5502 (linux_nat_make_corefile_notes): Delete unused variables.
5503 (linux_nat_info_proc_cmd): Delete unused variable.
5504 (linux_proc_pending_signals): Delete unused variable.
5505 (linux_nat_stop_lwp): Delete unused variables.
5506 (_initialize_linux_nat): Delete unused variable.
5507
fa238c03 5508 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5509
0407b3f1 5510 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5511 Delete unused variables.
5512
789d24f0
MS
5513 * corelow.c (core_xfer_partial): Delete unused variables.
5514
1cd337a5 5515 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5516 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5517 conditionally-used variable declarations.
5518
b00e3f56
MS
5519 * solib.c (solib_find): Delete unused variable.
5520 (free_so_symbols): Delete unused variable.
5521 (info_sharedlibrary_command): Delete unused variable.
5522 (reload_shared_libraries_1): Delete unused variable.
5523 (_initialize_solib): Delete unused variable.
5524
90f62196
MS
5525 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5526 (i386_collect_xstateregset): Delete unused variable.
5527 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5528
75721c66
MS
5529 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5530 Delete unused variable 'type'.
5531
af33db37
JB
55322010-05-05 Joel Brobecker <brobecker@adacore.com>
5533
90f62196 5534 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5535 ada-lang.c: Remove comment mentioning these macros.
5536 * m2-exp.y: Delete commented out code.
af33db37 5537
0497f5b0
JB
55382010-05-05 Joel Brobecker <brobecker@adacore.com>
5539
5540 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5541 for array types.
5542 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5543
6e39997a
PM
55442010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5545
5546 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5547 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5548 ATTRIBUTE_UNUSED.
5549 (cleanup_kernel_helper_return): Likewise.
5550 * arm-tdep.c (copy_unmodified): Likewise.
5551 (copy_preload): Likewise.
5552 (copy_copro_load_store): Likewise.
5553 (cleanup_branch): Likewise.
5554 (copy_b_bl_blx): Likewise.
5555 (copy_bx_blx_reg): Likewise.
5556 (copy_alu_imm): Likewise.
5557 (copy_alu_reg): Likewise.
5558 (copy_alu_shifted_reg): Likewise.
5559 (cleanup_load): Likewise.
5560 (cleanup_store): Likewise.
5561 (cleanup_block_load_pc): Likewise.
5562 (cleanup_svc): Likewise.
5563 (copy_undef): Likewise.
5564 (copy_unpred): Likewise.
5565 * remote.c (register_remote_support_xml): Likewise.
5566
1412f70b
HZ
55672010-05-05 Hui Zhu <teawater@gmail.com>
5568
5569 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5570
c4f7c687
MK
55712010-05-04 Mark Kettenis <kettenis@gnu.org>
5572
5573 * remote.c (register_remote_support_xml)
5574 (remote_query_supported_append, remote_query_supported): Add cast
5575 to NULL used as sentinel.
5576 * tracepoint.c (tvariables_info_1): Likewise.
5577 * utils.c (add_internal_problem_command): Likewise.
5578
63b4f126
MGD
55792010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5580
5581 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5582 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5583 registers gracefully.
5584
2f1bdd26
MGD
55852010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5586
0407b3f1 5587 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5588 specific parts.
5589
e1c34c5d
PM
55902010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5591
5592 PR exp/11349.
5593 * printcmd.c (x_command): Only dereference once implicitly for
5594 TYPE_CODE_REF.
5595
ae462839
DE
55962010-05-03 Doug Evans <dje@google.com>
5597
5598 * event-loop.c (gdb_timer): Delete unused global.
5599 (create_timer): Update.
5600
1ac77ea1
JK
56012010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5602
5603 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5604 CURRENT->DECLARATION case.
5605 * cp-support.h (struct using_direct): Provide extended comment.
5606
7c54a108
MK
56072010-05-03 Mark Kettenis <kettenis@gnu.org>
5608
5609 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5610 HPPABSD_SIZEOF_GREGS.
5611 (HPPAOBSD_SIZEOF_FPREGS): New define.
5612 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5613 (hppaobsd_supply_fpregset): New function.
5614 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5615 (hppaobsd_fpregset): New variable.
5616 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5617 (_initialize_hppabsd_tdep): Remove spurious blank line.
5618
278582cb
PM
56192010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5620
5621 PR pascal/11349.
5622 * p-valprint.c (pascal_value_print): Always dereference a value with
5623 type code TYPE_CODE_REF.
0407b3f1 5624
f0223081
PA
56252010-05-03 Pedro Alves <pedro@codesourcery.com>
5626
5627 * remote.c (remote_notice_signals): New.
5628 (remote_start_remote): In non-stop mode, update the remote end on
5629 which signals it can silently pass.
5630 (init_remote_ops): Install remote_notice_signals.
5631
c25c4a8b
JK
56322010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5633
5634 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5635 * command.h (error_no_arg): ... here. Remove NORETURN, change
5636 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5637 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5638 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5639 (internal_verror, internal_error, nomem): Remove NORETURN, change
5640 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5641 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5642 (throw_vfatal, throw_error): Remove NORETURN.
5643 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5644 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5645 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5646 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5647 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5648 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5649 NORETURN.
5650 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5651 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5652 ATTRIBUTE_NORETURN.
5653 * target.c (tcomplain): Likewise.
5654 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5655 ATTRIBUTE_NORETURN.
5656 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5657 (internal_error, perror_with_name, nomem): Remove NORETURN.
5658 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5659 ATTRIBUTE_NORETURN.
5660
a0b31db1
JK
56612010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5662
5663 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5664 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5665 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5666 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5667 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5668 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5669 * complaints.h (complaint, internal_complaint): Likewise.
5670 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5671 (ATTR_FORMAT): Remove.
5672 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5673 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5674 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5675 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5676 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5677 (internal_error, internal_vwarning, internal_warning, warning)
5678 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5679 * disasm.c (fprintf_disasm): Likewise.
5680 * exceptions.c (throw_it): Likewise.
5681 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5682 (throw_error): Likewise.
5683 * language.h (type_error, range_error): Likewise.
5684 * linespec.c (cplusplus_error): Likewise.
5685 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5686 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5687 * monitor.c (monitor_debug): Likewise.
5688 * parser-defs.h (parser_fprintf): Likewise.
5689 * serial.h (serial_printf): Likewise.
5690 * tui/tui-hooks.c (tui_query_hook): Likewise.
5691 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5692 (uo_message): Likewise.
5693 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5694 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5695 Likewise.
5696 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5697
02a45ac0
PA
56982010-05-02 Pedro Alves <pedro@codesourcery.com>
5699
5700 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5701 (cli_table_header, cli_begin, cli_end, cli_field_int)
5702 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5703 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5704 Delete forward declarations.
5705 (cli_ui_out_impl): Move below the callbacks.
5706 (_initialize_cli_out): Delete.
5707
1915ef4f
PA
57082010-05-02 Pedro Alves <pedro@codesourcery.com>
5709
5710 * README: Use consistent `GDB' and `GDBserver' spellings.
5711
0dfb946f
JK
57122010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5713
5714 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5715
4d533103
PA
57162010-05-01 Pedro Alves <pedro@codesourcery.com>
5717
5718 * infrun.c (prepare_for_detach): In non-stop, context switch to
5719 the thread that got the event before handling the event.
5720
705b5767
TT
57212010-04-30 Tom Tromey <tromey@redhat.com>
5722
5723 * symtab.c (symbol_set_names): Fix typo.
5724
3c0ee1a4
PM
57252010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5726
5727 * python/py-param.c (parm_constants): Avoid ARI warning
5728 by adding ARI comment.
5729 (parmpy_init): Likewise.
5730
ea1fae46
PM
57312010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5732
5733 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5734 and created type for re-use.
5735
c24d0242
PM
57362010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5737
5738 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5739
a26d8d11
DE
57402010-04-29 Doug Evans <dje@google.com>
5741
5742 * ser-base.h (reschedule): Delete prototype.
5743 * ser-base.c (reschedule): Make static.
5744
f8624c62
MGD
57452010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5746
5747 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5748 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5749 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5750 EABI.
0407b3f1 5751 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5752 use.
5753
e66408ed
PA
57542010-04-29 Pedro Alves <pedro@codesourcery.com>
5755
5756 PR gdb/11557
5757
5758 * regcache.c (registers_changed): Rename to ...
5759 (registers_changed_ptid): ... this, and only delete register cache
5760 entries matching the ptid filter argument.
5761 (registers_changed): Reimplement on top of registers_changed_ptid.
5762 * regcache.h (registers_changed_ptid): Declare.
5763 * target.c (target_resume): Flush register caches.
5764
d7b32ed3 57652010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5766 Tom Tromey <tromey@redhat.com>
5767 Thiago Jung Bauermann <bauerman@br.ibm.com>
5768
5769 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5770 (SUBDIR_PYTHON_SRCS): Likewise.
5771 (py-parameter.o): New rule.
5772 * python/py-parameter.c: New file.
5773 * python/python-internal.h (gdbpy_initialize_parameter)
5774 (gdbpy_parameter, gdbpy_parameter_value)
5775 (gdbpy_parse_command_name): Declare.
5776 * python/py-cmd.c (parse_command_name): Rename to
5777 gdbpy_parse_command_name.
5778 (gdbpy_parse_command_name): Accept a starting list parameter and
5779 use over cmdlist.
5780 (cmdpy_init): Use gdbpy_parse_command_name.
5781 * python/python.c (parameter_to_python): Rename to
5782 gdbpy_parameter_to_python. Accept enum var_types and value.
5783 (gdbpy_parameter): Use gdbpy_parameter_value.
5784 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5785
ce72ce41
MGD
57862010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5787
5788 * MAINTAINERS: Add myself for write after approval privileges.
5789
6aecb9c2
JB
57902010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5791
5792 D language support.
5793 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5794 (COMMON_OBS): Add d-lang.o d-valprint.o.
5795 (HFILES_NO_SRCDIR): Add d-lang.h.
5796 * NEWS: Mention D language support.
5797 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5798 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5799 * d-lang.c: New file.
5800 * d-lang.h: New file.
5801 * d-valprint.c: New file.
5802 * defs.h (enum language): Add language_d.
5803 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5804 * language.c (binop_result_type, integral_type, character_type)
5805 (string_type, boolean_type, structured_type): Add language_d.
5806 * symfile.c (init_filename_language_table): Add language_d.
5807 * symtab.c: Include d-lang.h.
5808 (symbol_init_language_specific, symbol_find_demangled_name)
5809 (symbol_natural_name, lookup_symbol_in_language)
5810 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5811
6f992fbf
JB
58122010-04-27 Joel Brobecker <brobecker@adacore.com>
5813
5814 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5815
dde59185
JB
58162010-04-27 Joel Brobecker <brobecker@adacore.com>
5817
5818 * symfile.c (init_filename_language_table): Register .dg files
5819 with language_ada.
5820
d09ce91e
JB
58212010-04-27 Joel Brobecker <brobecker@adacore.com>
5822
5823 * gdbtypes.h (struct main_type): Expand comment about target_type
5824 field.
5825
67f1675e
JB
58262010-04-27 Pedro Alves <pedro@codesourcery.com>
5827 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5828
5829 * symfile.c (reread_symbols): Also search for file in libraries.
5830 Update comment.
5831
dfd0fe27
JB
58322010-04-27 Joel Brobecker <brobecker@adacore.com>
5833
5834 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5835 in terms of configuration.
5836
0133421a
JK
58372010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5838
5839 * objfiles.c: Include solist.h.
5840 (free_all_objfiles): New variable so. Check stale solist objfiles.
5841 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5842 and no_shared_libraries.
5843
e78f4312
JB
58442010-04-27 Joel Brobecker <brobecker@adacore.com>
5845
5846 ARI warning fix.
5847 * python/py-auto-load.c (source_section_scripts): Remove trailing
5848 new-line in i18n string.
5849
9214d371
DE
58502010-04-26 Doug Evans <dje@google.com>
5851
5852 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5853
3f172e24
TT
58542010-04-26 Tom Tromey <tromey@redhat.com>
5855
5856 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5857 command list.
5858
e790e06e
PM
58592010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5860
5861 Removal of config/i386/nm-i386sol2.h native configuration file.
5862 * config/i386/nm-i386sol2.h: Remove file.
5863 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5864 * config/i386/sol2-64.mh: Idem.
88562582
PM
5865 * config/djgpp/fnchange.lst: Remove reference to that file.
5866 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5867
b7da9e9f
PM
58682010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5869
5870 PR breakpoints/11531.
5871 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5872 macro definition and related comment.
5873 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5874 (resume): Remove code and comment related to this macro.
5875
72f6eb52
JK
58762010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5877
5878 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5879 Fix whitespace.
5880
ab38a727
PA
58812010-04-24 Pedro Alves <pedro@codesourcery.com>
5882
5883 * defs.h: Adjust comment.
5884 * filesystem.h, filesystem.c: New files.
5885 * Makefile.in (SFILES): Add filesystem.c.
5886 (COMMON_OBS): Add filesystem.o.
5887 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5888 different target and host path flavours.
5889 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5890 has_dos_based_file_system on the gdbarch.
5891 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5892 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5893 * i386-tdep.c (i386_go32_init_abi): Ditto.
5894 * gdbarch.sh (has_dos_based_file_system): New.
5895 * gdbarch.h, gdbarch.c: Regenerate.
5896 * NEWS: Mention improved support for remote targets with DOS-based
5897 filesystems. Mention new `set/show target-file-system-kind'
5898 commands.
5899
35c9c7ba
SS
59002010-04-23 Stan Shebs <stan@codesourcery.com>
5901
5902 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5903 comments.
5904 (struct agent_reqs): Remove.
5905 (ax_reg_mask): Declare.
5906 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5907 (free_agent_expr): Free reg_mask.
5908 (ax_print): Add scope and register mask info.
5909 (ax_reqs): Remove agent_reqs argument, use agent expression
5910 fields, and move part of register mask computation to...
5911 (ax_reg_mask): New function.
5912 * ax-gdb.c (gen_trace_static_fields): Call it.
5913 (gen_traced_pop): Ditto.
5914 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5915 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5916 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5917 (gen_eval_for_expr): Ditto, and require an rvalue.
5918 (agent_command): Call ax_reqs.
5919 (agent_eval_command): Ditto.
5920 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5921 (validate_action_line): Ditto.
5922 (collect_symbol): Ditto.
5923 (encode_actions_1): Ditto.
5924
492928e4
JK
59252010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5926 Paul Pluzhnikov <ppluzhnikov@google.com>
5927 Jan Kratochvil <jan.kratochvil@redhat.com>
5928
5929 Fix deadlock on looped list of loaded shared objects.
5930 * solib-svr4.c (LM_PREV): New function.
5931 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5932 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5933 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5934 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5935
66d09542
DE
59362010-04-23 Doug Evans <dje@google.com>
5937
88a1906b
DE
5938 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5939 python.
5940 * configure: Regenerate.
5941 * main.c: #include "python/python.h".
5942 (captured_main): Defer loading auto-loaded scripts until after
5943 local_gdbinit has been sourced.
5944 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5945 (load_auto_scripts_for_objfile): New function.
5946 (auto_load_new_objfile): Call it.
5947 * python/python.h (gdbpy_global_auto_load): Declare.
5948 (load_auto_scripts_for_objfile): Declare.
5949
66d09542
DE
5950 Add support for auto-loading scripts from .debug_gdb_scripts section.
5951 * NEWS: Add entry for .debug_gdb_scripts.
5952 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5953 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5954 (py-auto-load.o): New rule.
5955 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5956 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5957 * python/py-auto-load.c: New file.
5958 * python/python-internal.h: #include <stdio.h>.
5959 (set_python_list, show_python_list): Declare.
5960 (gdbpy_initialize_auto_load): Declare.
5961 (source_python_script_for_objfile): Declare.
5962 * python/python.c: Remove #include of observer.h.
5963 (gdbpy_auto_load): Moved to py-auto-load.c.
5964 (GDBPY_AUTO_FILENAME): Ditto.
5965 (gdbpy_new_objfile): Delete.
5966 (source_python_script_for_objfile): New function.
5967 (set_python_list, show_python_list): Make externally visible.
5968 (_initialize_python): Move "auto-load" command to py-auto-load.c
5969 and observer_attach_new_objfile to py-auto-load.c.
5970
3a48e6ff 59712010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5972
3a48e6ff
JG
5973 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5974 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5975 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5976 New constants.
5977 (alpha_heuristic_analyze_probing_loop): New function.
5978 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5979 and handle cases when a stack probe loop is generated.
5980 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5981 (alpha_mdebug_max_frame_size_exceeded): New function.
5982 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5983 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5984 Return 0 when the maximum debuggable frame size has been exceeded.
5985
e4166a49
JB
59862010-04-23 Joel Brobecker <brobecker@adacore.com>
5987
5988 Fix ARI warning.
5989 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5990
8bd10a10
CM
59912010-04-20 Chris Moller <cmoller@redhat.com>
5992
5993 PR 10179
5994
5995 * symtab.c (rbreak_command): Added code to include a filename
5996 specification in the rbreak argument.
5997 * NEWS: Added a brief description of filename-qualified rbreak.
5998
c0201579
JK
59992010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 Fix crashes on dangling display expressions.
6002 * ada-lang.c (ada_operator_check): New function.
6003 (ada_exp_descriptor): Fill-in the field operator_check.
6004 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6005 * jv-lang.c (exp_descriptor_java): Likewise.
6006 * m2-lang.c (exp_descriptor_modula2): Likewise.
6007 * scm-lang.c (exp_descriptor_scm): Likewise.
6008 * parse.c (exp_descriptor_standard): Likewise.
6009 (operator_check_standard): New function.
6010 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6011 * parser-defs.h (struct exp_descriptor): New field operator_check.
6012 (operator_check_standard, exp_uses_objfile): New declarations.
6013 * printcmd.c: Remove the inclusion of solib.h.
6014 (display_uses_solib_p): Remove the function.
6015 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6016 and exp_uses_objfile instead of display_uses_solib_p.
6017 * solist.h (struct so_list) <objfile>: New comment.
6018 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6019 * symtab.h (lookup_objfile_from_block): New declaration.
6020 (struct general_symbol_info) <obj_section>: Extend the comment.
6021
6ffbb7ab
TJB
60222010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6023 Thiago Jung Bauermann <bauerman@br.ibm.com>
6024
6025 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6026 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6027 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6028 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6029 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6030 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6031 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6032 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6033 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6034 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6035 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6036 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6037 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6038 Define, in case <ptrace.h> doesn't provide it.
6039 (booke_debug_info): New variable.
6040 (max_slots_number): Ditto.
6041 (hw_break_tuple): New struct.
6042 (thread_points): Ditto.
6043 (ppc_threads): New variable.
6044 (PPC_DEBUG_CURRENT_VERSION): New define.
6045 (have_ptrace_new_debug_booke): New function.
6046 (ppc_linux_check_watch_resources): Renamed to ...
6047 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6048 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6049 (booke_cmp_hw_point): New function.
6050 (booke_find_thread_points_by_tid): Ditto.
6051 (booke_insert_point): Ditto.
6052 (booke_remove_point): Ditto.
6053 (ppc_linux_insert_hw_breakpoint): Ditto.
6054 (ppc_linux_remove_hw_breakpoint): Ditto.
6055 (get_trigger_type): Ditto.
6056 (ppc_linux_insert_watchpoint): Handle BookE processors.
6057 (ppc_linux_remove_watchpoint): Ditto.
6058 (ppc_linux_new_thread): Ditto.
6059 (ppc_linux_thread_exit): New function..
6060 (ppc_linux_stopped_data_address): Handle BookE processors.
6061 (ppc_linux_watchpoint_addr_within_range): Ditto.
6062 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6063 to_remove_hw_breakpoint fields of the target operations struct.
6064 Add observe for the thread_exit event.
6065
be0d2954
L
60662010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6067
6068 * i386-linux-nat.c (regmap): Removed.
6069 (fetch_register): Replace regmap with
6070 i386_linux_gregset_reg_offset.
6071 (store_register): Likewise.
6072 (supply_gregset): Likewise.
6073 (fill_gregset): Likewise.
6074
6075 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6076 global.
6077
6078 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6079
f56dcb88
CM
60802010-04-22 Chris Moller <cmoller@redhat.com>
6081
6082 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6083 method of popping recursion-detection stack with a method based on
6084 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6085 the static array obstack rather than the static member obstack.)
6086
6cd6a2ae
L
60872010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6088
6089 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6090 (_initialize_amd64_linux_nat): Replace
6091 amd64_linux_gregset64_reg_offset with
6092 amd64_linux_gregset_reg_offset.
6093
6094 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6095 global.
6096
6097 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6098
621791b8
PM
60992010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6100
6101 PR stabs/11479.
6102 * stabsread.c (set_length_in_type_chain): New function.
6103 (read_struct_type): Call set_length_in_type_chain function.
6104 (read_enum_type): Idem.
6105
105c2d85
SS
61062010-04-21 Stan Shebs <stan@codesourcery.com>
6107 Nathan Sidwell <nathan@codesourcery.com>
6108
6109 * tracepoint.c (trace_save): Open in binary mode.
6110
9a22f0d0
PM
61112010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6112
6113 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6114 fields.
0407b3f1 6115 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6116 builtin_char32 fields.
6117 * printcmd.c (decode_format): Set char size to '\0'
6118 for strings unless explicit size is given.
6119 (print_formatted): Correct calculation of NEXT_ADDRESS
6120 for 16 or 32 bit strings.
6121 (do_examine): Do not force byte size for strings.
6122 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6123 16 or 32 bit-wide strings.
9a22f0d0
PM
6124 (x_command): Set LAST_SIZE to 'b' for string type.
6125
f335d1b3
L
61262010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6127
6128 PR corefiles/11523
6129 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6130 XCR0 first.
6131
6132 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6133 there is no .reg-xstate section.
6134 (i386_linux_core_read_description): Check XCR0 first.
6135
a9789a6b
MF
61362010-04-21 Mike Frysinger <vapier@gentoo.org>
6137
6138 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6139 for len <= 8.
6140
0b66f317
CM
61412010-04-21 Chris Moller <cmoller@redhat.com>
6142
6143 PR 9167
6144 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6145 method of popping recursion-detection stack with a method based on
6146 obstack_object_size().
0b66f317 6147
6e354e5e
PM
61482010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6149
6150 PR pascal/11492.
6151 * p-valprint.c (pascal_val_print): Fix default printing of integer
6152 arrays.
6153
57174f31
PM
61542010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6155
6156 Fix compilation warning on gcc-4.1.2.
6157 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6158 local variable`pc' to zero.
6159
6fbc7cd8
JB
61602010-04-20 Joel Brobecker <brobecker@adacore.com>
6161
6162 Implement thread support with core files on alpha-tru64.
6163 * dec-thread.c (dec_thread_find_new_threads): New function,
6164 extracted from resync_thread_list.
6165 (resync_thread_list): Add OPS parameter. Replace extracted-out
6166 code by call to dec_thread_find_new_threads.
6167 (dec_thread_wait): Update call to resync_thread_list.
6168 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6169
438c98a1
JB
61702010-04-20 Joel Brobecker <brobecker@adacore.com>
6171
6172 * ada-lang.c (value_pointer): New function.
6173 (make_array_descriptor): Call value_pointer to convert addresses to
6174 pointers.
6175
2971b56b
JB
61762010-04-20 Joel Brobecker <brobecker@adacore.com>
6177
6178 * rs6000-aix-tdep.c: #include exceptions.h.
6179 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6180 while reading the memory at ADDR, then ADDR cannot be a function
6181 descriptor.
6182
be942545
JB
61832010-04-20 Joel Brobecker <brobecker@adacore.com>
6184
6185 * ada-typeprint.c (ada_print_typedef): New function.
6186 * ada-lang.h (ada_print_typedef): Add declaration.
6187 * ada-lang.c (ada_language_defn): set la_print_typdef field
6188 to ada_print_typedef.
6189
1ca8fce0
JB
61902010-04-20 Joel Brobecker <brobecker@adacore.com>
6191
6192 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6193
e9ef4f39
JB
61942010-04-20 Joel Brobecker <brobecker@adacore.com>
6195
6196 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6197 (iterate_over_mappings): Adjust function profile. Add declaration.
6198 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6199 Adjust accordingly.
6200
e294797a
JB
62012010-04-20 Joel Brobecker <brobecker@adacore.com>
6202
6203 * procfs.c (solib_mappings_callback): Move function up to avoid
6204 a compiler warning.
6205
a223f1e7
JB
62062010-04-20 Joel Brobecker <brobecker@adacore.com>
6207
6208 * procfs.c (find_signalled_thread, find_stop_signal): Move
6209 these functions down to define them only when used.
6210
0c3acc09
JB
62112010-04-20 Joel Brobecker <brobecker@adacore.com>
6212
6213 * valprint.c (common_val_print): Fix the value before extracting
6214 its contents.
6215 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6216 * ada-lang.h (ada_to_fixed_value): New function declaration.
6217 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6218 to avoid code duplication and fix a bug in the handling of
6219 fixed types contents.
6220
31ef98ae
TT
62212010-04-20 Tom Tromey <tromey@redhat.com>
6222
6223 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6224 (read_partial_die): Likewise.
6225 (dwarf_attr_name): Likewise.
6226
ec31cde5 62272010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6228
ec31cde5
CM
6229 PR 10867
6230
6231 * cp-valprint.c (global): Adding new static array recursion
6232 detection obstack.
6233 (cp_print_value_fields, cp_print_static_field): Added new static
6234 array recursion detection code.
6235
e0e0e543
MK
62362010-04-20 Mark Kettenis <kettenis@gnu.org>
6237
6238 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6239 general-purpose register set should be 68 instead of 144.
6240 (i386_linux_sse_regset_sections): Likewise.
6241 (i386_linux_avx_regset_sections): Likewise.
6242
08922a10
SS
62432010-04-20 Stan Shebs <stan@codesourcery.com>
6244 Nathan Sidwell <nathan@codesourcery.com>
6245
6246 * dwarf2loc.c (struct axs_var_loc): New struct.
6247 (dwarf2_tracepoint_var_loc): New function.
6248 (dwarf2_tracepoint_var_access): New function.
6249 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6250 with DW_OP_piece.
6251 (locexpr_describe_location_piece): New function.
6252 (locexpr_describe_location_1): New function.
6253 (locexpr_describe_location): Call it, update signature.
6254 (loclist_describe_location): Rewrite to loop over locations,
6255 update signature.
6256 * symtab.h (struct symbol_computed_ops): Add address to
6257 describe_location arguments, return void.
6258 * printcmd.c (address_info): Get context PC, pass to computed
6259 location description.
6260 * tracepoint.c (scope_info): Ditto.
6261 * ax-gdb.c (trace_kludge): Export.
6262
2dc7f7b3
TT
62632010-04-20 Tom Tromey <tromey@redhat.com>
6264
6265 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6266 (struct dwarf2_cie) <segment_size>: New field.
6267 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6268 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6269 DW_FORM_exprloc.
6270 (read_attribute_value): Handle DW_FORM_flag_present,
6271 DW_FORM_sec_offset, DW_FORM_exprloc.
6272 (dump_die_shallow): Likewise.
6273 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6274 (dwarf2_const_value): Handle DW_FORM_exprloc.
6275 (attr_form_is_block): Likewise.
6276 (struct line_header) <maximum_ops_per_instruction>: New field.
6277 (dwarf_decode_line_header): Set new field.
6278 (dwarf_decode_lines): Handle new field.
6279
ce4b0682
SDJ
62802010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 * f-exp.y: Add new production to recognize the `logical*8' type.
6283 (LOGICAL_S8_KEYWORD): New token.
6284 * f-lang.c (enum f_primitive_types)
6285 <f_primitive_type_logical_s8>: New field.
6286 (f_language_arch_info): Handling `logical*8' type.
6287 (build_fortran_types): Building `logical*8' type.
6288 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6289
ff9f22f1
DE
62902010-04-19 Doug Evans <dje@google.com>
6291
6292 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6293 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6294 (pipe_close): Ditto.
6295
437125bd
PM
62962010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6297
6298 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6299
e8e6c82e
PM
63002010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6301
6302 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6303 type to void function.
6304
4136fdd2
SS
63052010-04-19 Stan Shebs <stan@codesourcery.com>
6306 Vladimir Prus <vladimir@codesourcery.com>
6307
6308 * tracepoint.c (tfind_1): Add missing newline, report exit from
6309 tfind mode as such.
6310 * target.c (update_current_target): Make default
6311 to_trace_find return -1.
6312
0c4b2e63
MF
63132010-04-19 Mike Frysinger <vapier@gentoo.org>
6314
6315 * objc-lang.c (find_methods): Move symname check up.
6316
78076abc
PA
63172010-04-19 Pedro Alves <pedro@codesourcery.com>
6318
6319 * ada-lang.c (print_recreate_exception)
6320 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6321 not "catch unhandled".
6322
6149aea9
PA
63232010-04-19 Pedro Alves <pedro@codesourcery.com>
6324
6325 PR breakpoints/8554.
6326
6327 Implement `save-breakpoints'.
6328
6329 * breakpoint.c (save_cmdlist): New.
6330 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6331 to save_cmdlist.
6332 (print_recreate_catch_fork): New.
6333 (catch_fork_breakpoint_ops): Install it.
6334 (print_recreate_catch_vfork): New.
6335 (catch_vfork_breakpoint_ops): Install it.
6336 (print_recreate_catch_syscall): New.
6337 (catch_syscall_breakpoint_ops): Install it.
6338 (print_recreate_catch_exec): New.
6339 (catch_exec_breakpoint_ops): Install it.
6340 (print_recreate_exception_catchpoint): New.
6341 (gnu_v3_exception_catchpoint_ops): Install it.
6342 (save_breakpoints): New, based on tracepoint_save_command, but
6343 handle all breakpoint types.
6344 (save_breakpoints_command): New.
6345 (tracepoint_save_command): Rename to...
6346 (save_tracepoints_command): ... this, and reimplement using
6347 save_breakpoints.
6348 (save_command): New.
6349 (_initialize_breakpoints): Install the "save" command prefix.
6350 Install the "save breakpoints" command. Make "save-tracepoints" a
6351 deprecated alias for "save tracepoints".
6352 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6353 * ada-lang.c (print_recreate_exception): New.
6354 (print_recreate_catch_exception): New.
6355 (catch_exception_breakpoint_ops): Install it.
6356 (print_recreate_catch_exception_unhandled): New.
6357 (catch_exception_unhandled_breakpoint_ops): Install it.
6358 (print_recreate_catch_assert): New.
6359 (catch_assert_breakpoint_ops): Install it.
6360
6361 * NEWS: Mention the new `save breakpoints' command. Mention the
6362 new `save tracepoints' alias and that `save-tracepoints' is now
6363 deprecated.
6364
0a8fce9a
PA
63652010-04-18 Pedro Alves <pedro@codesourcery.com>
6366
6367 PR tui/9217
6368
6369 * tui/tui-out.c: Include cli-out.h.
6370 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6371 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6372 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6373 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6374 declarations.
6375 (struct ui_out_data): Rename to...
6376 (struct tui_ui_out_data): ... this. Remove `stream' and
6377 `suppress_output' fields, and inherit cli_ui_out_data.
6378 (tui_out_data): New typedef.
6379 (tui_ui_out_impl): Don't initialize fields staticaly.
6380 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6381 (tui_begin, tui_end): Delete.
6382 (tui_field_int): Adjust to delegate most work to the base type.
6383 (tui_field_skip): Delete.
6384 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6385 delegate most work to the base type.
6386 (tui_spaces): Delete.
6387 (tui_text): Adjust to delegate most work to the base type.
6388 (tui_message): Delete.
6389 (tui_wrap_hint): Delete.
6390 (tui_flush): Delete.
6391 (out_field_fmt): Delete.
6392 (field_separator): Delete.
6393 (tui_out_new): Adjust to initialize the base type.
6394 (_initialize_tui_out): Initialize tui_ui_out_impl.
6395 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6396 cli_ui_out_data.
6397 (cli_out_data): Adjust.
6398 (cli_ui_out_impl): Make extern.
6399 (cli_table_header, cli_field_int, cli_field_skip): Use
6400 uo_field_string instead of cli_field_string.
6401 (cli_redirect): Adjust to use cli_out_data.
6402 (cli_out_data_ctor): New.
6403 (cli_out_new): Use it.
6404 * cli-out.h (struct ui_file): Remove forward declaration.
6405 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6406 (cli_ui_out_impl): Declare.
6407 (cli_out_data_ctor): Declare.
6408 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6409 (uo_field_string): No longer static.
6410 (ui_out_data): Change return type to void pointer.
6411 (ui_out_new): Change `data' parameter type to void pointer.
6412 * ui-out.h (struct ui_out_data): Don't forward declare.
6413 (ui_out_data): Change return type to void pointer.
6414 (ui_out_new): Change `data' parameter type to void pointer.
6415 (uo_field_string): Declare.
6416
172240dd
PA
64172010-04-17 Pedro Alves <pedro@codesourcery.com>
6418
6419 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6420 instead of always false.
6421
ed41462c
L
64222010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6423
6424 PR corefiles/11511
6425 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6426 orig_rax.
6427
cc60f2e3
PA
64282010-04-17 Pedro Alves <pedro@codesourcery.com>
6429
6430 * breakpoint.c (watchpoints_triggered): Use
6431 is_hardware_watchpoint.
6432 (watchpoints_triggered): Ditto.
6433 (bpstat_check_location): Use is_watchpoint and
6434 is_hardware_watchpoint.
6435 (bpstat_check_watchpoint): Use is_watchpoint and
6436 is_hardware_watchpoint.
6437 (bpstat_stop_status): Fix comment.
6438 (user_settable_breakpoint): Use is_watchpoint.
6439 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6440 (disable_watchpoints_before_interactive_call_start): Use
6441 is_watchpoint.
6442 (enable_watchpoints_after_interactive_call_stop): Use
6443 is_watchpoint.
6444 (clear_command): Use is_watchpoint.
6445 (do_enable_breakpoint): Use is_watchpoint.
6446
cb7db0f2
MF
64472010-04-16 Mike Frysinger <vapier@gentoo.org>
6448
6449 * solib-frv.c (enable_break1_done): Delete.
6450 (enable_break2): Do not check enable_break1_done. Move the
6451 enable_break2_done setting and call to
6452 remove_solib_event_breakpoints() to the end. Return without
6453 warning when the contents of _dl_debug_addr are 0.
6454 (enable_break): Do not set enable_break1_done.
6455 (frv_clear_solib): Likewise.
6456
d77b48cf
KB
64572010-04-16 Kevin Buettner <kevinb@redhat.com>
6458
6459 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6460 instead of an error if no PLT entry is found. Return a
6461 potentially useful result.
6462 (m32c_m16c_pointer_to_address): Add code to search for function
6463 address when no .plt entry is found.
6464
f90824dc
SS
64652010-04-16 Stan Shebs <stan@codesourcery.com>
6466
6467 * tracepoint.c (trace_variable_command): Run a cleanup.
6468
9b79b476
PM
64692010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6470
6471 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6472
711e434b
PM
64732010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6474
6475 Support for Windows OS Thread Information Block.
6476 * NEWS: Document new feature.
6477 * remote.c (PACKET_qGetTIBAddr): New enum element.
6478 (remote_get_tib_address): New function.
6479 (init_remote_ops): Set to_get_tib_address field
6480 to remote_get_tib_address.
6481 (_initialize_remote): Add add_packet_config_cmd
6482 for PACKET_qGetTIBAddr.
6483 * target.c (update_current_target): Set default value for
6484 new to_get_tib_address field.
6485 * target.h (target_ops): New field to_get_tib_address.
6486 (target_get_tib_address): New macro.
6487 * windows-nat.c (thread_info): Add thread_local_base field.
6488 (windows_add_thread): Add tlb argument of type 'void *'.
6489 (fake_create_process): Adapt windows_add_thread call.
6490 (get_windows_debug_event): Idem.
6491 (windows_get_tib_address): New function.
6492 (init_windows_ops): Set to_get_tib_address field
6493 to remote_get_tib_address.
6494 (_initialize_windows_nat): Replace info_w32_cmdlist
6495 initialization by a call to init_w32_command_list.
6496 (info_w32_command, info_w32_cmdlist): Removed from here...
6497 to windows-tdep.c file.
6498 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6499 (init_w32_command_list): New external function
711e434b
PM
6500 declaration.
6501 * windows-tdep.c: Add several headers.
6502 (info_w32_cmdlist): to here, made global.
6503 (thread_information_32): New struct.
6504 (thread_information_64): New struct.
6505 (TIB_NAME): New char array.
6506 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6507 (maint_display_all_tib): New static variable.
6508 (windows_get_tlb_type): New function.
6509 (tlb_value_read, tlb_value_write): New functions.
6510 (tlb_value_funcs): New static struct.
6511 (tlb_make_value): New function.
6512 (display_one_tib): New function.
6513 (display_tib): New function.
6514 (show_maint_show_all_tib):New function.
6515 (info_w32_command): Moved from windows-nat.c.
6516 (init_w32_command_list): New function.
6517 (_initialize_windows_tdep): New function.
6518 New "maint set/show show-all-tib" command
6519 New "$_tlb" internal variable.
6520
cae3f17b
JB
65212010-04-16 Joel Brobecker <brobecker@adacore.com>
6522
6523 * tui/tui-regs.c (tui_display_register): Add comment about
6524 a couple of casts.
6525 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6526
2ce6d6bf
SS
65272010-04-15 Stan Shebs <stan@codesourcery.com>
6528
6529 * frame.c: Include tracepoint.h.
6530 (get_current_frame): Allow a trace frame to be an alternate source
6531 of stack frame data.
6532 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6533 it won't succeed.
6534
7e559477
PA
65352010-04-15 Pedro Alves <pedro@codesourcery.com>
6536
6537 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6538 flags.
6539 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6540
3f7b2faa
DE
65412010-04-15 Doug Evans <dje@google.com>
6542
fa33c3cd
DE
6543 * NEWS: Add entry for python program space support.
6544 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6545 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6546 (py-progspace.o): New rule.
6547 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6548 function.
6549 (find_pretty_printer_from_progspace): New function.
6550 (find_pretty_printer_from_gdb): New function.
6551 (find_pretty_printer): Rewrite.
6552 * python/py-progspace.c: New file.
6553 * python/python-internal.h (program_space): Add forward decl.
6554 (pspace_to_pspace_object, pspy_get_printers): Declare.
6555 (gdbpy_initialize_pspace): Declare.
6556 * python/python.c: #include "progspace.h".
6557 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6558 (_initialize_python): Call gdbpy_initialize_pspace.
6559 (GdbMethods): Add current_progspace, progspaces.
6560
3f7b2faa
DE
6561 Add -s option to source command.
6562 * NEWS: Document new option.
6563 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6564 Delete from_tty and cleanupp args. Split filep arg into file and
6565 full_pathp. New arg search_path.
6566 (source_script_from_stream): New function.
6567 (source_script_with_search): New function.
6568 (source_script): Rewrite.
6569 (source_command): Parse "-s" option.
6570 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6571 * python/python.c (source_python_script): Make file arg a const char *.
6572 Don't call fclose, leave for caller.
6573 * python/python.h (source_python_script): Update.
6574
a86988f2
PA
65752010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6576 Pedro Alves <pedro@codesourcery.com>
6577
6578 Avoid rereading shared libraries that haven't changed.
6579
6580 * solib.c (free_so_symbols): New function, from ...
6581 (free_so): ... here. Call it.
6582 (solib_read_symbols): Don't warn here if symbols have already been
6583 loaded.
6584 (solib_add): Warn here instead, if a pattern was specified.
6585 (reload_shared_libraries_1): New.
6586 (reload_shared_libraries): Rewrite to not fetch the library list.
6587
e6d9b9c2
DE
65882010-04-14 Doug Evans <dje@google.com>
6589
589390d6 6590 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6591 concatenating string to search path.
6592
516ba659
PA
65932010-04-14 Pedro Alves <pedro@codesourcery.com>
6594
6595 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6596 * objfiles.c (gdb_bfd_close_or_warn): New.
6597 * corelow.c: Include objfiles.h
6598 (core_close): Use gdb_bfd_close_or_warn.
6599 * elfread.c (build_id_verify): Ditto.
6600 * exec.c (exec_close, exec_close_1): Ditto.
6601
048d532d
PA
66022010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6603 Pedro Alves <pedro@codesourcery.com>
6604
6605 Group errors for many missing shared libraries.
6606
6607 * solist.h (struct so_list): Remove from_tty.
6608 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6609 (solib_map_sections): Take so_list argument. Return 0 if we
6610 failed to open a BFD. Add target sections here.
6611 (symbol_add_stub): Delete.
6612 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6613 not from_tty copied from the so_list. Don't warn a second time
6614 for a missing library.
6615 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6616 add to the section table here. Print out a single warning for all
6617 missing libraries.
6618 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6619 flags.
6620
044c0f87
PM
66212010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6622
6623 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6624 error/warning messages. Capitalize and use complete sentences.
6625 (blpy_block_syms_iternext): Likewise.
6626 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6627 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6628 (frame_info_to_frame_object, frapy_read_var)
6629 (gdbpy_frame_stop_reason_string): Likewise.
6630 * python/py-lazy-string.c (stpy_convert_to_value)
6631 (gdbpy_create_lazy_string_object): Likewise.
6632 * python/py-objfile.c (objfpy_set_printers): Likewise.
6633 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6634 * python/python.c (parameter_to_python): Likewise.
6635 * python/py-type.c (typy_range, typy_target): Likewise.
6636 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6637 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6638
6639
79f283fe
PM
66402010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6641
6642 PR python/11381
6643
6644 * python/py-prettyprint.c (pretty_print_one_value): Test for
6645 Py_None.
6646 (print_string_repr): Test for Py_None. Set flags accordingly.
6647 Return value depending on return type.
6648 (print_children): Take a value indicating whether data was printed
6649 before this function was called. Alter output accordingly.
6650 (apply_val_pretty_printer): Capture return value from
6651 print_string_repr and pass to print_children.
6652
4ac5d44e
MK
66532010-04-13 Mark Kettenis <kettenis@gnu.org>
6654
e1caee70 6655 PR corefiles/11481
4ac5d44e
MK
6656 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6657 register note sections.
6658 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6659 New variables.
6660 (i386_linux_init_abi): Install list of supported register note
6661 sections that matches the target description.
6662
ad91cd99
PA
66632010-04-13 Pedro Alves <pedro@codesourcery.com>
6664
6665 * remote.c (remote_get_noisy_reply): Don't error out on empty
6666 replies.
6667 (remote_start_remote): Update and merge tracepoints and trace
6668 state variables as long as the target supports tracepoints.
6669 (remote_trace_init): Fix prototype.
6670 (remote_download_trace_state_variable): Validate reply.
6671 (remote_trace_set_readonly_regions): Fix prototype.
6672 (remote_trace_start): Fix prototype. Check for empty reply.
6673 (remote_get_trace_status): Small cleanup.
6674 (remote_trace_stop): Fix prototype. Check for empty reply.
6675 (remote_trace_find): Check for empty reply.
6676 (remote_save_trace_data): Validate reply.
6677 (remote_set_disconnected_tracing): Check for empty reply, and
6678 validate reply.
6679 (remote_set_circular_trace_buffer): Ditto.
6680
ae3bccd4
PM
66812010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6682
6683 Suppress unused value warning during compilation.
6684 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6685 calls to void.
6686 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6687
523136f2
SS
66882010-04-12 Stan Shebs <stan@codesourcery.com>
6689
6690 * tracepoint.c (tfile_xfer_partial): Check read result.
6691
0d18d720
MF
66922010-04-12 Mike Frysinger <vapier@gentoo.org>
6693
6694 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6695 * remote-sim.c (gdbsim_files_info): Likewise.
6696
3b273a55
RE
66972010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6698
6699 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6700 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6701 variable.
6702 (fetch_vfp_registers): New function to fetch VFP registers.
6703 (store_vfp_registers): New function to store VFP registers.
6704 (arm_linux_fetch_inferior_registers): Add support for VFP
6705 registers.
6706 (arm_linux_store_inferior_registers): Likewise.
6707 (arm_linux_read_description): Likewise.
6708 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6709 until we need it.
6710
778c7095
L
67112010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6712
6713 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6714 tdep.
6715 (amd64_collect_xstateregset): Likewise.
6716
2114d44c
SS
67172010-04-09 Stan Shebs <stan@codesourcery.com>
6718
87290684
SS
6719 * tracepoint.c (trace_status_mi): Report frames created.
6720
2114d44c
SS
6721 * tracepoint.c (trace_dump_command): Include default-collect
6722 expressions.
6723
86da934b
UW
67242010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6725
6726 * symtab.c (find_function_start_sal): Never return SAL pointing
6727 before function start address, even if line info is missing.
6728
2d6e647a 67292010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6730
6731 * NEWS: Mention tracepoints support.
6732
a97153c7
PA
67332010-04-09 Pedro Alves <pedro@codesourcery.com>
6734
6735 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6736 circular trace buffer statuses.
6737
7a66d603
JK
67382010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6739
6740 * config/djgpp/fnchange.lst: Fix typo in translations for
6741 symbol-without-target_section.exp and symbol-without-target_section.c.
6742
2566ad2d
PA
67432010-04-09 Pedro Alves <pedro@codesourcery.com>
6744
6745 * breakpoint.c (condition_command): Pass condition expression to
6746 set_breakpoint_condition stripped from breakpoint number.
6747
adc36818
PM
67482010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6749 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6750 Tom Tromey <tromey@redhat.com>
adc36818
PM
6751
6752 * breakpoint.c (condition_command): Simplify. Move condition
6753 setting code to ...
6754 (set_breakpoint_condition): ... here. New function.
6755 * breakpoint.h (set_breakpoint_condition): Declare.
6756 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6757 (SUBDIR_PYTHON_SRCS): Likewise.
6758 (py-breakpoint.o): New rule.
6759 * python/py-breakpoint.c: New file.
6760 * python/python-internal.h (gdbpy_breakpoints)
6761 (gdbpy_initialize_breakpoints): Declare.
6762 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6763
219f2f23
PA
67642010-04-09 Pedro Alves <pedro@codesourcery.com>
6765
6766 * regformats/regdat.sh: Include server.h. Don't include
6767 regcache.h.
6768
33da3f1c
SS
67692010-04-08 Stan Shebs <stan@codesourcery.com>
6770 Pedro Alves <pedro@codesourcery.com>
6771
6772 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6773 and circular_buffer.
6774 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6775 * tracepoint.c (trace_status_command): Display target's status for
6776 disconnected tracing and circular buffer.
6777 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6778 query for non-disconnected-tracing case, remove the stop_tracing
6779 call.
6780 (tfile_open): Clear disconnected and circular buffer status.
6781 (trace_save): Save disconnected and circular buffer status.
6782 (parse_trace_status): Parse disconnected and circular buffer status,
6783 also recognize disconnected as a stop reason.
6784 * remote.c (remote_set_disconnected_tracing): Only set
6785 QTDisconnected if the remote end supports disconnected tracing.
6786 Warn otherwise, if trying to enable disconnected tracing.
6787 * infcmd.c (detach_command): Update disconnect_tracing call.
6788 * cli/cli-cmds.c (quit_command): Ditto.
6789
4e4d8374
L
67902010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6791
6792 * i387-tdep.c (i387_collect_xsave): Replace abort with
6793 internal_error.
6794
ad443146
SS
67952010-04-08 Stan Shebs <stan@codesourcery.com>
6796
6797 * breakpoint.c (default_collect_info): New function.
6798 (breakpoints_info): Call it.
6799 (maintenance_info_breakpoints): Ditto.
6800 (tracepoints_info): Ditto.
6801
40936b0d
L
68022010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6803
6804 * i387-tdep.c (i387_collect_xsave): Re-indent.
6805
3a13a53b
L
68062010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6807
6808 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6809 if HAVE_PTRACE_GETFPXREGS is defined.
6810 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6811 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6812
6813 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6814 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6815 if .reg-xfp section doesn't exist.
6816 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6817
6818 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6819
6820 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6821 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6822 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6823 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6824 (i386_gdbarch_init): Update comments.
6825 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6826
6827 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6828
6829 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6830
6831 * features/Makefile (i386/i386-mmx-expedite): New.
6832 (i386/i386-mmx-linux-expedite): Likewise.
6833 ($(outdir)/i386/i386-mmx.dat): Likewise.
6834 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6835
6836 * features/i386/i386-mmx-linux.c: New.
6837 * features/i386/i386-mmx-linux.xml: Likewise.
6838 * features/i386/i386-mmx.c: Likewise.
6839 * features/i386/i386-mmx.xml: Likewise.
6840 * regformats/i386/i386-mmx-linux.dat: Likewise.
6841 * regformats/i386/i386-mmx.dat: Likewise.
6842
6843 * features/Makefile (WHICH): Add i386/i386-mmx and
6844 i386/i386-mmx-linux.
6845
08001717
DE
68462010-04-08 Doug Evans <dje@google.com>
6847
6848 * source.c (openp): Skip $cdir in PATH.
6849
fff5cc64
PM
68502010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6851
6852 PR python/11417
fff5cc64 6853 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6854 a NULL address.
6855 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6856 address and a zero length.
fff5cc64 6857
f8c4f480
HZ
68582010-04-08 Hui Zhu <teawater@gmail.com>
6859
6860 * i386-tdep.c (i386_process_record): Add support for insn
6861 rdtsc.
6862
eb5cda86
DE
68632010-04-07 Doug Evans <dje@google.com>
6864
6865 * python/python.c (source_python_script): Use ensure_python_env
6866 to prepare environment for script.
6867
a055a187
L
68682010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6869
6870 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6871 <sys/uio.h> and "i386-xstate.h".
6872 (PTRACE_GETREGSET): New.
6873 (PTRACE_SETREGSET): Likewise.
6874 (have_ptrace_getregset): Likewise.
6875 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6876 registers.
6877 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6878 registers.
6879 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6880 (amd64_linux_store_inferior_registers): Likewise.
6881 (amd64_linux_read_description): Check and enable AVX target
6882 descriptions.
6883
6884 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6885 and "features/i386/amd64-avx-linux.c".
6886 (amd64_linux_regset_sections): New.
6887 (amd64_linux_core_read_description): Check and enable AVX
6888 target description.
6889 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6890 set_gdbarch_core_regset_sections.
6891 (_initialize_amd64_linux_tdep): Call
6892 initialize_tdesc_amd64_avx_linux.
6893
6894 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6895 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6896 (tdesc_amd64_avx_linux): New.
6897 (amd64_linux_update_xstateregset): Likewise.
6898
6899 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6900 (amd64_ymm_names): New.
6901 (amd64_ymmh_names): Likewise.
6902 (amd64_register_name): Likewise.
6903 (amd64_supply_xstateregset): Likewise.
6904 (amd64_collect_xstateregset): Likewise.
6905 (amd64_supply_xsave): Likewise.
6906 (amd64_collect_xsave): Likewise.
6907 (AMD64_NUM_REGS): Removed.
6908 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6909 %xmmN if AVX is available.
6910 (amd64_pseudo_register_name): Support pseudo YMM registers.
6911 (amd64_regset_from_core_section): Support .reg-xstate section.
6912 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6913 and ymm0h_regnum. Call set_gdbarch_register_name.
6914 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6915
6916 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6917 AMD64_YMM15H_REGNUM.
6918 (AMD64_NUM_REGS): New.
6919 (amd64_supply_xsave): Likewise.
6920 (amd64_collect_xsave): Likewise.
6921 (amd64_register_name): Removed.
6922 (amd64_register_type): Likewise.
6923
31aeac78
L
69242010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6925
6926 * i387-tdep.c: Include "i386-xstate.h".
6927 (XSAVE_XSTATE_BV_ADDR): New.
6928 (xsave_avxh_offset): Likewise.
6929 (XSAVE_AVXH_ADDR): Likewise.
6930 (i387_supply_xsave): Likewise.
6931 (i387_collect_xsave): Likewise.
6932
6933 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6934 (I387_YMM0H_REGNUM): Likewise.
6935 (I387_YMMENDH_REGNUM): Likewise.
6936 (i387_supply_xsave): Likewise.
6937 (i387_collect_xsave): Likewise.
6938
c131fcee
L
69392010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6940
6941 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6942 <sys/uio.h> and "i386-xstate.h".
6943 (PTRACE_GETREGSET): New.
6944 (PTRACE_SETREGSET): Likewise.
6945 (fetch_xstateregs): Likewise.
6946 (store_xstateregs): Likewise.
6947 (GETXSTATEREGS_SUPPLIES): Likewise.
6948 (regmap): Include 8 upper YMM registers.
6949 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6950 state.
6951 (i386_linux_store_inferior_registers): Likewise.
6952 (i386_linux_read_description): Check and enable AVX target
6953 descriptions.
6954
6955 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6956 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6957 (i386_linux_regset_sections): Add ".reg-xstate".
6958 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6959 (i386_linux_core_read_xcr0): New.
6960 (i386_linux_core_read_description): Check and enable AVX target
6961 description.
6962 (i386_linux_init_abi): Set xsave_xcr0_offset.
6963 (_initialize_i386_linux_tdep): Call
6964 initialize_tdesc_i386_avx_linux.
6965
6966 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6967 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6968 (i386_linux_core_read_xcr0): New.
6969 (tdesc_i386_avx_linux): Likewise.
6970 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6971
6972 * i386-tdep.c: Include "i386-xstate.h" and
6973 "features/i386/i386-avx.c".
6974 (i386_ymm_names): New.
6975 (i386_ymmh_names): Likewise.
6976 (i386_ymmh_regnum_p): Likewise.
6977 (i386_ymm_regnum_p): Likewise.
6978 (i386_xmm_regnum_p): Likewise.
6979 (i386_register_name): Likewise.
6980 (i386_ymm_type): Likewise.
6981 (i386_supply_xstateregset): Likewise.
6982 (i386_collect_xstateregset): Likewise.
6983 (i386_sse_regnum_p): Removed.
6984 (i386_pseudo_register_name): Support pseudo YMM registers.
6985 (i386_pseudo_register_type): Likewise.
6986 (i386_pseudo_register_read): Likewise.
6987 (i386_pseudo_register_write): Likewise.
6988 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6989 %xmmN if AVX is available.
6990 (i386_regset_from_core_section): Support .reg-xstate section.
6991 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6992 (i386_process_record): Replace i386_sse_regnum_p with
6993 i386_xmm_regnum_p.
6994 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6995 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6996 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6997 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6998 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6999 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7000 Set ymm0_regnum.
7001 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7002
7003 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7004 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7005 i386_ymm_type.
7006 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7007 (I386_AVX_NUM_REGS): New.
7008 (i386_xmm_regnum_p): Likewise.
7009 (i386_ymm_regnum_p): Likewise.
7010 (i386_ymmh_regnum_p): Likewise.
7011
7012 * common/i386-xstate.h: New.
7013
98adf0f3
L
70142010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7015
7016 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7017
7018 * features/Makefile (WHICH): Add i386/i386-avx,
7019 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7020 (i386/i386-avx-expedite): New.
7021 (i386/i386-avx-linux-expedite): Likewise.
7022 (i386/x86-64-avx-expedite):Likewise.
7023 (i386/x86-64-avx-linux-expedite): Likewise.
7024 ($(outdir)/i386/i386-avx.dat): New dependency.
7025 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7026 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7027 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7028
7029 * features/i386/32bit-avx.xml: New.
7030 * features/i386/64bit-avx.xml: Likewise.
7031 * features/i386/i386-avx-linux.c: Likewise.
7032 * features/i386/i386-avx-linux.xml: Likewise.
7033 * features/i386/i386-avx.c: Likewise.
7034 * features/i386/i386-avx.xml: Likewise.
7035 * features/i386/x86-64-avx-linux.c: Likewise.
7036 * features/i386/x86-64-avx-linux.xml: Likewise.
7037 * features/i386/x86-64-avx.c: Likewise.
7038 * features/i386/x86-64-avx.xml: Likewise.
7039 * regformats/i386/i386-avx-linux.dat: Likewise.
7040 * regformats/i386/i386-avx.dat: Likewise.
7041 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7042 * regformats/i386/x86-64-avx.dat: Likewise.
7043
05159abe
DE
70442010-04-07 Doug Evans <dje@google.com>
7045
7046 * top.c (source_file_name): Make const char *.
7047 * top.h (source_file_name): Update.
7048 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7049 const char *.
7050 (script_from_file): Change `file' arg to const char *.
7051 * cli/cli-script.h (script_from_file): Update.
7052
96e39866
DE
70532010-04-06 Doug Evans <dje@google.com>
7054
7055 * cli/cli-cmds.c (source_command): Run cleanups.
7056
3149d8c1
SS
70572010-04-06 Stan Shebs <stan@codesourcery.com>
7058
7059 * defs.h (char_ptr): Move typedef here from...
7060 * ada-lang.c (char_ptr): Remove.
7061 * charset.c (char_ptr): Remove.
7062 * tracepoint.h (struct uploaded_string): Remove.
7063 (struct uploaded_tp): Use vectors for string arrays.
7064 * tracepoint.c (trace_save): Use vectors of actions.
7065 (parse_tracepoint_definition): Ditto.
7066 (get_uploaded_tp): Clear vectors.
7067 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7068 (next_cmd): Change to an int.
7069 (read_next_cmd): Use vector of command strings.
7070
4cc23ede
DE
70712010-04-06 Doug Evans <dje@google.com>
7072
7073 * top.h (source_script, cd_command): Delete.
7074 * main.c: #include "cli/cli-cmds.h"
7075
bd333fb7
KB
70762010-04-06 Kevin Buettner <kevinb@redhat.com>
7077
7078 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7079 type in bytes, not bits.
7080
ec8a089a
PM
70812010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7082
7083 * stabsread.c (define_symbol): Add support for char
7084 and string constants.
7085
2244ba2e
PM
70862010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7087
7088 Remove remaining "%ll" uses.
7089 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7090 hex_string call.
7091 * rs6000-nat.c (rs6000_ptrace64): Idem.
7092 * solib-pa64.c (pa64_current_sos): Idem.
7093 * solib-spu.c (spu_current_sos): Idem.
7094 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7095 plongest call.
7096 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7097 phex (VAR, 8) call.
7098 * sh64-tdep.c (sh64_show_media_regs): Idem.
7099
fce3c1f0
SS
71002010-04-05 Stan Shebs <stan@codesourcery.com>
7101
7102 * tracepoint.c: Include gdbcore.h.
7103 (tfile_xfer_partial): Return partial results, also try reading
7104 from executable.
7105 (tfile_has_all_memory): New function.
7106 (init_tfile_ops): Use it.
7107
626ea16d
SDJ
71082010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7109
7110 PR gdb/10736:
7111 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7112 the changes in data-directory.
7113 (init_sysinfo): Reload the syscall XML file if the data-directory
7114 has changed.
7115
1f7ccab2
JK
71162010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7117
7118 Code cleanup.
7119 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7120
d77f58be
SS
71212010-04-04 Stan Shebs <stan@codesourcery.com>
7122 Nathan Sidwell <nathan@codesourcery.com>
7123
7124 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7125 breakpoints printed.
7126 (is_hardware_watchpoint): Make argument const.
7127 (is_watchpoint): Ditto.
7128 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7129 use it everywhere.
7130 (breakpoints_info): Pass NULL to breakpoint_1.
7131 (maintenance_info_breakpoints): Ditto.
7132 (watchpoints_info): New function.
7133 (tracepoints_info): Use breakpoint_1 filter.
7134 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7135 (_initialize_breakpoint): Make "info watchpoints" its own command.
7136 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7137 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7138
af54718e
SS
71392010-04-04 Stan Shebs <stan@codesourcery.com>
7140
7141 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7142
74d1f91e
JK
71432010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7144
7145 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7146 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7147
91d91ceb
JK
71482010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7149
7150 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7151 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7152
60531b24
JK
71532010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7154
7155 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7156 code form.
7157
a3c4230a
HZ
71582010-04-02 Hui Zhu <teawater@gmail.com>
7159
7160 * i386-tdep.c (OT_DQUAD): New enum.
7161 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7162 SSE3, SSSE3 and SSE4.
7163
b15758fe
HZ
71642010-04-02 Hui Zhu <teawater@gmail.com>
7165
7166 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7167 "*addr = 0".
7168
afd02f27
PA
71692010-04-02 Pedro Alves <pedro@codesourcery.com>
7170
7171 * tracepoint.c (trace_dump_actions): New, factored out from
7172 trace_dump_command, and adjusted to recurse into while-stepping's
7173 action list.
7174 (trace_dump_command): Use it.
7175
5cea2a26
PA
71762010-04-02 Pedro Alves <pedro@codesourcery.com>
7177
7178 * breakpoint.h (struct counted_command_line): Moved definition to
7179 breakpoint.c, and forward declare.
7180 (breakpoint_commands): Declare.
7181 * breakpoint.c (struct counted_command_line): Moved here.
7182 (breakpoint_commands): New.
7183 * tracepoint.c (encode_actions): Use breakpoint_commands.
7184 * remote.c (remote_download_tracepoint): Ditto.
7185
7c47795c
L
71862010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7187
7188 * remote.c (remote_parse_stop_reply): Use hex_string instead
7189 of phex_nz for error.
7190
fff87407
SS
71912010-04-01 Stan Shebs <stan@codesourcery.com>
7192 Nathan Sidwell <nathan@codesourcery.com>
7193
7194 * tracepoint.h (enum actionline_type): Remove.
7195 (validate_actionline): Change return to void.
7196 * tracepoint.c (report_agent_reqs_errors): New function.
7197 (validate_actionline): Call it, change return to void, report errors
7198 more consistently.
7199 (collect_symbol): Call report_agent_reqs_errors.
7200 (encode_actions_1): Ditto.
7201 (encode_actions): Don't expect a result from validate_actionline.
7202
615bcdef
SS
72032010-04-01 Stan Shebs <stan@codesourcery.com>
7204
7205 * tracepoint.c (trace_start_command): Confirm if trace is running.
7206 (trace_stop_command): Error if trace not running.
7207
fe01d668
L
72082010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7211 (AMD64_NUM_LOWER_BYTE_REGS): New.
7212 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7213 (amd64_pseudo_register_write): Likewise.
7214 (amd64_init_abi): Set num_byte_regs to 20.
7215
86b17b60
PA
72162010-04-01 Pedro Alves <pedro@codesourcery.com>
7217
7218 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7219 (prev_breakpoint_count): New.
7220 (set_breakpoint_count): Adjust.
7221 (rbreak_start_breakpoint_count): New.
7222 (start_rbreak_breakpoints): Adjust.
7223 (end_rbreak_breakpoints): Adjust.
7224 (struct commands_info) <arg>: New field.
7225 (do_map_commands_command): Tweak output to include breakpoint spec
7226 range.
7227 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7228 ARG was empty on entry. Set INFO's arg.
7229 (create_breakpoint): Adjust.
7230
7231 * NEWS: Clarify `commands' changes.
7232
2c58c0a9
PA
72332010-04-01 Pedro Alves <pedro@codesourcery.com>
7234
7235 * tracepoint.c: Include stack.h.
7236 (struct add_local_symbols_data): New.
7237 (do_collect_symbol): New.
7238 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7239 iterate_over_block_local_vars.
7240 * stack.c (print_block_frame_locals): Rewrite as ...
7241 (iterate_over_block_locals): ... this. Take a callback function
7242 pointer and generic data pointer, and call that instead of
7243 print_variable_and_value.
7244 (struct print_variable_and_value_data): New.
7245 (do_print_variable_and_value): New.
7246 (iterate_over_block_local_vars): New, abstracted out from
7247 print_frame_local_vars.
7248 (print_frame_local_vars): Rewrite using
7249 iterate_over_block_local_vars.
7250 (iterate_over_block_arg_vars): New, abstracted out from
7251 print_frame_arg_vars.
7252 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7253 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7254 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7255
d476da0e
RE
72562010-03-31 Richard Earnshaw <rearnsha@arm.com>
7257
7258 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7259 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7260 PC register.
7261
8072405b
JK
72622010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7263
7264 Fix crash on reading wrong function declaration DWARF.
7265 * dwarf2read.c (read_subroutine_type): New variable void_type.
7266 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7267 more close to their use.
7268
8bf6485c
SS
72692010-03-31 Stan Shebs <stan@codesourcery.com>
7270
7271 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7272 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7273 * tracepoint.c (save_trace_state_variables): New function.
7274 * tracepoint.h (save_trace_state_variables): Declare it.
7275
2ae2a0b7
PM
72762010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7277
1a161f72 7278 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7279
86ffb506
KS
72802010-03-30 Keith Seitz <keiths@redhat.com>
7281
7282 * c-typeprint.c (c_type_print_args): Don't print "void"
7283 for java, regardless of whether it is TYPE_PROTOTYPED.
7284 Use the passed-in language instead of current_language.
7285 (c_type_print_varspec_suffix): Use current_language instead
7286 of assuming language_c.
7287 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7288 any return type specifier from the physname.
7289
956c2c8b
PA
72902010-03-30 Pedro Alves <pedro@codesourcery.com>
7291
7292 * tui/tui-interp.c (tui_is_toplevel): New.
7293 (tui_init): Set it.
7294 (tui_allowed_p): New.
7295 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7296 enabling it.
7297 * tui/tui.h (tui_allowed_p): Declare.
7298
98e5a990
TT
72992010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7300
7301 * serial.h: Include winsock2.h before windows.h.
7302
c8d5aac9
L
73032010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7304
7305 * NEWS: Mention xmlRegisters= in qSupported packet.
7306
7307 * i386-tdep.c: Include "remote.h".
7308 (_initialize_i386_tdep): Call register_remote_support_xml.
7309
7310 * remote.c (remote_support_xml): New.
7311 (register_remote_support_xml): Likewise.
7312 (remote_query_supported_append): Likewise.
7313 (remote_query_supported): Support remote_support_xml.
7314
7315 * remote.h (register_remote_support_xml): New.
7316
76a2b958
SS
73172010-03-29 Stan Shebs <stan@codesourcery.com>
7318
42e08e69
SS
7319 * tracepoint.c (trace_find_line_command): Remove dead code.
7320
409873ef
SS
7321 * tracepoint.h (struct uploaded_string): New struct.
7322 (struct uploaded_tp): New fields for source strings.
7323 * breakpoint.c (this_utp, next_cmd): New globals.
7324 (read_uploaded_action): New function.
7325 (create_tracepoint_from_upload): Fill in more parts
7326 of a tracepoint.
7327 * tracepoint.c (encode_source_string): New function.
7328 (trace_save): Write out source strings, fix error checks.
7329 (parse_tracepoint_definition): Add source string parsing.
7330 * remote.c (PACKET_TracepointSource): New packet type.
7331 (remote_download_command_source): New function.
7332 (remote_download_tracepoint): Download source pieces also.
7333 (_initialize_remote): Add packet config command.
7334
a0405854
SS
7335 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7336 expression handler.
7337
76a2b958
SS
7338 * tracepoint.c (start_tracing): Check tracepoints before sending
7339 commands to target, don't start if all tracepoints disabled.
7340
d350db38
PA
73412010-03-28 Pedro Alves <pedro@codesourcery.com>
7342
12f2d601 7343 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7344
8b9b7ef8
SS
73452010-03-26 Stan Shebs <stan@codesourcery.com>
7346
7347 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7348
9766ced4
SS
73492010-03-26 Tom Tromey <tromey@redhat.com>
7350
7351 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7352
059acae7
UW
73532010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7354
7355 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7356 (skip_prologue_sal): Remove local definition.
7357 (resolve_sal_pc): Remove now unnecessary code.
7358 * linespec.c (minsym_found): Call skip_prologue_sal.
7359 * symtab.c (find_function_start_pc): Remove.
7360 (find_function_start_sal): Extract prologue skipping into ...
7361 (skip_prologue_sal): ... this new function. Handle code both
7362 with and without debug info. Respect SAL's explicit_pc and
7363 explicit_line flags. Inline old find_function_start_pc.
7364 * symtab.h (find_function_start_pc): Remove.
7365 (skip_prologue_sal): Add prototype.
7366
4a811a97
UW
73672010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7368
7369 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7370 for DW_TAG_imported_module children.
7371
907af001
UW
73722010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7373
7374 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7375 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7376 * completer.c (add_struct_fields): Fix inverted logic.
7377
dde2d684
UW
73782010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7379
7380 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7381
a609a0c8
PA
73822010-03-26 Pedro Alves <pedro@codesourcery.com>
7383
7384 * tracepoint.c (current_trace_status): Don't make sure error_desc
7385 is non-NULL here.
7386 (parse_trace_status): Release a previous error_desc string, and
7387 set it to NULL by default. If stop reason is tracepoint_error,
7388 make sure error_desc is not left NULL.
7389
610197fd
PA
73902010-03-26 Pedro Alves <pedro@codesourcery.com>
7391
7392 * tracepoint.c (trace_save): Remove X from tracepoint error
7393 description.
7394
99b5e152
PA
73952010-03-26 Pedro Alves <pedro@codesourcery.com>
7396
7397 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7398 the terror description. Don't expect an X prefix.
7399
6c28cbf2
SS
74002010-03-25 Stan Shebs <stan@codesourcery.com>
7401
7402 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7403 (struct trace_status): New field error_desc.
7404 * tracepoint.c (stop_reason_names): Add terror.
7405 (current_trace_status): Ensure non-NULL error description.
7406 (trace_status_command): Add error report.
7407 (trace_status_mi): Ditto.
7408 (trace_save): Add special case for error description.
7409 (parse_trace_status): Add case for errors.
7410
418835cc
KS
74112010-03-25 Keith Seitz <keiths@redhat.com>
7412
7413 * dwarf2read.c (read_subroutine_type): If the compilation unit
7414 language is Java, mark any formal parameter named "this" as
7415 artificial (GCC/43521).
7416 (dwarf2_name): Add special handling for Java constructors.
7417
aa7d318d
TT
74182010-03-25 Tom Tromey <tromey@redhat.com>
7419
7420 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7421 * infrun.c (handle_inferior_event): Change initialization of
7422 stop_stack_dummy.
7423 (handle_inferior_event): Change assignment to stop_stack_dummy.
7424 (normal_stop): Update use of stop_stack_dummy.
7425 (struct inferior_status) <stop_stack_dummy>: Change type.
7426 * inferior.h (stop_stack_dummy): Update.
7427 * infcmd.c (stop_stack_dummy): Change type.
7428 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7429 function.
7430 (call_function_by_hand): Call set_std_terminate_breakpoint.
7431 Rewrite std::terminate handling.
7432 * breakpoint.h (enum bptype) <bp_std_terminate,
7433 bp_std_terminate_master>: New.
7434 (enum stop_stack_kind): New.
7435 (struct bpstat_what) <call_dummy>: Change type.
7436 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7437 Declare.
7438 * breakpoint.c (create_std_terminate_master_breakpoint): New
7439 function.
7440 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7441 Call create_std_terminate_master_breakpoint.
7442 (print_it_typical): Handle new breakpoint kinds.
7443 (bpstat_stop_status): Handle bp_std_terminate_master.
7444 (bpstat_what): Correctly set call_dummy field. Handle
7445 bp_std_terminate_master and bp_std_terminate.
7446 (print_one_breakpoint_location): Update.
7447 (allocate_bp_location): Update.
7448 (set_std_terminate_breakpoint): New function.
7449 (delete_std_terminate_breakpoint): Likewise.
7450 (create_thread_event_breakpoint): Update.
7451 (delete_command): Update.
7452 (breakpoint_re_set_one): Update.
7453 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7454
82ccf5a5
JK
74552010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7456
7457 * symfile.c (build_section_addr_info_from_bfd): New.
7458 (build_section_addr_info_from_objfile): Base it on
7459 build_section_addr_info_from_bfd.
7460 (addrs_section_compar, addrs_section_sort): New.
7461 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7462 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7463 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7464
737c4c52
MS
74652010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7466
8d95cc3b 7467 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7468 Remove unused local variable.
7469
95a42b64
TT
74702010-03-24 Tom Tromey <tromey@redhat.com>
7471
7472 PR breakpoints/9352:
7473 * NEWS: Mention changes to `commands' and `rbreak'.
7474 * symtab.c (do_end_rbreak_breakpoints): New function.
7475 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7476 end_rbreak_breakpoints.
7477 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7478 (set_breakpoint_count): Likewise. Clear last_was_multi.
7479 (multi_start, multi_end, last_was_multi): New globals.
7480 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7481 functions.
7482 (struct commands_info): New
7483 (do_map_commands_command): New function.
7484 (commands_command_1): New function.
7485 (commands_command): Use it.
7486 (commands_from_control_command): Likewise.
7487 (do_delete_breakpoint): New function.
7488 (delete_command): Use it.
7489 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7490 (do_map_disable_breakpoint): New function.
7491 (disable_command): Use it.
7492 (do_map_enable_breakpoint): New function.
7493 (enable_command): Use it.
7494 (enable_once_breakpoint): Add argument.
7495 (enable_once_command): Update.
7496 (enable_delete_breakpoint): Add argument.
7497 (enable_delete_command): Update.
7498 (break_command_really): Set last_was_multi when needed.
7499 (check_tracepoint_command): Fix formatting.
7500 (validate_commands_for_breakpoint): New function.
7501 (breakpoint_set_commands): Use it.
7502 (tracepoint_save_command): Update.
7503 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7504 Declare.
7505
9add0f1b
TT
75062010-03-24 Tom Tromey <tromey@redhat.com>
7507
7508 * breakpoint.h (struct counted_command_line): New struct.
7509 (struct breakpoint) <commands>: Change type.
7510 (struct bpstats) <commands>: Change type.
7511 <commands_left>: New field.
7512 * breakpoint.c (alloc_counted_command_line): New function.
7513 (incref_counted_command_line): Likewise.
7514 (decref_counted_command_line): Likewise.
7515 (do_cleanup_counted_command_line): Likewise.
7516 (make_cleanup_decref_counted_command_line): Likewise.
7517 (breakpoint_set_commands): Use decref_counted_command_line and
7518 alloc_counted_command_line.
7519 (commands_command): Don't error if breakpoint commands are
7520 executing.
7521 (commands_from_control_command): Likewise.
7522 (bpstat_free): Update.
7523 (bpstat_copy): Likewise.
7524 (bpstat_clear_actions): Likewise.
7525 (bpstat_do_actions_1): Likewise.
7526 (bpstat_stop_status): Likewise.
7527 (print_one_breakpoint_location): Likewise.
7528 (delete_breakpoint): Likewise.
7529 (bpstat_alloc): Initialize new field.
7530 (tracepoint_save_command): Update.
7531 * tracepoint.c (encode_actions): Update.
7532 (trace_dump_command): Update.
7533
a6c727b2
DJ
75342010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7535
7536 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7537 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7538 (read_structure_type): For RealView, set TYPE_STUB on structures with
7539 no byte size and no children.
7540 (read_subroutine_type): Mark functions as prototyped by default.
7541 * symtab.c (producer_is_realview): New function.
7542 * symtab.h (expand_line_sal): Fix declaration formatting.
7543 (producer_is_realview): Declare.
7544
0d39a070
DJ
75452010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7546
7547 * arm-tdep.c (skip_prologue_function): New function.
7548 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7549 (thumb_analyze_prologue): Document return value. Recognize more
7550 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7551 Add debug output.
7552 (arm_skip_prologue): Remove call dummy check. Check the prologue
7553 for non-GNU compilers.
7554 (arm_instruction_changes_pc): New function.
7555 (arm_analyze_prologue): New function, broken out from
7556 arm_scan_prologue. Recognize more ARM instructions and skippable
7557 calls. Update comments. Handle NULL cache. Return the address
7558 of the first unrecognized instruction. Do not skip past other
7559 instructions which change control flow. Add debug output.
7560 (arm_scan_prologue): Use arm_analyze_prologue.
7561 (ARM_PC_32): Delete.
7562 (shifted_reg_val): Simplify ARM_PC_32 check.
7563
4baf5cf4
VP
75642010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7565
7566 * tracepoint.c (tvariables_info_1): Actually compute
7567 the number of rows in the result.
7568
4a5e7a5b
PA
75692010-03-24 Pedro Alves <pedro@codesourcery.com>
7570
7571 * remote.c (crc32): Constify `buf' parameter.
7572 (remote_verify_memory): New, abstracted out from...
7573 (compare_sections_command): ... this. Remove hardcoded target
7574 checks.
7575 (init_remote_ops): Install remote_verify_memory.
7576 * target.c (target_verify_memory): New.
7577 * target.h (struct target_ops) <to_verify_memory>: New field.
7578 (target_verify_memory): Declare.
7579
011aacb0
VP
75802010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7581
7582 Implement -trace-save.
7583
7584 * mi-cmds.h (mi_cmds_trace_save): Declare.
7585 * mi-cmds.c (mi_cmds): Register -trace-save.
7586 * mi/mi-main.c (mi_cmd_trace_save): New.
7587 * remote.c (remote_save_trace_data): Take const parameter.
7588 * target.h (struct target_ops::to_save_trace_data): Take
7589 const parameter.
7590 * target.c (update_current_target): Adjust to the above.
7591 * tracepoint.c (trave_save): New, extracted from
7592 (trace_save_command): ...this.
7593 (tfile_trace_find): Remove message that is unnecessary now
7594 that 'tfind' reports found frame.
7595 * tracepoint.h (trace_save): Declare.
7596
f197e0f1
VP
75972010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7598
7599 Implement -trace-find.
7600
7601 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7602 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7603 * mi/mi-main.c (mi_cmd_trace_find): New.
7604 * target.h (struct target_ops): Document to_trace_find.
7605 * tracepoint.h (tfind_1): Declare.
7606 * tracepoint.c (finish_tfind_command): Rename to...
7607 (tfind_1): ...this.
7608 * remote.c (remote_trace_find): Return -1 if target say
7609 there's no frame. Improve error diagnostics.
7610
40e1c229
VP
76112010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7612
7613 -trace-define-variable and -trace-list-variables.
7614
7615 * tracepoint.c (create_trace_state_variable): Make
7616 private copy of name, as opposed to assuming the
7617 pointer lives forever.
7618 (tvariables_info_1): New.
7619 (tvariables_info): Use the above.
7620 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7621 Declare.
7622 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7623 and -trace-list-variables.
7624 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7625 (mi_cmd_trace_list_variables): New.
7626 * mi/mi-main.c (mi_cmd_trace_define_variable)
7627 (mi_cmd_trace_list_variables): New.
7628
9b4c786c
VP
76292010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7630
7631 Implement -break-passcount.
7632
7633 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7634 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7635 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7636
f224b49d
VP
76372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7638
7639 -trace-start/-trace-end/-trace-status.
7640
7641 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7642 and -trace-stop.
7643 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7644 (mi_cmd_trace_stop): Declare.
7645 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7646 (mi_cmd_trace_stop): New.
7647 * tracepoint.c (start_tracing): New, extracted from...
7648 (trace_start_command): ...this.
7649 (trace_status_mi): New.
7650 * tracepoint.h (struct trace_status): Document
7651 stopping_tracepoint.
7652 (start_tracing, stop_tracing, trace_status_mi): Declare.
7653
6534d786
VP
76542010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7655
7656 Implement creating tracepoints with -break-insert.
7657
7658 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7659 to mean that tracepoint should be created.
7660
51661e93
VP
76612010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7662
7663 * breakpoint.c (check_no_tracepoint_commands): Use
7664 current spelling of 'teval'.
7665
a7bdde9e
VP
76662010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7667
7668 Unify actions and commands
7669
7670 * defs.h (read_command_lines, read_command_lines_1): New
7671 parameters validator and closure.
7672 * tracepoint.h (struct action_line): Remove.
7673 * breakpoint.h (struct breakpoint): Remove the 'actions'
7674 field.
7675 * defs.h (enum command_control_type): New value
7676 while_stepping_control.
7677 (struct command_line): Add comments.
7678 * breakpoint.c (breakoint_is_tracepoint): New.
7679 (breakpoint_set_commands): For tracepoints,
7680 verify the commands are permissible.
7681 (check_tracepoint_commands): New.
7682 (commands_command): Require that each new line is validated using
7683 check_tracepoint_command, if we set commands for a tracepoint.
7684 (create_tracepoint_from_upload): Likewise.
7685 (print_one_breakpoint_location): Remove the code to print
7686 actions specifically.
7687 (tracepoint_save_command): Relay to print_command_lines.
7688 * cli/cli-script.c (process_next_line): New parameters validator
7689 and closure. Handle 'while-stepping'. Call validator if not null.
7690 (read_command_lines, read_command_lines1): Likewise.
7691 (recurse_read_control_structure): New parameters validator and
7692 closure. Handle while_stepping_control.
7693 (print_command_lines): Handle while-stepping.
7694 (get_command_line, define_command, document_command): Adjust.
7695 * remote.c (remote_download_tracepoint): Adjust.
7696 * tracepoint.c (make_cleanup_free_actions, read_actions)
7697 (free_actions, do_free_actions_cleanup): Remove.
7698 (trace_actions_command): Use read_command_lines.
7699 (validate_actionline): Use error in one place.
7700 (encode_actions_1): New, extracted from...
7701 (encode_actions): ...this. Also use cleanups for exception
7702 safety.
7703 (trace_dump_command): Adjust.
7704 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7705 it's tracepoint.
7706
64e3cf3d
MF
77072010-03-23 Mike Frysinger <vapier@gentoo.org>
7708
7709 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7710
52e9fde8
SS
77112010-03-22 Stan Shebs <stan@codesourcery.com>
7712
7713 * value.c (value_static_field): Be lazy about the field's value.
7714
508ccb1f
TT
77152010-03-22 Reid Kleckner <reid@kleckner.net>
7716
7717 PR gdb/11094
7718 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7719 bp_jit_event.
7720 (disable_breakpoints_in_shlibs): Likewise.
7721
acebe513
UW
77222010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7723
7724 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7725 GCC 4.1 debug info generation (GCC PR c++/28460).
7726 (determine_prefix): Likewise.
7727
957b8b5a
DJ
77282010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7729
7730 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7731 get_current_arch.
7732 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7733
3b11a015
SS
77342010-03-19 Stan Shebs <stan@codesourcery.com>
7735
7736 * ax-gdb.c (gen_fetch): Handle bool.
7737 (gen_usual_unary): Ditto.
7738 (gen_cast): Ditto.
7739 (gen_equal): New function.
7740 (gen_less): New function.
7741 (gen_expr_binop_rest): Call them, also return integer type from
7742 logical operations.
7743 (gen_expr): Ditto.
7744
20781792
TT
77452010-03-19 Tom Tromey <tromey@redhat.com>
7746
7747 * jv-lang.c (jv_dynamics_objfile_data_key)
7748 (jv_type_objfile_data_key): New globals.
7749 (class_symtab): Move earlier.
7750 (jv_per_objfile_free): New function.
7751 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7752 parameter.
7753 Remove ancient #if 1.
7754 (add_class_symbol): Remove redundant declaration.
7755 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7756 (java_link_class_type): Mark as static. Update.
7757 (jv_clear_object_type): New function.
7758 (set_java_object_type): Likewise.
7759 (get_java_object_type): Use set_java_object_type.
7760 (is_object_type): Likewise.
7761 (_initialize_java_language): Register new objfile keys.
7762 (get_java_class_symtab): Add 'gdbarch' parameter.
7763 (add_class_symtab_symbol): Update.
7764 (type_from_class): Update.
7765
cf3e25ca
SS
77662010-03-19 Stan Shebs <stan@codesourcery.com>
7767
8d95cc3b 7768 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7769
f1ae44c9 77702010-03-18 Joel Brobecker <brobecker@adacore.com>
7771
7772 GDB 7.1 released.
7773
4daf5ac0
SS
77742010-03-18 Stan Shebs <stan@codesourcery.com>
7775 Pedro Alves <pedro@codesourcery.com>
7776
7777 * target.h (struct target_ops): New method
7778 to_set_circular_trace_buffer.
7779 (target_set_circular_trace_buffer): New macro.
7780 * target.c (update_current_target): Add
7781 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7782 default behavior.
7783 * remote.c (remote_set_circular_trace_buffer): New function.
7784 (init_remote_ops): Add it to vector.
7785 * tracepoint.h (struct trace_status): New field traceframes_created,
7786 change buffer_size and buffer_free to int.
7787 * tracepoint.c (circular_trace_buffer): New global.
7788 (start_tracing): Send values of disconnected tracing and circular
7789 trace buffer settings.
7790 (set_circular_trace_buffer): New function.
7791 (parse_trace_state): Handle total space and frames created.
7792 (trace_status_command): Display total space and total frames
7793 created.
7794 (trace_save): Write out new status values.
7795 (parse_trace_status): Set traceframe_count, traceframes_created,
7796 buffer_free and buffer_size to -1 by default.
7797 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7798 * NEWS: Mention the circular trace buffer option.
7799
40c549d6
TT
78002010-03-18 Tom Tromey <tromey@redhat.com>
7801
7802 * infcmd.c (finish_command_continuation): Wrap print_return_value
7803 in TRY_CATCH.
7804
e8d05480
JB
78052010-03-18 Joel Brobecker <brobecker@adacore.com>
7806
7807 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7808 DIE has a name before creating the associated partial symbol.
7809 (read_func_scope): Emit a complaint if the subprogram does not
7810 have a name or when we can't extract the subprogram PC bounds.
7811
441b986a
UW
78122010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7813
7814 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7815 instead of selected frame architecture.
7816
4247603b
PA
78172010-03-18 Pedro Alves <pedro@codesourcery.com>
7818
7819 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7820 a valid selected thread, and that it is not running.
7821 (advance_command): Ditto.
7822 (finish_command): Ditto.
7823
400c6af0
SS
78242010-03-17 Stan Shebs <stan@codesourcery.com>
7825
3a96536b
SS
7826 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7827
573cda03
SS
7828 * infcall.c: Include tracepoint.h.
7829 (call_function_by_hand): Disallow calls in tfind mode.
7830 * infcmd.c: Include tracepoint.h.
7831 (ensure_not_tfind_mode): New function.
7832 (continue_1): Call it.
7833 (step_1) Ditto.
7834 (jump_command): Ditto.
7835 (signal_command): Ditto.
7836 (advance_command): Ditto.
7837 (until_command): Ditto.
7838 (finish_command): Ditto.
7839 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7840
400c6af0
SS
7841 * ax-gdb.h (struct axs_value): New field optimized_out.
7842 (gen_trace_for_var): Add gdbarch argument.
7843 * ax-gdb.c (gen_trace_static_fields): New function.
7844 (gen_traced_pop): Call it, add gdbarch argument.
7845 (gen_trace_for_expr): Update call to it.
7846 (gen_trace_for_var): Ditto, and report optimized-out variables.
7847 (gen_struct_ref_recursive): Check for optimized-out value.
7848 (gen_struct_elt_for_reference): Ditto.
7849 (gen_static_field): Pass gdbarch instead of expression, assume
7850 optimization if field not found.
7851 (gen_var_ref): Set the optimized_out flag.
7852 (gen_expr): Error on optimized-out variable.
7853 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7854 expressions, skip optimized-out variables with computed locations.
7855 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7856 erroring out if location expression missing.
7857 (loclist_tracepoint_var_ref): Don't error out here.
7858
a3b2a86b
TT
78592010-03-17 Tom Tromey <tromey@redhat.com>
7860
7861 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7862 DWARF data is available.
7863
38963c97
DJ
78642010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7865
7866 * symfile.c (generic_load): Reset breakpoints after loading.
7867
ddabfc73
TT
78682010-03-17 Tom Tromey <tromey@redhat.com>
7869
7870 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7871
d8c09fb5
JK
78722010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7875 create_breakpoint call, adjust the parameters.
7876
bbb0eef6
JK
78772010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7878 Chandru <chandru@in.ibm.com>
7879
7880 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7881 * valarith.c (value_subscripted_rvalue): Suppress error if
7882 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7883
46956e39
HZ
78842010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7885
7886 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7887
b8d088ac
JB
78882010-03-16 Joel Brobecker <brobecker@adacore.com>
7889
7890 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7891 before doing the associated thread switch.
7892
322be962
DJ
78932010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7894
7895 * MAINTAINERS: Update my email address.
7896
8cdf0e15
VP
78972010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7898
7899 Simplify MI breakpoint setting.
7900
7901 * breakpoint.c (break_command_really): Make nonstatic and
7902 rename to...
7903 (create_breakpoint): ...this. Rename prior function by this name
7904 to...
7905 (create_breakpoint_sal): ...this.
7906 (create_breakpoints): Rename to...
7907 (create_breakpoints_sal): ...this.
7908 (set_breakpoint): Remove.
7909 * breakpoint.h: Adjust to above changes.
7910 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7911
b6e7192f
SS
79122010-03-15 Stan Shebs <stan@codesourcery.com>
7913
7914 * ax-gdb.c: Include cp-support.h.
7915 (find_field): Remove.
7916 (gen_primitive_field): New function.
7917 (gen_struct_ref_recursive): New function.
7918 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7919 of find_field.
7920 (gen_static_field): New function.
7921 (gen_struct_elt_for_reference): New.
7922 (gen_namespace_elt): New.
7923 (gen_maybe_namespace_elt): New.
7924 (gen_aggregate_elt_ref): New.
7925 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7926
1054b214
TT
79272010-03-15 Tom Tromey <tromey@redhat.com>
7928
7929 * dwarf2read.c (die_needs_namespace): Also return 0 for
7930 DW_TAG_subprogram.
7931
13387711
SW
79322010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7933
7934 PR c++/7936:
7935 * cp-support.h: Added char *declaration element to using_direct
7936 data struct.
7937 (cp_add_using): Added char *declaration argument.
7938 (cp_add_using_directive): Ditto.
7939 (cp_lookup_symbol_imports): made extern.
7940 * cp-namespace.c: Updated with the above changes.
7941 * dwarf2read.c (read_import_statement): Ditto.
7942 (read_namespace): Ditto.
7943 (read_import_statement): Support import declarations.
7944 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7945 declarations.
7946 Added support for 'declaration_only' search.
7947 (cp_lookup_symbol_namespace): Attempt to search for the name as
7948 is before consideration of imports.
7949 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7950 search at every block level search.
7951 Now takes language argument.
7952 (lookup_symbol_aux): Updated.
7953
6e31430b
TT
79542010-03-15 Tom Tromey <tromey@redhat.com>
7955
7956 * c-exp.y (name_not_typename): Add 'operator' clause.
7957
4dea3bb7 79582010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7959
7960 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7961 * configure: Regenerate.
7962
4d9743af
JK
79632010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7964
7965 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7966 and ".sdynbss". Update the comment.
7967
f75150fe
JZ
79682010-03-15 Jie Zhang <jie@codesourcery.com>
7969
7970 * MAINTAINERS: Update my email address.
7971
3c13bc11
DJ
79722010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7973
7974 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7975
43484f03
DJ
79762010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7977
7978 * charset.c [USE_WIN32API]: Include <windows.h>.
7979 (_initialize_charset): Correct type of w32_host_default_charset.
7980
5f25d77d
PA
79812010-03-14 Pedro Alves <pedro@codesourcery.com>
7982
7983 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7984
1c809c68
TT
79852010-03-12 Tom Tromey <tromey@redhat.com>
7986
7987 PR c++/9708:
7988 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7989 in a lexical block does not need a namespace.
7990 (new_symbol) <DW_TAG_variable>: Put extern variables on
7991 list_in_scope in all cases.
7992
948103cf
SS
79932010-03-12 Stan Shebs <stan@codesourcery.com>
7994
7995 * ax-gdb.c (gen_expr): Add shift expressions.
7996 (gen_expr_binop_rest): Ditto.
7997
00ae8fef
SW
79982010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7999
8000 * buildsym.c (finish_block): Reset using_directives pointer
8001 after block initialization.
8002
9cad29ac
L
80032010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8004
8005 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8006 * i386-tdep.c (i386_word_names): Likewise.
8007
2f4d8875
PA
80082010-03-12 Pedro Alves <pedro@codesourcery.com>
8009
8010 * target.c (memory_xfer_partial): Don't use the stack cache if
8011 inspecting trace frames.
8012 * tracepoint.c (finish_tfind_command): Invalidate the target
8013 dcache.
8014
ccf26247
JK
80152010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8016
8017 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8018 for the PIC displacement, print also the displacement value.
8019 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8020
477c84a7
KB
80212010-03-10 Kevin Buettner <kevinb@redhat.com>
8022
8023 * remote-mips.c (close_ports, mips_initialize_cleanups)
8024 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8025 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8026 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8027 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8028 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8029 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8030 comments describing each of these functions.
8031 (mips_enter_debug, mips_exit_debug, common_open)
8032 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8033 blank line after the comment describing the function.
8034
01c30d6e
JK
80352010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8038 parameter displacementp. Update comment.
8039 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8040 element exists. Return if svr4_exec_displacement was not successful.
8041 Update comment.
8042
09919ac2
JK
80432010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8044 Daniel Jacobowitz <dan@codesourcery.com>
8045
8046 * solib-svr4.c (read_program_header): Support type == -1 to read
8047 all program headers.
8048 (read_program_headers_from_bfd): New function.
8049 (svr4_static_exec_displacement): Remove and move the comment ...
8050 (svr4_exec_displacement): ... here. Remove variable found. New
8051 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8052 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8053 targets using read_program_headers_from_bfd. Remove the call of
8054 svr4_static_exec_displacement.
8055
d146bf1e
TT
80562010-03-10 Tom Tromey <tromey@redhat.com>
8057
8058 * dwarf2read.c (struct pubnames_header): Remove.
8059 (_PUBNAMES_HEADER): Remove.
8060 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8061 (struct aranges_header): Remove.
8062 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8063 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8064 (PUBNAMES_SECTION): Remove.
8065 (ARANGES_SECTION): Remove.
8066 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8067 (dwarf2_build_psymtabs): Remove dead code.
8068 (dwarf2_build_psymtabs_easy): Remove.
8069
be391dca
TT
80702010-03-10 Tom Tromey <tromey@redhat.com>
8071
8072 * elfread.c (elf_symfile_read): Don't call
8073 dwarf2_build_frame_info.
8074 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8075 (struct dwarf2_per_objfile) <objfile>: New field.
8076 (dwarf2_has_info): Now idempotent. Set objfile field.
8077 (dwarf2_read_section): Check and set readin field. Call
8078 posix_madvise.
8079 (dwarf2_build_psymtabs): Don't read all sections.
8080 (read_type_comp_unit_head): Read types section.
8081 (create_debug_types_hash_table): Likewise.
8082 (init_cu_die_reader): Add asserts.
8083 (process_type_comp_unit): Add assert.
8084 (dwarf2_build_psymtabs_hard): Read info section.
8085 (load_partial_comp_unit): Add assert.
8086 (create_all_comp_units): Read info section.
8087 (load_full_comp_unit): Likewise.
8088 (dwarf2_ranges_read): Read ranges section.
8089 (dwarf2_record_block_ranges): Add assert.
8090 (dwarf2_read_abbrevs): Read abbrev section.
8091 (read_indirect_string): Read str section.
8092 (dwarf_decode_line_header): Read line section.
8093 (read_signatured_type_at_offset): Read types section.
8094 (dwarf_decode_macros): Read macinfo section.
8095 (dwarf2_symbol_mark_computed): Read loc section.
8096 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8097 dwarf2_build_frame_info.
8098 (dwarf2_build_frame_info): Unconditionally set
8099 dwarf2_frame_objfile_data on the objfile.
8100 * configure.ac: Check for posix_madvise.
8101 * config.in, configure: Rebuild.
8102
ccefe4c4
TT
81032010-03-10 Tom Tromey <tromey@redhat.com>
8104
e38df1d0
TT
8105 * xcoffread.c (xcoff_start_psymtab): Update.
8106 (xcoff_end_psymtab): Update.
8107 * psymtab.c (allocate_psymtab): Remove dead code.
8108 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8109 void*.
8110 * mdebugread.c (parse_partial_symbols): Update.
8111 (new_psymtab): Likewise.
8112 * dwarf2read.c (process_psymtab_comp_unit): Update.
8113 (psymtab_to_symtab_1): Update.
8114 * dbxread.c (start_psymtab): Update.
8115 (end_psymtab): Likewise.
8116
be391dca 81172010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8118
ccefe4c4
TT
8119 * xcoffread.c: Include psymtab.h.
8120 (xcoff_sym_fns): Update.
8121 * symtab.h (struct partial_symbol): Remove.
8122 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8123 (struct partial_symtab): Remove.
8124 (PSYMTAB_TO_SYMTAB): Remove.
8125 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8126 (find_pc_sect_psymtab): Remove.
8127 (find_pc_sect_symtab_via_partial): Declare.
8128 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8129 (find_main_psymtab): Remove.
8130 (find_main_filename): Declare.
8131 (fixup_psymbol_section): Remove.
8132 (fixup_section): Declare.
8133 * symtab.c: Include psymtab.h.
8134 (lookup_symtab): Use lookup_symtab method.
8135 (lookup_partial_symtab): Remove.
8136 (find_pc_sect_psymtab_closer): Remove.
8137 (find_pc_sect_psymtab): Remove.
8138 (find_pc_sect_symtab_via_partial): New function.
8139 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8140 (fixup_section): No longer static.
8141 (fixup_psymbol_section): Remove.
8142 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8143 (lookup_global_symbol_from_objfile): Likewise.
8144 (lookup_symbol_aux_psymtabs): Remove.
8145 (lookup_symbol_aux_quick): New function.
8146 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8147 (lookup_partial_symbol): Remove.
8148 (basic_lookup_transparent_type_quick): New function.
8149 (basic_lookup_transparent_type): Use it.
8150 (find_main_psymtab): Remove.
8151 (find_main_filename): New function.
8152 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8153 (find_line_symtab): Use expand_symtabs_with_filename method.
8154 (output_partial_symbol_filename): New function.
8155 (sources_info): Use map_partial_symbol_filenames.
8156 (struct search_symbols_data): New type.
8157 (search_symbols_file_matches): New function.
8158 (search_symbols_name_matches): Likewise.
8159 (search_symbols): Use expand_symtabs_matching method.
8160 (struct add_name_data): Rename from add_macro_name_data.
8161 (add_macro_name): Update.
8162 (add_partial_symbol_name): New function.
8163 (default_make_symbol_completion_list): Use
8164 map_partial_symbol_names.
8165 (struct add_partial_symbol_name): New type.
8166 (maybe_add_partial_symtab_filename): New function.
8167 (make_source_files_completion_list): Use
8168 map_partial_symbol_filenames.
8169 (expand_line_sal): Use expand_symtabs_with_filename method.
8170 * symmisc.c: Include psymtab.h.
8171 (print_objfile_statistics): Use print_stats method.
8172 (dump_objfile): Use dump method.
8173 (dump_psymtab, maintenance_print_psymbols)
8174 (maintenance_info_psymtabs, maintenance_check_symtabs)
8175 (extend_psymbol_list): Remove.
8176 * symfile.h (struct quick_symbol_functions): New struct.
8177 (struct sym_fns) <qf>: New field.
8178 (sort_pst_symbols): Remove.
8179 (increment_reading_symtab): Declare.
8180 * symfile.c: Include psymtab.h.
8181 (compare_psymbols, sort_pst_symbols): Remove.
8182 (psymtab_to_symtab): Remove.
8183 (increment_reading_symtab): New function.
8184 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8185 method.
8186 (set_initial_language): Use find_main_filename.
8187 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8188 (free_named_symtabs): Remove unused code.
8189 (start_psymtab_common, add_psymbol_to_bcache)
8190 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8191 Remove.
8192 * stack.c: Include psymtab.h, symfile.h.
8193 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8194 * source.h (psymtab_to_fullname): Don't declare.
8195 * source.c: Include psymtab.h.
8196 (select_source_symtab): Use find_last_source_symtab method.
8197 (forget_cached_source_info): Use forget_cached_source_info
8198 method.
8199 (find_and_open_source): No longer static.
8200 (psymtab_to_fullname): Remove.
8201 * somread.c: Include psymtab.h.
8202 (som_sym_fns): Update.
8203 * psympriv.h: New file.
8204 * psymtab.h: New file.
8205 * psymtab.c: New file.
8206 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8207 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8208 * objfiles.c: Include psymtab.h.
8209 (objfile_relocate1): Use relocate method.
8210 (objfile_has_partial_symbols): Use has_symbols method.
8211 * mipsread.c: Include psymtab.h.
8212 (ecoff_sym_fns): Update.
8213 * mi/mi-cmd-file.c: Include psymtab.h.
8214 (print_partial_file_name): New function.
8215 (mi_cmd_file_list_exec_source_files): Use
8216 map_partial_symbol_filenames.
8217 * mdebugread.c: Include psympriv.h.
8218 * machoread.c: Include psympriv.h.
8219 (macho_sym_fns): Update.
8220 * m2-exp.y (yylex): Use lookup_symtab.
8221 * elfread.c: Include psympriv.h.
8222 (elf_sym_fns): Update.
8223 * dwarf2read.c: Include psympriv.h.
8224 * dbxread.c: Include psympriv.h.
8225 (aout_sym_fns): Update.
8226 * cp-support.c: Include psymtab.h.
8227 (read_in_psymtabs): Remove.
8228 (make_symbol_overload_list_qualified): Use
8229 expand_symtabs_for_function method.
8230 * coffread.c: Include psympriv.h.
8231 (coff_sym_fns): Update.
8232 * blockframe.c: Include psymtab.h.
8233 (find_pc_partial_function): Use find_pc_sect_symtab method.
8234 * ada-lang.h (ada_update_initial_language): Update.
8235 * ada-lang.c: Include psymtab.h.
8236 (ada_update_initial_language): Remove 'main_pst' argument.
8237 (ada_lookup_partial_symbol): Remove.
8238 (struct ada_psym_data): New type.
8239 (ada_add_psyms): New function.
8240 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8241 (struct add_partial_datum): New type.
8242 (ada_add_partial_symbol_completions): New function.
8243 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8244 (ada_exception_support_info_sniffer): Update.
8245 * Makefile.in (SFILES): Add psymtab.c.
8246 (COMMON_OBS): Add psymtab.o.
8247 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8248
7d8500b7
PM
82492010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8250
8251 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8252
c0cc3a76
SW
82532010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8254
8255 PR C++/11236:
8256 * cp-namespace.c (cp_add_using): Deleted.
8257 (cp_add_using_directive): Use obstack allocations.
8258 Merged the function cp_add_using into this one.
8259 Added 'struct obstack *' argument.
8260 (cp_scan_for_anonymous_namespaces): Updated.
8261 * cp-support.h: Updated.
8262 * dwarf2read.c (read_import_statement): Updated.
8263 (read_namespace): Updated.
8264
452fa064
CF
82652010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8266
8267 * windows-nat.c (cygwin_conv_path): Remove old macro.
8268
60e1c644
PA
82692010-03-10 Pedro Alves <pedro@codesourcery.com>
8270
8271 * breakpoint.c (condition_command): Handle watchpoint conditions.
8272 (is_hardware_watchpoint): Add comment.
8273 (is_watchpoint): New.
8274 (update_watchpoint): Don't reparse the watchpoint's condition
8275 unless necessary.
8276 (WP_IGNORE): New.
8277 (watchpoint_check): Use it.
8278 (bpstat_check_watchpoint): Handle it.
8279 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8280 conditions in a frame where it makes sense.
8281 (watch_command_1): Store the innermost block of the condition
8282 expression.
8283 (delete_breakpoint): Delete the watchpoint condition expression.
8284 * breakpoint.h (struct bp_location) <cond>: Update comment.
8285 (struct breakpoint): New field `cond_exp_valid_block'.
8286
af6b7be1
JB
82872010-03-09 Joel Brobecker <brobecker@adacore.com>
8288
8289 Adjust handling of Ada DIEs after dwarf2_physname patch.
8290 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8291
60c5c021
CF
82922010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8293 Pierre Muller <muller@ics.u-strasbg.fr>
8294
8295 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8296 from/to posix/win32.
8297 (windows_make_so): Use non-Cygwin 1.7 specific function.
8298 (windows_create_inferior): Make sure that cygallargs points to
8299 original args in non Cygwin 1.7. case.
8300
60a1502a
MS
83012010-03-09 Michael Snyder <msnyder@vmware.com>
8302
8303 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8304 after target_read_memory to get host byte order.
8305 (i386_process_record): Ditto.
8306
94af9270
KS
83072010-03-09 Keith Seitz <keiths@redhat.com>
8308
8309 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8310 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8311 print out const or volatile qualifiers, too.
8312 (c_type_print_args): Add parameters show_artificial and language.
8313 Skip artificial parameters when requested.
8314 Use the appropriate language printer.
8315 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8316 parameters and pass language_c.
8317 * dwarf2read.c (die_list): New file global.
8318 (struct partial_die_info): Update comments for name field.
8319 (pdi_needs_namespace): Renamed to ...
8320 (die_needs_namespace): ... this. Rewrite.
8321 (dwarf2_linkage_name): Remove.
8322 (add_partial_symbol): Do not predicate the call to
8323 partial_die_full_name based on pdi_needs_namespace.
8324 Remove call to cp_check_possible_namespace_symbols and associated
8325 outdated comments.
8326 (guess_structure_name): Do not inspect child subprogram DIEs.
8327 (dwarf2_fullname): Update comments.
8328 Use die_needs_namespace to assist in computing the name.
8329 (read_func_scope): Use dwarf2_name to get the DIE's name.
8330 Use dwarf2_physname to get the "linkage name" of the DIE.
8331 (dwarf2_add_member_field): Use dwarf2_physname instead of
8332 dwarf2_linkage_name.
8333 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8334 (determine_class): Remove.
8335 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8336 except Ada.
8337 (new_symbol): Unconditionally call dwarf2_name.
8338 Compute the "linkage name" using dwarf2_physname.
8339 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8340 When determining to scan for anonymous C++ namespaces, ignore
8341 the linkage name.
8342 (dwarf2_physname): New function.
8343 (dwarf2_full_name): Move content to new function and call
8344 that.
8345 (dwarf2_compute_name): "New" function.
8346 (_initialize_dwarf2_read): Initialize die_list.
8347 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8348 physname.
8349 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8350 without a demangled name.
8351 Print out type information for non-virtual methods.
c8d5aac9 8352 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8353 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8354 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8355 (decode_compound): Stop consuming at an open parenthesis.
8356 Keep template parameters.
8357 Keep any overload information.
8358 Keep keywords like "const".
8359 Remove paren_pointer.
8360 Move is_quoted check from set_flags to here.
8361 Remove #if 0 code from 2000. Ten years is long enough.
8362 (find_method): Before comparing symbol names, canonicalize the string
8363 from the user.
8364 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8365 (find_method_overload_end): New function.
8366 (set_flags): Remove.
c8d5aac9
L
8367 (decode_compound): Assume that parentheses are matched.
8368 It's a lot easier.
94af9270
KS
8369 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8370 to cplus_demangle.
8371 * linespec.c (decode_line_1): Keep important keywords like
8372 "const" and "volatile".
8373 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8374 * typeprint.h (c_type_print_args): Add declaration.
8375 * ui-file.c (do_ui_file_obsavestring): New function.
8376 (ui_file_obsavestring): New function.
8377 * ui-file.h (ui_file_obsavestring): Add declaration.
8378 * valops.c (find_overload_match): Resolve the object to
8379 a non-pointer type.
8380 If the object is a data member, search the object for the member
8381 and return with staticp set.
8382 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8383 Do not attempt to extract a function name from non-function types.
8384 If the extracted function name and the original name are the same,
8385 we don't have a C++ method.
8386
8d95cc3b
PA
8387 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8388 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8389
8390 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8391 and arguments from symbol lookups.
8392 * ax-gdb.c (gen_expr): Likewise.
8393 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8394 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8395 lookup_possible_namespace_symbol): Likewise.
8396 * cp-support.c (read_in_psymtabs): Likewise.
8397 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8398 * language.h (la_lookup_symbol_nonlocal): Likewise.
8399 * scm-valprint.c (scm_inferior_print): Likewise.
8400 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8401 * solib-svr.c (elf_lookup_lib): Likewise.
8402 * solib.c (show_auto_solib_add): Likewise.
8403 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8404 * symmisc.c (maintenance_check_symtabs): Likewise.
8405 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8406 lookup_symbol_aux_local, lookup_symbol_aux_block,
8407 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8408 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8409 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8410 basic_lookup_transparent_type, find_main_psymtab,
8411 lookup_block_symbol): Likewise.
8412 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8413 lookup_symbol_global, lookup_symbol_aux_block,
8414 lookup_symbol_partial_symbol, lookup_block_symbol,
8415 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8416
9cb74f47
PM
84172010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8418
8419 * python/python-internal.h: Include symtab.h.
8420
af6b7be1
JB
84212010-03-09 Joel Brobecker <brobecker@adacore.com>
8422 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8423
8424 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8425 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8426 indentation.
8427
bad56014
TT
84282010-03-08 Tom Tromey <tromey@redhat.com>
8429
8430 * breakpoint.c (breakpoint_1): Add "QUIT".
8431
08105857
PA
84322010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8433 Pedro Alves <pedro@codesourcery.com>
8434
8435 * solib.c (solib_find): Replace extension if
8436 solib_symbols_extension is set in the target gdbarch.
8437 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8438 solib_symbols_extension to "sym".
8439 * gdbarch.sh (solib_symbols_extension): New variable.
8440 (pstring): New function.
8441 * gdbarch.h, gdbarch.c: Regenerate.
8442
7c953934
TT
84432010-03-08 Tom Tromey <tromey@redhat.com>
8444
8445 PR cli/9591:
8446 * NEWS: Update.
8447 * utils.c: Include main.h.
8448 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8449 (defaulted_query): Use default answer if `batch_flag'.
8450 * main.h (batch_flag): Declare.
8451 * main.c (batch_flag): New global.
8452 (captured_main): Remove 'batch'. Update.
8453
bbd2783e
KB
84542010-03-08 Kevin Buettner <kevinb@redhat.com>
8455
8456 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8457 and Kevin Buettner:
8458
8459 * remote-mips.c (rockhopper_ops): New target_ops struct.
8460 (MON_ROCKHOPPER): New mips_monitor_type.
8461 (read_hex_value): New function.
8462 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8463 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8464 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8465 (rockhopper_open): New function.
8466 (mips_wait): Read the PC, FP and SP fields as strings. Use
8467 read_hex_value to parse them and mips_set_register to commit them.
8468 (mips_set_register): New function.
8469 (mips_fetch_registers): Do not cast register value to "unsigned"
8470 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8471 (mips_store_registers): Use a 'T' packet to set registers when
8472 using MON_ROCKHOPPER.
8473 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8474 and expect the total to be printed before the entry address.
8475 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8476
566f3d17
KB
84772010-03-08 Kevin Buettner <kevinb@redhat.com>
8478
8479 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8480 Change return value to int. Store value fetched in location
8481 addressed by `val'. Use function's return value as success
8482 or failure indicator. Adjust all callers.
8483
9c8ee2ab 84842010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8485
8486 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8487
7155de5a
HZ
84882010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8489 Hui Zhu <teawater@gmail.com>
8490
8491 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8492 tmp_to_stopped_data_address.
8493 (record_open): Reset tmp_to_stopped_by_watchpoint and
8494 tmp_to_stopped_data_address.
8495 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8496 to_stopped_data_address.
8497
580879fc
HZ
84982010-03-08 Hui Zhu <teawater@gmail.com>
8499
8500 * i386-tdep.c (i386_process_record): Initialize regnum.
8501
b0fcb67f
JK
85022010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8503
8504 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8505 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8506
08597104
JB
85072010-03-08 Joel Brobecker <brobecker@adacore.com>
8508
8509 Memory error when reading wrong core file.
8510 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8511 errors while reading the inferior memory, and return zero if
8512 an exception was raised.
8513
425b824a
MS
85142010-03-07 Michael Snyder <msnyder@vmware.com>
8515
ec6dbf37
MS
8516 * record.c (record_restore): Rename tmpu8 to rectype.
8517
648d0c8b
MS
8518 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8519 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8520
8521 (i386_record_push): Rename local tmpulongest to addr.
8522
8523 (i386_process_record): Rename local tmpulongest to addr.
8524
8525 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8526 addr64.
955db0c0
MS
8527
8528 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8529
10760264
JB
85302010-03-07 Joel Brobecker <brobecker@adacore.com>
8531
8532 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8533 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8534
b3c613f2
CF
85352010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8536
8537 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8538 block. Define helper macros to reduce ifdefs in code.
8539 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8540 size. Call unadorned GetModuleFileNameEx rather than
8541 GetModuleFileNameEx*.
8542 (windows_make_so): Use __PMAX to denote maximum buffer size and
8543 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8544 appropriate.
8545 (get_image_name): Use __PMAX to denote maximum buffer size.
8546 (handle_load_dll): Likewise.
8547 (windows_pid_to_exec_file): Likewise.
8548 (windows_create_inferior): Add many accommodations for older Cygwin and
8549 non-Cygwin.
8550 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8551 __USEWIDE conditional.
8552 (bad_GetModuleFileNameExA): Likewise.
8553 (_initialize_loadable): Just use real function names without the dyn_
8554 part since they are defined earlier.
8555
f870a310
TT
85562010-03-05 Corinna Vinschen <vinschen@redhat.com>
8557 Tom Tromey <tromey@redhat.com>
8558
8559 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8560 (parse_escape): Likewise.
8561 * python/py-utils.c (unicode_to_target_string): Update.
8562 (unicode_to_target_python_string): Update.
8563 (target_string_to_unicode): Update.
8564 * printcmd.c (printf_command): Update.
8565 * p-exp.y (yylex): Update.
8566 * objc-exp.y (yylex): Update.
8567 * mi/mi-parse.c: Include charset.h.
8568 (mi_parse_escape): New function.
8569 (mi_parse_argv): Use it.
8570 * jv-exp.y (yylex): Update.
8571 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8572 function.
8573 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8574 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8575 * gdbarch.c: Rebuild.
8576 * gdbarch.h: Rebuild.
8577 * defs.h (parse_escape): Update.
8578 * cli/cli-setshow.c: Include arch-utils.h.
8579 (do_setshow_command): Update.
8580 * cli/cli-cmds.c (echo_command): Update.
8581 * charset.h (target_charset, target_wide_charset): Update.
8582 * charset.c: Include arch-utils.h.
8583 (target_charset_name): Default to "auto".
8584 (target_wide_charset_name): Likewise.
8585 (show_target_charset_name): Handle "auto".
8586 (show_target_wide_charset_name): Likewise.
8587 (be_le_arch): New global.
8588 (set_be_le_names): Add 'gdbarch' argument.
8589 (validate): Likewise. Don't call set_be_le_names.
8590 (set_charset_sfunc, set_host_charset_sfunc)
8591 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8592 Update.
8593 (target_charset): Add 'gdbarch' argument.
8594 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8595 (auto_target_charset_name): New global.
8596 (default_auto_charset, default_auto_wide_charset): New functions.
8597 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8598 for target charsets. Copy result of nl_langinfo. Use GetACP if
8599 USE_WIN32API.
8600 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8601 remove 'byte_order' argument. Update.
8602 (classify_type): Likewise.
8603 (c_emit_char): Update.
8604 (c_printchar): Update.
8605 (c_printstr): Update.
8606 (c_get_string): Update.
8607 (evaluate_subexp_c): Update.
8608 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8609 Declare.
8610 * python/python.c (gdbpy_target_charset): New function.
8611 (gdbpy_target_wide_charset): Likewise.
8612 (GdbMethods): Update.
8613 * NEWS: Update.
8614
4e7386b0
UW
86152010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8616
8617 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8618 off high address bits.
8619
aab48ede
UW
86202010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8621
8622 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8623 address as UnsignedLongLong, not LongLong.
8624
8eeafb51 86252010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8626 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8627
8628 * remote-mips.c (gdbthread.h): Include.
8629 (remote_mips_ptid): Declare.
8630 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8631 (common_open): Set inferior_ptid, add it as an inferior, and
8632 as a thread too. Delete FIXME comment regarding start_remote().
8633 (mips_close): Invoke generic_mourn_inferior().
8634 (mips_kill): Make sure that target_mourn_inferior is invoked.
8635 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8636 it's now invoked from mips_close().
8637 (mips_load): Don't null out inferior_ptid. Don't call
8638 clear_symtab_users().
8639 (mips_thread_alive, mips_pid_to_str): New functions.
8640 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8641 to_thread_alive and to_pid_to_str operations.
8642
ae411497
TT
86432010-03-04 Tom Tromey <tromey@redhat.com>
8644
8645 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8646 in DWARF 3 and later.
8647 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8648
0e0b460e
KS
86492010-03-04 Keith Seitz <keiths@redhat.com>
8650
8651 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8652 If the filename portion of the linespec was quoted, recheck the
8653 remainder for additional quoting.
8654 (locate_first_half): Skip over completer chars, too.
8655
1b93ff13
TT
86562010-03-04 Tom Tromey <tromey@redhat.com>
8657
8658 * printcmd.c (printf_command): Pass dummy argument to
8659 printf_filtered.
8660
fc36e839
DE
86612010-03-04 Doug Evans <dje@google.com>
8662
111f853c
DE
8663 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8664 unwound_fp.
8665
fc36e839
DE
8666 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8667
c7437ca6
PA
86682010-03-04 Pedro Alves <pedro@codesourcery.com>
8669
8670 * breakpoint.c (update_watchpoint): Create a sentinel location if
8671 the software watchpoint isn't watching any memory.
8672 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8673
58dadb1b
PA
86742010-03-04 Pedro Alves <pedro@codesourcery.com>
8675
8676 * utils.c (fputs_maybe_filtered): Check if there's already a top
8677 level interpreter before dereferencing it. If there isn't one,
8678 don't paginate either.
8679
50e98be4
DJ
86802010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8681
8682 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8683 the state right when single stepping.
8684 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8685 Get the next PC along with the instruction state.
8686 (thumb_get_next_pc): Remove.
8687 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8688
2e3ceee9
HZ
86892010-03-04 Hui Zhu <teawater@gmail.com>
8690
8691 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8692
390a8aca
PA
86932010-03-03 Pedro Alves <pedro@codesourcery.com>
8694
8695 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8696 top level interpreter is MI.
8697
9355b391
SS
86982010-03-03 Stan Shebs <stan@codesourcery.com>
8699
8700 * remote.c (remote_download_tracepoint): Iterate over locations.
8701 * tracepoint.c (validate_actionline): Ditto.
8702 (encode_actions): Add location argument.
8703 (trace_dump_command): Check all locations to see if stepping
8704 frame.
390a8aca 8705
8685c86f
L
87062010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8707 Eli Zaretskii <eliz@gnu.org>
8708
8709 * NEWS: Add X86 general purpose registers section.
8710
e8f781e2
TT
87112010-03-03 Tom Tromey <tromey@redhat.com>
8712
8713 PR mi/11098:
8714 * varobj.c (install_new_value): Handle case where new print_value
8715 is NULL.
8716
a0e0ef55
TT
87172010-03-03 Dainis Jonitis <jonitis@gmail.com>
8718
8719 PR gdb/11345:
8720 * printcmd.c (printf_command): Print end of format string using
8721 printf_filtered.
8722
a58d7472
TT
87232010-03-02 Tom Tromey <tromey@redhat.com>
8724
8725 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8726 * defs.h (read_command_lines_1): Add missing 'void'.
8727 * cli/cli-script.c (recurse_read_control_structure): Add missing
8728 'void'.
8729 (read_next_line): Likewise.
8730 (read_command_lines_1): Likewise.
8731
ce50d78b
UW
87322010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8733
8734 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8735 store backchain as part of prologue.
8736
7e9af34a
DJ
87372010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8738
8739 * progspace.c (update_address_spaces): Update inferior address spaces
8740 also.
8741
01637564
DE
87422010-03-02 Doug Evans <dje@google.com>
8743
8744 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8745 lowpc,highpc args to addrmap_set_empty.
8746
1ba53b71
L
87472010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 * amd64-tdep.c (amd64_byte_names): New.
8750 (amd64_word_names): Likewise.
8751 (amd64_dword_names): Likewise.
8752 (amd64_pseudo_register_name): Likewise.
8753 (amd64_pseudo_register_read): Likewise.
8754 (amd64_pseudo_register_write): Likewise.
8755 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8756 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8757 set_gdbarch_pseudo_register_write and
8758 set_tdesc_pseudo_register_name. Don't call
8759 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8760
8761 * i386-tdep.c (i386_num_mmx_regs): Removed.
8762 (i386_num_pseudo_regs): Likewise.
8763 (i386_byte_names): New.
8764 (i386_word_names): Likewise.
8765 (i386_byte_regnum_p): Likewise.
8766 (i386_word_regnum_p): Likewise.
8767 (i386_mmx_regnum_p): Updated.
8768 (i386_pseudo_register_name): Make it global. Handle byte and
8769 word pseudo-registers.
8770 (i386_pseudo_register_read): Likewise.
8771 (i386_pseudo_register_write): Likewise.
8772 (i386_pseudo_register_type): Handle byte, word and dword
8773 pseudo-registers
8774 (i386_register_reggroup_p): Don't include pseudo
8775 registers, except for MXX, in any register groups. Don't
8776 include pseudo byte, word, dword registers in general_reggroup.
8777 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8778 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8779 pseudo-registers after word pseudo-registers. Call
8780 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8781
8782 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8783 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8784 eax_regnum.
8785 (i386_byte_regnum_p): New.
8786 (i386_word_regnum_p): Likewise.
8787 (i386_dword_regnum_p): Likewise.
8788 (i386_pseudo_register_name): Likewise.
8789 (i386_pseudo_register_read): Likewise.
8790 (i386_pseudo_register_write): Likewise.
8791
a6f5ef51
L
87922010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8793
8794 * target-descriptions.c (tdesc_type): Remove
8795 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8796 (tdesc_predefined_types): Likewise.
8797 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8798 if flag name is empty.
8799 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8800
8801 * features/i386/32bit-core.xml: Define i386_eflags.
8802 * features/i386/64bit-core.xml: Likewise.
8803
8804 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8805 * features/i386/64bit-sse.xml: Likewise.
8806
8807 * features/i386/amd64-linux.c: Regenerated.
8808 * features/i386/amd64.c: Likewise.
8809 * features/i386/i386-linux.c: Likewise.
8810 * features/i386/i386.c: Likewise.
8811
f5dff777
DJ
88122010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8813
8814 * gdbtypes.c (append_composite_type_field_raw): New.
8815 (append_composite_type_field_aligned): Use the new function.
8816 * gdbtypes.h (append_composite_type_field_raw): Declare.
8817 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8818 (struct tdesc_type_flag): New type.
8819 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8820 kind. Add size to u.u. Add u.f for flags.
8821 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8822 (tdesc_free_type): Likewise.
8823 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8824 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8825 (tdesc_add_bitfield, tdesc_add_flag): New.
8826 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8827 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8828 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8829 current_type. Add current_type_size and current_type_is_flags.
8830 (tdesc_start_union): Clear the new fields.
8831 (tdesc_start_struct, tdesc_start_flags): New.
8832 (tdesc_start_field): Handle struct fields, including bitfields.
8833 (field_attributes): Make type optional. Add start and end.
8834 (union_children): Rename to struct_union_children.
8835 (union_attributes): Rename to struct_union_attributes. Add optional
8836 size.
8837 (flags_attributes): New.
8838 (feature_children): Add struct and flags.
8839 * features/gdb-target.dtd: Add flags and struct to features.
8840 Make field type optional. Add field start and end.
8841
90884b2b
L
88422010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8843
8844 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8845 (amd64_linux_read_description): Likewise.
8846 (_initialize_amd64_linux_nat): Set to_read_description to
8847 amd64_linux_read_description.
8848
8849 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8850 (amd64_linux_register_name): Removed.
8851 (amd64_linux_register_type): Likewise.
8852 (amd64_linux_core_read_description): New.
8853 (amd64_linux_init_abi): Set target description to
8854 tdesc_amd64_linux if needed. Support orig_rax in target
8855 description. Don't call set_gdbarch_register_name nor
8856 set_gdbarch_register_type. Call
8857 set_gdbarch_core_read_description.
8858 (_initialize_amd64_linux_tdep): Call
8859 initialize_tdesc_amd64_linux.
8860
8861 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8862
8863 * amd64-tdep.c: Include "features/i386/amd64.c".
8864 (amd64_register_names): Removed.
8865 (amd64_register_name): Likewise.
8866 (amd64_register_type): Likewise.
8867 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8868 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8869 set_gdbarch_register_name nor set_gdbarch_register_type.
8870 (_initialize_amd64_tdep): New.
8871
8872 * i386-linux-nat.c (i386_linux_read_description): New.
8873 (_initialize_i386_linux_nat): Set to_read_description to
8874 i386_linux_read_description.
8875
8876 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8877 (i386_linux_register_name): Removed.
8878 (i386_linux_core_read_description): New.
8879 (i386_linux_read_description): Likewise.
8880 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8881 Set target description to tdesc_i386_linux if needed. Support
8882 orig_eax. Set register_reggroup_p. Call
8883 set_gdbarch_core_read_description.
8884 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8885
8886 * i386-linux-tdep.h (tdesc_i386_linux): New.
8887
8888 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8889 with I387_NUM_REGS.
8890
8891 * i386-tdep.c: Include "features/i386/i386.c".
8892 (i386_register_names): Make it const.
8893 (i386_mmx_names): Likewise.
8894 (i386_num_register_names): Removed.
8895 (i386_register_name): Likewise.
8896 (i386_eflags_type): Likewise.
8897 (i386_mxcsr_type): Likewise.
8898 (i386_sse_type): Likewise.
8899 (i386_register_type): Likewise.
8900 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8901 (i386_pseudo_register_name): New.
8902 (i386_pseudo_register_type): Likewise.
8903 (i386_mmx_type): Make it static.
8904 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8905 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8906 call set_gdbarch_register_name nor set_gdbarch_register_type.
8907 Set register_reggroup_p. Set target description to tdesc_i386
8908 if needed. Call set_tdesc_pseudo_register_type,
8909 set_tdesc_pseudo_register_name and tdesc_use_registers.
8910 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8911 initialize_tdesc_x86_64.
8912
8913 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8914 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8915 register_names, tdesc and register_reggroup_p.
8916 (I386_NUM_FREGS): Removed.
8917 (i386_eflags_type): Likewise.
8918 (i386_mxcsr_type): Likewise.
8919 (i386_mmx_type): Likewise.
8920 (i386_sse_type): Likewise.
8921 (i386_register_name): Likewise.
8922 (i386_regnum): Add I386_MXCSR_REGNUM.
8923 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8924
8925 * i387-tdep.h (I387_NUM_REGS): New.
8926
8927 * regformats/i386/i386-linux.dat: Generated.
8928 * regformats/i386/i386.dat: Likewise.
8929 * regformats/i386/amd64-linux.dat: Likewise.
8930 * regformats/i386/amd64.dat: Likewise.
8931
8932 * regformats/reg-i386-linux.dat: Removed.
8933 * regformats/reg-i386.dat: Likewise.
8934 * regformats/reg-x86-64-linux.dat: Likewise.
8935 * regformats/reg-x86-64.dat: Likewise.
8936
d0d0ab16
CV
89372010-03-01 Corinna Vinschen <vinschen@redhat.com>
8938
8939 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8940 cygwin_conv_path API rather than the deprecated
8941 cygwin_conv_to_full_posix_path.
8942 * windows-nat.c:
8943 (GetModuleFileNameExA): Undefine for Cygwin.
8944 (GetModuleFileNameExW): Define for Cygwin.
8945 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8946 Call GetModuleFileNameExW and convert path to POSIX using
8947 cygwin_conv_path.
8948 (windows_make_so): Always define p. Drop unused variable m.
8949 Don't use Win32 functions to check file existance, rather use
8950 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8951 Use canonicalize_file_name to get full path.
8952 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8953 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8954 use correct target buffer size in call to WideCharToMultiByte.
8955 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8956 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8957 (windows_create_inferior): Convert all paths and arguments to wchar_t
8958 and use CreateProcessW on Cygwin.
8959 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8960 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8961 (bad_GetModuleFileNameExW): Define for Cygwin.
8962 (_initialize_loadable): Load GetModuleFileNameExW into
8963 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8964
dc00d89f
PM
89652010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8966
8967 PR python/11036
8968 * python/py-frame.c (frapy_read_var): Add block argument and logic
8969 to cope with user provided blocks.
8970
0e095b7e
JK
89712010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8972
8973 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8974 New comment.
8975
2f9e05b4
CV
89762010-02-28 Corinna Vinschen <vinschen@redhat.com>
8977
8978 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8979 (COMMON_OBS): ... to here since it's used unconditionally.
8980 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8981 (SFILES): To here.
8982
eb195664
DD
89832010-02-26 David Daney <ddaney@caviumnetworks.com>
8984
8985 * mips-linux-tdep.c: Update struct sigframe comments.
8986 (SIGFRAME_CODE_OFFSET): Delete macro.
8987 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8988 this_frame's sp.
8989 (mips_linux_n32n64_sigframe_init): Same.
8990
97b0f3e2
KB
89912010-02-26 Kevin Buettner <kevinb@redhat.com>
8992
8993 * remote-mips.c (mips_load): Don't use pseudo-register when
8994 invalidating regcache.
8995
4069ebbe
DJ
89962010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8997
8998 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8999
05071a4d
PA
90002010-02-26 Pedro Alves <pedro@codesourcery.com>
9001
9002 * NEWS: Add "New targets" section, and mention ARM Symbian
9003 support.
9004
6063c216
UW
90052010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9006
9007 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9008 add ADDR_SIZE member.
9009 (allocate_piece_closure): Update.
9010 (copy_pieced_value_closure): Likewise.
9011 (dwarf2_evaluate_loc_desc): Likewise.
9012 (read_pieced_value): Use DWARF address size instead of
9013 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9014
5107b149 90152010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9016 Tom Tromey <tromey@redhat.com>
5107b149
PM
9017
9018 * python/py-type.c (typy_lookup_typename): Add in block argument.
9019 If provided restrict lookup to specified blocks.
9020 (gdbpy_lookup_type): Likewise.
9021 (typy_lookup_type): Likewise.
9022
78664fa3 90232010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9024
78664fa3
PA
9025 Symbian config
9026
9027 gdb/
9028 * arm-symbian-tdep.c: New.
9029 * configure.tgt (arm*-*-symbianelf*): New target.
9030 (*-*-symbianelf*): New OS.
9031 * osabi.c (gdb_osabi_names): Add Symbian.
9032 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9033 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9034 (ALLDEPFILES): Add arm-symbian-tdep.c.
9035
eb73e134
DJ
90362010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9037
9038 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9039
46ef47e5
PA
90402010-02-24 Pedro Alves <pedro@codesourcery.com>
9041
9042 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9043
f3e9a817 90442010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9045 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9046 Thiago Jung Bauermann <bauerman@br.ibm.com>
9047
9048 * python/python.c (_initialize_python): Call
9049 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9050 gdbpy_initialize_blocks.
9051 * python/python-internal.h: Declare struct symbol, block and
9052 symtab_and_line. Declare block_object_type and
9053 symbol_object_type
9054 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9055 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9056 (symbol_to_symbol_object, block_to_block_object)
9057 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9058 (gdbpy_initialize_blocks ): Declare.
9059 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9060 (frapy_select): Add methods.
9061 (frapy_read_var): Add symbol branch.
9062 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9063 py-block.
9064 (SUBDIR_PYTHON_SRCS): Likewise.
9065 (py-symbol.o): New rule.
9066 (py-symtab.o): Likewise.
9067 (py-block.o): Likewise.
9068 * python/py-symbol.c: New file.
9069 * python/py-symtab.c: Likewise.
9070 * python/py-block.c: Likewise.
9071
24291992
PA
90722010-02-24 Pedro Alves <pedro@codesourcery.com>
9073
9074 PR gdb/11321
9075
9076 * inferior.h (prepare_for_detach): Declare.
9077 (struct inferior) <detaching>: New field.
9078 * infrun.c (prepare_for_detach): New.
9079 (handle_inferior_event) <random signal>: Don't stop if detaching.
9080 * target.c (target_detach): Call prepare_for_detach.
9081
fc1cf338
PA
90822010-02-24 Pedro Alves <pedro@codesourcery.com>
9083
9084 Per-process displaced stepping queue.
9085
9086 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9087 (displaced_step_gdbarch, displaced_step_closure,
9088 (displaced_step_original, displaced_step_copy): Move globals to
9089 this...
9090 (struct displaced_step_inferior_state): ... new structure.
9091 (displaced_step_inferior_states): New global.
9092 (get_displaced_stepping_state, add_displaced_stepping_state)
9093 (remove_displaced_stepping_state, infrun_inferior_exit): New
9094 functions.
9095 (displaced_step_clear): Add displaced_step_inferior_state
9096 parameter, and adjust to handle it.
9097 (displaced_step_clear_cleanup): Parameter is now a
9098 displaced_step_inferior_state. Adjust.
9099 (displaced_step_prepare): Adjust.
9100 (displaced_step_fixup, displaced_step_fixup)
9101 (infrun_thread_ptid_changed, resume): Adjust.
9102 (init_wait_for_inferior): Don't call displaced_step_clear.
9103 (infrun_thread_stop_requested): Rewrite.
9104 (_initialize_infrun): Install infrun_inferior_exit as
9105 inferior_exit observer.
9106
0723dbf5
PA
91072010-02-24 Pedro Alves <pedro@codesourcery.com>
9108
9109 * inferior.h (ptid_match): Declare.
9110 * infrun.c (ptid_match): New.
9111 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9112 (handle_notification): Add debug output.
9113 * linux-nat.c (ptid_match): Delete.
9114
09de9781
DM
91152010-02-24 David S. Miller <davem@davemloft.net>
9116
9117 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9118 * syscalls/sparc-linux.xml: New.
9119 * syscalls/sparc64-linux.xml: New.
9120 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9121 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9122 (sparc32_linux_get_syscall_number): New function.
9123 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9124 syscall number fetcher.
9125 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9126 (sparc64_linux_get_syscall_number): New function.
9127 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9128 syscall number fetcher.
9129
a79b8f6e
VP
91302010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9131
9132 Multiexec MI
9133
9134 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9135 * inferior.c (add_inferior_silent): Notify inferior_added
9136 observer.
9137 (delete_inferior_1): Notify inferior_removed observer.
9138 (exit_inferior_1): Pass inferior, not pid, to observer.
9139 (inferior_appeared): Likewise.
9140 (add_inferior_with_spaces): New.
9141 (add_inferior_command): Use the above.
9142 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9143 Declare.
9144
9145 * inflow.c (inflow_inferior_exit): Likewise.
9146 * jit.c (jit_inferior_exit_hook): Likewise.
9147
9148 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9149 remove-inferior.
9150 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9151 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9152 (report_initial_inferior): New.
9153 (mi_inferior_removed): Register the above. Make sure
9154 inferior_added observer is called on the first inferior.
9155 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9156 inferior number, not pid.
9157 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9158 affected.
9159 * mi/mi-main.c (current_context): New.
9160 (proceed_thread_callback): Use typed closure.
9161 Proceed everything if pid is 0. Most implementation split into
9162 (proceed_thread): ... this.
9163 (run_one_inferior): New.
9164 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9165 Adjust for multiexec behaviour.
9166 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9167 (mi_cmd_execute): Handle the 'thread-group' option here.
9168 Do some extra checks.
9169 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9170 options.
9171 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9172
115d30f9
VP
91732010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9174
9175 Make -exec-run a proper MI commands.
9176
9177 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9178 * mi/mi-cmds.c (mi_cmds): Adjust.
9179 * mi/mi-main.c (mi_cmd_exec_run): New.
9180
06cd862c
PA
91812010-02-24 Pedro Alves <pedro@codesourcery.com>
9182 Stan Shebs <stan@codesourcery.com>
9183
9184 * tracepoint.h (set_traceframe_number)
9185 (cleanup_restore_current_traceframe): Declare.
9186 * tracepoint.c (set_traceframe_number): New.
9187 (struct current_traceframe_cleanup): New.
9188 (do_restore_current_traceframe_cleanup)
9189 (restore_current_traceframe_cleanup_dtor)
9190 (make_cleanup_restore_current_traceframe): New.
9191 * infrun.c: Include tracepoint.h.
9192 (fetch_inferior_event): Switch out and in of tfind mode.
9193
ab92d69b
PA
91942010-02-24 Pedro Alves <pedro@codesourcery.com>
9195
9196 * breakpoint.c (breakpoint_init_inferior): Also delete
9197 bp_shlib_event breakpoints.
9198 * solib-frv.c (enable_break): Remove call to
9199 remove_solib_event_breakpoints.
9200 * solib-svr4.c (enable_break): Ditto.
9201 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9202 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9203 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9204 * solib-spu.c (spu_enable_break): Ditto.
9205
e707a91d
PA
92062010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9207
9208 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9209
cfce2ea2
PA
92102010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9211
9212 * varobj.c (varobj_update): Avoid non-constants in initializers.
9213
05566b3b
TT
92142010-02-23 Tom Tromey <tromey@redhat.com>
9215
9216 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9217 handle big-endian values.
9218 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9219
85d721b8
PA
92202010-02-22 Pedro Alves <pedro@codesourcery.com>
9221
9222 PR9605
9223
9224 gdb/
9225 * breakpoint.c (insert_bp_location): If inserting the read
9226 watchpoint failed, fallback to an access watchpoint.
9227 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9228 if the value changed, if not watching the same memory for writes.
9229 (watchpoint_locations_match): Add comment.
9230 (update_global_location_list): Copy the location's watchpoint type.
9231 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9232 handle read watchpoints here.
9233 (i386_insert_watchpoint): Read watchpoints aren't supported.
9234 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9235 packets.
9236 * target.h (target_insert_watchpoint): Update description.
9237
48ea67a7
TT
92382010-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9241 * m2-typeprint.c (m2_print_type): Update.
9242 * gdbtypes.c (recursive_dump_type): Update.
9243 (copy_type_recursive): Update.
9244 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9245 (c_type_print_base): Update.
9246 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9247 Remove.
9248 (struct cplus_struct_type) <ntemplate_args>: Remove.
9249 <struct template_arg>: Remove.
9250 <is_dynamic>: Move earlier.
9251 (TYPE_TEMPLATE_ARGS): Remove.
9252 (TYPE_NTEMPLATE_ARGS): Remove.
9253 (TYPE_TEMPLATE_ARG): Remove.
9254
48e32051
TT
92552010-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 PR c++/8693, PR c++/9496:
9258 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9259 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9260 write_dollar_variable. Don't try to classify NAME tokens.
9261 (token_and_value): New type.
9262 (token_fifo, popping, name_obstack): New globals.
9263 (classify_name): New function.
9264 (classify_inner_name): Likewise.
9265 (yylex): Likewise.
9266 (VARIABLE): Now has type sval.
9267 (exp : VARIABLE): Call write_dollar_variable.
9268 (qualified_name): Use TYPENAME, not typebase. Add production for
9269 multiple "::" instances.
9270 (variable): Use name_not_typename.
9271 (qualified_type): Remove.
9272 (typebase): Update.
9273
672d9c23
JK
92742010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9275
9276 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9277 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9278 found by bfd_get_section_by_name.
9279 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9280
bfbf3774
JB
92812010-02-19 Joel Brobecker <brobecker@adacore.com>
9282
9283 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9284 7.0 section" into "Changes in 7.1".
9285
6756b09b 92862010-02-19 Joel Brobecker <brobecker@adacore.com>
9287
9288 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9289 * version.in: Bump version to 7.1.50.20100219-cvs.
9290
202b96c1
PA
92912010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9292
9293 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9294 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9295
de2e5182
TT
92962010-02-17 Tom Tromey <tromey@redhat.com>
9297
9298 * NEWS: Add Python API Improvements section.
9299
7280022e
DJ
93002010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9301
9302 * NEWS: Correct typo.
9303
6f451e5e
TT
93042010-02-17 Tom Tromey <tromey@redhat.com>
9305
9306 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9307
012836ea
JK
93082010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9309
9310 * symfile.c (build_section_addr_info_from_objfile): Include sections
9311 only if they are SEC_ALLOC or SEC_LOAD.
9312
d182d057
L
93132010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9314
9315 PR shlibs/11293
9316 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9317 of ULONGEST for address size.
9318
4eef138c
TT
93192010-02-17 Tom Tromey <tromey@redhat.com>
9320
9321 * NEWS: Add C++ improvements section.
9322
548a926a
UW
93232010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9324
9325 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9326 PyThreadState_Swap): Avoid "statement with no effect" warning.
9327
ad3a0e5b
JK
93282010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9329
9330 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9331 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9332
243e2c5d 93332010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9334 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9335
9336 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9337 gdb_assert. Fix info->size for SIG prologue.
9338
275f2e57
DJ
93392010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9340
9341 * infcmd.c (show_inferior_tty_command): Check for NULL.
9342 Correct output message.
9343
791dfb64
DJ
93442010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9345
9346 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9347 FUNCTION contains parentheses. Improve removal of a trailing
9348 single quote.
9349
14d1346b
DJ
93502010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9351
9352 * gcore.c (do_bfd_delete_cleanup): New function.
9353 (gcore_command): Use it. Discard the cleanup after success.
9354 (gcore_copy_callback): Delete dead code.
9355
e76ab67f
DJ
93562010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9357
9358 * symfile.c (addr_info_make_relative): Always use
9359 find_lowest_section.
9360
71dee663
SW
93612010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9362
9363 * NEWS: Added entry for namespace fixes.
9364
a9854bd5
TT
93652010-02-15 Tom Tromey <tromey@redhat.com>
9366
9367 * dwarf2read.c (guess_structure_name): Allocate name on the
9368 objfile obstack.
9369
fd9e29b5
TT
93702010-02-15 Tom Tromey <tromey@redhat.com>
9371
9372 * c-typeprint.c (c_type_print_base): Reverse order of test.
9373
4e1fc9c9
JK
93742010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9375
9376 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9377 initialize it from ELF BFD. Extend the prelink condition by it.
9378
74164c56
JK
93792010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9380
9381 * defs.h (parse_pid_to_attach): New.
9382 * utils.c (parse_pid_to_attach): New.
9383 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9384 * gnu-nat.c (gnu_attach): Likewise.
9385 * nto-procfs.c (procfs_attach): Likewise.
9386 * procfs.c (procfs_attach): Likewise.
9387 * windows-nat.c (windows_attach): Likewise.
9388 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9389 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9390 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9391 check.
9392
bf6adea8
MM
93932010-02-14 Masaki Muranaka <monaka@monami-software.com>
9394
9395 * MAINTAINERS: Add myself for write after approval privileges.
9396
28f34a8f
JK
93972010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9398
9399 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9400 block.
9401
701ed6dc
JK
94022010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9403
9404 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9405 only if INFO_VERBOSE.
9406
e5829bee
MS
94072010-02-12 Tomas Holmberg <th@virtutech.com>
9408
9409 * mi/mi-main.c: Added the --reverse flag to the following MI
9410 commands: exec-continue, exec-finish, exec-next, exec-step,
9411 exec-next-instruction, exec-step-instruction. This is to
9412 support reverse execution over the MI interface to gdb.
9413
081dfbf7
PA
94142010-02-12 Pedro Alves <pedro@codesourcery.com>
9415
9416 * tracepoint.c (_initialize_tracepoint): Specify that the address
9417 range of `tfind outsize' is exclusive, and that the address range
9418 of `tfind range' is inclusive, in the commands' help strings.
9419
ecc13e53
JB
94202010-02-12 Joel Brobecker <brobecker@adacore.com>
9421
9422 Spurious "dll not found" error messages on x64-windows.
9423 * windows-nat.c: Add include of complaints.h.
9424 (handle_unload_dll): Change dll-not-found error into a complaint.
9425
15c3d785
PA
94262010-02-12 Pedro Alves <pedro@codesourcery.com>
9427
9428 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9429 bp_tracepoint and bp_fast_tracepoint, not
9430 bp_loc_software_breakpoint.
9431 (update_global_location_list): Tracepoints are never duplicates of
9432 anything.
9433
fd9b8c24
PA
94342010-02-12 Pedro Alves <pedro@codesourcery.com>
9435
9436 * breakpoint.c (break_command_really): Change return type to int.
9437 Return false if no breakpoint was created, true otherwise.
9438 (trace_command): Don't set the tracepoint count if no tracepoint
9439 was created.
9440 (ftrace_command): Ditto.
9441 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9442 created in the breakpoints table.
9443
5c0d192f
JK
94442010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9445 Ulrich Weigand <uweigand@de.ibm.com>
9446
9447 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9448
5d5b640e
PA
94492010-02-11 Pedro Alves <pedro@codesourcery.com>
9450
9451 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9452 the offset value isn't of integral type.
9453
e5a0a904
JK
94542010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9455
9456 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9457 New.
9458
be636754
PA
94592010-02-11 Pedro Alves <pedro@codesourcery.com>
9460
9461 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9462 non-subscriptable types.
9463 * valarith.c (binop_types_user_defined_p): New, abstracted out
9464 from ...
9465 (binop_user_defined_p): ... this.
9466 * value.h (binop_types_user_defined_p): Declare.
9467
10ef8d6a
PA
94682010-02-11 Pedro Alves <pedro@codesourcery.com>
9469
9470 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9471 Merge uploaded TSVs before merging uploaded tracepoints.
9472
b1028c8e
PA
94732010-02-11 Pedro Alves <pedro@codesourcery.com>
9474
9475 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9476
7a93fb82 94772010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9478
7a93fb82
VP
9479 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9480 whitespace character after a dot in comment.
9481 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9482 Likewise.
9483 (list_args_or_locals): For the 'all' (that is
9484 -stack-list-variables) case, always output list of tuples.
9485 Output 'arg' field if variable is argument.
84d90c10 9486
92981e24
TT
94872010-02-10 Tom Tromey <tromey@redhat.com>
9488
9489 * parser-defs.h (parser_debug): Declare.
9490 * parse.c (_initialize_parse): Install "debug parser" set/show
9491 command.
9492 (parser_debug): New global.
9493 (show_parserdebug): New function.
9494 * c-exp.y (c_parse): Set yydebug.
9495
9fd3625f
L
94962010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9497
9498 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9499 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9500 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9501 i386_mxcsr.
9502 (tdesc_find_type): New.
9503 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9504 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9505
9506 * target-descriptions.h (tdesc_find_type): New.
9507
2fe842e5
MS
95082010-02-10 Michael Snyder <msnyder@vmware.com>
9509
9510 * gdb-gdb.py: Comment fix.
9511
f18b4cab
TG
95122010-02-09 Tristan Gingold <gingold@adacore.com>
9513
9514 * machoread.c (macho_symfile_relocate): New function.
9515 (macho_sym_fns): Use macho_symfile_relocate instead of
9516 default_symfile_relocate.
9517 (macho_oso_data): New type.
9518 (current_oso): New variable.
9519 (macho_add_oso_symfile): Do not compute section_addr_info, but
9520 instead set vma of sections.
9521 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9522 Set and clear current_oso.
9523
31dbc1c5
JB
95242010-02-09 Joel Brobecker <brobecker@adacore.com>
9525
9526 Wrong type description for tagged type parameter.
9527 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9528 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9529 reference to a tagged type.
9530
399f313b
TG
95312010-02-09 Tristan Gingold <gingold@adacore.com>
9532
9533 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9534 brothers of the parent.
9535
714f19d5
TT
95362010-02-08 Tom Tromey <tromey@redhat.com>
9537
9538 PR c++/8017:
9539 * value.h: Update.
9540 * valops.c (search_struct_field): Make 'name' const.
9541 (search_struct_method): Likewise.
9542 (find_method_list): Make 'method' const.
9543 (value_struct_elt): Make 'name' and 'err' const.
9544 (value_find_oload_method_list): Make 'method' const.
9545 (find_overload_match): Make 'name' const.
9546 * eval.c (evaluate_subexp_standard): New locals function,
9547 function_name.
9548 <OP_FUNCALL>: Handle OP_SCOPE specially.
9549
de0a0249
UW
95502010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9551
9552 * infrun.c (handle_inferior_event): Do not look up regcache
9553 for exited processes.
9554
8d95cc3b 95552010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9556
9557 PR gdb/10728
9558 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9559 warn if found, and assume length = 1.
83b10087 9560
99903ae3
CM
95612010-02-08 Chris Moller <cmoller@redhat.com>
9562
9563 PR gdb/9067
9564 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9565 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9566
e3e9f5a2
PA
95672010-02-08 Pedro Alves <pedro@codesourcery.com>
9568
9569 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9570 resumed LWPs as resumed.
9571 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9572 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9573 of throwing an internal error. If an LWP of a process we're not
9574 waiting for reports a signal, don't force collecting a SIGSTOP,
9575 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9576 go through all LWPs cancelling breakpoints in non-stop mode.
9577 (resume_stopped_resumed_lwps): New.
9578 (linux_nat_wait): Use it.
9579
46763423
L
95802010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9581
9582 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9583 i386/amd64 and i386/amd64-linux.
9584 (i386/i386-expedite): New.
9585 (i386/i386-linux-expedite): Likewise.
9586 (i386/amd64-expedite):Likewise.
9587 (i386/amd64-linux-expedite): Likewise.
9588 ($(outdir)/i386/i386-linux.dat): Likewise.
9589 ($(outdir)/i386/amd64.dat): Likewise.
9590 ($(outdir)/i386/amd64-linux.dat): Likewise.
9591
9592 * features/i386/32bit-core.xml: New.
9593 * features/i386/32bit-linux.xml: Likewise.
9594 * features/i386/32bit-sse.xml: Likewise.
9595 * features/i386/64bit-core.xml: Likewise.
9596 * features/i386/64bit-linux.xml: Likewise.
9597 * features/i386/64bit-sse.xml: Likewise.
9598 * features/i386/i386-linux.xml: Likewise.
9599 * features/i386/i386.xml: Likewise.
9600 * features/i386/amd64-linux.xml: Likewise.
9601 * features/i386/amd64.xml: Likewise.
9602 * features/i386/i386-linux.c: Likewise.
9603 * features/i386/i386.c: Likewise.
9604 * features/i386/amd64-linux.c: Likewise.
9605 * features/i386/amd64.c: Likewise.
9606
82856980
SW
96072010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9608
9609 PR c++/7935:
9610 * cp-support.h: Added char* alias element to using_direct data
9611 struct.
9612 (cp_add_using): Added char* alias argument.
9613 (cp_add_using_directive): Ditto.
9614 * cp-namespace.c: Updated with the above changes.
9615 (cp_lookup_symbol_imports): Check for aliases.
9616 * dwarf2read.c (read_import_statement): Figure out local alias
9617 for the import and pass it on to cp_add_using.
9618 (read_namespace): Pass alias argument to cp_add_using.
9619
d18b8b7a
HZ
96202010-02-05 Hui Zhu <teawater@gmail.com>
9621
9622 * defs.h (gdb_bfd_errmsg): New extern.
9623 * exec.c (exec_file_attach): Change bfd_errmsg to
9624 gdb_bfd_errmsg.
9625 * utils.c (AMBIGUOUS_MESS1): New macro.
9626 (AMBIGUOUS_MESS2): New macro.
9627 (gdb_bfd_errmsg): New function.
9628
48379de6
DE
96292010-02-04 Doug Evans <dje@google.com>
9630
9631 * solib-svr4.c (enable_break): Add comment.
9632
4ee73e90
AG
96332010-02-04 Anthony Green <green@moxielogic.com>
9634
9635 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9636 gracefully.
9637
1a334831
TT
96382010-02-04 Tom Tromey <tromey@redhat.com>
9639
9640 * valops.c (search_struct_field): Account for
9641 value_embedded_offset. Fix check for virtual base past the end of
9642 the object. Use value_copy when making a slice of the value.
9643
1180b2c8
L
96442010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 PR tui/9622
9647 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9648 only if gdb_stdout is a tty.
9649
c3f08eb7
L
96502010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9651
9652 * target-descriptions.c: Include "osabi.h".
9653 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9654 OSABI.
9655
2d33f7b8
TG
96562010-02-04 Tristan Gingold <gingold@adacore.com>
9657
9658 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9659 (macho_symtab_read): Adjust calls to macho_add_oso.
9660 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9661 (macho_symfile_read): Adjust call to macho_oso_symfile.
9662 (macho_new_init): Move this function after declarations.
9663 (macho_symfile_init): Ditto.
9664 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9665 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9666
11334b82
VP
96672010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9668
9669 Include MI command in remotelog.
9670
9671 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9672
ff97be06
L
96732010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9674
9675 * remote.c (remote_state): Remove gdbarch.
9676 (init_remote_state): Don't set gdbarch.
9677 (remote_query_supported): Pass target_gdbarch instead of
9678 rs->gdbarch to gdbarch_qsupported.
9679
75cebea9
L
96802010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9681
9682 * gdbarch.sh: Add qsupported.
9683
9684 * gdbarch.c: Regenerated.
9685 * gdbarch.h: Likewise.
9686
9687 * remote.c (remote_state): Add gdbarch.
9688 (init_remote_state): Set gdbarch.
9689 (remote_query_supported): Support gdbarch_qsupported.
9690
c1dec97b
DJ
96912010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9692
9693 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9694 __FreeBSD_kernel_version.
9695
ac8035ab
TG
96962010-02-03 Tristan Gingold <gingold@adacore.com>
9697
9698 * symfile.h (struct sym_fns): Add sym_relocate field.
9699 (default_symfile_relocate): New prototype.
9700 (symfile_relocate_debug_section): First argument is now an objfile.
9701 * symfile.c (default_symfile_relocate): Rename from
9702 symfile_relocate_debug_section, first argument is now an objfile.
9703 (symfile_relocate_debug_section): New function.
9704 * coffread.c (coff_sym_fns): Set sym_relocate field.
9705 * somread.c (som_sym_fns): Ditto.
9706 * mipsread.c (ecoff_sym_fns): Ditto.
9707 * machoread.c (macho_sym_fns): Ditto.
9708 * elfread.c (elf_sym_fns): Ditto.
9709 * dwarf2read.c (dwarf2_read_section): Ditto.
9710 * xcoffread.c (xcoff_sym_fns): Ditto.
9711 * dbxread.c (aout_sym_fns): Ditto.
9712 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9713 (elfstab_build_psymtabs): Ditto.
9714
be52b756
L
97152010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9716
9717 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9718
9c3c02fd
TT
97192010-02-02 Tom Tromey <tromey@redhat.com>
9720
9721 * valops.c (value_cast_structs): Try downcasting using the RTTI
9722 type.
9723
f23f4c59
TT
97242010-02-02 Tom Tromey <tromey@redhat.com>
9725
9726 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9727 (gnuv2_baseclass_offset): Now static.
9728 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9729 * gnu-v2-abi.h: Remove.
9730
0cc2414c
TT
97312010-02-02 Tom Tromey <tromey@redhat.com>
9732
9733 * m2-typeprint.c (m2_record_fields): Don't use
9734 TYPE_DECLARED_TYPE.
9735 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9736 (struct main_type) <flag_declared_class>: New field.
9737 (struct cplus_struct_type) <declared_type>: Remove.
9738 <ntemplate_args>: Move earlier.
9739 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9740 (DECLARED_TYPE_TEMPLATE): Remove.
9741 (TYPE_DECLARED_TYPE): Remove.
9742 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9743 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9744 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9745 TYPE_DECLARED_TYPE.
9746
edf3d5f3
TT
97472010-02-02 Tom Tromey <tromey@redhat.com>
9748
9749 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9750 * valops.c (search_struct_field): Compute nbases after calling
9751 CHECK_TYPEDEF.
9752 (check_field): Call CHECK_TYPEDEF.
9753 * cp-valprint.c (cp_print_value): Pass correct address to
9754 baseclass_offset. Fix check for virtual base past the end of the
9755 object. Don't offset address passed to cp_print_value_fields or
9756 apply_val_pretty_printer.
9757 (cp_print_value_fields): Fix call to val_print.
9758 (cp_print_value_fields_rtti): New function.
9759 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9760 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9761 val_print.
9762 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9763 offset to address.
9764 * language.h (struct language_defn) <la_val_print>: Document.
9765 * c-lang.h (cp_print_value_fields_rtti): Declare.
9766
e4b7f41c
JK
97672010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9768
9769 PR libc/11214:
9770 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9771 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9772 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9773
7618e12b
DJ
97742010-02-01 Michael Matz <matz@suse.de>
9775 Daniel Jacobowitz <dan@codesourcery.com>
9776
e4b7f41c 9777 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9778 functions use a frame pointer.
9779
b381ea14
JK
97802010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9781
9782 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9783 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9784 * config/djgpp/fnchange.lst: Add translations for
9785 symbol-without-target_section.exp and symbol-without-target_section.c.
9786
0e05dfcb
DJ
97872010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9788
9789 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9790 (remote_breakpoint_for_pc): Correct invalid_p check.
9791 * gdbarch.c: Regenerated.
9792
f9d67f43
DJ
97932010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9794
9795 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9796 arm_pc_is_thumb.
9797 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9798 (extend_buffer_earlier): New function.
9799 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9800 (arm_adjust_breakpoint_address): New function.
9801 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9802
177321bd
DJ
98032010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9804
9805 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9806 (arm_linux_thumb2_le_breakpoint): New constants.
9807 (arm_linux_init_abi): Set thumb2_breakpoint and
9808 thumb2_breakpoint_size.
9809 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9810 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9811 Implement support for single stepping through IT blocks if
9812 a 32-bit Thumb breakpoint instruction is available.
9813 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9814 is available, use it when needed.
9815 (arm_remote_breakpoint_from_pc): New function.
9816 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9817 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9818 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9819
a1dcb23a
DJ
98202010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9821
9822 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9823 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9824 * gdbarch.c, gdbarch.h: Regenerated.
9825 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9826 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9827 gdbarch_remote_breakpoint_from_pc.
9828
2b009048
DJ
98292010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9830
9831 * infrun.c (prepare_to_proceed): Handle other signals which might
9832 match a breakpoint.
9833 (handle_inferior_event): Move the check for unusual breakpoint
9834 signals earlier.
9835
e4e2711a
JB
98362010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9837
9838 amd64 - function returning record with field straddling 2 registers.
9839 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9840 a record of length <= 16 in which a field straddles the two
9841 eightbytes.
9842
cba6fab5
JB
98432010-01-29 Joel Brobecker <brobecker@adacore.com>
9844
9845 Implement return values on amd64-windows.
9846 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9847 (amd64_windows_return_value): New function.
9848 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9849 amd64_windows_return_value.
9850
3af6ddfe
JB
98512010-01-29 Joel Brobecker <brobecker@adacore.com>
9852
9853 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9854 parameter registers.
3af6ddfe
JB
9855 * i386-tdep.h (struct gdbarch_tdep): Add new field
9856 integer_param_regs_saved_in_caller_frame.
9857 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9858 tdep->integer_param_regs_saved_in_caller_frame to 1.
9859 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9860 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9861
80d19a06
JB
98622010-01-29 Joel Brobecker <brobecker@adacore.com>
9863
9864 amd64-windows: memory args passed by pointer during function calls.
9865 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9866 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9867 where tdep->memory_args_by_pointer is non-zero.
9868 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9869 tdep->memory_args_by_pointer to 1.
9870
ba581dc1
JB
98712010-01-29 Joel Brobecker <brobecker@adacore.com>
9872
4966b6c2 9873 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9874 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9875 amd64-tdep.c.
9876 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9877 call_dummy_integer_regs, and classify.
9878 * amd64-tdep.h (amd64_classify): Add declaration.
9879 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9880 (amd64_reg_class): Delete, moved to i386-tdep.h.
9881 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9882 Replace call to amd64_classify by call to tdep->classify.
9883 (amd64_push_arguments): Get the list of registers to use for
9884 passing integer parameters from the gdbarch tdep structure,
9885 rather than using a hardcoded one. Replace calls to amd64_classify
9886 by calls to tdep->classify.
9887 (amd64_push_dummy_call): Get the register number used for
9888 the "hidden" argument from tdep->call_dummy_integer_regs.
9889 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9890 and tdep->call_dummy_integer_regs. Set tdep->classify.
9891 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9892 (amd64_windows_dummy_call_integer_regs): New static global.
9893 (amd64_windows_classify): New function.
9894 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9895 tdep->call_dummy_integer_regs and tdep->classify.
9896
d37346f0
DJ
98972010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9898
9899 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9900 for the new regcache. All callers updated.
9901 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9902 (get_thread_arch_regcache): Do not set aspace here.
9903 * regcache.h (regcache_xmalloc): Update declaration.
9904
9905 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9906 regcache_xmalloc updated.
9907
7434dadd
JB
99082010-01-28 Joel Brobecker <brobecker@adacore.com>
9909
9910 Another -Wunused-function error in procfs.c (sparc-solaris)
9911 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9912 Only define if SYS_syssgi is defined.
9913 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9914 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9915 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9916 is itself defined.
9917
16d905e2
CF
99182010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9919
9920 * windows-nat.c (windows_initialization_done): New variable.
9921 (get_windows_debug_event): Issue error when process dies before
9922 completely initializing.
9923 (do_initial_windows_stuff): Set flag to indicate when we are done with
9924 the initial steps of attaching to the child.
9925
cd55e50f
JK
99262010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9927
9928 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9929
99cc78aa
DE
99302010-01-27 Doug Evans <dje@google.com>
9931
4c7dcb84
DE
9932 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9933
99cc78aa
DE
9934 * breakpoint.c (bpstat_stop_status): Delete useless code.
9935
52334bf5
JK
99362010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9937
9938 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9939 objfile via SYMBOL_SYMTAB.
9940
708ead4e
TT
99412010-01-26 Tom Tromey <tromey@redhat.com>
9942
9943 PR exp/7643:
9944 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9945 coerce_array on result.
9946
b14e635e
SW
99472010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9948
9949 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9950 search_parent argument.
9951 (cp_add_using): Initialize 'searched' field.
9952 (reset_directive_searched): New function.
9953 * cp-support.h: Add 'searched' field to using_direct struct.
9954 (cp_lookup_symbol_imports): Ditto.
9955 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9956 Perform recursive search.
9957 Implement non parent search.
9958 * valops.c (value_maybe_namespace_elt): Updated.
9959
8540c487
SW
99602010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9961
9962 PR gdb/10929:
9963 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9964 scopes which contain using directives even if they contain no
9965 declarations.
9966 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9967 la_lookup_symbol_nonlocal.
9968 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9969 cp_lookup_symbol_namespace.
9970 (cp_lookup_symbol_namespace): Perform an import lookup at every
9971 block level.
9972 (cp_lookup_symbol_imports): New function.
9973 (cp_lookup_symbol_in_namespace): New function.
9974
421d5d99
TT
99752010-01-25 Tom Tromey <tromey@redhat.com>
9976
9977 PR gdb/11049:
9978 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9979 result.
9980
6bcc772d
RO
99812010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9982
9983 * configure.ac: Only use host_os part when disabling TUI on osf.
9984 Use test to check variables, prefix strings with x.
9985 * configure: Regenerate.
9986
9987 * solib-osf.c (osf_current_sos): Initialize tail.
9988
1c1238a5
TG
99892010-01-25 gingold <gingold@adacore.com>
9990
c8d5aac9
L
9991 * windows-nat.c (windows_continue): Use %x to print thread id.
9992 (get_windows_debug_event): Ditto.
1c1238a5 9993
0b92b5bb
TT
99942010-01-22 Tom Tromey <tromey@redhat.com>
9995
9996 PR symtab/11199:
9997 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9998 type and arguments. Use smash_to_methodptr_type.
9999 (read_structure_type): Call quirk_gcc_member_function_pointer
10000 later.
10001 * gdbtypes.h (smash_to_methodptr_type): Declare.
10002 * gdbtypes.c (smash_to_methodptr_type): New function.
10003 (lookup_methodptr_type): Use it.
10004
0d5392b8
TT
100052010-01-21 Tom Tromey <tromey@redhat.com>
10006
10007 PR symtab/11198:
10008 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10009 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10010 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10011 (glibc_skip_solib_resolver): Use
10012 lookup_minimal_symbol_and_objfile.
10013
e6d088ec
KT
100142010-01-21 Kai Tietz <kai.tietz@onevision.com>
10015
10016 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10017 WIN32 targets.
10018
b966cb8a
TT
100192010-01-20 Tom Tromey <tromey@redhat.com>
10020
10021 PR backtrace/10770:
10022 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10023 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10024 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10025 dwarf_stack_values, not CORE_ADDRs.
10026 (execute_stack_op): Change DW_OP_div and comparison operators to
10027 use signed operands.
10028
3f81c18a
VP
100292010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10030
10031 Per-inferior args and tty and environment.
10032
10033 * infcmd.c (inferior_args): Rename to ...
10034 (inferior_args_scratch): ... this.
10035 (inferior_io_terminal): Rename to ...
10036 (inferior_io_terminal_scratch): ... this.
10037 (inferior_argc, inferior_argv): Remove.
10038 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10039 inside current_inferior().
10040 (set_inferior_tty_command, show_inferior_tty_command): New.
10041 (get_inferior_args, set_inferior_args): Store inside
10042 current_inferior().
10043 (notice_args_set): Likewise and rename to...
10044 (set_args_command): ... this.
10045 (set_inferior_args_vector): Likewise.
10046 (notice_args_read): Rename to...
10047 (show_args_command): ...new.
10048 (tty_command): Remove.
10049 (run_command_1): Don't free old args, as they are freed by
10050 set_inferior_arg now.
10051 (run_no_args_command): Likewise.
10052 (inferior_environ): Remove.
10053 (run_command_1): Use environment of the current inferior.
10054 (environment_info, set_environment_command)
10055 (unset_environment_command, path_info, path_command): Likewise.
10056 (_initialize_infcmd): Adjust for function and variable renames.
10057 Do not init inferior_environ.
10058 * inferior.h (set_inferior_arg): Adjust prototype.
10059 (struct inferior): New fields args, argc, argv, terminal, environment.
10060 (inferior_environ): Remove declaration.
10061 * inferior.c (free_inferior): Free new fields.
10062 (add_inferior_silent): Initialize 'environment' field.
10063 * main.c (captured_main): Set arguments only after the initial
10064 inferior has been created. Set set_inferior_io_terminal,
10065 not tty_command.
10066 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10067 inferior.
10068 (_initialize_mi_cmd_env): Adjust for disappearance of global
10069 inferior_environ.
10070 * solib.c (solib_find): Use environment of the current inferior.
10071
d8b65138
JK
100722010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10073
10074 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10075 HAVE_PYTHON.
10076 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10077
692465f1
JB
100782010-01-20 Joel Brobecker <brobecker@adacore.com>
10079
10080 Get rid of ada-lang.c:function_name_from_pc.
10081 * ada-lang.c: Add "stack.h" #include.
10082 (function_name_from_pc): Delete.
10083 (is_known_support_routine): Replace call to function_name_from_pc
10084 by call to find_frame_funname.
10085 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10086
95519e0e
TT
100872010-01-19 Tom Tromey <tromey@redhat.com>
10088
10089 PR c++/11026:
10090 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10091 objfile obstack.
10092
95c11dc7
TT
100932010-01-19 Tom Tromey <tromey@redhat.com>
10094
10095 * top.c (stop_sig, float_handler, do_nothing): Remove.
10096
a0f49112
JK
100972010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 * breakpoint.c (watchpoint_check): Check the call
10100 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10101 Extend the comment.
8d95cc3b 10102 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10103 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10104 watchpoint-cond-gone-stripped.c.
10105
ceeb3d5a
TT
101062010-01-19 Tom Tromey <tromey@redhat.com>
10107
10108 PR c++/8000:
10109 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10110 into parent scope, and enumerator into grandparent scope.
10111
2b71fc8e
JB
101122010-01-19 Joel Brobecker <brobecker@adacore.com>
10113
10114 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10115
03564ed9
JB
101162010-01-19 Joel Brobecker <brobecker@adacore.com>
10117
10118 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10119 i[34567]86-*-solaris2.1[0-9]*.
10120 * configure.tgt: Likewise.
10121
fb2e7cb4
JB
101222010-01-19 Joel Brobecker <brobecker@adacore.com>
10123
10124 * NEWS: Document the source command enhancement allowing it
10125 to load Python scripts. Document the "set/show script-extension"
10126 commands.
10127
1cb5e2a4
JB
101282010-01-19 Joel Brobecker <brobecker@adacore.com>
10129
10130 Add -Wunused-function to compile flags.
10131 * configure.ac: Add -Wunused-function to build_warnings.
10132 * configure: Regenerate.
10133
0ec6cd0c
JB
101342010-01-19 Joel Brobecker <brobecker@adacore.com>
10135
10136 "delete" ada-lex.c:input function, not used.
10137 * ada-lex.l: #define YY_NO_INPUT.
10138
b74845da
JB
101392010-01-19 Joel Brobecker <brobecker@adacore.com>
10140
10141 Delete free_named_symtabs and associated cleanup.
10142 * symfile.h (free_named_symtabs): Delete declaration.
10143 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10144 (cashier_psymtab): Comment function out.
10145 Delete declaration.
10146 (free_named_symtabs): Delete.
10147 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10148 * dbxread.c (end_psymtab): Likewise.
10149 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10150 * exec.c (exec_close_1): Ditto.
10151 * xcoffread.c (xcoff_end_psymtab): Likewise.
10152
65c06092
JB
101532010-01-19 Joel Brobecker <brobecker@adacore.com>
10154
10155 * stack.c (print_block_frame_labels): Comment function out.
10156
d5cd6034
JB
101572010-01-19 Joel Brobecker <brobecker@adacore.com>
10158
10159 Delete unused or undefined functions.
10160 * breakpoint.c (ep_parse_optional_filename): Delete.
10161 * dcache.c (dcache_write_line): Remove declaration.
10162 * infrun.c (build_infrun): Remove declaration.
10163 * tracepoint.c (tracepoint_save_command): Remove declaration.
10164 * linux-nat.c (init_lwp_list): Delete. No longer used.
10165 * event-loop.c (check_async_signal_handlers): Delete declaration.
10166 * infrun.c (init_execution_control_state): Delete.
10167 (proceed): Update comment to avoid mentioning
10168 init_execution_control_state.
10169 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10170 * ada-lang.c (ada_to_static_fixed_value): Delete.
10171 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10172 * cp-namespace.c (cp_copy_usings): Delete.
10173 * xml-syscall.c (xml_number_of_syscalls): Delete.
10174 * progspace.c (find_program_space_by_num): Delete.
10175 * inflow.c (handle_sigio): Delete declaration.
10176 * hppa-tdep.c (hppa_alignof): Delete.
10177 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10178 (mipsnbsd_core_osabi_sniffer): Delete.
10179
4e8f195d
TT
101802010-01-18 Tom Tromey <tromey@redhat.com>
10181
10182 PR c++/9680:
10183 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10184 (CONST_CAST): New tokens.
10185 (exp): Add new productions.
10186 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10187 reinterpret_cast.
10188 (is_cast_operator): New function.
10189 (yylex): Handle cast operators specially.
10190 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10191 UNOP_REINTERPRET_CAST>: New cases.
10192 * expprint.c (print_subexp_standard): Likewise.
10193 (op_name_standard): Likewise.
10194 (dump_subexp_body_standard): Likewise.
10195 * parse.c (operator_length_standard): Likewise.
10196 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10197 UNOP_REINTERPRET_CAST.
10198 * gdbtypes.c (class_types_same_p): New function.
10199 (is_ancestor): Use it.
10200 (is_public_ancestor): New function.
10201 (is_unique_ancestor_worker): Likewise.
10202 (is_unique_ancestor): Likewise.
10203 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10204 (is_unique_ancestor): Declare.
10205 * valops.c (value_reinterpret_cast): New function.
10206 (dynamic_cast_check_1): Likewise.
10207 (dynamic_cast_check_2): Likewise.
10208 (value_dynamic_cast): Likewise.
10209 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10210
d9c57d9f
JB
102112010-01-18 Joel Brobecker <brobecker@adacore.com>
10212
10213 Fix build failure when building without Python support.
10214 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10215 is not defined.
10216
f80d3ff2
JB
102172010-01-18 Joel Brobecker <brobecker@adacore.com>
10218
10219 Use XVS field type instead of doing a parallel lookup.
10220 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10221 if it is a reference type instead of doing a type lookup using
10222 the XVS field name.
10223
5bf03f13
JB
102242010-01-18 Joel Brobecker <brobecker@adacore.com>
10225
10226 Trust PAD types instead of using PAD___XVS.
10227 * ada-lang.c (trust_pad_over_xvs): New static variable.
10228 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10229 parallel XVS type, follow the XVS type instead of the PAD type.
10230 (unwrap_value): Make sure that there is no parallel XVE type
10231 before returning the value as is.
10232 (set_ada_list, show_ada_list): New static variables.
10233 (set_ada_command, show_ada_command): New functions.
10234 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10235 Add new "set/show ada trust-PAD-over-XVS" setting.
10236
973817a3
JB
102372010-01-18 Tom Tromey <tromey@redhat.com>
10238 Thiago Jung Bauermann <bauerman@br.ibm.com>
10239
10240 Allow "source" to load python scripts.
10241 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10242 * python/python.c (source_python_script): New function.
10243 * python/python.h (source_python_script): Add declaration.
10244 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10245 (script_ext_off, script_ext_soft, script_ext_strict)
10246 (script_ext_enums, script_ext_mode): New static constants.
10247 (show_script_ext_mode, find_and_open_script): New functions.
10248 (source_script): Enhance to handle Python scripts.
10249 (init_cli_cmds): Add set/show script-extension commands.
10250
98e03262
SS
102512010-01-16 Stan Shebs <stan@codesourcery.com>
10252
10253 * tracepoint.h (struct trace_status): Use unsigned long long
10254 instead of size_t.
10255 * tracepoint.c (trace_status_command): Fix printf directive.
10256 (trace_save_command): Check fwrite returns, fix printf directive.
10257 (trace_filename): New global.
10258 (tfile_open): Set it, check read returns.
10259 (tfile_close): Free trace_filename.
10260 (tfile_get_traceframe_address): Check read returns.
10261 (tfile_trace_find): Ditto.
10262 (tfile_fetch_registers): Ditto.
10263 (tfile_xfer_partial): Ditto.
10264 (tfile_get_trace_state_variable_value): Ditto.
10265
00bf0b85
SS
102662010-01-15 Stan Shebs <stan@codesourcery.com>
10267
10268 Add trace file support.
10269 * tracepoint.h (enum trace_stop_reason): New enum.
10270 (struct trace_status): New struct.
10271 (parse_trace_status): Declare.
10272 (struct uploaded_tp): Move here from remote.c,
10273 add fields for actions.
10274 (struct uploaded_tsv): New struct.
10275 * tracepoint.c (tfile_ops): New target vector.
10276 (trace_fd): New global.
10277 (tfile_open): New function.
10278 (tfile_close): New function.
10279 (tfile_files_info): New function.
10280 (tfile_get_trace_status): New function.
10281 (tfile_get_traceframe_address): New function.
10282 (tfile_trace_find): New function.
10283 (tfile_fetch_registers): New function.
10284 (tfile_xfer_partial): New function.
10285 (tfile_get_trace_state_variable_value): New function.
10286 (init_tfile_ops): New function.
10287 (_initialize_tracepoint): Call it, add tfile target.
10288 (trace_status): New global.
10289 (current_trace_status): New function.
10290 (trace_running_p): Remove, change all users to get from
10291 current_trace_status()->running.
10292 (get_trace_status): Remove.
10293 (trace_status_command): Call target_get_trace_status directly,
10294 report more detail including tracing stop reasons.
10295 (trace_find_command): Always allow tfind on a file.
10296 (trace_find_pc_command): Ditto.
10297 (trace_find_tracepoint_command): Ditto.
10298 (trace_find_line_command): Ditto.
10299 (trace_find_range_command): Ditto.
10300 (trace_find_outside_command): Ditto.
10301 (trace_frames_offset, cur_offset): Declare as off_t.
10302 (trace_regblock_size): Rename from reg_size, update users.
10303 (parse_trace_status): New function.
10304 (tfile_interp_line): New function.
10305 (disconnect_or_stop_tracing): Ensure current trace
10306 status before asking what to do.
10307 (stop_reason_names): New global.
10308 (trace_save_command): New command.
10309 (get_uploaded_tp): Move here from remote.c.
10310 (find_matching_tracepoint): Ditto.
10311 (merge_uploaded_tracepoints): New function.
10312 (parse_trace_status): Use stop_reason_names.
10313 (_initialize_tracepoint): Define tsave command.
10314 * target.h (target_ops): New fields to_save_trace_data,
10315 to_upload_tracepoints, to_upload_trace_state_variables,
10316 to_get_raw_trace_data, change to_get_trace_status
10317 to take a pointer to a status struct.
10318 (target_save_trace_data): New macro.
10319 (target_upload_tracepoints): New macro.
10320 (target_upload_trace_state_variables): New macro.
10321 (target_get_raw_trace_data): New macro.
10322 * target.c (update_current_target): Add new methods, change
10323 signature of to_get_trace_status.
10324 * remote.c (hex2bin): Make globally visible.
10325 (bin2hex): Ditto.
10326 (remote_download_trace_state_variable): Download name also.
10327 (remote_get_trace_status): Update parameter, use
10328 parse_trace_status.
10329 (remote_save_trace_data): New function.
10330 (remote_upload_tracepoints): New function.
10331 (remote_upload_trace_state_variables): New function.
10332 (remote_get_raw_trace_data): New function.
10333 (remote_start_remote): Use them.
10334 (_initialize_remote_ops): Add operations.
10335 * ax-gdb.c: Include breakpoint.h.
10336 * breakpoint.c (create_tracepoint_from_upload): Use
10337 break_command_really, return tracepoint, warn about unimplemented
10338 parts.
10339 * NEWS: Mention trace file addition.
10340
d904de5b
JK
103412010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10342
10343 Fix compilation warning on gcc-3.4.
10344 * exec.c (print_section_info): Move the `displacement' variable
10345 initialization to its declaration.
10346
64aa9731
JK
103472010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10348
10349 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10350 comparison.
10351
ca1f5def 103522010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10353
10354 "info tasks" broken by typedefs in ATCB type definitions.
10355 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10356 ada_check_typedef before retrieving the length of the type for
10357 regular fields.
10358
12ab9e09
JB
103592010-01-15 Joel Brobecker <brobecker@adacore.com>
10360
10361 Do not use name-based lookup for unconstrained packed arrays.
10362 * ada-lang.c (find_parallel_type_by_descriptive_type):
10363 Limit the fallback to name-based lookups to the case where
10364 the type is a constrained packed array.
10365
c389c3dc
JB
103662010-01-15 Joel Brobecker <brobecker@adacore.com>
10367
10368 Enhance gdb-gdb.py to handle main_type.type_specific.
10369 * gdb-gdb.py: Print the type-specific part of struct main_type.
10370
7991dee7
JK
103712010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10372
10373 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10374 * configure: Regenerate.
10375 * config.in: Regenerate.
10376 * utils.c: Include sys/resource.h.
10377 (dump_core, can_dump_core): New.
10378 (internal_vproblem): Update the comment. Check can_dump_core while
10379 setting dump_core_p. Replace two abort calls by dump_core calls.
10380
93c26624
JK
103812010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10382 Eli Zaretskii <eliz@gnu.org>
10383
10384 * NEWS: Document the PIE support.
10385
55235ad7
JK
103862010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10387
10388 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10389 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10390
41752192
JK
103912010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10392
10393 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10394 Replace exec_entry_point call by bfd_get_start_address.
10395
9f2982ff
JK
103962010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10397
10398 Support Valgrind attachments broken by the PIE support.
10399 * auxv.c: Include gdbcore.h.
10400 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10401 parameters ops, object and annex. Remove their assertions.
10402 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10403 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10404 (memory_xfer_auxv): ... here.
10405 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10406 memory_xfer_auxv.
10407 * procfs.c (procfs_xfer_partial): Likewise.
10408 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10409 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10410 (svr4_solib_create_inferior_hook): Conditionalize the
10411 svr4_relocate_main_executable call.
10412
61f0d762
JK
104132010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10416 target_section. Find SECT in current_target_sections, gdb_assert it.
10417 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10418 New variable abfd.
10419 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10420 of separate debug info file.
10421
51bee8e9
JK
104222010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10423
10424 Support PIEs with no symfile_objfile.
10425 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10426 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10427
b8040f19
JK
104282010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10429
10430 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10431 code part to ...
10432 (svr4_static_exec_displacement): ... a new function.
10433 (svr4_exec_displacement): New function.
10434 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10435 new_offsets using alloca now. Remove variable old_chain and changed.
10436 Call objfile_relocate unconditionally now.
10437
eb90ce83
DE
104382010-01-14 Doug Evans <dje@google.com>
10439
10440 * gdbtypes.c (arch_flags_type): Fix comment.
10441 * gdbtypes.h (arch_composite_type): Fix comment.
10442
bdfed3bc
TG
104432009-01-14 Tristan Gingold <gingold@adacore.com>
10444
10445 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10446 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10447 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10448 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10449 macho_add_oso_symfile.
10450 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10451
1596ad23
JB
104522010-01-14 Joel Brobecker <brobecker@adacore.com>
10453
10454 Tru64: Dead threads are never deleted.
10455 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10456 (dec_thread_count_gdb_threads): Fix counter increment.
10457 (dec_thread_add_gdb_thread): Fix *listp increment.
10458 (resync_thread_list): Fix bug in deletion of dead threads that
10459 caused all threads to be deleted, instead of just the dead ones.
10460
be759fcf
PM
104612010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10462
10463 PR python/10705
10464
10465 * python/python-internal.h: Add lazy_string_object_type
10466 definition.
10467 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10468 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10469 * python/py-value.c (valpy_lazy_string): New function.
10470 (convert_value_from_python): Add lazy string conversion.
10471 * python/py-prettyprint.c (pretty_print_one_value): Check if
10472 return is also a lazy string.
10473 (print_string_repr): Add lazy string printing branch.
10474 (print_children): Likewise.
10475 * python/py-lazy-string.c: New file. Implement lazy strings.
10476 * python/python.c (_initialize_python): Call
10477 gdbpy_initialize_lazy_string.
10478 * varobj.c (value_get_print_value): Add lazy string printing
10479 branch. Account for encoding.
10480 * c-lang.c (c_printstr): Account for new encoding argument. If
10481 encoding is NULL, find encoding suited for type, otherwise use
10482 user encoding.
10483 * language.h (language_defn): Add encoding argument.
10484 (LA_PRINT_STRING): Likewise.
10485 * language.c (unk_lang_printstr): Update to reflect new encoding
10486 argument to language_defn.
10487 * ada-lang.h (ada_printstr): Likewise.
10488 * c-lang.h (c_printstr): Likewise.
10489 * p-lang.h (pascal_printstr);
10490 * f-lang.c (f_printstr): Likewise.
10491 * m2-lang.c (m2_printstr): Likewise.
10492 * objc-lang.c (objc_printstr): Likewise.
10493 * p-lang.c (pascal_printstr): Likewise.
10494 * scm-lang.c (scm_printstr): Likewise.
10495 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10496 encoding argument.
10497 * ada-valprint.c (ada_printstr): Likewise.
10498 * f-valprint.c (f_val_print): Likewise
10499 * m2-valprint.c (m2_val_print): Likewise.
10500 * p-valprint.c (pascal_val_print): Likewise.
10501 * expprint.c (print_subexp_standard): Likewise.
10502 * valprint.c (val_print_string): Likewise.
10503 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10504 (SUBDIR_PYTHON_SRCS): Likewise.
10505 (py-lazy-string.o): New rule.
10506
1fe72117 105072010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10508
10509 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10510 uninitialized" warning from gcc on local `tree'.
10511
dc146f7c
VP
105122010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10513
10514 Implement core awareness.
10515
10516 * bcache.c (compare_ints): Remove
10517 (print_percentage): Use compare_positive_ints.
10518 * defs.h (compare_positive_ints): Declare.
10519 * linux-nat.h (struct lin_lwp): New field core.
10520 (linux_nat_core_of_thread_1): Declare.
10521 * linux-nat.c (add_lwp): Init the 'core' field.
10522 (linux_nat_wait_1): Record the core.
10523 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10524 (linux_nat_add_target): Register the above.
10525 * linux-thread-db.c (update_thread_core): New.
10526 (thread_db_find_new_threads): Update core information for
10527 every thread.
10528 * remote.c (struct private_thread_info): New.
10529 (free_private_thread_info, demand_private_info): New.
10530 (PACKET_qXfer_threads, use_osdata_threads): New.
10531 (struct thread_item, threads_parsing_context
10532 (start_thread, end_thread, thread_attributes)
10533 (thread_children, threads_children, threads_elements): New.
10534 (remote_threads_info): Try qXfer:threads before anything
10535 else.
10536 (remote_protocol_packets): Register qXfer:threads.
10537 (remote_open_1): Init use_osdata_threads.
10538 (struct stop_reply): New field 'core'.
10539 (remote_parse_stop_reply): Parse core number.
10540 (process_stop_reply): Record core number.
10541 (remote_xfer_partial): Handle qXfer:threads.
10542 (remote_core_of_thread): New.
10543 (init_remote_ops): Register remote_core_of_thread.
10544 (_initialize_remote): Register qXfer:read.
10545 * target.c (target_core_of_thread): New
10546 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10547 (struct target_ops): New field to_core_of_threads.
10548 (target_core_of_thread): Declare.
10549 * gdbthread.h (struct thread_info): New field private_dtor.
10550 * thread.c (print_thread_info): Report the core.
10551 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10552 * utils.c (compare_positive_ints): New.
10553 * features/threads.dtd: New.
10554 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10555 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10556 (do_nothing, free_vector_of_osdata_items)
10557 (splay_tree_int_comparator, free_splay_tree): New.
10558 (print_one_inferior_data): Implemented printing of selected
10559 inferiors. Collect and print cores.
10560 (output_cores): New.
10561 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10562 thread groups together with --available.
10563
d30c5336
JK
105642010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10565
10566 * configure: Regenerate (for _STRUCTURED_PROC).
10567
02893727
JB
105682010-01-12 Joel Brobecker <brobecker@adacore.com>
10569
10570 Delete dead function.
10571 * ada-lang.c (extract_string): Delete. No longer used.
10572
46ed2d6f
JB
105732010-01-12 Joel Brobecker <brobecker@adacore.com>
10574
10575 Fix -Wunused warning in dec-thread.c.
10576 * dec-thread.c (dec_thread_count_gdb_threads)
10577 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10578
606b8d1a
JB
105792010-01-12 Joel Brobecker <brobecker@adacore.com>
10580
10581 * ada-valprint.c (ada_print_floating): Remove trailing space.
10582
b4ba55a1
JB
105832010-01-12 Joel Brobecker <brobecker@adacore.com>
10584
10585 Add support for DW_AT_GNAT_descriptive_type.
10586 * gdbtypes.h (enum type_specific_kind): New enum.
10587 (struct main_type) [type_specific_field]: New component.
10588 [type_specific]: Add new component "gnat_stuff".
10589 (struct gnat_aux_type): New type.
10590 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10591 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10592 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10593 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10594 (TYPE_SPECIFIC_FIELD): New macros.
10595 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10596 type does not hold any cplus-specific data.
10597 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10598 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10599 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10600 cplus-specific data.
10601 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10602 Set new component TYPE_SPECIFIC_FIELD (type).
10603 (gnat_aux_default): New constant.
10604 (allocate_gnat_aux_type): New function.
10605 (init_type): Add initialization the type-specific stuff for
10606 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10607 (print_gnat_stuff): New function.
10608 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10609 specific data. Adjust code that prints the contents of the
10610 type-specific union using the TYPE_SPECIFIC_FIELD value.
10611 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10612 the type cplus stuff for Ada types.
10613 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10614 Error out if these routines are called with an Ada type.
10615 (read_structure_type, read_array_type, read_subrange_type):
10616 Add call to set_descriptive_type.
10617 (set_die_type): Initialize the gnat-specific data if necessary.
10618 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10619 New functions.
10620 * ada-lang.c (decode_constrained_packed_array_type): Use
10621 decode_constrained_packed_array_type instead of doing a standard
10622 lookup to locate a parallel type.
10623 (find_parallel_type_by_descriptive_type): New function.
10624 (ada_find_parallel_type_with_name): New function.
10625 (ada_find_parallel_type): Reimplement using
10626 ada_find_parallel_type_with_name.
10627 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10628 to check if type has a cplus stuff.
10629 * linespec.c (total_number_of_methods): Likewise.
10630 * mdebugread.c (new_type): Likewise.
10631
b0f02ee9
JK
106322010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 * NEWS: Document the 0b binary number prefix parsing.
10635
b260e109
JK
106362010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10637
10638 * objfiles.c (objfile_relocate1): Change the return type to int.
10639 Describe the new return value. Return non-zero if data changed.
10640 (objfile_relocate): New variable changed. Set it. Call
10641 breakpoint_re_set depending on CHANGED.
10642
b5cfddf5
JK
106432010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10644
10645 Implement binary numbers parsing.
10646 * c-exp.y (parse_number): New case 'b' and 'B'.
10647
e0ae4240
JK
106482010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10649 Tristan Gingold <gingold@adacore.com>
10650
10651 * solib.c (info_sharedlibrary_command): Replace
10652 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10653 objfile_has_symbols.
10654
6e0e5977
JB
106552010-01-10 Joel Brobecker <brobecker@adacore.com>
10656
10657 * NEWS: Document the improvements made to the mips-irix port.
10658
7348c5e1
JB
106592010-01-09 Joel Brobecker <brobecker@adacore.com>
10660
10661 Fix the documentation of valprint.c:value_print.
10662 * valprint.c (value_print): Update the function description to
10663 mention that the syntax of the output follows the current_language,
10664 not necessarily C.
10665
567995e1
JK
106662010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10667
10668 Fix displacement of separate debug info files.
10669 * objfiles.c (objfile_relocate): Rename to ...
10670 (objfile_relocate1): ... here and make it static. Extend the comment.
10671 (objfile_relocate): New function.
10672 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10673 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10674 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10675 allocated using alloca.
10676 * symfile.c (copy_section_addr_info): Remove.
10677 (build_section_addr_info_from_objfile): Make it global. New variables
10678 addr_bit and mask, use them.
10679 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10680 (copy_section_addr_info): Remove.
10681
6d8eadbd
JB
106822010-01-09 Joel Brobecker <brobecker@adacore.com>
10683
10684 Signal unwinder for mips-irix N32.
10685 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10686 tramp-frame.h.
10687 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10688 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10689 (SIGCONTEXT_LO_OFF): New macros.
10690 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10691 (mips_irix_n32_tramp_frame): New static constant.
10692 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10693
27087a3d
JB
106942010-01-09 Joel Brobecker <brobecker@adacore.com>
10695
10696 Breakpoint in shared library does not work on mips-irix.
10697 * procfs.c: #include "observer.h".
10698 (procfs_inferior_created): New function, moving here the code
10699 which unsets the syssgi syscall-exit notifications.
10700 (procfs_create_inferior): Remove the code which unsets the syssgi
10701 syscall-exit notifications. It is too early to do this here.
10702 (_initialize_procfs): Attach the procfs_inferior_created observer.
10703
f08877ba
JB
107042010-01-09 Joel Brobecker <brobecker@adacore.com>
10705
10706 Wrong return convention for arrays (mips-irix).
10707 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10708 128 bits or smaller are returned the same way as structs
10709 and unions of the the same size.
10710
e4b97d48
JB
107112010-01-09 Joel Brobecker <brobecker@adacore.com>
10712
10713 Cannot set the PC on mips-irix.
10714 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10715 register number, no the cooked one.
10716
11377e68
JB
107172010-01-09 Joel Brobecker <brobecker@adacore.com>
10718
10719 Error while loading core file on mips-irix.
10720 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10721 if debugging from a core file.
10722
b2391021
JB
107232010-01-09 Joel Brobecker <brobecker@adacore.com>
10724
10725 GDB hangs when attaching to process on mips-irix.
10726 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10727 attaching to a process.
10728
f2ec0ecf
JB
107292010-01-09 Joel Brobecker <brobecker@adacore.com>
10730
10731 Use the correct breakpoint instruction on mips-irix.
10732 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10733 containing the correct breakpoint instruction to use on mips-irix.
10734 Use it when the osabi is GDB_OSABI_IRIX.
10735
3c95f01c
JB
107362010-01-09 Joel Brobecker <brobecker@adacore.com>
10737
10738 -Wunused warning in procfs.c (mips-irix only).
10739 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10740 throughout instead of using praddset and prdelset respectively.
10741
4b7703ad
JB
107422010-01-09 Joel Brobecker <brobecker@adacore.com>
10743
10744 GDB crash while stepping into function.
10745 * infrun.c (handle_inferior_event): Refetch the current frame
10746 after handling what.main_action, in case that pointer became
10747 dangling.
10748
12c89474
JB
107492010-01-09 Joel Brobecker <brobecker@adacore.com>
10750
10751 Fix build failure of solaris-hosted cross debuggers.
10752 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10753
1a3fd262 107542010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10755
10756 Fix build failure on sparc-solaris.
10757 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10758
75242ef4
JK
107592010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10760
10761 Move some symfile code into subroutines.
10762 * symfile.h (relative_addr_info_to_section_offsets)
10763 (addr_info_make_relative): New prototypes.
10764 * symfile.c (default_symfile_offsets): Move a part to ...
10765 (relative_addr_info_to_section_offsets): ... this new function.
10766 (default_symfile_offsets): Call it.
10767 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10768 this part to ...
10769 (addr_info_make_relative): ... this new function.
10770
268a4a75
JK
107712010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 Add from_tty to solib_create_inferior_hook.
10774 * infcmd.c (post_create_inferior): Move solib_add after
10775 solib_create_inferior_hook. Pass from_tty to
10776 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10777 0 from_tty and comment why.
10778 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10779 * linux-nat.c (linux_child_follow_fork): Likewise.
10780 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10781 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10782 from_tty.
10783 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10784 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10785 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10786 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10787 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10788 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10789 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10790 Pass it to svr4_so_ops.solib_create_inferior_hook.
10791 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10792 from_tty.
10793 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10794 solib_add.
10795 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10796 enable_break.
10797 * solib-target.c (solib_target_solib_create_inferior_hook): New
10798 parameter from_tty.
10799 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10800 it to ops->solib_create_inferior_hook.
10801 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10802 Move solib_add after solib_create_inferior_hook, call it now with
10803 from_tty as 0. New comment there.
10804 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10805 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10806 Likewise.
10807
cf00dfa7
VP
108082010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10809
10810 Fix multiexec race.
10811 * infrun.c (handle_inferior_event): Use get_thread_regcache
10812 with events ptid, not get_current_regcache.
10813
f91e5ac3
JB
108142009-01-08 Joel Brobecker <brobecker@adacore.com>
10815
10816 GDB crash with empty executable name (MinGW).
10817 * source.c (openp): Add assert that parameter string is not NULL.
10818 if parameter string is an empty string, then return with a failure
10819 immediately.
10820
92b9ce5b
JB
108212009-01-08 Joel Brobecker <brobecker@adacore.com>
10822
10823 Get rid of support for VAX Floats.
10824 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10825 (ada_vax_float_print_function): Delete.
10826 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10827 (ada_vax_float_print_function): Delete.
10828 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10829 (ada_print_type): Remove support for VAX floats.
10830 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10831
268a4a75 108322010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10833
10834 * stabsread.c (read_args): Handle zero arguments.
10835
f0f20949
JB
108362009-01-08 Joel Brobecker <brobecker@adacore.com>
10837
10838 Cannot find in-tree libiconv.a after reconfigure.
10839 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10840 that we can use, then cache the path to this archive.
10841 * configure: Regenerate.
10842
6b6218c5
SS
108432010-01-07 Stan Shebs <stan@codesourcery.com>
10844
35b1e5cc
SS
10845 Make tracepoint operations go through target vector.
10846 * target.h (enum trace_find_type): New enum.
10847 (struct target_ops): New fields to_trace_init,
10848 to_download_tracepoint, to_download_trace_state_variable,
10849 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10850 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10851 to_set_disconnected_tracing.
10852 (target_trace_init): New macro.
10853 (target_download_tracepoint): New macro.
10854 (target_download_trace_state_variable): New macro.
10855 (target_trace_start): New macro.
10856 (target_trace_set_readonly_regions): New macro.
10857 (target_get_trace_status): New macro.
10858 (target_trace_stop): New macro.
10859 (target_trace_find): New macro.
10860 (target_get_trace_state_variable_value): New macro.
10861 (target_set_disconnected_tracing): New macro.
10862 * target.c (update_current_target): Inherit and set defaults for
10863 tracepoint operations.
10864 * tracepoint.c (default_collect): Make globally visible.
10865 (target_is_remote): Remove, along with all calls.
10866 (tvariables_info): Call target_get_trace_state_variable_value.
10867 (remote_set_transparent_ranges): Remove.
10868 (trace_start_command): Call target_trace_init,
10869 target_download_tracepoint, etc.
10870 (download_tracepoint): Remove.
10871 (trace_stop_command): Simplify.
10872 (stop_tracing): Call target_trace_stop.
10873 (get_trace_status): Call target_get_trace_status.
10874 (trace_status_command): Add case for targets that cannot trace.
10875 (finish_tfind_command): Change to take numerical arguments, call
10876 target_trace_find.
10877 (trace_find_command): Update call to finish_tfind_command.
10878 (trace_find_pc_command): Ditto.
10879 (trace_find_tracepoint_command): Ditto.
10880 (trace_find_line_command): Ditto.
10881 (trace_find_range_command): Ditto.
10882 (trace_find_outside_command): Ditto.
10883 (set_disconnected_tracing_value): Call
10884 target_set_disconnected_tracing.
10885 * remote.c: Add protocol encoding bits from tracepoint.c.
10886 (trace_error): Move from tracepoint.c.
10887 (remote_get_noisy_reply): Ditto.
10888 (free_actions_list_cleanup_wrapper): Ditto.
10889 (free_actions_list): Ditto.
10890 (remote_trace_init): New function.
10891 (remote_download_tracepoint): New function.
10892 (remote_download_trace_state_variable): New function.
10893 (remote_trace_set_readonly_regions): New function.
10894 (remote_trace_start): New function.
10895 (remote_get_trace_status): New function.
10896 (remote_trace_stop): New function.
10897 (remote_trace_find): New function.
10898 (remote_download_trace_state_variable): New function.
10899 (remote_set_disconnected_tracing): New function.
10900 (init_remote_ops): Add tracepoint operations.
10901
6b6218c5
SS
10902 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10903
089b4803
TG
109042010-01-07 Tristan Gingold <gingold@adacore.com>
10905
10906 * symfile.c (build_section_addr_info_from_objfile): New function.
10907 (symbol_file_add_separate): Don't use offsets from objfile but
10908 built an addr info.
10909
d5551862
SS
109102010-01-06 Stan Shebs <stan@codesourcery.com>
10911
10912 Support disconnected tracing.
10913 * infcmd.c (detach_command): Ask whether to stop tracing.
10914 * cli/cli-cmds.c (quit_command): Ditto.
10915 * breakpoint.h (struct breakpoint): New field number_on_target.
10916 * breakpoint.c (create_tracepoint_from_upload): New function.
10917 (get_tracepoint_by_number_on_target): New function.
10918 * remote.c (struct remote): New field disconnected_tracing.
10919 (remote_disconnected_tracing_feature): New function.
10920 (remote_protocol_features): Add DisconnectedTracing.
10921 (struct uploaded_tp): New struct.
10922 (uploaded_tps): New global.
10923 (get_uploaded_tp): New function.
10924 (find_matching_tracepoint): New function.
10925 (remote_get_tracing_state): New function.
10926 (remote_start_remote): Call it.
10927 * tracepoint.c (disconnected_tracing): New global.
10928 (trace_start_command): Initialize number_on_target.
10929 (stop_tracing): New function, split out from...
10930 (trace_stop_command): Call stop_tracing.
10931 (get_trace_status): New function, split out from...
10932 (trace_status_command): Call get_trace_status, add info on
10933 disconnection behavior.
10934 (disconnect_or_stop_tracing): New function.
10935 (finish_tfind_command): Translate from number on target.
10936 (trace_find_tracepoint_command): Translate to number on target.
10937 (send_disconnected_tracing_value): New function.
10938 (set_disconnected_tracing): New function.
10939 (_initialize_tracepoint): Add disconnected-tracing variable.
10940 * NEWS: Mention disconnected tracing.
10941
15d123c9
TG
109422010-01-06 Tristan Gingold <gingold@adacore.com>
10943
10944 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10945 parameter to main_objfile. Iterate on all separate debug objfiles.
10946 * symfile.h (symbol_file_add_separate)
10947 (find_separate_debug_file_by_debuglink): Remove parameter names.
10948 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10949 (reread_symbols): Use free_objfile_separate_debug.
10950 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10951 Adjust comment.
10952 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10953 (free_objfile_separate_debug): New prototypes.
10954 * objfiles.c (objfile_separate_debug_iterate): New function.
10955 (add_separate_debug_objfile, free_objfile_separate_debug): New
10956 functions.
10957 (free_objfile): Use free_objfile_separate_debug. Adjust for
10958 multiple separate debug objfile.
10959 (objfile_has_symbols): Adjust comment. Iterate on all separate
10960 debug objfiles.
10961 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10962 debug objfile.
10963 (lookup_minimal_symbol_text): Ditto.
10964 (lookup_minimal_symbol_by_pc_name): Ditto.
10965 (lookup_minimal_symbol_solib_trampoline): Ditto.
10966 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10967 debug objfiles.
10968
7a697b8d
SS
109692010-01-05 Stan Shebs <stan@codesourcery.com>
10970
10971 Add fast tracepoints.
10972 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10973 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10974 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10975 * breakpoint.c (tracepoint_type): New function.
10976 (ALL_TRACEPOINTS): Use it.
10977 (should_be_inserted): Ditto.
10978 (bpstat_check_location): Ditto.
10979 (print_one_breakpoint_location): Ditto.
10980 (user_settable_breakpoint): Ditto.
10981 (set_breakpoint_location_function): Ditto.
10982 (disable_breakpoints_in_shlibs): Ditto.
10983 (delete_trace_command): Ditto.
10984 (print_it_typical): Add bp_fast_tracepoint case.
10985 (bpstat_what): Ditto.
10986 (print_one_breakpoint_location): Ditto.
10987 (allocate_bp_location): Ditto.
10988 (mention): Ditto.
10989 (breakpoint_re_set_one): Ditto.
10990 (disable_command): Ditto.
10991 (enable_command): Ditto.
10992 (check_fast_tracepoint_sals): New function.
10993 (break_command_really): Call it.
10994 (ftrace_command): New function.
10995 (_initialize_breakpoint): Add ftrace command.
10996 * gdbarch.sh (fast_tracepoint_valid_at): New.
10997 * gdbarch.h, gdbarch.c: Regenerate.
10998 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10999 (i386_gdbarch_init): Use it.
11000 * remote.c (struct remote_state): New field fast_tracepoints.
11001 (PACKET_FastTracepoints): New packet config type.
11002 (remote_fast_tracepoint_feature): New function.
11003 (remote_protocol_features): Add FastTracepoints.
11004 (remote_supports_fast_tracepoints): New function.
11005 (_initialize_remote): Add FastTracepoints.
11006 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11007 * NEWS: Mention fast tracepoints.
11008
737a160e
JB
110092010-01-06 Joel Brobecker <brobecker@adacore.com>
11010
11011 * gdb-gdb.py: New file.
11012
ce6cca6d
MS
110132010-01-05 Michael Snyder <msnyder@vmware.com>
11014
11015 * infrun.c (handle_inferior_event): Fix typo in comment.
11016
0d15807d
JK
110172010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11018
11019 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11020
7803799a
UW
110212010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11022
c8d5aac9 11023 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11024 and s390x-linux64.
11025 (s390-linux32-expedite): Define.
11026 (s390-linux64-expedite): Define.
11027 (s390x-linux64-expedite): Define.
11028 * features/s390-acr.xml: New file.
11029 * features/s390-fpr.xml: New file.
11030 * features/s390-core32.xml: New file.
11031 * features/s390-core64.xml: New file.
11032 * features/s390x-core64.xml: New file.
11033 * features/s390-linux32.xml: New file.
11034 * features/s390-linux64.xml: New file.
11035 * features/s390x-linux64.xml: New file.
11036 * features/s390-linux32.c: New generated file.
11037 * features/s390-linux64.c: New generated file.
11038 * features/s390x-linux64.c: New generated file.
11039
11040 * regformats/s390-linux32.dat: New generated file.
11041 * regformats/s390-linux64.dat: New generated file.
11042 * regformats/s390x-linux64.dat: New generated file.
11043 * regformats/reg-s390.dat: Remove.
11044 * regformats/reg-s390x.dat: Remove.
11045
11046 * s390-nat.c: Include "auxv.h" and <elf.h>.
11047 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11048 (s390_target_wordsize): New function.
11049 (s390_auxv_parse): Likewise.
11050 (s390_get_hwcap): Likewise.
11051 (s390_read_description): Likewise.
11052 (_initialize_s390_nat): Install s390_auxv_parse and
11053 s390_read_description.
11054
11055 * s390-tdep.c: Include "features/s390-linux32.c",
11056 "features/s390-linux64.c", and "features/s390x-linux64.c".
11057 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11058 (s390_register_call_saved): New function.
11059 (s390_register_name): Remove.
11060 (s390_register_type): Remove.
11061 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11062 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11063 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11064 (s390_pseudo_register_name): New function.
11065 (s390_pseudo_register_type): New function.
11066 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11067 Handle full GPR pesudos and varying pseudo register numbers.
11068 (s390_pseudo_register_write): Likewise
11069 (s390x_pseudo_register_read): Remove.
11070 (s390x_pseudo_register_write): Likewise.
11071 (s390_register_group): Remove.
11072 (s390_pseudo_register_group): New function.
11073 (s390_regmap_gregset): Add GPR upper halves.
11074 (s390x_regmap_gregset): Likewise.
11075 (s390_regmap_fpregset): Likewise.
11076 (s390_regmap_upper): New global variable.
11077 (s390_upper_regset): New global variable.
11078 (s390_upper_regset_sections): New global variable.
11079 (s390_regset_from_core_section): Handle GPR upper halves.
11080 (s390_core_read_description): New function.
11081 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11082 register information. Handle varying pseudo register numbers.
11083 (s390_backchain_frame_unwind_cache): Likewise.
11084 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11085 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11086 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11087 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11088 Handle varying pseudo register numbers.
11089 (s390_unwind_pc): Handle varying pseudo register numbers.
11090 (s390_dwarf2_prev_register): New function.
11091 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11092 register information. Handle varying pseudo register numbers.
11093 Install s390_dwarf2_prev_register to unwind full GPRs.
11094 (s390_gdbarch_init): Handle target descriptions. Assign varying
11095 pseudo register numbers. Install s390_adjust_frame_regnum.
11096 (_initialize_s390_tdep): Initialize target descriptions.
11097
11098 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11099 (S390_NUM_REGS): Redefine to include upper half registers.
11100 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11101 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11102 (tdesc_s390_linux32): Add declaration.
11103 (tdesc_s390_linux64): Likewise.
11104 (tdesc_s390x_linux64): Likewise.
11105
1b1818e4
UW
111062010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11107
11108 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11109 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11110 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11111 (ppc_linux_vmx_regset_sections): Likewise.
11112 (ppc_linux_fp_regset_sections): Likewise.
11113
11114 * corelow.c (get_core_register_section): Constify arguments.
11115 (get_core_registers): Use gdbarch_core_regset_sections instead
11116 of hard-coded platform-specific register section names.
11117
dcbf108f
UW
111182010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11119
11120 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11121 a register, assume the least-significant part is used.
dcbf108f
UW
11122 (write_pieced_value): Likewise.
11123
704e9165
UW
111242010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11125
11126 * printcmd.c: Include "arch-utils.h".
11127 (do_one_display): Re-parse expression if current architecture changed.
11128
c54eabfa
JK
111292010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11130 Joel Brobecker <brobecker@adacore.com>
11131
11132 * gdbtypes.c (check_typedef): New comment on type length.
11133 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11134 comment on type length.
11135 (value_primitive_field): Keep the original TYPE value, new comment.
11136
50cb2941
JK
111372010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11138
11139 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11140 p_start. Change != comparisons to > and < comparisons.
11141
be66db07
JK
111422010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11143
11144 * cli/cli-script.c (process_next_line): Check P2 overrun.
11145
abd775ce
JB
111462009-01-01 Joel Brobecker <brobecker@adacore.com>
11147
11148 Update the copyright hearder to add year 2010 for most GDB files.
11149
6479260d
JB
111502009-01-01 Joel Brobecker <brobecker@adacore.com>
11151
11152 Fix build failure in inf-ptrace.c.
11153 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11154
4a70f654
JB
111552010-01-01 Joel Brobecker <brobecker@adacore.com>
11156
11157 * top.c (print_gdb_version): Update copyright year.
11158
595939de 111592010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11160
11161 Fix break *FUN'address thread NUM.
11162 * ada-lex.l (task): Expand rule to also match the thread keyword.
11163
70575d34
JB
111642010-01-01 Joel Brobecker <brobecker@adacore.com>
11165
11166 Fix break *FUN'address task NUM.
11167 * ada-lex.l (task): New rule.
11168 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11169 been built before using it.
11170
e1e4d4a4 11171For older changes see ChangeLog-2009.
c906108c
SS
11172\f
11173Local Variables:
11174mode: change-log
11175left-margin: 8
11176fill-column: 74
11177version-control: never
57da7796 11178coding: utf-8
c906108c 11179End:
This page took 1.832413 seconds and 4 git commands to generate.