2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5a2e11c7
OS
12010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2
3 * MAINTAINERS: Add myself for write after approval privileges.
4
ec685c5e
DE
52010-05-26 Doug Evans <dje@google.com>
6
0c4a4063
DE
7 Allow python to find its files if moved from original location.
8 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
9 (GDB_AC_WITH_DIR): Call it.
10 * configure.ac: Define WITH_PYTHON_PATH if we can find the
11 python installation directory.
12 * config.in: Regenerate.
13 * configure: Regenerate.
14 * defs.h (python_libdir): Declare.
15 * main.c (python_libdir): Define.
16 (captured_main): Initialize python_libdir.
17 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
18 call Py_SetProgramName to make sure python can find its libraries
19 and modules.
20
ec685c5e
DE
21 * configure.ac: Try to use python's distutils to fetch compilation
22 parameters.
23 * configure: Regenerate.
24 * python/python-config.py: New file.
25
363a6e9f
OS
262010-05-26 Ozkan Sezer <sezeroz@gmail.com>
27
28 * ser-tcp.c (net_open): Check error return from socket() call by its
29 equality to -1 not by it being negative.
30 (net_close): Likewise.
31
dde08ee1
PA
322010-05-26 Pedro Alves <pedro@codesourcery.com>
33
34 * NEWS: Mention the `qRelocInsn' feature.
35 * gdbarch.sh (relocate_instruction): New.
36 * amd64-tdep.c (rip_relative_offset): New.
37 (append_insns): New.
38 (amd64_relocate_instruction): New.
39 (amd64_init_abi): Install it.
40 * i386-tdep.c (append_insns): New.
41 (i386_relocate_instruction): New.
42 (i386_gdbarch_init): Install it.
43 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
44 * gdbarch.h, gdbarch.c: Regenerate.
45
947bb88f
TT
462010-05-26 Tom Tromey <tromey@redhat.com>
47
48 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
49 (struct dwarf2_loclist_baton) <data>: Likewise.
50 * dwarf2loc.c (find_location_expression): Constify return type.
51 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
52 (dwarf2_loc_desc_needs_frame): Likewise.
53 (loclist_read_variable): Constify.
54 (loclist_describe_location): Likewise.
55 (loclist_tracepoint_var_ref): Likewise.
56
0d45f56e
TT
572010-05-25 Tom Tromey <tromey@redhat.com>
58
59 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
60 (dwarf_expr_frame_base_1): Likewise.
61 (read_pieced_value): Update.
62 (needs_frame_frame_base): Constify.
63 (dwarf2_tracepoint_var_loc): Likewise.
64 (dwarf2_tracepoint_var_access): Likewise.
65 (locexpr_describe_location_piece): Likewise.
66 (locexpr_describe_location_1): Likewise.
67 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
68 Constify.
69 (data): Now const.
70 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
71 (dwarf_expr_eval, read_uleb128, read_sleb128)
72 (dwarf2_read_address): Update.
73 * dwarf2expr.c (dwarf_expr_eval): Constify.
74 (read_uleb128): Likewise.
75 (read_sleb128): Likewise.
76 (dwarf2_read_address): Likewise.
77 (require_composition): Likewise.
78 (execute_stack_op): Likewise.
79 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
80 "const gdb_byte *".
81 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
82 Now const.
83 (no_get_frame_base): Constify.
84 (execute_stack_op): Likewise.
85 (execute_cfa_program): Likewise.
86 (read_encoded_value): Likewise.
87
07ca107c
DE
882010-05-25 Doug Evans <dje@google.com>
89
e34838f0
DE
90 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
91
01f69b38
DE
92 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
93 * event-loop.c: ... here.
94 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
95 `error' for clarity.
96 (tui_getc): Pass correct value for `error' parameter to
97 tui_readline_output.
98
07ca107c
DE
99 Add python gdb.GdbError and gdb.string_to_argv.
100 * NEWS: Document them.
101 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
102 the exception is gdb.GdbError. Print a second traceback if there's
103 an error computing the error message.
104 (gdbpy_string_to_argv): New function.
105 * python/py-utils.c (gdbpy_obj_to_string): New function.
106 (gdbpy_exception_to_string): New function.
107 * python/python-internal.h (gdbpy_string_to_argv): Declare.
108 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
109 (gdbpy_gdberror_exc): Declare.
110 * python/python.c (gdbpy_gdberror_exc): New global.
111 (_initialize_python): Initialize gdbpy_gdberror_exc and create
112 gdb.GdbError.
113 (GdbMethods): Add string_to_argv.
114
5572ce1f
PM
1152010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
116
117 * windows-nat.c (display_selector): Call GetLastError to give better
118 failure explanation.
119
acd5838a
PA
1202010-05-24 Pedro Alves <pedro@codesourcery.com>
121
122 * config.in: Regenerate.
123
b26a4dcb
JK
1242010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
125
126 Code cleanup.
127 * target.c (push_target): Return only void. Remove the return value
128 comment.
129 * target.h (push_target): Return only void.
130
f434ba03
PA
1312010-05-23 Pedro Alves <pedro@codesourcery.com>
132
133 Update gnulib from latest git.
134 (250b80067c1e1d8faa0c42fb572f721975b929c5)
135
136 * gnulib/memcmp.c: Removed.
137 * gnulib/memchr.valgrind: New.
138 * gnulib/stddef.in.h: New.
139 * gnulib/Makefile.am: Updated.
140 * gnulib/memchr.c: Updated.
141 * gnulib/memmem.c: Updated.
142 * gnulib/stdint.in.h: Updated.
143 * gnulib/str-two-way.h: Updated.
144 * gnulib/string.in.h: Updated.
145 * gnulib/wchar.in.h: Updated.
146
147 * gnulib/extra/link-warning.h: Removed.
148 * gnulib/extra/c++defs.h: New.
149 * gnulib/extra/warn-on-use.h: New.
150 * gnulib/extra/arg-nonnull.h: Updated.
151
152 * gnulib/m4/extensions.m4: Updated.
153 * gnulib/m4/gnulib-cache.m4: Updated.
154 * gnulib/m4/gnulib-common.m4: Updated.
155 * gnulib/m4/gnulib-comp.m4: Updated.
156 * gnulib/m4/gnulib-tool.m4: Updated.
157 * gnulib/m4/include_next.m4: Updated.
158 * gnulib/m4/longlong.m4: Updated.
159 * gnulib/m4/memchr.m4: Updated.
160 * gnulib/m4/memmem.m4: Updated.
161 * gnulib/m4/stdint.m4: Updated.
162 * gnulib/m4/string_h.m4: Updated.
163 * gnulib/m4/memcmp.m4: Removed.
164 * gnulib/m4/onceonly_2_57.m4: Removed.
165 * gnulib/m4/00gnulib.m4: New.
166 * gnulib/m4/mmap-anon.m4: New.
167 * gnulib/m4/multiarch.m4: New.
168 * gnulib/m4/onceonly.m4: New.
169 * gnulib/m4/stddef_h.m4: New.
170 * gnulib/m4/warn-on-use.m4: New.
171 * gnulib/m4/wchar.m4: Removed.
172 * gnulib/m4/wchar_h.m4: New.
173 * gnulib/m4/wchar_t.m4: New.
174 * gnulib/m4/wint_t.m4: New.
175
176 * aclocal.m4: Regenerate.
177 * config.in: Likewise.
178 * configure: Likewise.
179 * gnulib/Makefile.in: Likewise.
180
d3b1e874
TT
1812010-05-21 Tom Tromey <tromey@redhat.com>
182
183 * dwarf2loc.c (extract_bits_primitive): New function.
184 (extract_bits): Likewise.
185 (insert_bits): Likewise.
186 (copy_bitwise): Likewise.
187 (read_pieced_value): Do all operations in bits.
188 (write_pieced_value): Likewise.
189 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
190 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
191 Always use xrealloc to resize piece array.
192 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
193 <DW_OP_piece>: Update.
194 <DW_OP_bit_piece>: New case.
195
cb826367
TT
1962010-05-21 Tom Tromey <tromey@redhat.com>
197
198 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
199 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
200 * dwarf2expr.h (enum dwarf_value_location)
201 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
202 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
203 (add_piece): Handle empty piece.
204 (execute_stack_op) <DW_OP_piece>: Handle
205 DWARF_VALUE_OPTIMIZED_OUT.
206
74de6778
TT
2072010-05-21 Tom Tromey <tromey@redhat.com>
208
209 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
210 evaluate_subexp, not evaluate_subexp_with_coercion.
211
f346a30d
PM
2122010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
213
214 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
215 attribute.
216
afd74c5f
TT
2172010-05-21 Tom Tromey <tromey@redhat.com>
218
219 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
220 offset.
221 (write_pieced_value): Likewise.
222
90e7c2c5
PM
2232010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
224
225 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
226 and DW_TAG_volatile_type.
227 (new_symbol): Likewise.
228
8148cf8d
PM
2292010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
230
231 * p-valprint.c (pascal_val_print): Call get_array_bounds
232 to obtain the number of elements in an array.
233
3a1d4620
DE
2342010-05-19 Doug Evans <dje@google.com>
235
0bf0f8c4
DE
236 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
237
3a1d4620
DE
238 * python.c (source_python_script): Add comment.
239 (source_python_script_for_objfile): Remove unnecessary call to
240 gdbpy_print_stack.
241
dc21167c
JK
2422010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
243 Sergio Durigan Junior <sergiodj@redhat.com>
244
245 Code cleanup.
246 * parse.c (exp_iterate): Use operator_length wrapper function.
247
5b4ee69b
MS
2482010-05-18 Michael Snyder <msnyder@vmware.com>
249
250 * ada-lang.c: White space.
251 * ada-typeprint.c: White space.
252 * ada-valprint.c: White space.
253 * addrmap.c: White space.
254 * auxv.c: White space.
255 * ax-gdb.c: White space.
256
e17c9e56
HZ
2572010-05-18 Hui Zhu <teawater@gmail.com>
258
259 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
260 for oldfp.
261 (inferior_call_waitpid): Move make_cleanup out of check.
262 Check the return of waitpid.
263 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
264
a109c7c1
MS
2652010-05-17 Michael Snyder <msnyder@vmware.com>
266
1c5313c5
MS
267 * tui/tui.c: White space.
268 * tui/tui-data.c: White space.
269 * tui/tui-disasm.c: White space.
270 * tui/tui-file.c: White space.
271 * tui/tui-interp.c: White space.
272 * tui/tui-main.c: White space.
273 * tui/tui-out.c: White space.
274 * tui/tui-regs.c: White space.
275 * tui/tui-source.c: White space.
276 * tui/tui-stack.c: White space.
277 * tui/tui-win.c: White space.
278 * tui/tui-winsource.c: White space.
279
f4a14ae6
MS
280 * procfs.c: White space.
281
d59b6f6c
MS
282 * python/py-auto-load.c: White space.
283 * python/py-block.c: White space.
284 * python/py-breakpoint.c: White space.
285 * python/py-cmd.c: White space.
286 * python/py-function.c: White space.
287 * python/py-lazy-string.c: White space.
288 * python/py-objfile.c: White space.
289 * python/py-param.c: White space.
290 * python/py-prettyprint.c: White space.
291 * python/py-progspace.c: White space.
292 * python/py-symtab.c: White space.
293 * python/python.c: White space.
294 * python/py-type.c: White space.
295 * python/py-utils.c: White space.
296 * python/py-value.c: White space.
297
102040f0
MS
298 * mi/mi-cmd-break.c: White space.
299 * mi/mi-cmd-env.c: White space.
300 * mi/mi-cmds.c: White space.
301 * mi/mi-cmd-stack.c: White space.
302 * mi/mi-cmd-var.c: White space.
303 * mi/mi-console.c: White space.
304 * mi/mi-getopt.c: White space.
305 * mi/mi-interp.c: White space.
306 * mi/mi-main.c: White space.
307 * mi/mi-out.c: White space.
308 * mi/mi-parse.c: White space.
309
cdb27c12
MS
310 * cli/cli-cmds.c: White space.
311 * cli/cli-decode.c: White space.
312 * cli/cli-dump.c: White space.
313 * cli/cli-interp.c: White space.
314 * cli/cli-logging.c: White space.
315 * cli/cli-script.c: White space.
316 * cli/cli-setshow.c: White space.
317
a109c7c1
MS
318 * valarith.c: White space.
319 * valops.c: White space.
320 * valprint.c: White space.
321 * value.c: White space.
322 * varobj.c: White space.
323 * xcoffread.c: White space.
324 * xml-support.c: White space.
325 * xml-tdesc.c: White space.
326
3872d37d
AS
3272010-05-17 Andreas Schwab <schwab@redhat.com>
328
329 PR gdb/11092
330 * c-lang.c (c_printstr): Compute real length of NUL terminated
331 string at first.
332
0cce5bd9
JB
3332010-05-17 Joel Brobecker <brobecker@adacore.com>
334
335 * parse.c (parse_exp_in_context): When block is not NULL, use
336 its associated language to parse the expression instead of
337 the current_language.
338
5f19d646
JB
3392010-05-17 Joel Brobecker <brobecker@adacore.com>
340
341 * jv-lang.c (java_lookup_class): Remove commented out code.
342 (type_from_class): Likewise.
343 (java_op_print_tab): Remove commented-out elements.
344
28c85d6c
JB
3452010-05-17 Joel Brobecker <brobecker@adacore.com>
346
347 * ada-lang.c (to_fixed_range_type): The the raw index type as
348 argument instead of the raw type name. Remove orig_type parameter.
349 Update calls throughout.
350 (ada_fixup_array_indexes_type): New function.
351 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
352 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
353 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
354 Remove name parameter.
355 (print_array_type): Add call to ada_fixup_array_indexes_type.
356 Update calls to print_range_type.
357 (ada_print_type): Update calls to print_range_type.
358
d09039dd
PM
3592010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
360
361 * dwarf2read.c (read_set_type): Set type length if
362 DW_AT_byte_size attribute is present.
363
7a081a30
PM
3642010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
365
366 * p-valprint.c (pascal_val_print): Handle set type if range limits
367 are undefined but size is known.
368
77382aee
PA
3692010-05-17 Pedro Alves <pedro@codesourcery.com>
370
371 * procfs.c: Reformat.
372
433759f7
MS
3732010-05-16 Michael Snyder <msnyder@vmware.com>
374
5d502164
MS
375 * target.c: White space.
376 * target-descriptions.c: White space.
377 * target-memory.c: White space.
378 * thread.c: White space.
379 * top.c: White space.
380 * tracepoint.c: White space.
381 * trad-frame.c: White space.
382 * tramp-frame.c: White space.
383 * ui-file.c: White space.
384 * ui-out.c: White space.
385 * user-regs.c: White space.
386 * utils.c: White space.
387
433759f7
MS
388 * scm-exp.c: White space.
389 * scm-lang.c: White space.
390 * scm-valprint.c: White space.
391 * sentinel-frame.c: White space.
392 * ser-base.c: White space.
393 * ser-go32.c: White space.
394 * serial.c: White space.
395 * ser-mingw.c: White space.
396 * ser-pipe.c: White space.
397 * ser-tcp.c: White space.
398 * ser-unix.c: White space.
399 * solib.c: White space.
400 * solib-darwin.c: White space.
401 * solib-frv.c: White space.
402 * solib-irix.c: White space.
403 * solib-osf.c: White space.
404 * solib-pa64.c: White space.
405 * solib-som.c: White space.
406 * solib-spu.c: White space.
407 * solib-svr4.c: White space.
408 * solib-target.c: White space.
409 * source.c: White space.
410 * stabsread.c: White space.
411 * stack.c: White space.
412 * std-regs.c: White space.
413 * symfile.c: White space.
414 * symmisc.c: White space.
415 * symtab.c: White space.
416
dd304d53
MS
4172010-05-16 Michael Snyder <msnyder@vmware.com>
418
419 * source.c (_initialize_source): Add "rev" as an abbreviation
420 for the "reverse-search" command.
421
a744cf53
MS
4222010-05-16 Michael Snyder <msnyder@vmware.com>
423
123f5f96
MS
424 * record.c: White space.
425 * regcache.c: White space.
426 * reggroups.c: White space.
427 * remote-fileio.c: White space.
428 * remote-m32r-sdi.c: White space.
429 * remote-mips.c: White space.
430 * remote-sim.c: White space.
a744cf53
MS
431 * remote.c: White space.
432 (process_g_packet): Remove orphan braces.
433
b8d56208
MS
4342010-05-15 Michael Snyder <msnyder@vmware.com>
435
ad3bbd48
MS
436 * parse.c: White space.
437 * p-lang.c: White space.
438 * posix-hdep.c: White space.
439 * printcmd.c: White space.
440 * progspace.c: White space.
441 * prologue-value.c: White space.
442 * psymtab.c: White space.
443 * p-typeprint.c: White space.
444 * p-valprint.c: White space.
445
5cc80db3
MS
446 * objc-lang.c: White space.
447 * objfiles.c: White space.
448 * observer.c: White space.
449 * osabi.c: White space.
450 * osdata.c: White space.
451
b8d56208
MS
452 * m2-lang.c: White space.
453 * m2-valprint.c: White space.
454 * macrocmd.c: White space.
455 * macroexp.c: White space.
456 * macroscope.c: White space.
457 * macrotab.c: White space.
458 * main.c: White space.
459 * maint.c: White space.
460 * mdebugread.c: White space.
461 * memattr.c: White space.
462 * minsyms.c: White space.
463 * monitor.c: White space.
464
9a619af0
MS
4652010-05-14 Michael Snyder <msnyder@vmware.com>
466
e0881a8e
MS
467 * jv-lang.c: White space.
468 * jv-typeprint.c: White space.
469 * jv-valprint.c: White space.
470 * language.c: White space.
471 * libunwind-frame.c: White space.
472 * linespec.c: White space.
473 * linux-nat.c: White space.
474 * linux-record.c: White space.
475 * linux-thread-db.c: White space.
476
abbb1732
MS
477 * infcall.c: White space.
478 * inf-child.c: White space.
479 * infcmd.c: White space.
480 * inferior.c: White space.
481 * inf-loop.c: White space.
482 * inflow.c: White space.
483 * inline-frame.c: White space.
484 * interps.c: White space.
485
d8734c88
MS
486 * gcore.c: White space.
487 * gdb.c: White space.
488 * gdbtypes.c: White space.
489 * gnu-nat.c: White space.
490 * gnu-v2-abi.c: White space.
491 * gnu-v3-abi.c: White space.
492
bb9bcb69
MS
493 * findcmd.c: White space.
494 * findvar.c: White space.
495 * fork-child.c: White space.
496 * frame-base.c: White space.
497 * frame.c: White space.
498 * frame-unwind.c: White space.
499 * f-valprint.c: White space.
500
d7f9d729
MS
501 * elfread.c: White space.
502 * environ.c: White space.
503 * eval.c: White space.
504 * event-loop.c: White space.
505 * event-top.c: White space.
506 * exceptions.c: White space.
507 * exec.c: White space.
508 * expprint.c: White space.
509
9a619af0
MS
510 * dbxread.c: White space.
511 * dcache.c: White space.
512 * disasm.c: White space.
513 * doublest.c: White space.
514 * dsrec.c: White space.
515 * dummy-frame.c: White space.
516 * dwarf2expr.c: White space.
517 * dwarf2-frame.c: White space.
518 * dwarf2loc.c: White space.
519 * dwarf2read.c: White space.
520
88d4aea7
PM
5212010-05-14 Phil Muldoon <pmuldoon@redhat.com>
522
523 PR python/11482
524
525 * python/py-value.c (valpy_hash): New function.
526 (value_object_type): Register valpy_hash.
527
7a298875
HZ
5282010-05-14 Hui Zhu <teawater@gmail.com>
529 Michael Snyder <msnyder@vmware.com>
530
531 * linux-fork.c (gdbthread.h): New include.
532 (fork_info): Add parent_ptid.
533 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
534 functions.
535 (delete_checkpoint_command): Call inferior_call_waitpid.
536 (checkpoint_command): Set parent_ptid.
537
c14feecc
MS
5382010-05-13 Michael Snyder <msnyder@vmware.com>
539
6595d32b
MS
540 * dictionary.c: Re-indent to GNU coding standard.
541
c5504eaf
MS
542 * charset.c: White space.
543 * c-lang.c: White space.
544 * cli-out.c: White space.
545 * coffread.c: White space.
546 * complaints.c: White space.
547 * completer.c: White space.
548 * corefile.c: White space.
549 * corelow.c: White space.
550 * cp-abi.c: White space.
551 * cp-namespace.c: White space.
552 * cp-support.c: White space.
553 * cp-valprint.c: White space.
554 * c-typeprint.c: White space.
555 * c-valprint.c: White space.
cc59ec59
MS
556 * blockframe.c: White space.
557 * breakpoint.c: White space.
558 * buildsym.c: White space.
559 * blockframe.c: White space.
b6de9da4 560 * bcache.c: White space.
05c547f6
MS
561 * gdbarch.sh: White space, add blank lines.
562 * arch-utils.c: Ditto.
563 * gdbarch.c: Regenerate.
1c4d3f96 564 * frame.c: White space, add blank lines.
f89b749f
MS
565 * stack.c: White space, add blank lines.
566 (initialize_stack): Remove long-dead code.
c14feecc 567
a2d33775
JK
5682010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
569
570 Code cleanup.
571 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
572 (locexpr_read_variable, loclist_read_variable): Update the callers.
573
33ac96f0
JK
5742010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Code cleanup.
577 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
578 Remove check of NULL returned by tag_type_to_type.
579 (die_containing_type): Remove variable type. Remove type_die variable
580 initialization. Remove check of NULL returned by tag_type_to_type.
581
f5a010c0
PM
5822010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
583
584 PR exp/11530.
585 * gdbtypes.c (lookup_struct_elt_type): Also lookup
586 names of unnamed structures or unions.
587
bf701c2c
PM
5882010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
589
590 * procfs.c (proc_watchpoint_address): New function.
591 (procfs_stopped_by_watchpoint): Remove useless check after
592 find_procinfo_or_die call.
593 (procfs_stopped_data_address): New function.
594 (procfs_use_watchpoints): Register new watchpoint related function.
595
d02691ef
TT
5962010-05-11 Tom Tromey <tromey@redhat.com>
597
598 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
599
e0627e85
MS
6002010-05-10 Michael Snyder <msnyder@vmware.com>
601
602 * utils.c: White space cleanup.
603
cc73bb8c
TT
6042010-05-10 Tom Tromey <tromey@redhat.com>
605
606 * eval.c (ptrmath_type_p): Add 'lang' argument.
607 (evaluate_subexp_standard): Update.
608 (evaluate_subexp_with_coercion): Update.
609 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
610
c02866a0
MS
6112010-05-10 Michael Snyder <msnyder@vmware.com>
612
613 * utils.c (do_fclose_cleanup) Restore local variable.
614
06280d23
DE
6152010-05-09 Doug Evans <dje@google.com>
616
617 * record.c (init_record_core_ops): Rename record_core to record-core.
618
fa07e785
JB
6192010-05-08 Joel Brobecker <brobecker@adacore.com>
620
621 Implement task switching on pa-hpux.
622 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
623 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
624
4c680d1d
PM
6252010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
626
627 * valops.c (find_overload_match): Add missing i18n markup.
628
28e176a6
PM
6292010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
630
631 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
632
48cb83fd
JK
6332010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
636 list for the obconcat call.
637 * mdebugread.c (parse_symbol): Likewise.
638 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
639 Likewise.
640 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
641 New variable ap. Remove variables len and val.
642 * symfile.h (obconcat): Likewise for the prototype.
643
f92adf3c
MS
6442010-05-07 Michael Snyder <msnyder@vmware.com>
645
646 * python/python.c (execute_gdb_command): Remove unused variables.
647 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
648 * python/py-breakpoint.c (gdbpy_breakpoint_created):
649 Remove unused variable.
650 * python/py-cmd.c (cmdpy_function): Remove unused variable.
651 (cmdpy_completer): Remove unused variable.
652 * python/py-frame.c (frapy_find_sal): Remove unused variable.
653 * python/py-function.c (fnpy_call): Remove unused variable.
654 * python/py-objfile.c (objfile_to_objfile_object):
655 Remove unused variable.
656 * python/py-param.c (parmpy_init): Remove unused variable.
657 * python/py-prettyprint.c (apply_varobj_pretty_printer):
658 Remove unused variable.
659 (gdbpy_default_visualizer): Remove unused variable.
660 * python/py-progspace.c (pspace_to_pspace_object):
661 Remove unused variable.
662 * python/py-symtab.c (symtab_and_line_to_sal_object):
663 Remove unused variable.
664 * python/py-type.c (typy_template_argument):
665 Remove unused variable.
666 * python/py-value.c (valpy_string): Remove unused variable.
667 (convert_value_from_python): Remove unused variables.
668
d160942f
MS
6692010-05-07 Michael Snyder <msnyder@vmware.com>
670
671 * valops.c (value_cast_pointers): Restore unused variable 'type1',
672 and use it to compute variable 't1'.
673
587542ab
JB
6742010-05-07 Joel Brobecker <brobecker@adacore.com>
675
676 * ada-lang.c (assign_aggregate): Remove unused variable.
677
7322dca9
SW
6782010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
679
680 PR C++/7943:
681 * valops.c (find_overload_match): Handle fsym == NULL case.
682 Add int no_adl argument.
683 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
684 when appropriate.
685 Add int no_adl argument.
686 (find_oload_champ_namespace): Add int no_adl argument.
687 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
688 expression.
689 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
690 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
691 Evaluate arguments and use them to perform ADL lookup.
692 Pass no_adl argument to find_overload_match.
693 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
694 * cp-support.h: Added prototype for
695 make_symbol_overload_list_namespace.
696 * cp-support.c (make_symbol_overload_list_namespace): New function.
697 (make_symbol_overload_list_adl_namespace): New function.
698 (make_symbol_overload_list_adl): New function.
699 (make_symbol_overload_list_using): Moved code to add function to
700 overload set to make_symbol_overload_list_namespace.
701 * c-exp.y: create UNKNOWN_CPP_NAME token.
702 Add parse rule for ADL functions.
703 (classify_name): Recognize an UNKNOWN_CPP_NAME.
704
3f1f6884
JK
7052010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
706
707 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
708 sentinel.
709
3caf13b4
JB
7102010-05-07 Joel Brobecker <brobecker@adacore.com>
711
712 Implement task switching on solaris targets.
713 * sol-thread.c (thread_db_find_thread_from_tid)
714 (sol_get_ada_task_ptid): New functions.
715 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
716
94b0dee1
PA
7172010-05-07 Pedro Alves <pedro@codesourcery.com>
718
719 * remote.c (remote_query_supported_append): Use reconcat.
720 (remote_query_supported): Install a cleanup. Use reconcat.
721
1408c251
PA
7222010-05-07 Pedro Alves <pedro@codesourcery.com>
723
724 * gdbarch.sh (qsupported): Delete.
725 * gdbarch.h, gdbarch.c: Regenerate.
726 * remote.c (remote_query_supported): Remove use of
727 gdbarch_qsupported.
728
f8e50cfe
SDJ
7292010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
730
731 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
732 function.
733
8ea13695
MS
7342010-05-06 Michael Snyder <msnyder@vmware.com>
735
c6913b7d
MS
736 * xml-support.c (xinclude_start_include): Delete unused variable.
737 (xml_process_xincludes): Delete unused variable.
738 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
739 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
740 (tdesc_find_arch_register): Delete unused variable.
741 (tdesc_use_registers): Delete unused variable.
742 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
743 * inferior.c (print_inferior): Delete unused variable.
744 * record.c (record_open_1): Delete unused variable.
745 (record_restore): Delete unused variable.
746 (cmd_record_save): Delete unused variable.
747 * gcore.c (derive_heap_segment): Delete unused variable.
748 (objfile_find_memory_regions): Use unused variable.
749 * jit.c (jit_inferior_init): Delete unused variable.
750 * progspace.c (clone_program_space): Delete unused variable.
751 (pspace_empty_p): Delete unused variable.
752
1c5465ac
MS
753 * frame-unwind.c (frame_unwind_find_by_frame):
754 Delete unused variable.
755 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
756 * cp-support.c (mangled_name_to_comp): Delete unused variable.
757 (method_name_from_physname): Delete unused variable.
758 (cp_func_name): Delete unused variable.
759 (cp_validate_operator): Delete unused variable.
760 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
761 Delete unused variable.
762 * trad-frame.c (trad_frame_get_prev_register):
763 Delete unused variable.
764 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
765
1be757cf
MS
766 * serial.c (serial_for_fd): Delete unused variable.
767 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
768 * top.c (execute_command): Delete unused variable.
769 (init_main): Delete unused variable.
770 * utils.c (do_fclose_cleanup): Delete unused variable.
771 (do_all_inferior_continuations): Delete unused variable.
772 (initialize_utils): Delete unused variable.
773 (internal_problem_mode): Delete unused global.
774 * frame.c (get_prev_frame): Delete unused global.
775 (get_frame_locals_address): Delete unused global.
776 (get_frame_args_address): Delete unused global.
777
9216103f
MS
778 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
779 (pascal_type_print_varspec_prefix): Delete unused variable.
780 * f-typeprint.c (f_type_print_base): Delete unused variable.
781 (f_type_print_varspec_suffix): Delete unused variable.
782 * m2-typeprint.c (m2_print_type): Delete unused variable.
783 (m2_long_set): Delete unused variable.
784 * ada-valprint.c (ada_val_print_1): Delete unused variable.
785 * d-valprint.c (dynamic_array_type): Delete unused variable.
786 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
787 Delete unused variable.
788 (f77_create_arrayprint_offset_tbl): Delete unused variable.
789 * m2-valprint.c (m2_val_print): Delete unused variable.
790
34fa1d9d
MS
791 * ui-out.c (ui_out_field_int): Delete unused variable.
792 (ui_out_field_fmt_int): Delete unused variable.
793 * varobj.c (varobj_list_children): Delete unused variable.
794 (varobj_set_value): Delete unused variable.
795 (install_new_value_visualizer): Delete unused variable.
796 (varobj_set_visualizer): Delete unused variable.
797 (varobj_update): Delete unused variable.
798 (varobj_editable_p): Delete unused variable.
799 (c_value_of_root): Delete unused variable.
800 (cplus_describe_child): Delete unused variable.
801
b5385fc0
MS
802 * ada-lang.c (add_defn_to_vec): Delete unused variable.
803 (decode_constrained_packed_array_type): Delete unused variable.
804 (add_defn_to_vec): Delete unused variable.
805 (symbol_completion_match): Delete unused variable.
806 (value_tag_from_contents_and_address): Delete unused variable.
807 (ada_evaluate_subexp): Delete unused variable.
808 * c-lang.c (classify_type): Delete unused variable.
809 * f-lang.c (f_printstr): Delete unused variable.
810 * objc-lang.c (objc_printstr): Delete unused variable.
811 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
812 * jv-lang.c (type_from_class): ifdef unused variable.
813 (java_class_name_from_physname): Delete unused variable.
814 * m2-lang.c (m2_printstr): Delete unused variable.
815
4fc06681
MS
816 * objfiles.c (objfile_relocate): Delete unused variable.
817 * maint.c (_initialize_maint_cmds): Delete unused variable.
818 * demangle.c (_initialize_demangler): Delete unused variable.
819 * corefile.c (reopen_exec_file): Delete unused variable.
820 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
821 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
822
6b4398f7
MS
823 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
824 * memattr.c (mem_delete): Delete unused variable.
825 (invalidate_target_mem_regions): Delete unused variable.
826 * mem-break.c (default_memory_insert_breakpoint):
827 Delete unused variable.
828 * target.c (target_get_osdata): Delete unused variable.
829 * parse.c (length_of_subexp): Delete unused variable.
830 (prefixify_subexp): Delete unused variable.
831 (exp_iterate): Delete unused variable.
832 * reverse.c (delete_bookmark_command): Delete unused variable.
833
308d96ed
MS
834 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
835 * macroexp.c (gather_arguments): Delete unused variable.
836 (substitute_args): Delete unused variable.
837 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
838 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
839 (_initialize_gdbarch): Delete unused variable.
840 * gdbarch.c, gdbarch.h: Regenerate.
841 * arch-utils.c (initialize_current_architecture):
842 Delete unused variable.
843 (_initialize_gdbarch_utils): Delete unused variable.
844 * gdbtypes.c (make_cv_type): Delete unused variable.
845 (make_type_with_address_space): Delete unused variable.
846
167e4384
MS
847 * linespec.c (decode_compound): Delete unused variable.
848 * dictionary.c (iterator_next_hashed): Delete unused variable.
849 * infcall.c (call_function_by_hand): Delete unused variable.
850 * infcmd.c (step_1): Delete unused variable.
851 (registers_info): Delete unused variable.
852 (attach_command): Delete unused variable.
853 * infrun.c (follow_exec): Delete unused variable.
854 (handle_step_into_function_backwards): Delete unused variable.
855 (_initialize_infrun): Delete unused variable.
856 * stack.c (parse_frame_specification_1): Delete unused variable.
857 (frame_info): Delete unused variable.
858 (backtrace_command_1): Delete unused variable.
859 (catch_info): Delete unused variable.
860
8f78b329
MS
861 * eval.c (evaluate_subexp_standard): Delete unused variable.
862 * valops.c (value_cast_pointers): Delete unused variable.
863 (value_dynamic_cast): Delete unused variable.
864 (value_array): Delete unused variable.
865 (find_overload_match): Delete unused variable.
866 * valarith.c (value_subscript): Delete unused variable.
867 (value_binop): Delete unused variable.
868 * valprint.c (_initialize_valprint): Delete unused variable.
869 * printcmd.c (print_command_1): Delete unused variable.
870 (address_info): Delete unused variable.
871 (printf_command): Delete unused variable.
872
8ea13695
MS
873 * auxv.c (target_auxv_search): Delete unused variable.
874 * blockframe.c (get_frame_block): Delete unused variable.
875 * regcache.c (regcache_cpy): Delete unused variable.
876 (regcache_cpy_no_passthrough): Delete unused variable.
877 * charset.c (wchar_iterate): Delete unused variable.
878 (find_charset_names): Delete unused variable.
879 (_initialize_charset): Delete unused variable.
880 * disasm.c (do_mixed_source_and_assembly):
881 Delete unused variable.
882 * source.c (set_default_source_symtab_and_line):
883 Delete unused variable.
884 (set_substitute_path_command): Delete unused variable.
885 * value.c (preserve_values): Delete unused variable.
886 (value_from_double): Delete unused variable.
887
afe38095
MS
8882010-05-05 Michael Snyder <msnyder@vmware.com>
889
952a6d41
MS
890 * psymtab.c (lookup_partial_symbol): Delete unused variable.
891 (find_last_source_symtab_from_partial): Delete unused variable.
892 * symfile.c (place_section): Delete unused variable.
893 (default_symfile_offsets): Delete unused variable.
894 (get_debug_link_info): Delete unused variable.
895 (find_separate_debug_file_by_debuglink): Delete unused variable.
896 (add_symbol_file_command): Delete unused variable.
897 (symfile_find_segment_sections): Delete unused variable.
898 * symmisc.c (free_symtab): Delete unused variable.
899 (dump_symtab_1): Delete unused variable.
900 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
901 (find_pc_sect_symtab): Delete unused variable.
902 (skip_prologue_using_lineinfo): Delete unused variable.
903 (sources_info): Delete unused variable.
904 (completion_list_add_name): Delete unused variable.
905 (expand_line_sal): Delete unused variable.
906
afe38095
MS
907 * breakpoint.c (validate_commands_for_breakpoint):
908 Delete unused variables.
909 (insert_catchpoint): Delete unused variable.
910 (update_watchpoint): Delete unused variable.
911 (insert_bp_location): Delete unused variable.
912 (insert_breakpoint_locations): Delete unused variable.
913 (remove_breakpoint_1): Delete unused variable.
914 (software_breakpoint_inserted_here_p): Delete unused variable.
915 (watchpoints_triggered): Delete unused variable.
916 (bpstat_check_watchpoint): Delete unused variable.
917 (bpstat_stop_status): Delete unused variable.
918 (print_one_breakpoint_location): Delete unused variable.
919 (allocate_bp_location): Delete unused variable.
920 (create_breakpoint): Delete unused variable.
921 (watch_command_1): Delete unused variable.
922 (catch_exception_command_1): Delete unused variable.
923 (catch_ada_exception_command): Delete unused variable.
924 (delete_breakpoint): Delete unused variable.
925 (breakpoint_re_set_one): Delete unused variable.
926 (do_enable_breakpoint): Delete unused variable.
927
eda5a4d7
PA
9282010-05-06 Pedro Alves <pedro@codesourcery.com>
929
930 * amd64-tdep.c: Include disasm.h.
931 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
932 (amd64_insn_length): Moved to disasm.c and renamed.
933 (fixup_riprel): Adjust.
934 * disasm.c (do_ui_file_delete): New.
935 (gdb_insn_length): New.
936 (gdb_buffered_insn_length_fprintf)
937 (gdb_buffered_insn_length_init_dis)
938 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
939 renamed.
940 * disasm.h (gdb_insn_length): Declare.
941 (gdb_buffered_insn_length): Declare.
942
02357a4a
PA
9432010-05-06 Pedro Alves <pedro@codesourcery.com>
944
945 * remote.c (clear_threads_parsing_context): New.
946 (remote_threads_info): Delete unused null_cleanup. Install a
947 cleanup to clear the threads_parsing_context in case parsing
948 throws.
949
8c5630cb
MS
9502010-05-05 Michael Snyder <msnyder@vmware.com>
951
952 * c-exp.y (parse_string_or_char): Delete unused variable.
953 (c_lex): Delete unused variable.
954 * cp-name-parser.y (cpname_lex): Delete unused variable.
955 * ada-exp.y (find_primitive_type): Delete unused variable.
956 (write_var_or_type): Delete unused variable.
957 * jv-exp.y (java_parse): Delete unused variable.
958 (push_expression_name): Delete unused variable.
959 * p-exp.y (pascal_lex): Delete unused variable.
960
46c162d4
PA
9612010-05-05 Pedro Alves <pedro@codesourcery.com>
962
963 * remote.c (remote_threads_info): Really revert previous previous
964 change.
965
0043e6a5
MS
9662010-05-05 Michael Snyder <msnyder@vmware.com>
967
fa238c03
MS
968 * elfread.c (elf_symtab_read): Delete unused variable.
969 (find_separate_debug_file_by_buildid): Delete unused variables.
970 (elf_symfile_read): Delete unused variable.
971
972 * coffread.c (coff_symfile_read): Delete unused variables.
973
974 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
975 (read_pe_exported_syms): Delete unused variable.
976
977 * stabsread.c (define_symbol): Delete unused variable.
978
979 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
980 (process_psymtab_comp_unit): Delete unused variable.
981 (dwarf2_build_psymtabs_hard): Delete unused variable.
982 (load_partial_comp_unit): Delete unused variable.
983 (create_all_comp_units): Delete unused variable.
984 (scan_partial_symbols): Delete unused variable.
985 (add_partial_symbol): Delete unused variable.
986 (add_partial_namespace): Delete unused variable.
987 (add_partial_enumeration): Delete unused variable.
988 (load_full_comp_unit): Delete unused variable.
989 (process_full_comp_unit): Delete unused variable.
990 (read_file_scope): Delete unused variable.
991 (read_type_unit_scope): Delete unused variable.
992 (process_structure_scope): Delete unused variable.
993 (process_enumeration_scope): Delete unused variable.
994 (read_tag_ptr_to_member_type): Delete unused variable.
995 (read_typedef): Delete unused variable.
996 (read_partial_die): Delete unused variable.
997 (decode_locdesc): Delete unused variable.
998 (zeroed_partial_die): Delete unused global variable.
999
0043e6a5
MS
1000 * tui/tui-interp.c (_initialize_tui_interp):
1001 Delete unused variable.
1002 * tui/tui-regs.c tui_display_registers_from):
1003 Delete unused variable.
1004 (tui_check_register_values): Delete unused variable.
1005 (tui_register_format): Delete unused variable.
1006 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1007 * tui/tui-windata.c (tui_display_data_from_line):
1008 Delete unused variables.
1009 (tui_vertical_data_scroll): Delete unused variables.
1010
75721c66
MS
10112010-05-05 Michael Snyder <msnyder@vmware.com>
1012
c31a71f4
MS
1013 * remote.c (remote_threads_info): Revert questionable part of
1014 the previous change.
1015
10162010-05-05 Michael Snyder <msnyder@vmware.com>
1017
1018 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1019 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1020 (mi_cmd_var_list_children): Delete unused variable.
1021 (varobj_update_one): Delete unused variable.
1022 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1024 Delete unused variable.
1025 (mi_cmd_stack_list_variables): Delete unused variable.
1026 (list_args_or_locals): Delete unused variable.
1027 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1028 Delete unused variables.
1029 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1030 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1031 Delete unused variable.
1032 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1033 (mi_cmd_interpreter_exec): Delete unused variable.
1034 (mi_on_normal_stop): Delete unused variable.
1035 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1036 (print_one_inferior): Delete unused variables.
1037 (mi_execute_command): Delete unused variable.
1038 (mi_cmd_execute): Delete unused variable.
1039 (timestamp): Delete unused variable.
1040
1041 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 1042 (restore_binary_file): Delete unused variable.
c31a71f4
MS
1043 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1044 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
1045 (recurse_read_control_structure): Delete unused variable.
1046 (script_from_file): Delete unused variable.
c31a71f4 1047 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
1048 (disassemble_command): Delete unused variable.
1049
1050 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1051 * tracepoint.c (delete_trace_variable_command):
1052 Delete unused variables.
1053 (encode_actions_1): Delete unused variables.
1054 (start_tracing): Delete unused variable.
1055 (trace_status_mi): Delete unused variable.
1056 (tfind_1): Delete unused variable.
1057 (trace_find_pc_command): Delete unused variable.
1058 (trace_find_line_command): Delete unused variables.
1059 (trace_find_range_command): Delete unused variables.
1060 (trace_find_outside_command): Delete unused variables.
1061 (parse_tracepoint_definition): Delete unused variables.
1062 (tfile_fetch_registers): Delete unused variable.
1063
9128a503
MS
1064 * dcache.c (dcache_init): Delete unused variable.
1065 (dcache_info): Delete unused variable.
1066
aa369b55 1067 * remote.c (remote_threads_info): Delete unused variable.
9128a503 1068 (process_stop_reply) :Delete unused variable.
aa369b55
MS
1069 (remote_get_trace_status): Delete unused variables.
1070
9e9547e4
MS
1071 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1072 (thread_from_lwp): Delete unused variable.
1073 (enable_thread_event_reporting): Delete unused variable.
1074 (check_for_thread_db): Delete unused variables.
1075 (thread_db_find_new_threads_2): Delete unused variable.
1076
1077 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1078 (checkpoint_command): Delete unused variable.
1079 (linux_fork_context): Delete unused variables.
1080
fa238c03 1081 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
1082 (linux_tracefork_child): Delete unused variable.
1083 (linux_child_follow_fork): Delete unused variable.
1084 (linux_nat_detach): Delete unused variable.
1085 (linux_handle_extended_wait): Delete unused variable.
1086 (linux_nat_has_pending_sigint): Delete unused variable.
1087 (linux_nat_find_memory_regions): Delete unused variable.
1088 (linux_nat_make_corefile_notes): Delete unused variables.
1089 (linux_nat_info_proc_cmd): Delete unused variable.
1090 (linux_proc_pending_signals): Delete unused variable.
1091 (linux_nat_stop_lwp): Delete unused variables.
1092 (_initialize_linux_nat): Delete unused variable.
1093
fa238c03 1094 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 1095
e0f069a3
MS
1096 * linux-record.c (record_linux_system_call):
1097 Delete unused variables.
1098
789d24f0
MS
1099 * corelow.c (core_xfer_partial): Delete unused variables.
1100
1cd337a5
MS
1101 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1102 (svr4_solib_create_inferior_hook): Add ifdef around
1103 conditionally-used variable declarations.
1104
b00e3f56
MS
1105 * solib.c (solib_find): Delete unused variable.
1106 (free_so_symbols): Delete unused variable.
1107 (info_sharedlibrary_command): Delete unused variable.
1108 (reload_shared_libraries_1): Delete unused variable.
1109 (_initialize_solib): Delete unused variable.
1110
90f62196
MS
1111 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1112 (i386_collect_xstateregset): Delete unused variable.
1113 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1114
75721c66
MS
1115 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1116 Delete unused variable 'type'.
1117
af33db37
JB
11182010-05-05 Joel Brobecker <brobecker@adacore.com>
1119
90f62196 1120 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
1121 ada-lang.c: Remove comment mentioning these macros.
1122 * m2-exp.y: Delete commented out code.
af33db37 1123
0497f5b0
JB
11242010-05-05 Joel Brobecker <brobecker@adacore.com>
1125
1126 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1127 for array types.
1128 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1129
6e39997a
PM
11302010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1131
1132 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1133 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1134 ATTRIBUTE_UNUSED.
1135 (cleanup_kernel_helper_return): Likewise.
1136 * arm-tdep.c (copy_unmodified): Likewise.
1137 (copy_preload): Likewise.
1138 (copy_copro_load_store): Likewise.
1139 (cleanup_branch): Likewise.
1140 (copy_b_bl_blx): Likewise.
1141 (copy_bx_blx_reg): Likewise.
1142 (copy_alu_imm): Likewise.
1143 (copy_alu_reg): Likewise.
1144 (copy_alu_shifted_reg): Likewise.
1145 (cleanup_load): Likewise.
1146 (cleanup_store): Likewise.
1147 (cleanup_block_load_pc): Likewise.
1148 (cleanup_svc): Likewise.
1149 (copy_undef): Likewise.
1150 (copy_unpred): Likewise.
1151 * remote.c (register_remote_support_xml): Likewise.
1152
1412f70b
HZ
11532010-05-05 Hui Zhu <teawater@gmail.com>
1154
1155 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1156
c4f7c687
MK
11572010-05-04 Mark Kettenis <kettenis@gnu.org>
1158
1159 * remote.c (register_remote_support_xml)
1160 (remote_query_supported_append, remote_query_supported): Add cast
1161 to NULL used as sentinel.
1162 * tracepoint.c (tvariables_info_1): Likewise.
1163 * utils.c (add_internal_problem_command): Likewise.
1164
63b4f126
MGD
11652010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1166
1167 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1168 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1169 registers gracefully.
1170
2f1bdd26
MGD
11712010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1172
1173 * exec.c (print_section_info): Display entry point without arch
1174 specific parts.
1175
e1c34c5d
PM
11762010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1177
1178 PR exp/11349.
1179 * printcmd.c (x_command): Only dereference once implicitly for
1180 TYPE_CODE_REF.
1181
ae462839
DE
11822010-05-03 Doug Evans <dje@google.com>
1183
1184 * event-loop.c (gdb_timer): Delete unused global.
1185 (create_timer): Update.
1186
1ac77ea1
JK
11872010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1188
1189 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1190 CURRENT->DECLARATION case.
1191 * cp-support.h (struct using_direct): Provide extended comment.
1192
7c54a108
MK
11932010-05-03 Mark Kettenis <kettenis@gnu.org>
1194
1195 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1196 HPPABSD_SIZEOF_GREGS.
1197 (HPPAOBSD_SIZEOF_FPREGS): New define.
1198 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1199 (hppaobsd_supply_fpregset): New function.
1200 (hppaobsd_gregset): Renamed from hppabsd_gregset.
1201 (hppaobsd_fpregset): New variable.
1202 (hppaobsd_regset_from_core_section): Handle floating-point registers.
1203 (_initialize_hppabsd_tdep): Remove spurious blank line.
1204
278582cb
PM
12052010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1206
1207 PR pascal/11349.
1208 * p-valprint.c (pascal_value_print): Always dereference a value with
1209 type code TYPE_CODE_REF.
1210
f0223081
PA
12112010-05-03 Pedro Alves <pedro@codesourcery.com>
1212
1213 * remote.c (remote_notice_signals): New.
1214 (remote_start_remote): In non-stop mode, update the remote end on
1215 which signals it can silently pass.
1216 (init_remote_ops): Install remote_notice_signals.
1217
c25c4a8b
JK
12182010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1219
1220 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
1221 * command.h (error_no_arg): ... here. Remove NORETURN, change
1222 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1223 * defs.h (NORETURN, ATTR_NORETURN): Remove.
1224 (perror_with_name, verror, error, error_stream, vfatal, fatal)
1225 (internal_verror, internal_error, nomem): Remove NORETURN, change
1226 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1227 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1228 (throw_vfatal, throw_error): Remove NORETURN.
1229 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1230 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1231 (throw_error, deprecated_throw_reason): Remove NORETURN, change
1232 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1233 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1234 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1235 NORETURN.
1236 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1237 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1238 ATTRIBUTE_NORETURN.
1239 * target.c (tcomplain): Likewise.
1240 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1241 ATTRIBUTE_NORETURN.
1242 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1243 (internal_error, perror_with_name, nomem): Remove NORETURN.
1244 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1245 ATTRIBUTE_NORETURN.
1246
a0b31db1
JK
12472010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1248
1249 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1250 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1251 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1252 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1253 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1254 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1255 * complaints.h (complaint, internal_complaint): Likewise.
1256 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1257 (ATTR_FORMAT): Remove.
1258 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1259 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1260 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1261 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1262 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1263 (internal_error, internal_vwarning, internal_warning, warning)
1264 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1265 * disasm.c (fprintf_disasm): Likewise.
1266 * exceptions.c (throw_it): Likewise.
1267 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1268 (throw_error): Likewise.
1269 * language.h (type_error, range_error): Likewise.
1270 * linespec.c (cplusplus_error): Likewise.
1271 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1272 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1273 * monitor.c (monitor_debug): Likewise.
1274 * parser-defs.h (parser_fprintf): Likewise.
1275 * serial.h (serial_printf): Likewise.
1276 * tui/tui-hooks.c (tui_query_hook): Likewise.
1277 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1278 (uo_message): Likewise.
1279 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1280 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1281 Likewise.
1282 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1283
02a45ac0
PA
12842010-05-02 Pedro Alves <pedro@codesourcery.com>
1285
1286 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1287 (cli_table_header, cli_begin, cli_end, cli_field_int)
1288 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1289 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1290 Delete forward declarations.
1291 (cli_ui_out_impl): Move below the callbacks.
1292 (_initialize_cli_out): Delete.
1293
1915ef4f
PA
12942010-05-02 Pedro Alves <pedro@codesourcery.com>
1295
1296 * README: Use consistent `GDB' and `GDBserver' spellings.
1297
0dfb946f
JK
12982010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1299
1300 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1301
4d533103
PA
13022010-05-01 Pedro Alves <pedro@codesourcery.com>
1303
1304 * infrun.c (prepare_for_detach): In non-stop, context switch to
1305 the thread that got the event before handling the event.
1306
705b5767
TT
13072010-04-30 Tom Tromey <tromey@redhat.com>
1308
1309 * symtab.c (symbol_set_names): Fix typo.
1310
3c0ee1a4
PM
13112010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1312
1313 * python/py-param.c (parm_constants): Avoid ARI warning
1314 by adding ARI comment.
1315 (parmpy_init): Likewise.
1316
ea1fae46
PM
13172010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1318
1319 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1320 and created type for re-use.
1321
c24d0242
PM
13222010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1323
1324 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1325
a26d8d11
DE
13262010-04-29 Doug Evans <dje@google.com>
1327
1328 * ser-base.h (reschedule): Delete prototype.
1329 * ser-base.c (reschedule): Make static.
1330
f8624c62
MGD
13312010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1332
1333 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1334 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1335 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
1336 EABI.
1337 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
1338 use.
1339
e66408ed
PA
13402010-04-29 Pedro Alves <pedro@codesourcery.com>
1341
1342 PR gdb/11557
1343
1344 * regcache.c (registers_changed): Rename to ...
1345 (registers_changed_ptid): ... this, and only delete register cache
1346 entries matching the ptid filter argument.
1347 (registers_changed): Reimplement on top of registers_changed_ptid.
1348 * regcache.h (registers_changed_ptid): Declare.
1349 * target.c (target_resume): Flush register caches.
1350
d7b32ed3
PM
13512010-04-29 Phil Muldoon <pmuldoon@redhat.com>
1352 Tom Tromey <tromey@redhat.com>
1353 Thiago Jung Bauermann <bauerman@br.ibm.com>
1354
1355 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1356 (SUBDIR_PYTHON_SRCS): Likewise.
1357 (py-parameter.o): New rule.
1358 * python/py-parameter.c: New file.
1359 * python/python-internal.h (gdbpy_initialize_parameter)
1360 (gdbpy_parameter, gdbpy_parameter_value)
1361 (gdbpy_parse_command_name): Declare.
1362 * python/py-cmd.c (parse_command_name): Rename to
1363 gdbpy_parse_command_name.
1364 (gdbpy_parse_command_name): Accept a starting list parameter and
1365 use over cmdlist.
1366 (cmdpy_init): Use gdbpy_parse_command_name.
1367 * python/python.c (parameter_to_python): Rename to
1368 gdbpy_parameter_to_python. Accept enum var_types and value.
1369 (gdbpy_parameter): Use gdbpy_parameter_value.
1370 (_initialize_python): Call gdbpy_initialize_parameters.
1371
ce72ce41
MGD
13722010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1373
1374 * MAINTAINERS: Add myself for write after approval privileges.
1375
6aecb9c2
JB
13762010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
1377
1378 D language support.
1379 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1380 (COMMON_OBS): Add d-lang.o d-valprint.o.
1381 (HFILES_NO_SRCDIR): Add d-lang.h.
1382 * NEWS: Mention D language support.
1383 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1384 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1385 * d-lang.c: New file.
1386 * d-lang.h: New file.
1387 * d-valprint.c: New file.
1388 * defs.h (enum language): Add language_d.
1389 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1390 * language.c (binop_result_type, integral_type, character_type)
1391 (string_type, boolean_type, structured_type): Add language_d.
1392 * symfile.c (init_filename_language_table): Add language_d.
1393 * symtab.c: Include d-lang.h.
1394 (symbol_init_language_specific, symbol_find_demangled_name)
1395 (symbol_natural_name, lookup_symbol_in_language)
1396 (symbol_demangled_name, symbol_matches_domain): Add language_d.
1397
6f992fbf
JB
13982010-04-27 Joel Brobecker <brobecker@adacore.com>
1399
1400 * solib-svr4.c (solib_svr4_r_map): Expand function description.
1401
dde59185
JB
14022010-04-27 Joel Brobecker <brobecker@adacore.com>
1403
1404 * symfile.c (init_filename_language_table): Register .dg files
1405 with language_ada.
1406
d09ce91e
JB
14072010-04-27 Joel Brobecker <brobecker@adacore.com>
1408
1409 * gdbtypes.h (struct main_type): Expand comment about target_type
1410 field.
1411
67f1675e
JB
14122010-04-27 Pedro Alves <pedro@codesourcery.com>
1413 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
1414
1415 * symfile.c (reread_symbols): Also search for file in libraries.
1416 Update comment.
1417
dfd0fe27
JB
14182010-04-27 Joel Brobecker <brobecker@adacore.com>
1419
1420 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1421 in terms of configuration.
1422
0133421a
JK
14232010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1424
1425 * objfiles.c: Include solist.h.
1426 (free_all_objfiles): New variable so. Check stale solist objfiles.
1427 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1428 and no_shared_libraries.
1429
e78f4312
JB
14302010-04-27 Joel Brobecker <brobecker@adacore.com>
1431
1432 ARI warning fix.
1433 * python/py-auto-load.c (source_section_scripts): Remove trailing
1434 new-line in i18n string.
1435
9214d371
DE
14362010-04-26 Doug Evans <dje@google.com>
1437
1438 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1439
3f172e24
TT
14402010-04-26 Tom Tromey <tromey@redhat.com>
1441
1442 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1443 command list.
1444
e790e06e
PM
14452010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1446
1447 Removal of config/i386/nm-i386sol2.h native configuration file.
1448 * config/i386/nm-i386sol2.h: Remove file.
1449 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1450 * config/i386/sol2-64.mh: Idem.
88562582
PM
1451 * config/djgpp/fnchange.lst: Remove reference to that file.
1452 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 1453
b7da9e9f
PM
14542010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1455
1456 PR breakpoints/11531.
1457 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1458 macro definition and related comment.
1459 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1460 (resume): Remove code and comment related to this macro.
1461
72f6eb52
JK
14622010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1465 Fix whitespace.
1466
ab38a727
PA
14672010-04-24 Pedro Alves <pedro@codesourcery.com>
1468
1469 * defs.h: Adjust comment.
1470 * filesystem.h, filesystem.c: New files.
1471 * Makefile.in (SFILES): Add filesystem.c.
1472 (COMMON_OBS): Add filesystem.o.
1473 * solib.c (solib_find): Handle DOS-based filesystems. Handle
1474 different target and host path flavours.
1475 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1476 has_dos_based_file_system on the gdbarch.
1477 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1478 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1479 * i386-tdep.c (i386_go32_init_abi): Ditto.
1480 * gdbarch.sh (has_dos_based_file_system): New.
1481 * gdbarch.h, gdbarch.c: Regenerate.
1482 * NEWS: Mention improved support for remote targets with DOS-based
1483 filesystems. Mention new `set/show target-file-system-kind'
1484 commands.
1485
35c9c7ba
SS
14862010-04-23 Stan Shebs <stan@codesourcery.com>
1487
1488 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1489 comments.
1490 (struct agent_reqs): Remove.
1491 (ax_reg_mask): Declare.
1492 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1493 (free_agent_expr): Free reg_mask.
1494 (ax_print): Add scope and register mask info.
1495 (ax_reqs): Remove agent_reqs argument, use agent expression
1496 fields, and move part of register mask computation to...
1497 (ax_reg_mask): New function.
1498 * ax-gdb.c (gen_trace_static_fields): Call it.
1499 (gen_traced_pop): Ditto.
1500 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1501 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1502 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1503 (gen_eval_for_expr): Ditto, and require an rvalue.
1504 (agent_command): Call ax_reqs.
1505 (agent_eval_command): Ditto.
1506 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1507 (validate_action_line): Ditto.
1508 (collect_symbol): Ditto.
1509 (encode_actions_1): Ditto.
1510
492928e4
JK
15112010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
1512 Paul Pluzhnikov <ppluzhnikov@google.com>
1513 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 Fix deadlock on looped list of loaded shared objects.
1516 * solib-svr4.c (LM_PREV): New function.
1517 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1518 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
1519 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
1520 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1521
66d09542
DE
15222010-04-23 Doug Evans <dje@google.com>
1523
88a1906b
DE
1524 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1525 python.
1526 * configure: Regenerate.
1527 * main.c: #include "python/python.h".
1528 (captured_main): Defer loading auto-loaded scripts until after
1529 local_gdbinit has been sourced.
1530 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1531 (load_auto_scripts_for_objfile): New function.
1532 (auto_load_new_objfile): Call it.
1533 * python/python.h (gdbpy_global_auto_load): Declare.
1534 (load_auto_scripts_for_objfile): Declare.
1535
66d09542
DE
1536 Add support for auto-loading scripts from .debug_gdb_scripts section.
1537 * NEWS: Add entry for .debug_gdb_scripts.
1538 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1539 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1540 (py-auto-load.o): New rule.
1541 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1542 * cli/cli-cmds.h (find_and_open_script): Update prototype.
1543 * python/py-auto-load.c: New file.
1544 * python/python-internal.h: #include <stdio.h>.
1545 (set_python_list, show_python_list): Declare.
1546 (gdbpy_initialize_auto_load): Declare.
1547 (source_python_script_for_objfile): Declare.
1548 * python/python.c: Remove #include of observer.h.
1549 (gdbpy_auto_load): Moved to py-auto-load.c.
1550 (GDBPY_AUTO_FILENAME): Ditto.
1551 (gdbpy_new_objfile): Delete.
1552 (source_python_script_for_objfile): New function.
1553 (set_python_list, show_python_list): Make externally visible.
1554 (_initialize_python): Move "auto-load" command to py-auto-load.c
1555 and observer_attach_new_objfile to py-auto-load.c.
1556
3a48e6ff
JG
15572010-04-23 Jerome Guitton <guitton@adacore.com>
1558
1559 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1560 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1561 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1562 New constants.
1563 (alpha_heuristic_analyze_probing_loop): New function.
1564 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1565 and handle cases when a stack probe loop is generated.
1566 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1567 (alpha_mdebug_max_frame_size_exceeded): New function.
1568 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1569 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1570 Return 0 when the maximum debuggable frame size has been exceeded.
1571
e4166a49
JB
15722010-04-23 Joel Brobecker <brobecker@adacore.com>
1573
1574 Fix ARI warning.
1575 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1576
8bd10a10
CM
15772010-04-20 Chris Moller <cmoller@redhat.com>
1578
1579 PR 10179
1580
1581 * symtab.c (rbreak_command): Added code to include a filename
1582 specification in the rbreak argument.
1583 * NEWS: Added a brief description of filename-qualified rbreak.
1584
c0201579
JK
15852010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1586
1587 Fix crashes on dangling display expressions.
1588 * ada-lang.c (ada_operator_check): New function.
1589 (ada_exp_descriptor): Fill-in the field operator_check.
1590 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
1591 * jv-lang.c (exp_descriptor_java): Likewise.
1592 * m2-lang.c (exp_descriptor_modula2): Likewise.
1593 * scm-lang.c (exp_descriptor_scm): Likewise.
1594 * parse.c (exp_descriptor_standard): Likewise.
1595 (operator_check_standard): New function.
1596 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
1597 * parser-defs.h (struct exp_descriptor): New field operator_check.
1598 (operator_check_standard, exp_uses_objfile): New declarations.
1599 * printcmd.c: Remove the inclusion of solib.h.
1600 (display_uses_solib_p): Remove the function.
1601 (clear_dangling_display_expressions): Call lookup_objfile_from_block
1602 and exp_uses_objfile instead of display_uses_solib_p.
1603 * solist.h (struct so_list) <objfile>: New comment.
1604 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
1605 * symtab.h (lookup_objfile_from_block): New declaration.
1606 (struct general_symbol_info) <obj_section>: Extend the comment.
1607
6ffbb7ab
TJB
16082010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1609 Thiago Jung Bauermann <bauerman@br.ibm.com>
1610
1611 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
1612 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
1613 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
1614 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
1615 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
1616 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
1617 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
1618 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
1619 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
1620 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
1621 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
1622 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
1623 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
1624 Define, in case <ptrace.h> doesn't provide it.
1625 (booke_debug_info): New variable.
1626 (max_slots_number): Ditto.
1627 (hw_break_tuple): New struct.
1628 (thread_points): Ditto.
1629 (ppc_threads): New variable.
1630 (PPC_DEBUG_CURRENT_VERSION): New define.
1631 (have_ptrace_new_debug_booke): New function.
1632 (ppc_linux_check_watch_resources): Renamed to ...
1633 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
1634 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
1635 (booke_cmp_hw_point): New function.
1636 (booke_find_thread_points_by_tid): Ditto.
1637 (booke_insert_point): Ditto.
1638 (booke_remove_point): Ditto.
1639 (ppc_linux_insert_hw_breakpoint): Ditto.
1640 (ppc_linux_remove_hw_breakpoint): Ditto.
1641 (get_trigger_type): Ditto.
1642 (ppc_linux_insert_watchpoint): Handle BookE processors.
1643 (ppc_linux_remove_watchpoint): Ditto.
1644 (ppc_linux_new_thread): Ditto.
1645 (ppc_linux_thread_exit): New function..
1646 (ppc_linux_stopped_data_address): Handle BookE processors.
1647 (ppc_linux_watchpoint_addr_within_range): Ditto.
1648 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
1649 to_remove_hw_breakpoint fields of the target operations struct.
1650 Add observe for the thread_exit event.
1651
be0d2954
L
16522010-04-22 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 * i386-linux-nat.c (regmap): Removed.
1655 (fetch_register): Replace regmap with
1656 i386_linux_gregset_reg_offset.
1657 (store_register): Likewise.
1658 (supply_gregset): Likewise.
1659 (fill_gregset): Likewise.
1660
1661 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
1662 global.
1663
1664 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
1665
f56dcb88
CM
16662010-04-22 Chris Moller <cmoller@redhat.com>
1667
1668 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
1669 method of popping recursion-detection stack with a method based on
1670 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
1671 the static array obstack rather than the static member obstack.)
1672
6cd6a2ae
L
16732010-04-22 H.J. Lu <hongjiu.lu@intel.com>
1674
1675 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
1676 (_initialize_amd64_linux_nat): Replace
1677 amd64_linux_gregset64_reg_offset with
1678 amd64_linux_gregset_reg_offset.
1679
1680 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
1681 global.
1682
1683 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
1684
621791b8
PM
16852010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
1686
1687 PR stabs/11479.
1688 * stabsread.c (set_length_in_type_chain): New function.
1689 (read_struct_type): Call set_length_in_type_chain function.
1690 (read_enum_type): Idem.
1691
105c2d85
SS
16922010-04-21 Stan Shebs <stan@codesourcery.com>
1693 Nathan Sidwell <nathan@codesourcery.com>
1694
1695 * tracepoint.c (trace_save): Open in binary mode.
1696
9a22f0d0
PM
16972010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
1698
1699 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
1700 fields.
1701 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
1702 builtin_char32 fields.
1703 * printcmd.c (decode_format): Set char size to '\0'
1704 for strings unless explicit size is given.
1705 (print_formatted): Correct calculation of NEXT_ADDRESS
1706 for 16 or 32 bit strings.
1707 (do_examine): Do not force byte size for strings.
1708 Use builtin_char16 and builtin_char32 types to display
1709 16 or 32 bit-wide strings.
1710 (x_command): Set LAST_SIZE to 'b' for string type.
1711
f335d1b3
L
17122010-04-21 H.J. Lu <hongjiu.lu@intel.com>
1713
1714 PR corefiles/11523
1715 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1716 XCR0 first.
1717
1718 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
1719 there is no .reg-xstate section.
1720 (i386_linux_core_read_description): Check XCR0 first.
1721
a9789a6b
MF
17222010-04-21 Mike Frysinger <vapier@gentoo.org>
1723
1724 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
1725 for len <= 8.
1726
0b66f317
CM
17272010-04-21 Chris Moller <cmoller@redhat.com>
1728
1729 PR 9167
1730 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
1731 method of popping recursion-detection stack with a method based on
1732 obstack_object_size().
0b66f317 1733
6e354e5e
PM
17342010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1735
1736 PR pascal/11492.
1737 * p-valprint.c (pascal_val_print): Fix default printing of integer
1738 arrays.
1739
57174f31
PM
17402010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1741
1742 Fix compilation warning on gcc-4.1.2.
1743 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
1744 local variable`pc' to zero.
1745
6fbc7cd8
JB
17462010-04-20 Joel Brobecker <brobecker@adacore.com>
1747
1748 Implement thread support with core files on alpha-tru64.
1749 * dec-thread.c (dec_thread_find_new_threads): New function,
1750 extracted from resync_thread_list.
1751 (resync_thread_list): Add OPS parameter. Replace extracted-out
1752 code by call to dec_thread_find_new_threads.
1753 (dec_thread_wait): Update call to resync_thread_list.
1754 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
1755
438c98a1
JB
17562010-04-20 Joel Brobecker <brobecker@adacore.com>
1757
1758 * ada-lang.c (value_pointer): New function.
1759 (make_array_descriptor): Call value_pointer to convert addresses to
1760 pointers.
1761
2971b56b
JB
17622010-04-20 Joel Brobecker <brobecker@adacore.com>
1763
1764 * rs6000-aix-tdep.c: #include exceptions.h.
1765 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
1766 while reading the memory at ADDR, then ADDR cannot be a function
1767 descriptor.
1768
be942545
JB
17692010-04-20 Joel Brobecker <brobecker@adacore.com>
1770
1771 * ada-typeprint.c (ada_print_typedef): New function.
1772 * ada-lang.h (ada_print_typedef): Add declaration.
1773 * ada-lang.c (ada_language_defn): set la_print_typdef field
1774 to ada_print_typedef.
1775
1ca8fce0
JB
17762010-04-20 Joel Brobecker <brobecker@adacore.com>
1777
1778 * procfs.c (procfs_address_to_host_pointer): Only define when used.
1779
e9ef4f39
JB
17802010-04-20 Joel Brobecker <brobecker@adacore.com>
1781
1782 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
1783 (iterate_over_mappings): Adjust function profile. Add declaration.
1784 (insert_dbx_link_bpt_in_region, info_mappings_callback):
1785 Adjust accordingly.
1786
e294797a
JB
17872010-04-20 Joel Brobecker <brobecker@adacore.com>
1788
1789 * procfs.c (solib_mappings_callback): Move function up to avoid
1790 a compiler warning.
1791
a223f1e7
JB
17922010-04-20 Joel Brobecker <brobecker@adacore.com>
1793
1794 * procfs.c (find_signalled_thread, find_stop_signal): Move
1795 these functions down to define them only when used.
1796
0c3acc09
JB
17972010-04-20 Joel Brobecker <brobecker@adacore.com>
1798
1799 * valprint.c (common_val_print): Fix the value before extracting
1800 its contents.
1801 * ada-lang.c (ada_to_fixed_value): Make this function extern.
1802 * ada-lang.h (ada_to_fixed_value): New function declaration.
1803 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
1804 to avoid code duplication and fix a bug in the handling of
1805 fixed types contents.
1806
31ef98ae
TT
18072010-04-20 Tom Tromey <tromey@redhat.com>
1808
1809 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
1810 (read_partial_die): Likewise.
1811 (dwarf_attr_name): Likewise.
1812
ec31cde5
CM
18132010-04-20 Chris Moller <cmoller@redhat.com>
1814
1815 PR 10867
1816
1817 * cp-valprint.c (global): Adding new static array recursion
1818 detection obstack.
1819 (cp_print_value_fields, cp_print_static_field): Added new static
1820 array recursion detection code.
1821
e0e0e543
MK
18222010-04-20 Mark Kettenis <kettenis@gnu.org>
1823
1824 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
1825 general-purpose register set should be 68 instead of 144.
1826 (i386_linux_sse_regset_sections): Likewise.
1827 (i386_linux_avx_regset_sections): Likewise.
1828
08922a10
SS
18292010-04-20 Stan Shebs <stan@codesourcery.com>
1830 Nathan Sidwell <nathan@codesourcery.com>
1831
1832 * dwarf2loc.c (struct axs_var_loc): New struct.
1833 (dwarf2_tracepoint_var_loc): New function.
1834 (dwarf2_tracepoint_var_access): New function.
1835 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
1836 with DW_OP_piece.
1837 (locexpr_describe_location_piece): New function.
1838 (locexpr_describe_location_1): New function.
1839 (locexpr_describe_location): Call it, update signature.
1840 (loclist_describe_location): Rewrite to loop over locations,
1841 update signature.
1842 * symtab.h (struct symbol_computed_ops): Add address to
1843 describe_location arguments, return void.
1844 * printcmd.c (address_info): Get context PC, pass to computed
1845 location description.
1846 * tracepoint.c (scope_info): Ditto.
1847 * ax-gdb.c (trace_kludge): Export.
1848
2dc7f7b3
TT
18492010-04-20 Tom Tromey <tromey@redhat.com>
1850
1851 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
1852 (struct dwarf2_cie) <segment_size>: New field.
1853 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
1854 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
1855 DW_FORM_exprloc.
1856 (read_attribute_value): Handle DW_FORM_flag_present,
1857 DW_FORM_sec_offset, DW_FORM_exprloc.
1858 (dump_die_shallow): Likewise.
1859 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
1860 (dwarf2_const_value): Handle DW_FORM_exprloc.
1861 (attr_form_is_block): Likewise.
1862 (struct line_header) <maximum_ops_per_instruction>: New field.
1863 (dwarf_decode_line_header): Set new field.
1864 (dwarf_decode_lines): Handle new field.
1865
ce4b0682
SDJ
18662010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1867
1868 * f-exp.y: Add new production to recognize the `logical*8' type.
1869 (LOGICAL_S8_KEYWORD): New token.
1870 * f-lang.c (enum f_primitive_types)
1871 <f_primitive_type_logical_s8>: New field.
1872 (f_language_arch_info): Handling `logical*8' type.
1873 (build_fortran_types): Building `logical*8' type.
1874 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
1875
ff9f22f1
DE
18762010-04-19 Doug Evans <dje@google.com>
1877
1878 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
1879 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
1880 (pipe_close): Ditto.
1881
437125bd
PM
18822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1883
1884 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
1885
e8e6c82e
PM
18862010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1887
1888 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
1889 type to void function.
1890
4136fdd2
SS
18912010-04-19 Stan Shebs <stan@codesourcery.com>
1892 Vladimir Prus <vladimir@codesourcery.com>
1893
1894 * tracepoint.c (tfind_1): Add missing newline, report exit from
1895 tfind mode as such.
1896 * target.c (update_current_target): Make default
1897 to_trace_find return -1.
1898
0c4b2e63
MF
18992010-04-19 Mike Frysinger <vapier@gentoo.org>
1900
1901 * objc-lang.c (find_methods): Move symname check up.
1902
78076abc
PA
19032010-04-19 Pedro Alves <pedro@codesourcery.com>
1904
1905 * ada-lang.c (print_recreate_exception)
1906 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
1907 not "catch unhandled".
1908
6149aea9
PA
19092010-04-19 Pedro Alves <pedro@codesourcery.com>
1910
1911 PR breakpoints/8554.
1912
1913 Implement `save-breakpoints'.
1914
1915 * breakpoint.c (save_cmdlist): New.
1916 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
1917 to save_cmdlist.
1918 (print_recreate_catch_fork): New.
1919 (catch_fork_breakpoint_ops): Install it.
1920 (print_recreate_catch_vfork): New.
1921 (catch_vfork_breakpoint_ops): Install it.
1922 (print_recreate_catch_syscall): New.
1923 (catch_syscall_breakpoint_ops): Install it.
1924 (print_recreate_catch_exec): New.
1925 (catch_exec_breakpoint_ops): Install it.
1926 (print_recreate_exception_catchpoint): New.
1927 (gnu_v3_exception_catchpoint_ops): Install it.
1928 (save_breakpoints): New, based on tracepoint_save_command, but
1929 handle all breakpoint types.
1930 (save_breakpoints_command): New.
1931 (tracepoint_save_command): Rename to...
1932 (save_tracepoints_command): ... this, and reimplement using
1933 save_breakpoints.
1934 (save_command): New.
1935 (_initialize_breakpoints): Install the "save" command prefix.
1936 Install the "save breakpoints" command. Make "save-tracepoints" a
1937 deprecated alias for "save tracepoints".
1938 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
1939 * ada-lang.c (print_recreate_exception): New.
1940 (print_recreate_catch_exception): New.
1941 (catch_exception_breakpoint_ops): Install it.
1942 (print_recreate_catch_exception_unhandled): New.
1943 (catch_exception_unhandled_breakpoint_ops): Install it.
1944 (print_recreate_catch_assert): New.
1945 (catch_assert_breakpoint_ops): Install it.
1946
1947 * NEWS: Mention the new `save breakpoints' command. Mention the
1948 new `save tracepoints' alias and that `save-tracepoints' is now
1949 deprecated.
1950
0a8fce9a
PA
19512010-04-18 Pedro Alves <pedro@codesourcery.com>
1952
1953 PR tui/9217
1954
1955 * tui/tui-out.c: Include cli-out.h.
1956 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
1957 (tui_begin, tui_end, tui_field_int, tui_field_skip)
1958 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
1959 (tui_message, tui_wrap_hint, tui_flush): Delete forward
1960 declarations.
1961 (struct ui_out_data): Rename to...
1962 (struct tui_ui_out_data): ... this. Remove `stream' and
1963 `suppress_output' fields, and inherit cli_ui_out_data.
1964 (tui_out_data): New typedef.
1965 (tui_ui_out_impl): Don't initialize fields staticaly.
1966 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
1967 (tui_begin, tui_end): Delete.
1968 (tui_field_int): Adjust to delegate most work to the base type.
1969 (tui_field_skip): Delete.
1970 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
1971 delegate most work to the base type.
1972 (tui_spaces): Delete.
1973 (tui_text): Adjust to delegate most work to the base type.
1974 (tui_message): Delete.
1975 (tui_wrap_hint): Delete.
1976 (tui_flush): Delete.
1977 (out_field_fmt): Delete.
1978 (field_separator): Delete.
1979 (tui_out_new): Adjust to initialize the base type.
1980 (_initialize_tui_out): Initialize tui_ui_out_impl.
1981 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
1982 cli_ui_out_data.
1983 (cli_out_data): Adjust.
1984 (cli_ui_out_impl): Make extern.
1985 (cli_table_header, cli_field_int, cli_field_skip): Use
1986 uo_field_string instead of cli_field_string.
1987 (cli_redirect): Adjust to use cli_out_data.
1988 (cli_out_data_ctor): New.
1989 (cli_out_new): Use it.
1990 * cli-out.h (struct ui_file): Remove forward declaration.
1991 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
1992 (cli_ui_out_impl): Declare.
1993 (cli_out_data_ctor): Declare.
1994 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
1995 (uo_field_string): No longer static.
1996 (ui_out_data): Change return type to void pointer.
1997 (ui_out_new): Change `data' parameter type to void pointer.
1998 * ui-out.h (struct ui_out_data): Don't forward declare.
1999 (ui_out_data): Change return type to void pointer.
2000 (ui_out_new): Change `data' parameter type to void pointer.
2001 (uo_field_string): Declare.
2002
172240dd
PA
20032010-04-17 Pedro Alves <pedro@codesourcery.com>
2004
2005 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2006 instead of always false.
2007
ed41462c
L
20082010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 PR corefiles/11511
2011 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2012 orig_rax.
2013
cc60f2e3
PA
20142010-04-17 Pedro Alves <pedro@codesourcery.com>
2015
2016 * breakpoint.c (watchpoints_triggered): Use
2017 is_hardware_watchpoint.
2018 (watchpoints_triggered): Ditto.
2019 (bpstat_check_location): Use is_watchpoint and
2020 is_hardware_watchpoint.
2021 (bpstat_check_watchpoint): Use is_watchpoint and
2022 is_hardware_watchpoint.
2023 (bpstat_stop_status): Fix comment.
2024 (user_settable_breakpoint): Use is_watchpoint.
2025 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2026 (disable_watchpoints_before_interactive_call_start): Use
2027 is_watchpoint.
2028 (enable_watchpoints_after_interactive_call_stop): Use
2029 is_watchpoint.
2030 (clear_command): Use is_watchpoint.
2031 (do_enable_breakpoint): Use is_watchpoint.
2032
cb7db0f2
MF
20332010-04-16 Mike Frysinger <vapier@gentoo.org>
2034
2035 * solib-frv.c (enable_break1_done): Delete.
2036 (enable_break2): Do not check enable_break1_done. Move the
2037 enable_break2_done setting and call to
2038 remove_solib_event_breakpoints() to the end. Return without
2039 warning when the contents of _dl_debug_addr are 0.
2040 (enable_break): Do not set enable_break1_done.
2041 (frv_clear_solib): Likewise.
2042
d77b48cf
KB
20432010-04-16 Kevin Buettner <kevinb@redhat.com>
2044
2045 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2046 instead of an error if no PLT entry is found. Return a
2047 potentially useful result.
2048 (m32c_m16c_pointer_to_address): Add code to search for function
2049 address when no .plt entry is found.
2050
f90824dc
SS
20512010-04-16 Stan Shebs <stan@codesourcery.com>
2052
2053 * tracepoint.c (trace_variable_command): Run a cleanup.
2054
9b79b476
PM
20552010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2056
2057 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2058
711e434b
PM
20592010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2060
2061 Support for Windows OS Thread Information Block.
2062 * NEWS: Document new feature.
2063 * remote.c (PACKET_qGetTIBAddr): New enum element.
2064 (remote_get_tib_address): New function.
2065 (init_remote_ops): Set to_get_tib_address field
2066 to remote_get_tib_address.
2067 (_initialize_remote): Add add_packet_config_cmd
2068 for PACKET_qGetTIBAddr.
2069 * target.c (update_current_target): Set default value for
2070 new to_get_tib_address field.
2071 * target.h (target_ops): New field to_get_tib_address.
2072 (target_get_tib_address): New macro.
2073 * windows-nat.c (thread_info): Add thread_local_base field.
2074 (windows_add_thread): Add tlb argument of type 'void *'.
2075 (fake_create_process): Adapt windows_add_thread call.
2076 (get_windows_debug_event): Idem.
2077 (windows_get_tib_address): New function.
2078 (init_windows_ops): Set to_get_tib_address field
2079 to remote_get_tib_address.
2080 (_initialize_windows_nat): Replace info_w32_cmdlist
2081 initialization by a call to init_w32_command_list.
2082 (info_w32_command, info_w32_cmdlist): Removed from here...
2083 to windows-tdep.c file.
2084 * windows-tdep.h (info_w32_cmdlist): Declare.
2085 (init_w32_command_list): New external function
2086 declaration.
2087 * windows-tdep.c: Add several headers.
2088 (info_w32_cmdlist): to here, made global.
2089 (thread_information_32): New struct.
2090 (thread_information_64): New struct.
2091 (TIB_NAME): New char array.
2092 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2093 (maint_display_all_tib): New static variable.
2094 (windows_get_tlb_type): New function.
2095 (tlb_value_read, tlb_value_write): New functions.
2096 (tlb_value_funcs): New static struct.
2097 (tlb_make_value): New function.
2098 (display_one_tib): New function.
2099 (display_tib): New function.
2100 (show_maint_show_all_tib):New function.
2101 (info_w32_command): Moved from windows-nat.c.
2102 (init_w32_command_list): New function.
2103 (_initialize_windows_tdep): New function.
2104 New "maint set/show show-all-tib" command
2105 New "$_tlb" internal variable.
2106
cae3f17b
JB
21072010-04-16 Joel Brobecker <brobecker@adacore.com>
2108
2109 * tui/tui-regs.c (tui_display_register): Add comment about
2110 a couple of casts.
2111 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2112
2ce6d6bf
SS
21132010-04-15 Stan Shebs <stan@codesourcery.com>
2114
2115 * frame.c: Include tracepoint.h.
2116 (get_current_frame): Allow a trace frame to be an alternate source
2117 of stack frame data.
2118 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2119 it won't succeed.
2120
7e559477
PA
21212010-04-15 Pedro Alves <pedro@codesourcery.com>
2122
2123 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2124 flags.
2125 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2126
3f7b2faa
DE
21272010-04-15 Doug Evans <dje@google.com>
2128
fa33c3cd
DE
2129 * NEWS: Add entry for python program space support.
2130 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2131 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2132 (py-progspace.o): New rule.
2133 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2134 function.
2135 (find_pretty_printer_from_progspace): New function.
2136 (find_pretty_printer_from_gdb): New function.
2137 (find_pretty_printer): Rewrite.
2138 * python/py-progspace.c: New file.
2139 * python/python-internal.h (program_space): Add forward decl.
2140 (pspace_to_pspace_object, pspy_get_printers): Declare.
2141 (gdbpy_initialize_pspace): Declare.
2142 * python/python.c: #include "progspace.h".
2143 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2144 (_initialize_python): Call gdbpy_initialize_pspace.
2145 (GdbMethods): Add current_progspace, progspaces.
2146
3f7b2faa
DE
2147 Add -s option to source command.
2148 * NEWS: Document new option.
2149 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2150 Delete from_tty and cleanupp args. Split filep arg into file and
2151 full_pathp. New arg search_path.
2152 (source_script_from_stream): New function.
2153 (source_script_with_search): New function.
2154 (source_script): Rewrite.
2155 (source_command): Parse "-s" option.
2156 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2157 * python/python.c (source_python_script): Make file arg a const char *.
2158 Don't call fclose, leave for caller.
2159 * python/python.h (source_python_script): Update.
2160
a86988f2
PA
21612010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2162 Pedro Alves <pedro@codesourcery.com>
2163
2164 Avoid rereading shared libraries that haven't changed.
2165
2166 * solib.c (free_so_symbols): New function, from ...
2167 (free_so): ... here. Call it.
2168 (solib_read_symbols): Don't warn here if symbols have already been
2169 loaded.
2170 (solib_add): Warn here instead, if a pattern was specified.
2171 (reload_shared_libraries_1): New.
2172 (reload_shared_libraries): Rewrite to not fetch the library list.
2173
e6d9b9c2
DE
21742010-04-14 Doug Evans <dje@google.com>
2175
589390d6 2176 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
2177 concatenating string to search path.
2178
516ba659
PA
21792010-04-14 Pedro Alves <pedro@codesourcery.com>
2180
2181 * objfiles.h (gdb_bfd_close_or_warn): Declare.
2182 * objfiles.c (gdb_bfd_close_or_warn): New.
2183 * corelow.c: Include objfiles.h
2184 (core_close): Use gdb_bfd_close_or_warn.
2185 * elfread.c (build_id_verify): Ditto.
2186 * exec.c (exec_close, exec_close_1): Ditto.
2187
048d532d
PA
21882010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2189 Pedro Alves <pedro@codesourcery.com>
2190
2191 Group errors for many missing shared libraries.
2192
2193 * solist.h (struct so_list): Remove from_tty.
2194 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2195 (solib_map_sections): Take so_list argument. Return 0 if we
2196 failed to open a BFD. Add target sections here.
2197 (symbol_add_stub): Delete.
2198 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
2199 not from_tty copied from the so_list. Don't warn a second time
2200 for a missing library.
2201 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
2202 add to the section table here. Print out a single warning for all
2203 missing libraries.
2204 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2205 flags.
2206
044c0f87
PM
22072010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2208
2209 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2210 error/warning messages. Capitalize and use complete sentences.
2211 (blpy_block_syms_iternext): Likewise.
2212 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2213 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2214 (frame_info_to_frame_object, frapy_read_var)
2215 (gdbpy_frame_stop_reason_string): Likewise.
2216 * python/py-lazy-string.c (stpy_convert_to_value)
2217 (gdbpy_create_lazy_string_object): Likewise.
2218 * python/py-objfile.c (objfpy_set_printers): Likewise.
2219 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2220 * python/python.c (parameter_to_python): Likewise.
2221 * python/py-type.c (typy_range, typy_target): Likewise.
2222 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2223 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2224
2225
79f283fe
PM
22262010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2227
2228 PR python/11381
2229
2230 * python/py-prettyprint.c (pretty_print_one_value): Test for
2231 Py_None.
2232 (print_string_repr): Test for Py_None. Set flags accordingly.
2233 Return value depending on return type.
2234 (print_children): Take a value indicating whether data was printed
2235 before this function was called. Alter output accordingly.
2236 (apply_val_pretty_printer): Capture return value from
2237 print_string_repr and pass to print_children.
2238
4ac5d44e
MK
22392010-04-13 Mark Kettenis <kettenis@gnu.org>
2240
e1caee70 2241 PR corefiles/11481
4ac5d44e
MK
2242 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2243 register note sections.
2244 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2245 New variables.
2246 (i386_linux_init_abi): Install list of supported register note
2247 sections that matches the target description.
2248
ad91cd99
PA
22492010-04-13 Pedro Alves <pedro@codesourcery.com>
2250
2251 * remote.c (remote_get_noisy_reply): Don't error out on empty
2252 replies.
2253 (remote_start_remote): Update and merge tracepoints and trace
2254 state variables as long as the target supports tracepoints.
2255 (remote_trace_init): Fix prototype.
2256 (remote_download_trace_state_variable): Validate reply.
2257 (remote_trace_set_readonly_regions): Fix prototype.
2258 (remote_trace_start): Fix prototype. Check for empty reply.
2259 (remote_get_trace_status): Small cleanup.
2260 (remote_trace_stop): Fix prototype. Check for empty reply.
2261 (remote_trace_find): Check for empty reply.
2262 (remote_save_trace_data): Validate reply.
2263 (remote_set_disconnected_tracing): Check for empty reply, and
2264 validate reply.
2265 (remote_set_circular_trace_buffer): Ditto.
2266
ae3bccd4
PM
22672010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
2268
2269 Suppress unused value warning during compilation.
2270 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2271 calls to void.
2272 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2273
523136f2
SS
22742010-04-12 Stan Shebs <stan@codesourcery.com>
2275
2276 * tracepoint.c (tfile_xfer_partial): Check read result.
2277
0d18d720
MF
22782010-04-12 Mike Frysinger <vapier@gentoo.org>
2279
2280 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2281 * remote-sim.c (gdbsim_files_info): Likewise.
2282
3b273a55
RE
22832010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2284
2285 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2286 * arm-linux-nat.c (arm_linux_vfp_register_count): New
2287 variable.
2288 (fetch_vfp_registers): New function to fetch VFP registers.
2289 (store_vfp_registers): New function to store VFP registers.
2290 (arm_linux_fetch_inferior_registers): Add support for VFP
2291 registers.
2292 (arm_linux_store_inferior_registers): Likewise.
2293 (arm_linux_read_description): Likewise.
2294 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2295 until we need it.
2296
778c7095
L
22972010-04-11 H.J. Lu <hongjiu.lu@intel.com>
2298
2299 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2300 tdep.
2301 (amd64_collect_xstateregset): Likewise.
2302
2114d44c
SS
23032010-04-09 Stan Shebs <stan@codesourcery.com>
2304
87290684
SS
2305 * tracepoint.c (trace_status_mi): Report frames created.
2306
2114d44c
SS
2307 * tracepoint.c (trace_dump_command): Include default-collect
2308 expressions.
2309
86da934b
UW
23102010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2311
2312 * symtab.c (find_function_start_sal): Never return SAL pointing
2313 before function start address, even if line info is missing.
2314
2d6e647a 23152010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
2316
2317 * NEWS: Mention tracepoints support.
2318
a97153c7
PA
23192010-04-09 Pedro Alves <pedro@codesourcery.com>
2320
2321 * tracepoint.c (trace_status_mi): Report disconnected tracing and
2322 circular trace buffer statuses.
2323
7a66d603
JK
23242010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 * config/djgpp/fnchange.lst: Fix typo in translations for
2327 symbol-without-target_section.exp and symbol-without-target_section.c.
2328
2566ad2d
PA
23292010-04-09 Pedro Alves <pedro@codesourcery.com>
2330
2331 * breakpoint.c (condition_command): Pass condition expression to
2332 set_breakpoint_condition stripped from breakpoint number.
2333
adc36818
PM
23342010-04-09 Phil Muldoon <pmuldoon@redhat.com>
2335 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 2336 Tom Tromey <tromey@redhat.com>
adc36818
PM
2337
2338 * breakpoint.c (condition_command): Simplify. Move condition
2339 setting code to ...
2340 (set_breakpoint_condition): ... here. New function.
2341 * breakpoint.h (set_breakpoint_condition): Declare.
2342 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2343 (SUBDIR_PYTHON_SRCS): Likewise.
2344 (py-breakpoint.o): New rule.
2345 * python/py-breakpoint.c: New file.
2346 * python/python-internal.h (gdbpy_breakpoints)
2347 (gdbpy_initialize_breakpoints): Declare.
2348 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2349
219f2f23
PA
23502010-04-09 Pedro Alves <pedro@codesourcery.com>
2351
2352 * regformats/regdat.sh: Include server.h. Don't include
2353 regcache.h.
2354
33da3f1c
SS
23552010-04-08 Stan Shebs <stan@codesourcery.com>
2356 Pedro Alves <pedro@codesourcery.com>
2357
2358 * tracepoint.h (struct trace_status): New fields disconnected_tracing
2359 and circular_buffer.
2360 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2361 * tracepoint.c (trace_status_command): Display target's status for
2362 disconnected tracing and circular buffer.
2363 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2364 query for non-disconnected-tracing case, remove the stop_tracing
2365 call.
2366 (tfile_open): Clear disconnected and circular buffer status.
2367 (trace_save): Save disconnected and circular buffer status.
2368 (parse_trace_status): Parse disconnected and circular buffer status,
2369 also recognize disconnected as a stop reason.
2370 * remote.c (remote_set_disconnected_tracing): Only set
2371 QTDisconnected if the remote end supports disconnected tracing.
2372 Warn otherwise, if trying to enable disconnected tracing.
2373 * infcmd.c (detach_command): Update disconnect_tracing call.
2374 * cli/cli-cmds.c (quit_command): Ditto.
2375
4e4d8374
L
23762010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2377
2378 * i387-tdep.c (i387_collect_xsave): Replace abort with
2379 internal_error.
2380
ad443146
SS
23812010-04-08 Stan Shebs <stan@codesourcery.com>
2382
2383 * breakpoint.c (default_collect_info): New function.
2384 (breakpoints_info): Call it.
2385 (maintenance_info_breakpoints): Ditto.
2386 (tracepoints_info): Ditto.
2387
40936b0d
L
23882010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2389
2390 * i387-tdep.c (i387_collect_xsave): Re-indent.
2391
3a13a53b
L
23922010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2393
2394 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2395 if HAVE_PTRACE_GETFPXREGS is defined.
2396 (i386_linux_read_description): Set have_ptrace_getfpxregs and
2397 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2398
2399 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2400 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2401 if .reg-xfp section doesn't exist.
2402 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2403
2404 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2405
2406 * i386-tdep.c: Include "features/i386/i386-mmx.c".
2407 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2408 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
2409 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2410 (i386_gdbarch_init): Update comments.
2411 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2412
2413 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2414
2415 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2416
2417 * features/Makefile (i386/i386-mmx-expedite): New.
2418 (i386/i386-mmx-linux-expedite): Likewise.
2419 ($(outdir)/i386/i386-mmx.dat): Likewise.
2420 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2421
2422 * features/i386/i386-mmx-linux.c: New.
2423 * features/i386/i386-mmx-linux.xml: Likewise.
2424 * features/i386/i386-mmx.c: Likewise.
2425 * features/i386/i386-mmx.xml: Likewise.
2426 * regformats/i386/i386-mmx-linux.dat: Likewise.
2427 * regformats/i386/i386-mmx.dat: Likewise.
2428
2429 * features/Makefile (WHICH): Add i386/i386-mmx and
2430 i386/i386-mmx-linux.
2431
08001717
DE
24322010-04-08 Doug Evans <dje@google.com>
2433
2434 * source.c (openp): Skip $cdir in PATH.
2435
fff5cc64
PM
24362010-04-08 Phil Muldoon <pmuldoon@redhat.com>
2437
2438 PR python/11417
fff5cc64 2439 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
2440 a NULL address.
2441 (gdbpy_create_lazy_string_object): Allow strings with a NULL
2442 address and a zero length.
fff5cc64 2443
f8c4f480
HZ
24442010-04-08 Hui Zhu <teawater@gmail.com>
2445
2446 * i386-tdep.c (i386_process_record): Add support for insn
2447 rdtsc.
2448
eb5cda86
DE
24492010-04-07 Doug Evans <dje@google.com>
2450
2451 * python/python.c (source_python_script): Use ensure_python_env
2452 to prepare environment for script.
2453
a055a187
L
24542010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2455
2456 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2457 <sys/uio.h> and "i386-xstate.h".
2458 (PTRACE_GETREGSET): New.
2459 (PTRACE_SETREGSET): Likewise.
2460 (have_ptrace_getregset): Likewise.
2461 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2462 registers.
2463 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2464 registers.
2465 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2466 (amd64_linux_store_inferior_registers): Likewise.
2467 (amd64_linux_read_description): Check and enable AVX target
2468 descriptions.
2469
2470 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2471 and "features/i386/amd64-avx-linux.c".
2472 (amd64_linux_regset_sections): New.
2473 (amd64_linux_core_read_description): Check and enable AVX
2474 target description.
2475 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
2476 set_gdbarch_core_regset_sections.
2477 (_initialize_amd64_linux_tdep): Call
2478 initialize_tdesc_amd64_avx_linux.
2479
2480 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2481 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2482 (tdesc_amd64_avx_linux): New.
2483 (amd64_linux_update_xstateregset): Likewise.
2484
2485 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2486 (amd64_ymm_names): New.
2487 (amd64_ymmh_names): Likewise.
2488 (amd64_register_name): Likewise.
2489 (amd64_supply_xstateregset): Likewise.
2490 (amd64_collect_xstateregset): Likewise.
2491 (amd64_supply_xsave): Likewise.
2492 (amd64_collect_xsave): Likewise.
2493 (AMD64_NUM_REGS): Removed.
2494 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2495 %xmmN if AVX is available.
2496 (amd64_pseudo_register_name): Support pseudo YMM registers.
2497 (amd64_regset_from_core_section): Support .reg-xstate section.
2498 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2499 and ymm0h_regnum. Call set_gdbarch_register_name.
2500 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2501
2502 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2503 AMD64_YMM15H_REGNUM.
2504 (AMD64_NUM_REGS): New.
2505 (amd64_supply_xsave): Likewise.
2506 (amd64_collect_xsave): Likewise.
2507 (amd64_register_name): Removed.
2508 (amd64_register_type): Likewise.
2509
31aeac78
L
25102010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2511
2512 * i387-tdep.c: Include "i386-xstate.h".
2513 (XSAVE_XSTATE_BV_ADDR): New.
2514 (xsave_avxh_offset): Likewise.
2515 (XSAVE_AVXH_ADDR): Likewise.
2516 (i387_supply_xsave): Likewise.
2517 (i387_collect_xsave): Likewise.
2518
2519 * i387-tdep.h (I387_NUM_YMM_REGS): New.
2520 (I387_YMM0H_REGNUM): Likewise.
2521 (I387_YMMENDH_REGNUM): Likewise.
2522 (i387_supply_xsave): Likewise.
2523 (i387_collect_xsave): Likewise.
2524
c131fcee
L
25252010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2526
2527 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2528 <sys/uio.h> and "i386-xstate.h".
2529 (PTRACE_GETREGSET): New.
2530 (PTRACE_SETREGSET): Likewise.
2531 (fetch_xstateregs): Likewise.
2532 (store_xstateregs): Likewise.
2533 (GETXSTATEREGS_SUPPLIES): Likewise.
2534 (regmap): Include 8 upper YMM registers.
2535 (i386_linux_fetch_inferior_registers): Support XSAVE extended
2536 state.
2537 (i386_linux_store_inferior_registers): Likewise.
2538 (i386_linux_read_description): Check and enable AVX target
2539 descriptions.
2540
2541 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2542 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2543 (i386_linux_regset_sections): Add ".reg-xstate".
2544 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2545 (i386_linux_core_read_xcr0): New.
2546 (i386_linux_core_read_description): Check and enable AVX target
2547 description.
2548 (i386_linux_init_abi): Set xsave_xcr0_offset.
2549 (_initialize_i386_linux_tdep): Call
2550 initialize_tdesc_i386_avx_linux.
2551
2552 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2553 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2554 (i386_linux_core_read_xcr0): New.
2555 (tdesc_i386_avx_linux): Likewise.
2556 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2557
2558 * i386-tdep.c: Include "i386-xstate.h" and
2559 "features/i386/i386-avx.c".
2560 (i386_ymm_names): New.
2561 (i386_ymmh_names): Likewise.
2562 (i386_ymmh_regnum_p): Likewise.
2563 (i386_ymm_regnum_p): Likewise.
2564 (i386_xmm_regnum_p): Likewise.
2565 (i386_register_name): Likewise.
2566 (i386_ymm_type): Likewise.
2567 (i386_supply_xstateregset): Likewise.
2568 (i386_collect_xstateregset): Likewise.
2569 (i386_sse_regnum_p): Removed.
2570 (i386_pseudo_register_name): Support pseudo YMM registers.
2571 (i386_pseudo_register_type): Likewise.
2572 (i386_pseudo_register_read): Likewise.
2573 (i386_pseudo_register_write): Likewise.
2574 (i386_dbx_reg_to_regnum): Return %ymmN register number for
2575 %xmmN if AVX is available.
2576 (i386_regset_from_core_section): Support .reg-xstate section.
2577 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2578 (i386_process_record): Replace i386_sse_regnum_p with
2579 i386_xmm_regnum_p.
2580 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2581 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 2582 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
2583 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
2584 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
2585 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
2586 Set ymm0_regnum.
2587 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
2588
2589 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
2590 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
2591 i386_ymm_type.
2592 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
2593 (I386_AVX_NUM_REGS): New.
2594 (i386_xmm_regnum_p): Likewise.
2595 (i386_ymm_regnum_p): Likewise.
2596 (i386_ymmh_regnum_p): Likewise.
2597
2598 * common/i386-xstate.h: New.
2599
98adf0f3
L
26002010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2601
2602 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
2603
2604 * features/Makefile (WHICH): Add i386/i386-avx,
2605 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
2606 (i386/i386-avx-expedite): New.
2607 (i386/i386-avx-linux-expedite): Likewise.
2608 (i386/x86-64-avx-expedite):Likewise.
2609 (i386/x86-64-avx-linux-expedite): Likewise.
2610 ($(outdir)/i386/i386-avx.dat): New dependency.
2611 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
2612 ($(outdir)/i386/x86-avx-64.dat): Likewise.
2613 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
2614
2615 * features/i386/32bit-avx.xml: New.
2616 * features/i386/64bit-avx.xml: Likewise.
2617 * features/i386/i386-avx-linux.c: Likewise.
2618 * features/i386/i386-avx-linux.xml: Likewise.
2619 * features/i386/i386-avx.c: Likewise.
2620 * features/i386/i386-avx.xml: Likewise.
2621 * features/i386/x86-64-avx-linux.c: Likewise.
2622 * features/i386/x86-64-avx-linux.xml: Likewise.
2623 * features/i386/x86-64-avx.c: Likewise.
2624 * features/i386/x86-64-avx.xml: Likewise.
2625 * regformats/i386/i386-avx-linux.dat: Likewise.
2626 * regformats/i386/i386-avx.dat: Likewise.
2627 * regformats/i386/x86-64-avx-linux.dat: Likewise.
2628 * regformats/i386/x86-64-avx.dat: Likewise.
2629
05159abe
DE
26302010-04-07 Doug Evans <dje@google.com>
2631
2632 * top.c (source_file_name): Make const char *.
2633 * top.h (source_file_name): Update.
2634 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
2635 const char *.
2636 (script_from_file): Change `file' arg to const char *.
2637 * cli/cli-script.h (script_from_file): Update.
2638
96e39866
DE
26392010-04-06 Doug Evans <dje@google.com>
2640
2641 * cli/cli-cmds.c (source_command): Run cleanups.
2642
3149d8c1
SS
26432010-04-06 Stan Shebs <stan@codesourcery.com>
2644
2645 * defs.h (char_ptr): Move typedef here from...
2646 * ada-lang.c (char_ptr): Remove.
2647 * charset.c (char_ptr): Remove.
2648 * tracepoint.h (struct uploaded_string): Remove.
2649 (struct uploaded_tp): Use vectors for string arrays.
2650 * tracepoint.c (trace_save): Use vectors of actions.
2651 (parse_tracepoint_definition): Ditto.
2652 (get_uploaded_tp): Clear vectors.
2653 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
2654 (next_cmd): Change to an int.
2655 (read_next_cmd): Use vector of command strings.
2656
4cc23ede
DE
26572010-04-06 Doug Evans <dje@google.com>
2658
2659 * top.h (source_script, cd_command): Delete.
2660 * main.c: #include "cli/cli-cmds.h"
2661
bd333fb7
KB
26622010-04-06 Kevin Buettner <kevinb@redhat.com>
2663
2664 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
2665 type in bytes, not bits.
2666
ec8a089a
PM
26672010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
2668
2669 * stabsread.c (define_symbol): Add support for char
2670 and string constants.
2671
2244ba2e
PM
26722010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
2673
2674 Remove remaining "%ll" uses.
2675 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
2676 hex_string call.
2677 * rs6000-nat.c (rs6000_ptrace64): Idem.
2678 * solib-pa64.c (pa64_current_sos): Idem.
2679 * solib-spu.c (spu_current_sos): Idem.
2680 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
2681 plongest call.
2682 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
2683 phex (VAR, 8) call.
2684 * sh64-tdep.c (sh64_show_media_regs): Idem.
2685
fce3c1f0
SS
26862010-04-05 Stan Shebs <stan@codesourcery.com>
2687
2688 * tracepoint.c: Include gdbcore.h.
2689 (tfile_xfer_partial): Return partial results, also try reading
2690 from executable.
2691 (tfile_has_all_memory): New function.
2692 (init_tfile_ops): Use it.
2693
626ea16d
SDJ
26942010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
2695
2696 PR gdb/10736:
2697 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
2698 the changes in data-directory.
2699 (init_sysinfo): Reload the syscall XML file if the data-directory
2700 has changed.
2701
1f7ccab2
JK
27022010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2703
2704 Code cleanup.
2705 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
2706
d77f58be
SS
27072010-04-04 Stan Shebs <stan@codesourcery.com>
2708 Nathan Sidwell <nathan@codesourcery.com>
2709
2710 * breakpoint.c (breakpoint_1): Add filter argument, return number of
2711 breakpoints printed.
2712 (is_hardware_watchpoint): Make argument const.
2713 (is_watchpoint): Ditto.
2714 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
2715 use it everywhere.
2716 (breakpoints_info): Pass NULL to breakpoint_1.
2717 (maintenance_info_breakpoints): Ditto.
2718 (watchpoints_info): New function.
2719 (tracepoints_info): Use breakpoint_1 filter.
2720 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
2721 (_initialize_breakpoint): Make "info watchpoints" its own command.
2722 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
2723 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
2724
af54718e
SS
27252010-04-04 Stan Shebs <stan@codesourcery.com>
2726
2727 * tracepoint.c (tfile_fetch_registers): Add fallback case.
2728
74d1f91e
JK
27292010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2730
2731 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
2732 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
2733
91d91ceb
JK
27342010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
2737 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
2738
60531b24
JK
27392010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2740
2741 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
2742 code form.
2743
a3c4230a
HZ
27442010-04-02 Hui Zhu <teawater@gmail.com>
2745
2746 * i386-tdep.c (OT_DQUAD): New enum.
2747 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
2748 SSE3, SSSE3 and SSE4.
2749
b15758fe
HZ
27502010-04-02 Hui Zhu <teawater@gmail.com>
2751
2752 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
2753 "*addr = 0".
2754
afd02f27
PA
27552010-04-02 Pedro Alves <pedro@codesourcery.com>
2756
2757 * tracepoint.c (trace_dump_actions): New, factored out from
2758 trace_dump_command, and adjusted to recurse into while-stepping's
2759 action list.
2760 (trace_dump_command): Use it.
2761
5cea2a26
PA
27622010-04-02 Pedro Alves <pedro@codesourcery.com>
2763
2764 * breakpoint.h (struct counted_command_line): Moved definition to
2765 breakpoint.c, and forward declare.
2766 (breakpoint_commands): Declare.
2767 * breakpoint.c (struct counted_command_line): Moved here.
2768 (breakpoint_commands): New.
2769 * tracepoint.c (encode_actions): Use breakpoint_commands.
2770 * remote.c (remote_download_tracepoint): Ditto.
2771
7c47795c
L
27722010-04-01 H.J. Lu <hongjiu.lu@intel.com>
2773
2774 * remote.c (remote_parse_stop_reply): Use hex_string instead
2775 of phex_nz for error.
2776
fff87407
SS
27772010-04-01 Stan Shebs <stan@codesourcery.com>
2778 Nathan Sidwell <nathan@codesourcery.com>
2779
2780 * tracepoint.h (enum actionline_type): Remove.
2781 (validate_actionline): Change return to void.
2782 * tracepoint.c (report_agent_reqs_errors): New function.
2783 (validate_actionline): Call it, change return to void, report errors
2784 more consistently.
2785 (collect_symbol): Call report_agent_reqs_errors.
2786 (encode_actions_1): Ditto.
2787 (encode_actions): Don't expect a result from validate_actionline.
2788
615bcdef
SS
27892010-04-01 Stan Shebs <stan@codesourcery.com>
2790
2791 * tracepoint.c (trace_start_command): Confirm if trace is running.
2792 (trace_stop_command): Error if trace not running.
2793
fe01d668
L
27942010-04-01 H.J. Lu <hongjiu.lu@intel.com>
2795
2796 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
2797 (AMD64_NUM_LOWER_BYTE_REGS): New.
2798 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
2799 (amd64_pseudo_register_write): Likewise.
2800 (amd64_init_abi): Set num_byte_regs to 20.
2801
86b17b60
PA
28022010-04-01 Pedro Alves <pedro@codesourcery.com>
2803
2804 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
2805 (prev_breakpoint_count): New.
2806 (set_breakpoint_count): Adjust.
2807 (rbreak_start_breakpoint_count): New.
2808 (start_rbreak_breakpoints): Adjust.
2809 (end_rbreak_breakpoints): Adjust.
2810 (struct commands_info) <arg>: New field.
2811 (do_map_commands_command): Tweak output to include breakpoint spec
2812 range.
2813 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
2814 ARG was empty on entry. Set INFO's arg.
2815 (create_breakpoint): Adjust.
2816
2817 * NEWS: Clarify `commands' changes.
2818
2c58c0a9
PA
28192010-04-01 Pedro Alves <pedro@codesourcery.com>
2820
2821 * tracepoint.c: Include stack.h.
2822 (struct add_local_symbols_data): New.
2823 (do_collect_symbol): New.
2824 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
2825 iterate_over_block_local_vars.
2826 * stack.c (print_block_frame_locals): Rewrite as ...
2827 (iterate_over_block_locals): ... this. Take a callback function
2828 pointer and generic data pointer, and call that instead of
2829 print_variable_and_value.
2830 (struct print_variable_and_value_data): New.
2831 (do_print_variable_and_value): New.
2832 (iterate_over_block_local_vars): New, abstracted out from
2833 print_frame_local_vars.
2834 (print_frame_local_vars): Rewrite using
2835 iterate_over_block_local_vars.
2836 (iterate_over_block_arg_vars): New, abstracted out from
2837 print_frame_arg_vars.
2838 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
2839 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
2840 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
2841
d476da0e
RE
28422010-03-31 Richard Earnshaw <rearnsha@arm.com>
2843
2844 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 2845 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
2846 PC register.
2847
8072405b
JK
28482010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2849
2850 Fix crash on reading wrong function declaration DWARF.
2851 * dwarf2read.c (read_subroutine_type): New variable void_type.
2852 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
2853 more close to their use.
2854
8bf6485c
SS
28552010-03-31 Stan Shebs <stan@codesourcery.com>
2856
2857 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 2858 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
2859 * tracepoint.c (save_trace_state_variables): New function.
2860 * tracepoint.h (save_trace_state_variables): Declare it.
2861
2ae2a0b7
PM
28622010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
2863
1a161f72 2864 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 2865
86ffb506
KS
28662010-03-30 Keith Seitz <keiths@redhat.com>
2867
2868 * c-typeprint.c (c_type_print_args): Don't print "void"
2869 for java, regardless of whether it is TYPE_PROTOTYPED.
2870 Use the passed-in language instead of current_language.
2871 (c_type_print_varspec_suffix): Use current_language instead
2872 of assuming language_c.
2873 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
2874 any return type specifier from the physname.
2875
956c2c8b
PA
28762010-03-30 Pedro Alves <pedro@codesourcery.com>
2877
2878 * tui/tui-interp.c (tui_is_toplevel): New.
2879 (tui_init): Set it.
2880 (tui_allowed_p): New.
2881 * tui/tui.c (tui_enable): Check if the TUI is allowed before
2882 enabling it.
2883 * tui/tui.h (tui_allowed_p): Declare.
2884
98e5a990
TT
28852010-03-30 Ozkan Sezer <sezeroz@gmail.com>
2886
2887 * serial.h: Include winsock2.h before windows.h.
2888
c8d5aac9
L
28892010-03-30 H.J. Lu <hongjiu.lu@intel.com>
2890
2891 * NEWS: Mention xmlRegisters= in qSupported packet.
2892
2893 * i386-tdep.c: Include "remote.h".
2894 (_initialize_i386_tdep): Call register_remote_support_xml.
2895
2896 * remote.c (remote_support_xml): New.
2897 (register_remote_support_xml): Likewise.
2898 (remote_query_supported_append): Likewise.
2899 (remote_query_supported): Support remote_support_xml.
2900
2901 * remote.h (register_remote_support_xml): New.
2902
76a2b958
SS
29032010-03-29 Stan Shebs <stan@codesourcery.com>
2904
42e08e69
SS
2905 * tracepoint.c (trace_find_line_command): Remove dead code.
2906
409873ef
SS
2907 * tracepoint.h (struct uploaded_string): New struct.
2908 (struct uploaded_tp): New fields for source strings.
2909 * breakpoint.c (this_utp, next_cmd): New globals.
2910 (read_uploaded_action): New function.
2911 (create_tracepoint_from_upload): Fill in more parts
2912 of a tracepoint.
2913 * tracepoint.c (encode_source_string): New function.
2914 (trace_save): Write out source strings, fix error checks.
2915 (parse_tracepoint_definition): Add source string parsing.
2916 * remote.c (PACKET_TracepointSource): New packet type.
2917 (remote_download_command_source): New function.
2918 (remote_download_tracepoint): Download source pieces also.
2919 (_initialize_remote): Add packet config command.
2920
a0405854
SS
2921 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
2922 expression handler.
2923
76a2b958
SS
2924 * tracepoint.c (start_tracing): Check tracepoints before sending
2925 commands to target, don't start if all tracepoints disabled.
2926
d350db38
PA
29272010-03-28 Pedro Alves <pedro@codesourcery.com>
2928
12f2d601 2929 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 2930
8b9b7ef8
SS
29312010-03-26 Stan Shebs <stan@codesourcery.com>
2932
2933 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
2934
9766ced4
SS
29352010-03-26 Tom Tromey <tromey@redhat.com>
2936
2937 * breakpoint.c (commands_command_1): Duplicate 'arg'.
2938
059acae7
UW
29392010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2940
2941 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
2942 (skip_prologue_sal): Remove local definition.
2943 (resolve_sal_pc): Remove now unnecessary code.
2944 * linespec.c (minsym_found): Call skip_prologue_sal.
2945 * symtab.c (find_function_start_pc): Remove.
2946 (find_function_start_sal): Extract prologue skipping into ...
2947 (skip_prologue_sal): ... this new function. Handle code both
2948 with and without debug info. Respect SAL's explicit_pc and
2949 explicit_line flags. Inline old find_function_start_pc.
2950 * symtab.h (find_function_start_pc): Remove.
2951 (skip_prologue_sal): Add prototype.
2952
4a811a97
UW
29532010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2954
2955 * dwarf2read.c (read_func_scope): Also scan specification DIEs
2956 for DW_TAG_imported_module children.
2957
907af001
UW
29582010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2959
2960 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
2961 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
2962 * completer.c (add_struct_fields): Fix inverted logic.
2963
dde2d684
UW
29642010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2965
2966 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
2967
a609a0c8
PA
29682010-03-26 Pedro Alves <pedro@codesourcery.com>
2969
2970 * tracepoint.c (current_trace_status): Don't make sure error_desc
2971 is non-NULL here.
2972 (parse_trace_status): Release a previous error_desc string, and
2973 set it to NULL by default. If stop reason is tracepoint_error,
2974 make sure error_desc is not left NULL.
2975
610197fd
PA
29762010-03-26 Pedro Alves <pedro@codesourcery.com>
2977
2978 * tracepoint.c (trace_save): Remove X from tracepoint error
2979 description.
2980
99b5e152
PA
29812010-03-26 Pedro Alves <pedro@codesourcery.com>
2982
2983 * tracepoint.c (parse_trace_status): Don't allow plain strings in
2984 the terror description. Don't expect an X prefix.
2985
6c28cbf2
SS
29862010-03-25 Stan Shebs <stan@codesourcery.com>
2987
2988 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
2989 (struct trace_status): New field error_desc.
2990 * tracepoint.c (stop_reason_names): Add terror.
2991 (current_trace_status): Ensure non-NULL error description.
2992 (trace_status_command): Add error report.
2993 (trace_status_mi): Ditto.
2994 (trace_save): Add special case for error description.
2995 (parse_trace_status): Add case for errors.
2996
418835cc
KS
29972010-03-25 Keith Seitz <keiths@redhat.com>
2998
2999 * dwarf2read.c (read_subroutine_type): If the compilation unit
3000 language is Java, mark any formal parameter named "this" as
3001 artificial (GCC/43521).
3002 (dwarf2_name): Add special handling for Java constructors.
3003
aa7d318d
TT
30042010-03-25 Tom Tromey <tromey@redhat.com>
3005
3006 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3007 * infrun.c (handle_inferior_event): Change initialization of
3008 stop_stack_dummy.
3009 (handle_inferior_event): Change assignment to stop_stack_dummy.
3010 (normal_stop): Update use of stop_stack_dummy.
3011 (struct inferior_status) <stop_stack_dummy>: Change type.
3012 * inferior.h (stop_stack_dummy): Update.
3013 * infcmd.c (stop_stack_dummy): Change type.
3014 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3015 function.
3016 (call_function_by_hand): Call set_std_terminate_breakpoint.
3017 Rewrite std::terminate handling.
3018 * breakpoint.h (enum bptype) <bp_std_terminate,
3019 bp_std_terminate_master>: New.
3020 (enum stop_stack_kind): New.
3021 (struct bpstat_what) <call_dummy>: Change type.
3022 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3023 Declare.
3024 * breakpoint.c (create_std_terminate_master_breakpoint): New
3025 function.
3026 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3027 Call create_std_terminate_master_breakpoint.
3028 (print_it_typical): Handle new breakpoint kinds.
3029 (bpstat_stop_status): Handle bp_std_terminate_master.
3030 (bpstat_what): Correctly set call_dummy field. Handle
3031 bp_std_terminate_master and bp_std_terminate.
3032 (print_one_breakpoint_location): Update.
3033 (allocate_bp_location): Update.
3034 (set_std_terminate_breakpoint): New function.
3035 (delete_std_terminate_breakpoint): Likewise.
3036 (create_thread_event_breakpoint): Update.
3037 (delete_command): Update.
3038 (breakpoint_re_set_one): Update.
3039 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3040
82ccf5a5
JK
30412010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3042
3043 * symfile.c (build_section_addr_info_from_bfd): New.
3044 (build_section_addr_info_from_objfile): Base it on
3045 build_section_addr_info_from_bfd.
3046 (addrs_section_compar, addrs_section_sort): New.
3047 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3048 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3049 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3050
737c4c52
MS
30512010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3052
8d95cc3b 3053 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
3054 Remove unused local variable.
3055
95a42b64
TT
30562010-03-24 Tom Tromey <tromey@redhat.com>
3057
3058 PR breakpoints/9352:
3059 * NEWS: Mention changes to `commands' and `rbreak'.
3060 * symtab.c (do_end_rbreak_breakpoints): New function.
3061 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3062 end_rbreak_breakpoints.
3063 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3064 (set_breakpoint_count): Likewise. Clear last_was_multi.
3065 (multi_start, multi_end, last_was_multi): New globals.
3066 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3067 functions.
3068 (struct commands_info): New
3069 (do_map_commands_command): New function.
3070 (commands_command_1): New function.
3071 (commands_command): Use it.
3072 (commands_from_control_command): Likewise.
3073 (do_delete_breakpoint): New function.
3074 (delete_command): Use it.
3075 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3076 (do_map_disable_breakpoint): New function.
3077 (disable_command): Use it.
3078 (do_map_enable_breakpoint): New function.
3079 (enable_command): Use it.
3080 (enable_once_breakpoint): Add argument.
3081 (enable_once_command): Update.
3082 (enable_delete_breakpoint): Add argument.
3083 (enable_delete_command): Update.
3084 (break_command_really): Set last_was_multi when needed.
3085 (check_tracepoint_command): Fix formatting.
3086 (validate_commands_for_breakpoint): New function.
3087 (breakpoint_set_commands): Use it.
3088 (tracepoint_save_command): Update.
3089 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3090 Declare.
3091
9add0f1b
TT
30922010-03-24 Tom Tromey <tromey@redhat.com>
3093
3094 * breakpoint.h (struct counted_command_line): New struct.
3095 (struct breakpoint) <commands>: Change type.
3096 (struct bpstats) <commands>: Change type.
3097 <commands_left>: New field.
3098 * breakpoint.c (alloc_counted_command_line): New function.
3099 (incref_counted_command_line): Likewise.
3100 (decref_counted_command_line): Likewise.
3101 (do_cleanup_counted_command_line): Likewise.
3102 (make_cleanup_decref_counted_command_line): Likewise.
3103 (breakpoint_set_commands): Use decref_counted_command_line and
3104 alloc_counted_command_line.
3105 (commands_command): Don't error if breakpoint commands are
3106 executing.
3107 (commands_from_control_command): Likewise.
3108 (bpstat_free): Update.
3109 (bpstat_copy): Likewise.
3110 (bpstat_clear_actions): Likewise.
3111 (bpstat_do_actions_1): Likewise.
3112 (bpstat_stop_status): Likewise.
3113 (print_one_breakpoint_location): Likewise.
3114 (delete_breakpoint): Likewise.
3115 (bpstat_alloc): Initialize new field.
3116 (tracepoint_save_command): Update.
3117 * tracepoint.c (encode_actions): Update.
3118 (trace_dump_command): Update.
3119
a6c727b2
DJ
31202010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3121
3122 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3123 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3124 (read_structure_type): For RealView, set TYPE_STUB on structures with
3125 no byte size and no children.
3126 (read_subroutine_type): Mark functions as prototyped by default.
3127 * symtab.c (producer_is_realview): New function.
3128 * symtab.h (expand_line_sal): Fix declaration formatting.
3129 (producer_is_realview): Declare.
3130
0d39a070
DJ
31312010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3132
3133 * arm-tdep.c (skip_prologue_function): New function.
3134 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3135 (thumb_analyze_prologue): Document return value. Recognize more
3136 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3137 Add debug output.
3138 (arm_skip_prologue): Remove call dummy check. Check the prologue
3139 for non-GNU compilers.
3140 (arm_instruction_changes_pc): New function.
3141 (arm_analyze_prologue): New function, broken out from
3142 arm_scan_prologue. Recognize more ARM instructions and skippable
3143 calls. Update comments. Handle NULL cache. Return the address
3144 of the first unrecognized instruction. Do not skip past other
3145 instructions which change control flow. Add debug output.
3146 (arm_scan_prologue): Use arm_analyze_prologue.
3147 (ARM_PC_32): Delete.
3148 (shifted_reg_val): Simplify ARM_PC_32 check.
3149
4baf5cf4
VP
31502010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3151
3152 * tracepoint.c (tvariables_info_1): Actually compute
3153 the number of rows in the result.
3154
4a5e7a5b
PA
31552010-03-24 Pedro Alves <pedro@codesourcery.com>
3156
3157 * remote.c (crc32): Constify `buf' parameter.
3158 (remote_verify_memory): New, abstracted out from...
3159 (compare_sections_command): ... this. Remove hardcoded target
3160 checks.
3161 (init_remote_ops): Install remote_verify_memory.
3162 * target.c (target_verify_memory): New.
3163 * target.h (struct target_ops) <to_verify_memory>: New field.
3164 (target_verify_memory): Declare.
3165
011aacb0
VP
31662010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3167
3168 Implement -trace-save.
3169
3170 * mi-cmds.h (mi_cmds_trace_save): Declare.
3171 * mi-cmds.c (mi_cmds): Register -trace-save.
3172 * mi/mi-main.c (mi_cmd_trace_save): New.
3173 * remote.c (remote_save_trace_data): Take const parameter.
3174 * target.h (struct target_ops::to_save_trace_data): Take
3175 const parameter.
3176 * target.c (update_current_target): Adjust to the above.
3177 * tracepoint.c (trave_save): New, extracted from
3178 (trace_save_command): ...this.
3179 (tfile_trace_find): Remove message that is unnecessary now
3180 that 'tfind' reports found frame.
3181 * tracepoint.h (trace_save): Declare.
3182
f197e0f1
VP
31832010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3184
3185 Implement -trace-find.
3186
3187 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3188 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3189 * mi/mi-main.c (mi_cmd_trace_find): New.
3190 * target.h (struct target_ops): Document to_trace_find.
3191 * tracepoint.h (tfind_1): Declare.
3192 * tracepoint.c (finish_tfind_command): Rename to...
3193 (tfind_1): ...this.
3194 * remote.c (remote_trace_find): Return -1 if target say
3195 there's no frame. Improve error diagnostics.
3196
40e1c229
VP
31972010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3198
3199 -trace-define-variable and -trace-list-variables.
3200
3201 * tracepoint.c (create_trace_state_variable): Make
3202 private copy of name, as opposed to assuming the
3203 pointer lives forever.
3204 (tvariables_info_1): New.
3205 (tvariables_info): Use the above.
3206 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3207 Declare.
3208 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3209 and -trace-list-variables.
3210 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3211 (mi_cmd_trace_list_variables): New.
3212 * mi/mi-main.c (mi_cmd_trace_define_variable)
3213 (mi_cmd_trace_list_variables): New.
3214
9b4c786c
VP
32152010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3216
3217 Implement -break-passcount.
3218
3219 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3220 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3221 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3222
f224b49d
VP
32232010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3224
3225 -trace-start/-trace-end/-trace-status.
3226
3227 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3228 and -trace-stop.
3229 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3230 (mi_cmd_trace_stop): Declare.
3231 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3232 (mi_cmd_trace_stop): New.
3233 * tracepoint.c (start_tracing): New, extracted from...
3234 (trace_start_command): ...this.
3235 (trace_status_mi): New.
3236 * tracepoint.h (struct trace_status): Document
3237 stopping_tracepoint.
3238 (start_tracing, stop_tracing, trace_status_mi): Declare.
3239
6534d786
VP
32402010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3241
3242 Implement creating tracepoints with -break-insert.
3243
3244 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3245 to mean that tracepoint should be created.
3246
51661e93
VP
32472010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3248
3249 * breakpoint.c (check_no_tracepoint_commands): Use
3250 current spelling of 'teval'.
3251
a7bdde9e
VP
32522010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3253
3254 Unify actions and commands
3255
3256 * defs.h (read_command_lines, read_command_lines_1): New
3257 parameters validator and closure.
3258 * tracepoint.h (struct action_line): Remove.
3259 * breakpoint.h (struct breakpoint): Remove the 'actions'
3260 field.
3261 * defs.h (enum command_control_type): New value
3262 while_stepping_control.
3263 (struct command_line): Add comments.
3264 * breakpoint.c (breakoint_is_tracepoint): New.
3265 (breakpoint_set_commands): For tracepoints,
3266 verify the commands are permissible.
3267 (check_tracepoint_commands): New.
3268 (commands_command): Require that each new line is validated using
3269 check_tracepoint_command, if we set commands for a tracepoint.
3270 (create_tracepoint_from_upload): Likewise.
3271 (print_one_breakpoint_location): Remove the code to print
3272 actions specifically.
3273 (tracepoint_save_command): Relay to print_command_lines.
3274 * cli/cli-script.c (process_next_line): New parameters validator
3275 and closure. Handle 'while-stepping'. Call validator if not null.
3276 (read_command_lines, read_command_lines1): Likewise.
3277 (recurse_read_control_structure): New parameters validator and
3278 closure. Handle while_stepping_control.
3279 (print_command_lines): Handle while-stepping.
3280 (get_command_line, define_command, document_command): Adjust.
3281 * remote.c (remote_download_tracepoint): Adjust.
3282 * tracepoint.c (make_cleanup_free_actions, read_actions)
3283 (free_actions, do_free_actions_cleanup): Remove.
3284 (trace_actions_command): Use read_command_lines.
3285 (validate_actionline): Use error in one place.
3286 (encode_actions_1): New, extracted from...
3287 (encode_actions): ...this. Also use cleanups for exception
3288 safety.
3289 (trace_dump_command): Adjust.
3290 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3291 it's tracepoint.
3292
64e3cf3d
MF
32932010-03-23 Mike Frysinger <vapier@gentoo.org>
3294
3295 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3296
52e9fde8
SS
32972010-03-22 Stan Shebs <stan@codesourcery.com>
3298
3299 * value.c (value_static_field): Be lazy about the field's value.
3300
508ccb1f
TT
33012010-03-22 Reid Kleckner <reid@kleckner.net>
3302
3303 PR gdb/11094
3304 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3305 bp_jit_event.
3306 (disable_breakpoints_in_shlibs): Likewise.
3307
acebe513
UW
33082010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3309
3310 * dwarf2read.c (partial_die_parent_scope): Work around buggy
3311 GCC 4.1 debug info generation (GCC PR c++/28460).
3312 (determine_prefix): Likewise.
3313
957b8b5a
DJ
33142010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
3315
3316 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3317 get_current_arch.
3318 * tui/tui-layout.c (extract_display_start_addr): Likewise.
3319
3b11a015
SS
33202010-03-19 Stan Shebs <stan@codesourcery.com>
3321
3322 * ax-gdb.c (gen_fetch): Handle bool.
3323 (gen_usual_unary): Ditto.
3324 (gen_cast): Ditto.
3325 (gen_equal): New function.
3326 (gen_less): New function.
3327 (gen_expr_binop_rest): Call them, also return integer type from
3328 logical operations.
3329 (gen_expr): Ditto.
3330
20781792
TT
33312010-03-19 Tom Tromey <tromey@redhat.com>
3332
3333 * jv-lang.c (jv_dynamics_objfile_data_key)
3334 (jv_type_objfile_data_key): New globals.
3335 (class_symtab): Move earlier.
3336 (jv_per_objfile_free): New function.
3337 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
3338 parameter.
3339 Remove ancient #if 1.
3340 (add_class_symbol): Remove redundant declaration.
3341 (java_lookup_class): Use alloc_type, not alloc_type_arch.
3342 (java_link_class_type): Mark as static. Update.
3343 (jv_clear_object_type): New function.
3344 (set_java_object_type): Likewise.
3345 (get_java_object_type): Use set_java_object_type.
3346 (is_object_type): Likewise.
3347 (_initialize_java_language): Register new objfile keys.
3348 (get_java_class_symtab): Add 'gdbarch' parameter.
3349 (add_class_symtab_symbol): Update.
3350 (type_from_class): Update.
3351
cf3e25ca
SS
33522010-03-19 Stan Shebs <stan@codesourcery.com>
3353
8d95cc3b 3354 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 3355
f1ae44c9 33562010-03-18 Joel Brobecker <brobecker@adacore.com>
3357
3358 GDB 7.1 released.
3359
4daf5ac0
SS
33602010-03-18 Stan Shebs <stan@codesourcery.com>
3361 Pedro Alves <pedro@codesourcery.com>
3362
3363 * target.h (struct target_ops): New method
3364 to_set_circular_trace_buffer.
3365 (target_set_circular_trace_buffer): New macro.
3366 * target.c (update_current_target): Add
3367 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3368 default behavior.
3369 * remote.c (remote_set_circular_trace_buffer): New function.
3370 (init_remote_ops): Add it to vector.
3371 * tracepoint.h (struct trace_status): New field traceframes_created,
3372 change buffer_size and buffer_free to int.
3373 * tracepoint.c (circular_trace_buffer): New global.
3374 (start_tracing): Send values of disconnected tracing and circular
3375 trace buffer settings.
3376 (set_circular_trace_buffer): New function.
3377 (parse_trace_state): Handle total space and frames created.
3378 (trace_status_command): Display total space and total frames
3379 created.
3380 (trace_save): Write out new status values.
3381 (parse_trace_status): Set traceframe_count, traceframes_created,
3382 buffer_free and buffer_size to -1 by default.
3383 (_initialize_tracepoint): New setshow for circular-trace-buffer.
3384 * NEWS: Mention the circular trace buffer option.
3385
40c549d6
TT
33862010-03-18 Tom Tromey <tromey@redhat.com>
3387
3388 * infcmd.c (finish_command_continuation): Wrap print_return_value
3389 in TRY_CATCH.
3390
e8d05480
JB
33912010-03-18 Joel Brobecker <brobecker@adacore.com>
3392
3393 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3394 DIE has a name before creating the associated partial symbol.
3395 (read_func_scope): Emit a complaint if the subprogram does not
3396 have a name or when we can't extract the subprogram PC bounds.
3397
441b986a
UW
33982010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3399
3400 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3401 instead of selected frame architecture.
3402
4247603b
PA
34032010-03-18 Pedro Alves <pedro@codesourcery.com>
3404
3405 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
3406 a valid selected thread, and that it is not running.
3407 (advance_command): Ditto.
3408 (finish_command): Ditto.
3409
400c6af0
SS
34102010-03-17 Stan Shebs <stan@codesourcery.com>
3411
3a96536b
SS
3412 * ax-gdb.c (require_rvalue): Disallow non-scalars.
3413
573cda03
SS
3414 * infcall.c: Include tracepoint.h.
3415 (call_function_by_hand): Disallow calls in tfind mode.
3416 * infcmd.c: Include tracepoint.h.
3417 (ensure_not_tfind_mode): New function.
3418 (continue_1): Call it.
3419 (step_1) Ditto.
3420 (jump_command): Ditto.
3421 (signal_command): Ditto.
3422 (advance_command): Ditto.
3423 (until_command): Ditto.
3424 (finish_command): Ditto.
3425 * tracepoint.h (disconnect_or_stop_tracing): Declare.
3426
400c6af0
SS
3427 * ax-gdb.h (struct axs_value): New field optimized_out.
3428 (gen_trace_for_var): Add gdbarch argument.
3429 * ax-gdb.c (gen_trace_static_fields): New function.
3430 (gen_traced_pop): Call it, add gdbarch argument.
3431 (gen_trace_for_expr): Update call to it.
3432 (gen_trace_for_var): Ditto, and report optimized-out variables.
3433 (gen_struct_ref_recursive): Check for optimized-out value.
3434 (gen_struct_elt_for_reference): Ditto.
3435 (gen_static_field): Pass gdbarch instead of expression, assume
3436 optimization if field not found.
3437 (gen_var_ref): Set the optimized_out flag.
3438 (gen_expr): Error on optimized-out variable.
3439 * tracepoint.c (collect_symbol): Handle struct-valued vars as
3440 expressions, skip optimized-out variables with computed locations.
3441 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3442 erroring out if location expression missing.
3443 (loclist_tracepoint_var_ref): Don't error out here.
3444
a3b2a86b
TT
34452010-03-17 Tom Tromey <tromey@redhat.com>
3446
3447 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3448 DWARF data is available.
3449
38963c97
DJ
34502010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3451
3452 * symfile.c (generic_load): Reset breakpoints after loading.
3453
ddabfc73
TT
34542010-03-17 Tom Tromey <tromey@redhat.com>
3455
3456 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3457
d8c09fb5
JK
34582010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3461 create_breakpoint call, adjust the parameters.
3462
bbb0eef6
JK
34632010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3464 Chandru <chandru@in.ibm.com>
3465
3466 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3467 * valarith.c (value_subscripted_rvalue): Suppress error if
3468 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3469
46956e39
HZ
34702010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
3471
3472 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3473
b8d088ac
JB
34742010-03-16 Joel Brobecker <brobecker@adacore.com>
3475
3476 * ada-tasks.c (task_command_1): Check that the task ptid is valid
3477 before doing the associated thread switch.
3478
322be962
DJ
34792010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3480
3481 * MAINTAINERS: Update my email address.
3482
8cdf0e15
VP
34832010-03-16 Vladimir Prus <vladimir@codesourcery.com>
3484
3485 Simplify MI breakpoint setting.
3486
3487 * breakpoint.c (break_command_really): Make nonstatic and
3488 rename to...
3489 (create_breakpoint): ...this. Rename prior function by this name
3490 to...
3491 (create_breakpoint_sal): ...this.
3492 (create_breakpoints): Rename to...
3493 (create_breakpoints_sal): ...this.
3494 (set_breakpoint): Remove.
3495 * breakpoint.h: Adjust to above changes.
3496 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3497
b6e7192f
SS
34982010-03-15 Stan Shebs <stan@codesourcery.com>
3499
3500 * ax-gdb.c: Include cp-support.h.
3501 (find_field): Remove.
3502 (gen_primitive_field): New function.
3503 (gen_struct_ref_recursive): New function.
3504 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3505 of find_field.
3506 (gen_static_field): New function.
3507 (gen_struct_elt_for_reference): New.
3508 (gen_namespace_elt): New.
3509 (gen_maybe_namespace_elt): New.
3510 (gen_aggregate_elt_ref): New.
3511 (gen_expr): Add OP_SCOPE, display opcode name in error message.
3512
1054b214
TT
35132010-03-15 Tom Tromey <tromey@redhat.com>
3514
3515 * dwarf2read.c (die_needs_namespace): Also return 0 for
3516 DW_TAG_subprogram.
3517
13387711
SW
35182010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
3519
3520 PR c++/7936:
3521 * cp-support.h: Added char *declaration element to using_direct
3522 data struct.
3523 (cp_add_using): Added char *declaration argument.
3524 (cp_add_using_directive): Ditto.
3525 (cp_lookup_symbol_imports): made extern.
3526 * cp-namespace.c: Updated with the above changes.
3527 * dwarf2read.c (read_import_statement): Ditto.
3528 (read_namespace): Ditto.
3529 (read_import_statement): Support import declarations.
3530 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3531 declarations.
3532 Added support for 'declaration_only' search.
3533 (cp_lookup_symbol_namespace): Attempt to search for the name as
3534 is before consideration of imports.
3535 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3536 search at every block level search.
3537 Now takes language argument.
3538 (lookup_symbol_aux): Updated.
3539
6e31430b
TT
35402010-03-15 Tom Tromey <tromey@redhat.com>
3541
3542 * c-exp.y (name_not_typename): Add 'operator' clause.
3543
4dea3bb7 35442010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
3545
3546 * configure.ac: Exit if ${gdb_target_obs}" is not set.
3547 * configure: Regenerate.
3548
4d9743af
JK
35492010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3552 and ".sdynbss". Update the comment.
3553
f75150fe
JZ
35542010-03-15 Jie Zhang <jie@codesourcery.com>
3555
3556 * MAINTAINERS: Update my email address.
3557
3c13bc11
DJ
35582010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3559
3560 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3561
43484f03
DJ
35622010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3563
3564 * charset.c [USE_WIN32API]: Include <windows.h>.
3565 (_initialize_charset): Correct type of w32_host_default_charset.
3566
5f25d77d
PA
35672010-03-14 Pedro Alves <pedro@codesourcery.com>
3568
3569 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3570
1c809c68
TT
35712010-03-12 Tom Tromey <tromey@redhat.com>
3572
3573 PR c++/9708:
3574 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3575 in a lexical block does not need a namespace.
3576 (new_symbol) <DW_TAG_variable>: Put extern variables on
3577 list_in_scope in all cases.
3578
948103cf
SS
35792010-03-12 Stan Shebs <stan@codesourcery.com>
3580
3581 * ax-gdb.c (gen_expr): Add shift expressions.
3582 (gen_expr_binop_rest): Ditto.
3583
00ae8fef
SW
35842010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
3585
3586 * buildsym.c (finish_block): Reset using_directives pointer
3587 after block initialization.
3588
9cad29ac
L
35892010-03-12 H.J. Lu <hongjiu.lu@intel.com>
3590
3591 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
3592 * i386-tdep.c (i386_word_names): Likewise.
3593
2f4d8875
PA
35942010-03-12 Pedro Alves <pedro@codesourcery.com>
3595
3596 * target.c (memory_xfer_partial): Don't use the stack cache if
3597 inspecting trace frames.
3598 * tracepoint.c (finish_tfind_command): Invalidate the target
3599 dcache.
3600
ccf26247
JK
36012010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3602
3603 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
3604 for the PIC displacement, print also the displacement value.
3605 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
3606
477c84a7
KB
36072010-03-10 Kevin Buettner <kevinb@redhat.com>
3608
3609 * remote-mips.c (close_ports, mips_initialize_cleanups)
3610 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
3611 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
3612 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
3613 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
3614 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
3615 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
3616 comments describing each of these functions.
3617 (mips_enter_debug, mips_exit_debug, common_open)
3618 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
3619 blank line after the comment describing the function.
3620
01c30d6e
JK
36212010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3622
3623 * solib-svr4.c (svr4_exec_displacement): Return now success, new
3624 parameter displacementp. Update comment.
3625 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
3626 element exists. Return if svr4_exec_displacement was not successful.
3627 Update comment.
3628
09919ac2
JK
36292010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3630 Daniel Jacobowitz <dan@codesourcery.com>
3631
3632 * solib-svr4.c (read_program_header): Support type == -1 to read
3633 all program headers.
3634 (read_program_headers_from_bfd): New function.
3635 (svr4_static_exec_displacement): Remove and move the comment ...
3636 (svr4_exec_displacement): ... here. Remove variable found. New
3637 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
3638 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
3639 targets using read_program_headers_from_bfd. Remove the call of
3640 svr4_static_exec_displacement.
3641
d146bf1e
TT
36422010-03-10 Tom Tromey <tromey@redhat.com>
3643
3644 * dwarf2read.c (struct pubnames_header): Remove.
3645 (_PUBNAMES_HEADER): Remove.
3646 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
3647 (struct aranges_header): Remove.
3648 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
3649 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
3650 (PUBNAMES_SECTION): Remove.
3651 (ARANGES_SECTION): Remove.
3652 (dwarf2_locate_sections): Don't handle pubnames or aranges.
3653 (dwarf2_build_psymtabs): Remove dead code.
3654 (dwarf2_build_psymtabs_easy): Remove.
3655
be391dca
TT
36562010-03-10 Tom Tromey <tromey@redhat.com>
3657
3658 * elfread.c (elf_symfile_read): Don't call
3659 dwarf2_build_frame_info.
3660 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
3661 (struct dwarf2_per_objfile) <objfile>: New field.
3662 (dwarf2_has_info): Now idempotent. Set objfile field.
3663 (dwarf2_read_section): Check and set readin field. Call
3664 posix_madvise.
3665 (dwarf2_build_psymtabs): Don't read all sections.
3666 (read_type_comp_unit_head): Read types section.
3667 (create_debug_types_hash_table): Likewise.
3668 (init_cu_die_reader): Add asserts.
3669 (process_type_comp_unit): Add assert.
3670 (dwarf2_build_psymtabs_hard): Read info section.
3671 (load_partial_comp_unit): Add assert.
3672 (create_all_comp_units): Read info section.
3673 (load_full_comp_unit): Likewise.
3674 (dwarf2_ranges_read): Read ranges section.
3675 (dwarf2_record_block_ranges): Add assert.
3676 (dwarf2_read_abbrevs): Read abbrev section.
3677 (read_indirect_string): Read str section.
3678 (dwarf_decode_line_header): Read line section.
3679 (read_signatured_type_at_offset): Read types section.
3680 (dwarf_decode_macros): Read macinfo section.
3681 (dwarf2_symbol_mark_computed): Read loc section.
3682 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
3683 dwarf2_build_frame_info.
3684 (dwarf2_build_frame_info): Unconditionally set
3685 dwarf2_frame_objfile_data on the objfile.
3686 * configure.ac: Check for posix_madvise.
3687 * config.in, configure: Rebuild.
3688
ccefe4c4
TT
36892010-03-10 Tom Tromey <tromey@redhat.com>
3690
e38df1d0
TT
3691 * xcoffread.c (xcoff_start_psymtab): Update.
3692 (xcoff_end_psymtab): Update.
3693 * psymtab.c (allocate_psymtab): Remove dead code.
3694 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
3695 void*.
3696 * mdebugread.c (parse_partial_symbols): Update.
3697 (new_psymtab): Likewise.
3698 * dwarf2read.c (process_psymtab_comp_unit): Update.
3699 (psymtab_to_symtab_1): Update.
3700 * dbxread.c (start_psymtab): Update.
3701 (end_psymtab): Likewise.
3702
be391dca 37032010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 3704
ccefe4c4
TT
3705 * xcoffread.c: Include psymtab.h.
3706 (xcoff_sym_fns): Update.
3707 * symtab.h (struct partial_symbol): Remove.
3708 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
3709 (struct partial_symtab): Remove.
3710 (PSYMTAB_TO_SYMTAB): Remove.
3711 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
3712 (find_pc_sect_psymtab): Remove.
3713 (find_pc_sect_symtab_via_partial): Declare.
3714 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
3715 (find_main_psymtab): Remove.
3716 (find_main_filename): Declare.
3717 (fixup_psymbol_section): Remove.
3718 (fixup_section): Declare.
3719 * symtab.c: Include psymtab.h.
3720 (lookup_symtab): Use lookup_symtab method.
3721 (lookup_partial_symtab): Remove.
3722 (find_pc_sect_psymtab_closer): Remove.
3723 (find_pc_sect_psymtab): Remove.
3724 (find_pc_sect_symtab_via_partial): New function.
3725 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
3726 (fixup_section): No longer static.
3727 (fixup_psymbol_section): Remove.
3728 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
3729 (lookup_global_symbol_from_objfile): Likewise.
3730 (lookup_symbol_aux_psymtabs): Remove.
3731 (lookup_symbol_aux_quick): New function.
3732 (lookup_symbol_global): Use lookup_symbol_aux_quick.
3733 (lookup_partial_symbol): Remove.
3734 (basic_lookup_transparent_type_quick): New function.
3735 (basic_lookup_transparent_type): Use it.
3736 (find_main_psymtab): Remove.
3737 (find_main_filename): New function.
3738 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
3739 (find_line_symtab): Use expand_symtabs_with_filename method.
3740 (output_partial_symbol_filename): New function.
3741 (sources_info): Use map_partial_symbol_filenames.
3742 (struct search_symbols_data): New type.
3743 (search_symbols_file_matches): New function.
3744 (search_symbols_name_matches): Likewise.
3745 (search_symbols): Use expand_symtabs_matching method.
3746 (struct add_name_data): Rename from add_macro_name_data.
3747 (add_macro_name): Update.
3748 (add_partial_symbol_name): New function.
3749 (default_make_symbol_completion_list): Use
3750 map_partial_symbol_names.
3751 (struct add_partial_symbol_name): New type.
3752 (maybe_add_partial_symtab_filename): New function.
3753 (make_source_files_completion_list): Use
3754 map_partial_symbol_filenames.
3755 (expand_line_sal): Use expand_symtabs_with_filename method.
3756 * symmisc.c: Include psymtab.h.
3757 (print_objfile_statistics): Use print_stats method.
3758 (dump_objfile): Use dump method.
3759 (dump_psymtab, maintenance_print_psymbols)
3760 (maintenance_info_psymtabs, maintenance_check_symtabs)
3761 (extend_psymbol_list): Remove.
3762 * symfile.h (struct quick_symbol_functions): New struct.
3763 (struct sym_fns) <qf>: New field.
3764 (sort_pst_symbols): Remove.
3765 (increment_reading_symtab): Declare.
3766 * symfile.c: Include psymtab.h.
3767 (compare_psymbols, sort_pst_symbols): Remove.
3768 (psymtab_to_symtab): Remove.
3769 (increment_reading_symtab): New function.
3770 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
3771 method.
3772 (set_initial_language): Use find_main_filename.
3773 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
3774 (free_named_symtabs): Remove unused code.
3775 (start_psymtab_common, add_psymbol_to_bcache)
3776 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
3777 Remove.
3778 * stack.c: Include psymtab.h, symfile.h.
3779 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
3780 * source.h (psymtab_to_fullname): Don't declare.
3781 * source.c: Include psymtab.h.
3782 (select_source_symtab): Use find_last_source_symtab method.
3783 (forget_cached_source_info): Use forget_cached_source_info
3784 method.
3785 (find_and_open_source): No longer static.
3786 (psymtab_to_fullname): Remove.
3787 * somread.c: Include psymtab.h.
3788 (som_sym_fns): Update.
3789 * psympriv.h: New file.
3790 * psymtab.h: New file.
3791 * psymtab.c: New file.
3792 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
3793 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
3794 * objfiles.c: Include psymtab.h.
3795 (objfile_relocate1): Use relocate method.
3796 (objfile_has_partial_symbols): Use has_symbols method.
3797 * mipsread.c: Include psymtab.h.
3798 (ecoff_sym_fns): Update.
3799 * mi/mi-cmd-file.c: Include psymtab.h.
3800 (print_partial_file_name): New function.
3801 (mi_cmd_file_list_exec_source_files): Use
3802 map_partial_symbol_filenames.
3803 * mdebugread.c: Include psympriv.h.
3804 * machoread.c: Include psympriv.h.
3805 (macho_sym_fns): Update.
3806 * m2-exp.y (yylex): Use lookup_symtab.
3807 * elfread.c: Include psympriv.h.
3808 (elf_sym_fns): Update.
3809 * dwarf2read.c: Include psympriv.h.
3810 * dbxread.c: Include psympriv.h.
3811 (aout_sym_fns): Update.
3812 * cp-support.c: Include psymtab.h.
3813 (read_in_psymtabs): Remove.
3814 (make_symbol_overload_list_qualified): Use
3815 expand_symtabs_for_function method.
3816 * coffread.c: Include psympriv.h.
3817 (coff_sym_fns): Update.
3818 * blockframe.c: Include psymtab.h.
3819 (find_pc_partial_function): Use find_pc_sect_symtab method.
3820 * ada-lang.h (ada_update_initial_language): Update.
3821 * ada-lang.c: Include psymtab.h.
3822 (ada_update_initial_language): Remove 'main_pst' argument.
3823 (ada_lookup_partial_symbol): Remove.
3824 (struct ada_psym_data): New type.
3825 (ada_add_psyms): New function.
3826 (ada_add_non_local_symbols): Use map_ada_symtabs method.
3827 (struct add_partial_datum): New type.
3828 (ada_add_partial_symbol_completions): New function.
3829 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
3830 (ada_exception_support_info_sniffer): Update.
3831 * Makefile.in (SFILES): Add psymtab.c.
3832 (COMMON_OBS): Add psymtab.o.
3833 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
3834
7d8500b7
PM
38352010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
3836
3837 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
3838
c0cc3a76
SW
38392010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
3840
3841 PR C++/11236:
3842 * cp-namespace.c (cp_add_using): Deleted.
3843 (cp_add_using_directive): Use obstack allocations.
3844 Merged the function cp_add_using into this one.
3845 Added 'struct obstack *' argument.
3846 (cp_scan_for_anonymous_namespaces): Updated.
3847 * cp-support.h: Updated.
3848 * dwarf2read.c (read_import_statement): Updated.
3849 (read_namespace): Updated.
3850
452fa064
CF
38512010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
3852
3853 * windows-nat.c (cygwin_conv_path): Remove old macro.
3854
60e1c644
PA
38552010-03-10 Pedro Alves <pedro@codesourcery.com>
3856
3857 * breakpoint.c (condition_command): Handle watchpoint conditions.
3858 (is_hardware_watchpoint): Add comment.
3859 (is_watchpoint): New.
3860 (update_watchpoint): Don't reparse the watchpoint's condition
3861 unless necessary.
3862 (WP_IGNORE): New.
3863 (watchpoint_check): Use it.
3864 (bpstat_check_watchpoint): Handle it.
3865 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
3866 conditions in a frame where it makes sense.
3867 (watch_command_1): Store the innermost block of the condition
3868 expression.
3869 (delete_breakpoint): Delete the watchpoint condition expression.
3870 * breakpoint.h (struct bp_location) <cond>: Update comment.
3871 (struct breakpoint): New field `cond_exp_valid_block'.
3872
af6b7be1
JB
38732010-03-09 Joel Brobecker <brobecker@adacore.com>
3874
3875 Adjust handling of Ada DIEs after dwarf2_physname patch.
3876 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
3877
60c5c021
CF
38782010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
3879 Pierre Muller <muller@ics.u-strasbg.fr>
3880
3881 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
3882 from/to posix/win32.
3883 (windows_make_so): Use non-Cygwin 1.7 specific function.
3884 (windows_create_inferior): Make sure that cygallargs points to
3885 original args in non Cygwin 1.7. case.
3886
60a1502a
MS
38872010-03-09 Michael Snyder <msnyder@vmware.com>
3888
3889 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
3890 after target_read_memory to get host byte order.
3891 (i386_process_record): Ditto.
3892
94af9270
KS
38932010-03-09 Keith Seitz <keiths@redhat.com>
3894
3895 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
3896 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
3897 print out const or volatile qualifiers, too.
3898 (c_type_print_args): Add parameters show_artificial and language.
3899 Skip artificial parameters when requested.
3900 Use the appropriate language printer.
3901 (c_type_print_varspec): Tell c_type_print_args to skip artificial
3902 parameters and pass language_c.
3903 * dwarf2read.c (die_list): New file global.
3904 (struct partial_die_info): Update comments for name field.
3905 (pdi_needs_namespace): Renamed to ...
3906 (die_needs_namespace): ... this. Rewrite.
3907 (dwarf2_linkage_name): Remove.
3908 (add_partial_symbol): Do not predicate the call to
3909 partial_die_full_name based on pdi_needs_namespace.
3910 Remove call to cp_check_possible_namespace_symbols and associated
3911 outdated comments.
3912 (guess_structure_name): Do not inspect child subprogram DIEs.
3913 (dwarf2_fullname): Update comments.
3914 Use die_needs_namespace to assist in computing the name.
3915 (read_func_scope): Use dwarf2_name to get the DIE's name.
3916 Use dwarf2_physname to get the "linkage name" of the DIE.
3917 (dwarf2_add_member_field): Use dwarf2_physname instead of
3918 dwarf2_linkage_name.
3919 (read_structure_type): For structs and classes, set TYPE_NAME, too.
3920 (determine_class): Remove.
3921 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
3922 except Ada.
3923 (new_symbol): Unconditionally call dwarf2_name.
3924 Compute the "linkage name" using dwarf2_physname.
3925 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
3926 When determining to scan for anonymous C++ namespaces, ignore
3927 the linkage name.
3928 (dwarf2_physname): New function.
3929 (dwarf2_full_name): Move content to new function and call
3930 that.
3931 (dwarf2_compute_name): "New" function.
3932 (_initialize_dwarf2_read): Initialize die_list.
3933 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
3934 physname.
3935 (gnu_v3_print_method_ptr): Use the physname for virtual methods
3936 without a demangled name.
3937 Print out type information for non-virtual methods.
c8d5aac9 3938 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 3939 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
3940 If we found a file symtab, re-evaluate whether the remainder is_quoted.
3941 (decode_compound): Stop consuming at an open parenthesis.
3942 Keep template parameters.
3943 Keep any overload information.
3944 Keep keywords like "const".
3945 Remove paren_pointer.
3946 Move is_quoted check from set_flags to here.
3947 Remove #if 0 code from 2000. Ten years is long enough.
3948 (find_method): Before comparing symbol names, canonicalize the string
3949 from the user.
3950 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
3951 (find_method_overload_end): New function.
3952 (set_flags): Remove.
c8d5aac9
L
3953 (decode_compound): Assume that parentheses are matched.
3954 It's a lot easier.
94af9270
KS
3955 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
3956 to cplus_demangle.
3957 * linespec.c (decode_line_1): Keep important keywords like
3958 "const" and "volatile".
3959 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
3960 * typeprint.h (c_type_print_args): Add declaration.
3961 * ui-file.c (do_ui_file_obsavestring): New function.
3962 (ui_file_obsavestring): New function.
3963 * ui-file.h (ui_file_obsavestring): Add declaration.
3964 * valops.c (find_overload_match): Resolve the object to
3965 a non-pointer type.
3966 If the object is a data member, search the object for the member
3967 and return with staticp set.
3968 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
3969 Do not attempt to extract a function name from non-function types.
3970 If the extracted function name and the original name are the same,
3971 we don't have a C++ method.
3972
8d95cc3b
PA
3973 From Jan Kratochvil <jan.kratochvil@redhat.com>:
3974 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
3975
3976 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
3977 and arguments from symbol lookups.
3978 * ax-gdb.c (gen_expr): Likewise.
3979 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
3980 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
3981 lookup_possible_namespace_symbol): Likewise.
3982 * cp-support.c (read_in_psymtabs): Likewise.
3983 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
3984 * language.h (la_lookup_symbol_nonlocal): Likewise.
3985 * scm-valprint.c (scm_inferior_print): Likewise.
3986 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
3987 * solib-svr.c (elf_lookup_lib): Likewise.
3988 * solib.c (show_auto_solib_add): Likewise.
3989 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
3990 * symmisc.c (maintenance_check_symtabs): Likewise.
3991 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
3992 lookup_symbol_aux_local, lookup_symbol_aux_block,
3993 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
3994 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
3995 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
3996 basic_lookup_transparent_type, find_main_psymtab,
3997 lookup_block_symbol): Likewise.
3998 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
3999 lookup_symbol_global, lookup_symbol_aux_block,
4000 lookup_symbol_partial_symbol, lookup_block_symbol,
4001 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4002
9cb74f47
PM
40032010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4004
4005 * python/python-internal.h: Include symtab.h.
4006
af6b7be1
JB
40072010-03-09 Joel Brobecker <brobecker@adacore.com>
4008 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
4009
4010 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4011 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4012 indentation.
4013
bad56014
TT
40142010-03-08 Tom Tromey <tromey@redhat.com>
4015
4016 * breakpoint.c (breakpoint_1): Add "QUIT".
4017
08105857
PA
40182010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4019 Pedro Alves <pedro@codesourcery.com>
4020
4021 * solib.c (solib_find): Replace extension if
4022 solib_symbols_extension is set in the target gdbarch.
4023 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4024 solib_symbols_extension to "sym".
4025 * gdbarch.sh (solib_symbols_extension): New variable.
4026 (pstring): New function.
4027 * gdbarch.h, gdbarch.c: Regenerate.
4028
7c953934
TT
40292010-03-08 Tom Tromey <tromey@redhat.com>
4030
4031 PR cli/9591:
4032 * NEWS: Update.
4033 * utils.c: Include main.h.
4034 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4035 (defaulted_query): Use default answer if `batch_flag'.
4036 * main.h (batch_flag): Declare.
4037 * main.c (batch_flag): New global.
4038 (captured_main): Remove 'batch'. Update.
4039
bbd2783e
KB
40402010-03-08 Kevin Buettner <kevinb@redhat.com>
4041
4042 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4043 and Kevin Buettner:
4044
4045 * remote-mips.c (rockhopper_ops): New target_ops struct.
4046 (MON_ROCKHOPPER): New mips_monitor_type.
4047 (read_hex_value): New function.
4048 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 4049 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
4050 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4051 (rockhopper_open): New function.
4052 (mips_wait): Read the PC, FP and SP fields as strings. Use
4053 read_hex_value to parse them and mips_set_register to commit them.
4054 (mips_set_register): New function.
4055 (mips_fetch_registers): Do not cast register value to "unsigned"
4056 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4057 (mips_store_registers): Use a 'T' packet to set registers when
4058 using MON_ROCKHOPPER.
4059 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4060 and expect the total to be printed before the entry address.
4061 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4062
566f3d17
KB
40632010-03-08 Kevin Buettner <kevinb@redhat.com>
4064
4065 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4066 Change return value to int. Store value fetched in location
4067 addressed by `val'. Use function's return value as success
4068 or failure indicator. Adjust all callers.
4069
9c8ee2ab 40702010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
4071
4072 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4073
7155de5a
HZ
40742010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4075 Hui Zhu <teawater@gmail.com>
4076
4077 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4078 tmp_to_stopped_data_address.
4079 (record_open): Reset tmp_to_stopped_by_watchpoint and
4080 tmp_to_stopped_data_address.
4081 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4082 to_stopped_data_address.
4083
580879fc
HZ
40842010-03-08 Hui Zhu <teawater@gmail.com>
4085
4086 * i386-tdep.c (i386_process_record): Initialize regnum.
4087
b0fcb67f
JK
40882010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4091 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4092
08597104
JB
40932010-03-08 Joel Brobecker <brobecker@adacore.com>
4094
4095 Memory error when reading wrong core file.
4096 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4097 errors while reading the inferior memory, and return zero if
4098 an exception was raised.
4099
425b824a
MS
41002010-03-07 Michael Snyder <msnyder@vmware.com>
4101
ec6dbf37
MS
4102 * record.c (record_restore): Rename tmpu8 to rectype.
4103
648d0c8b
MS
4104 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4105 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4106
4107 (i386_record_push): Rename local tmpulongest to addr.
4108
4109 (i386_process_record): Rename local tmpulongest to addr.
4110
4111 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4112 addr64.
955db0c0
MS
4113
4114 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 4115
10760264
JB
41162010-03-07 Joel Brobecker <brobecker@adacore.com>
4117
4118 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 4119 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 4120
b3c613f2
CF
41212010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4122
4123 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4124 block. Define helper macros to reduce ifdefs in code.
4125 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4126 size. Call unadorned GetModuleFileNameEx rather than
4127 GetModuleFileNameEx*.
4128 (windows_make_so): Use __PMAX to denote maximum buffer size and
4129 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4130 appropriate.
4131 (get_image_name): Use __PMAX to denote maximum buffer size.
4132 (handle_load_dll): Likewise.
4133 (windows_pid_to_exec_file): Likewise.
4134 (windows_create_inferior): Add many accommodations for older Cygwin and
4135 non-Cygwin.
4136 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4137 __USEWIDE conditional.
4138 (bad_GetModuleFileNameExA): Likewise.
4139 (_initialize_loadable): Just use real function names without the dyn_
4140 part since they are defined earlier.
4141
f870a310
TT
41422010-03-05 Corinna Vinschen <vinschen@redhat.com>
4143 Tom Tromey <tromey@redhat.com>
4144
4145 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4146 (parse_escape): Likewise.
4147 * python/py-utils.c (unicode_to_target_string): Update.
4148 (unicode_to_target_python_string): Update.
4149 (target_string_to_unicode): Update.
4150 * printcmd.c (printf_command): Update.
4151 * p-exp.y (yylex): Update.
4152 * objc-exp.y (yylex): Update.
4153 * mi/mi-parse.c: Include charset.h.
4154 (mi_parse_escape): New function.
4155 (mi_parse_argv): Use it.
4156 * jv-exp.y (yylex): Update.
4157 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4158 function.
4159 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4160 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4161 * gdbarch.c: Rebuild.
4162 * gdbarch.h: Rebuild.
4163 * defs.h (parse_escape): Update.
4164 * cli/cli-setshow.c: Include arch-utils.h.
4165 (do_setshow_command): Update.
4166 * cli/cli-cmds.c (echo_command): Update.
4167 * charset.h (target_charset, target_wide_charset): Update.
4168 * charset.c: Include arch-utils.h.
4169 (target_charset_name): Default to "auto".
4170 (target_wide_charset_name): Likewise.
4171 (show_target_charset_name): Handle "auto".
4172 (show_target_wide_charset_name): Likewise.
4173 (be_le_arch): New global.
4174 (set_be_le_names): Add 'gdbarch' argument.
4175 (validate): Likewise. Don't call set_be_le_names.
4176 (set_charset_sfunc, set_host_charset_sfunc)
4177 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4178 Update.
4179 (target_charset): Add 'gdbarch' argument.
4180 (target_wide_charset): Likewise. Remove 'byte_order' argument.
4181 (auto_target_charset_name): New global.
4182 (default_auto_charset, default_auto_wide_charset): New functions.
4183 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
4184 for target charsets. Copy result of nl_langinfo. Use GetACP if
4185 USE_WIN32API.
4186 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4187 remove 'byte_order' argument. Update.
4188 (classify_type): Likewise.
4189 (c_emit_char): Update.
4190 (c_printchar): Update.
4191 (c_printstr): Update.
4192 (c_get_string): Update.
4193 (evaluate_subexp_c): Update.
4194 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4195 Declare.
4196 * python/python.c (gdbpy_target_charset): New function.
4197 (gdbpy_target_wide_charset): Likewise.
4198 (GdbMethods): Update.
4199 * NEWS: Update.
4200
4e7386b0
UW
42012010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4202
4203 * symfile.c (build_section_addr_info_from_objfile): Do not mask
4204 off high address bits.
4205
aab48ede
UW
42062010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4207
4208 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4209 address as UnsignedLongLong, not LongLong.
4210
8eeafb51 42112010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 4212 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
4213
4214 * remote-mips.c (gdbthread.h): Include.
4215 (remote_mips_ptid): Declare.
4216 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4217 (common_open): Set inferior_ptid, add it as an inferior, and
4218 as a thread too. Delete FIXME comment regarding start_remote().
4219 (mips_close): Invoke generic_mourn_inferior().
4220 (mips_kill): Make sure that target_mourn_inferior is invoked.
4221 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4222 it's now invoked from mips_close().
4223 (mips_load): Don't null out inferior_ptid. Don't call
4224 clear_symtab_users().
4225 (mips_thread_alive, mips_pid_to_str): New functions.
4226 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
4227 to_thread_alive and to_pid_to_str operations.
4228
ae411497
TT
42292010-03-04 Tom Tromey <tromey@redhat.com>
4230
4231 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4232 in DWARF 3 and later.
4233 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4234
0e0b460e
KS
42352010-03-04 Keith Seitz <keiths@redhat.com>
4236
4237 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4238 If the filename portion of the linespec was quoted, recheck the
4239 remainder for additional quoting.
4240 (locate_first_half): Skip over completer chars, too.
4241
1b93ff13
TT
42422010-03-04 Tom Tromey <tromey@redhat.com>
4243
4244 * printcmd.c (printf_command): Pass dummy argument to
4245 printf_filtered.
4246
fc36e839
DE
42472010-03-04 Doug Evans <dje@google.com>
4248
111f853c
DE
4249 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4250 unwound_fp.
4251
fc36e839
DE
4252 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4253
c7437ca6
PA
42542010-03-04 Pedro Alves <pedro@codesourcery.com>
4255
4256 * breakpoint.c (update_watchpoint): Create a sentinel location if
4257 the software watchpoint isn't watching any memory.
4258 (breakpoint_address_bits): Skip dummy software watchpoint locations.
4259
58dadb1b
PA
42602010-03-04 Pedro Alves <pedro@codesourcery.com>
4261
4262 * utils.c (fputs_maybe_filtered): Check if there's already a top
4263 level interpreter before dereferencing it. If there isn't one,
4264 don't paginate either.
4265
50e98be4
DJ
42662010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4267
4268 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4269 the state right when single stepping.
4270 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4271 Get the next PC along with the instruction state.
4272 (thumb_get_next_pc): Remove.
4273 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4274
2e3ceee9
HZ
42752010-03-04 Hui Zhu <teawater@gmail.com>
4276
4277 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4278
390a8aca
PA
42792010-03-03 Pedro Alves <pedro@codesourcery.com>
4280
4281 * utils.c (fputs_maybe_filtered): Always disable pagination if the
4282 top level interpreter is MI.
4283
9355b391
SS
42842010-03-03 Stan Shebs <stan@codesourcery.com>
4285
4286 * remote.c (remote_download_tracepoint): Iterate over locations.
4287 * tracepoint.c (validate_actionline): Ditto.
4288 (encode_actions): Add location argument.
4289 (trace_dump_command): Check all locations to see if stepping
4290 frame.
390a8aca 4291
8685c86f
L
42922010-03-03 H.J. Lu <hongjiu.lu@intel.com>
4293 Eli Zaretskii <eliz@gnu.org>
4294
4295 * NEWS: Add X86 general purpose registers section.
4296
e8f781e2
TT
42972010-03-03 Tom Tromey <tromey@redhat.com>
4298
4299 PR mi/11098:
4300 * varobj.c (install_new_value): Handle case where new print_value
4301 is NULL.
4302
a0e0ef55
TT
43032010-03-03 Dainis Jonitis <jonitis@gmail.com>
4304
4305 PR gdb/11345:
4306 * printcmd.c (printf_command): Print end of format string using
4307 printf_filtered.
4308
a58d7472
TT
43092010-03-02 Tom Tromey <tromey@redhat.com>
4310
4311 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4312 * defs.h (read_command_lines_1): Add missing 'void'.
4313 * cli/cli-script.c (recurse_read_control_structure): Add missing
4314 'void'.
4315 (read_next_line): Likewise.
4316 (read_command_lines_1): Likewise.
4317
ce50d78b
UW
43182010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4319
4320 * spu-tdep.c (spu_analyze_prologue): Track instruction to
4321 store backchain as part of prologue.
4322
7e9af34a
DJ
43232010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4324
4325 * progspace.c (update_address_spaces): Update inferior address spaces
4326 also.
4327
01637564
DE
43282010-03-02 Doug Evans <dje@google.com>
4329
4330 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4331 lowpc,highpc args to addrmap_set_empty.
4332
1ba53b71
L
43332010-03-02 H.J. Lu <hongjiu.lu@intel.com>
4334
4335 * amd64-tdep.c (amd64_byte_names): New.
4336 (amd64_word_names): Likewise.
4337 (amd64_dword_names): Likewise.
4338 (amd64_pseudo_register_name): Likewise.
4339 (amd64_pseudo_register_read): Likewise.
4340 (amd64_pseudo_register_write): Likewise.
4341 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4342 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
4343 set_gdbarch_pseudo_register_write and
4344 set_tdesc_pseudo_register_name. Don't call
4345 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
4346
4347 * i386-tdep.c (i386_num_mmx_regs): Removed.
4348 (i386_num_pseudo_regs): Likewise.
4349 (i386_byte_names): New.
4350 (i386_word_names): Likewise.
4351 (i386_byte_regnum_p): Likewise.
4352 (i386_word_regnum_p): Likewise.
4353 (i386_mmx_regnum_p): Updated.
4354 (i386_pseudo_register_name): Make it global. Handle byte and
4355 word pseudo-registers.
4356 (i386_pseudo_register_read): Likewise.
4357 (i386_pseudo_register_write): Likewise.
4358 (i386_pseudo_register_type): Handle byte, word and dword
4359 pseudo-registers
4360 (i386_register_reggroup_p): Don't include pseudo
4361 registers, except for MXX, in any register groups. Don't
4362 include pseudo byte, word, dword registers in general_reggroup.
4363 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4364 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
4365 pseudo-registers after word pseudo-registers. Call
4366 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4367
4368 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4369 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4370 eax_regnum.
4371 (i386_byte_regnum_p): New.
4372 (i386_word_regnum_p): Likewise.
4373 (i386_dword_regnum_p): Likewise.
4374 (i386_pseudo_register_name): Likewise.
4375 (i386_pseudo_register_read): Likewise.
4376 (i386_pseudo_register_write): Likewise.
4377
a6f5ef51
L
43782010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4379
4380 * target-descriptions.c (tdesc_type): Remove
4381 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4382 (tdesc_predefined_types): Likewise.
4383 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
4384 if flag name is empty.
4385 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4386
4387 * features/i386/32bit-core.xml: Define i386_eflags.
4388 * features/i386/64bit-core.xml: Likewise.
4389
4390 * features/i386/32bit-sse.xml: Define i386_mxcsr.
4391 * features/i386/64bit-sse.xml: Likewise.
4392
4393 * features/i386/amd64-linux.c: Regenerated.
4394 * features/i386/amd64.c: Likewise.
4395 * features/i386/i386-linux.c: Likewise.
4396 * features/i386/i386.c: Likewise.
4397
f5dff777
DJ
43982010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
4399
4400 * gdbtypes.c (append_composite_type_field_raw): New.
4401 (append_composite_type_field_aligned): Use the new function.
4402 * gdbtypes.h (append_composite_type_field_raw): Declare.
4403 * target-descriptions.c (struct tdesc_type_field): Add start and end.
4404 (struct tdesc_type_flag): New type.
4405 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4406 kind. Add size to u.u. Add u.f for flags.
4407 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4408 (tdesc_free_type): Likewise.
4409 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4410 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4411 (tdesc_add_bitfield, tdesc_add_flag): New.
4412 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4413 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4414 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4415 current_type. Add current_type_size and current_type_is_flags.
4416 (tdesc_start_union): Clear the new fields.
4417 (tdesc_start_struct, tdesc_start_flags): New.
4418 (tdesc_start_field): Handle struct fields, including bitfields.
4419 (field_attributes): Make type optional. Add start and end.
4420 (union_children): Rename to struct_union_children.
4421 (union_attributes): Rename to struct_union_attributes. Add optional
4422 size.
4423 (flags_attributes): New.
4424 (feature_children): Add struct and flags.
4425 * features/gdb-target.dtd: Add flags and struct to features.
4426 Make field type optional. Add field start and end.
4427
90884b2b
L
44282010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4429
4430 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4431 (amd64_linux_read_description): Likewise.
4432 (_initialize_amd64_linux_nat): Set to_read_description to
4433 amd64_linux_read_description.
4434
4435 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4436 (amd64_linux_register_name): Removed.
4437 (amd64_linux_register_type): Likewise.
4438 (amd64_linux_core_read_description): New.
4439 (amd64_linux_init_abi): Set target description to
4440 tdesc_amd64_linux if needed. Support orig_rax in target
4441 description. Don't call set_gdbarch_register_name nor
4442 set_gdbarch_register_type. Call
4443 set_gdbarch_core_read_description.
4444 (_initialize_amd64_linux_tdep): Call
4445 initialize_tdesc_amd64_linux.
4446
4447 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4448
4449 * amd64-tdep.c: Include "features/i386/amd64.c".
4450 (amd64_register_names): Removed.
4451 (amd64_register_name): Likewise.
4452 (amd64_register_type): Likewise.
4453 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 4454 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
4455 set_gdbarch_register_name nor set_gdbarch_register_type.
4456 (_initialize_amd64_tdep): New.
4457
4458 * i386-linux-nat.c (i386_linux_read_description): New.
4459 (_initialize_i386_linux_nat): Set to_read_description to
4460 i386_linux_read_description.
4461
4462 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4463 (i386_linux_register_name): Removed.
4464 (i386_linux_core_read_description): New.
4465 (i386_linux_read_description): Likewise.
4466 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4467 Set target description to tdesc_i386_linux if needed. Support
4468 orig_eax. Set register_reggroup_p. Call
4469 set_gdbarch_core_read_description.
4470 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4471
4472 * i386-linux-tdep.h (tdesc_i386_linux): New.
4473
4474 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4475 with I387_NUM_REGS.
4476
4477 * i386-tdep.c: Include "features/i386/i386.c".
4478 (i386_register_names): Make it const.
4479 (i386_mmx_names): Likewise.
4480 (i386_num_register_names): Removed.
4481 (i386_register_name): Likewise.
4482 (i386_eflags_type): Likewise.
4483 (i386_mxcsr_type): Likewise.
4484 (i386_sse_type): Likewise.
4485 (i386_register_type): Likewise.
4486 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4487 (i386_pseudo_register_name): New.
4488 (i386_pseudo_register_type): Likewise.
4489 (i386_mmx_type): Make it static.
4490 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
4491 I387_NUM_REGS. Set num_core_regs and register_names. Don't
4492 call set_gdbarch_register_name nor set_gdbarch_register_type.
4493 Set register_reggroup_p. Set target description to tdesc_i386
4494 if needed. Call set_tdesc_pseudo_register_type,
4495 set_tdesc_pseudo_register_name and tdesc_use_registers.
4496 (_initialize_i386_tdep): Call initialize_tdesc_i386.
4497 initialize_tdesc_x86_64.
4498
4499 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4500 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
4501 register_names, tdesc and register_reggroup_p.
4502 (I386_NUM_FREGS): Removed.
4503 (i386_eflags_type): Likewise.
4504 (i386_mxcsr_type): Likewise.
4505 (i386_mmx_type): Likewise.
4506 (i386_sse_type): Likewise.
4507 (i386_register_name): Likewise.
4508 (i386_regnum): Add I386_MXCSR_REGNUM.
4509 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4510
4511 * i387-tdep.h (I387_NUM_REGS): New.
4512
4513 * regformats/i386/i386-linux.dat: Generated.
4514 * regformats/i386/i386.dat: Likewise.
4515 * regformats/i386/amd64-linux.dat: Likewise.
4516 * regformats/i386/amd64.dat: Likewise.
4517
4518 * regformats/reg-i386-linux.dat: Removed.
4519 * regformats/reg-i386.dat: Likewise.
4520 * regformats/reg-x86-64-linux.dat: Likewise.
4521 * regformats/reg-x86-64.dat: Likewise.
4522
d0d0ab16
CV
45232010-03-01 Corinna Vinschen <vinschen@redhat.com>
4524
4525 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4526 cygwin_conv_path API rather than the deprecated
4527 cygwin_conv_to_full_posix_path.
4528 * windows-nat.c:
4529 (GetModuleFileNameExA): Undefine for Cygwin.
4530 (GetModuleFileNameExW): Define for Cygwin.
4531 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4532 Call GetModuleFileNameExW and convert path to POSIX using
4533 cygwin_conv_path.
4534 (windows_make_so): Always define p. Drop unused variable m.
4535 Don't use Win32 functions to check file existance, rather use
4536 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
4537 Use canonicalize_file_name to get full path.
4538 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4539 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
4540 use correct target buffer size in call to WideCharToMultiByte.
4541 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4542 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4543 (windows_create_inferior): Convert all paths and arguments to wchar_t
4544 and use CreateProcessW on Cygwin.
4545 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4546 (bad_GetModuleFileNameExA): Undefine for Cygwin.
4547 (bad_GetModuleFileNameExW): Define for Cygwin.
4548 (_initialize_loadable): Load GetModuleFileNameExW into
4549 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
4550
dc00d89f
PM
45512010-02-28 Phil Muldoon <pmuldoon@redhat.com>
4552
4553 PR python/11036
4554 * python/py-frame.c (frapy_read_var): Add block argument and logic
4555 to cope with user provided blocks.
4556
0e095b7e
JK
45572010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4558
4559 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4560 New comment.
4561
2f9e05b4
CV
45622010-02-28 Corinna Vinschen <vinschen@redhat.com>
4563
4564 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4565 (COMMON_OBS): ... to here since it's used unconditionally.
4566 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4567 (SFILES): To here.
4568
eb195664
DD
45692010-02-26 David Daney <ddaney@caviumnetworks.com>
4570
4571 * mips-linux-tdep.c: Update struct sigframe comments.
4572 (SIGFRAME_CODE_OFFSET): Delete macro.
4573 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4574 this_frame's sp.
4575 (mips_linux_n32n64_sigframe_init): Same.
4576
97b0f3e2
KB
45772010-02-26 Kevin Buettner <kevinb@redhat.com>
4578
4579 * remote-mips.c (mips_load): Don't use pseudo-register when
4580 invalidating regcache.
4581
4069ebbe
DJ
45822010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4583
4584 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4585
05071a4d
PA
45862010-02-26 Pedro Alves <pedro@codesourcery.com>
4587
4588 * NEWS: Add "New targets" section, and mention ARM Symbian
4589 support.
4590
6063c216
UW
45912010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
4592
4593 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
4594 add ADDR_SIZE member.
4595 (allocate_piece_closure): Update.
4596 (copy_pieced_value_closure): Likewise.
4597 (dwarf2_evaluate_loc_desc): Likewise.
4598 (read_pieced_value): Use DWARF address size instead of
4599 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
4600
5107b149 46012010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 4602 Tom Tromey <tromey@redhat.com>
5107b149
PM
4603
4604 * python/py-type.c (typy_lookup_typename): Add in block argument.
4605 If provided restrict lookup to specified blocks.
4606 (gdbpy_lookup_type): Likewise.
4607 (typy_lookup_type): Likewise.
4608
78664fa3 46092010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 4610
78664fa3
PA
4611 Symbian config
4612
4613 gdb/
4614 * arm-symbian-tdep.c: New.
4615 * configure.tgt (arm*-*-symbianelf*): New target.
4616 (*-*-symbianelf*): New OS.
4617 * osabi.c (gdb_osabi_names): Add Symbian.
4618 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
4619 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
4620 (ALLDEPFILES): Add arm-symbian-tdep.c.
4621
eb73e134
DJ
46222010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
4623
4624 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
4625
46ef47e5
PA
46262010-02-24 Pedro Alves <pedro@codesourcery.com>
4627
4628 * mi/mi-main.c (mi_cmd_execute): Fix typo.
4629
f3e9a817 46302010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 4631 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
4632 Thiago Jung Bauermann <bauerman@br.ibm.com>
4633
4634 * python/python.c (_initialize_python): Call
4635 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
4636 gdbpy_initialize_blocks.
4637 * python/python-internal.h: Declare struct symbol, block and
4638 symtab_and_line. Declare block_object_type and
4639 symbol_object_type
4640 (gdbpy_lookup_symbol gdbpy_block_for_pc)
4641 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
4642 (symbol_to_symbol_object, block_to_block_object)
4643 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
4644 (gdbpy_initialize_blocks ): Declare.
4645 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
4646 (frapy_select): Add methods.
4647 (frapy_read_var): Add symbol branch.
4648 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
4649 py-block.
4650 (SUBDIR_PYTHON_SRCS): Likewise.
4651 (py-symbol.o): New rule.
4652 (py-symtab.o): Likewise.
4653 (py-block.o): Likewise.
4654 * python/py-symbol.c: New file.
4655 * python/py-symtab.c: Likewise.
4656 * python/py-block.c: Likewise.
4657
24291992
PA
46582010-02-24 Pedro Alves <pedro@codesourcery.com>
4659
4660 PR gdb/11321
4661
4662 * inferior.h (prepare_for_detach): Declare.
4663 (struct inferior) <detaching>: New field.
4664 * infrun.c (prepare_for_detach): New.
4665 (handle_inferior_event) <random signal>: Don't stop if detaching.
4666 * target.c (target_detach): Call prepare_for_detach.
4667
fc1cf338
PA
46682010-02-24 Pedro Alves <pedro@codesourcery.com>
4669
4670 Per-process displaced stepping queue.
4671
4672 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
4673 (displaced_step_gdbarch, displaced_step_closure,
4674 (displaced_step_original, displaced_step_copy): Move globals to
4675 this...
4676 (struct displaced_step_inferior_state): ... new structure.
4677 (displaced_step_inferior_states): New global.
4678 (get_displaced_stepping_state, add_displaced_stepping_state)
4679 (remove_displaced_stepping_state, infrun_inferior_exit): New
4680 functions.
4681 (displaced_step_clear): Add displaced_step_inferior_state
4682 parameter, and adjust to handle it.
4683 (displaced_step_clear_cleanup): Parameter is now a
4684 displaced_step_inferior_state. Adjust.
4685 (displaced_step_prepare): Adjust.
4686 (displaced_step_fixup, displaced_step_fixup)
4687 (infrun_thread_ptid_changed, resume): Adjust.
4688 (init_wait_for_inferior): Don't call displaced_step_clear.
4689 (infrun_thread_stop_requested): Rewrite.
4690 (_initialize_infrun): Install infrun_inferior_exit as
4691 inferior_exit observer.
4692
0723dbf5
PA
46932010-02-24 Pedro Alves <pedro@codesourcery.com>
4694
4695 * inferior.h (ptid_match): Declare.
4696 * infrun.c (ptid_match): New.
4697 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
4698 (handle_notification): Add debug output.
4699 * linux-nat.c (ptid_match): Delete.
4700
09de9781
DM
47012010-02-24 David S. Miller <davem@davemloft.net>
4702
4703 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
4704 * syscalls/sparc-linux.xml: New.
4705 * syscalls/sparc64-linux.xml: New.
4706 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
4707 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
4708 (sparc32_linux_get_syscall_number): New function.
4709 (sparc32_linux_init_abi): Set syscall XML file name and hook up
4710 syscall number fetcher.
4711 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
4712 (sparc64_linux_get_syscall_number): New function.
4713 (sparc64_linux_init_abi): Set syscall XML file name and hook up
4714 syscall number fetcher.
4715
a79b8f6e
VP
47162010-02-24 Vladimir Prus <vladimir@codesourcery.com>
4717
4718 Multiexec MI
4719
4720 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
4721 * inferior.c (add_inferior_silent): Notify inferior_added
4722 observer.
4723 (delete_inferior_1): Notify inferior_removed observer.
4724 (exit_inferior_1): Pass inferior, not pid, to observer.
4725 (inferior_appeared): Likewise.
4726 (add_inferior_with_spaces): New.
4727 (add_inferior_command): Use the above.
4728 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
4729 Declare.
4730
4731 * inflow.c (inflow_inferior_exit): Likewise.
4732 * jit.c (jit_inferior_exit_hook): Likewise.
4733
4734 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
4735 remove-inferior.
4736 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
4737 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
4738 (report_initial_inferior): New.
4739 (mi_inferior_removed): Register the above. Make sure
4740 inferior_added observer is called on the first inferior.
4741 (mi_new_thread, mi_thread_exit): Thread group is now identified by
4742 inferior number, not pid.
4743 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
4744 affected.
4745 * mi/mi-main.c (current_context): New.
4746 (proceed_thread_callback): Use typed closure.
4747 Proceed everything if pid is 0. Most implementation split into
4748 (proceed_thread): ... this.
4749 (run_one_inferior): New.
4750 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
4751 Adjust for multiexec behaviour.
4752 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
4753 (mi_cmd_execute): Handle the 'thread-group' option here.
4754 Do some extra checks.
4755 * mi-parse.c (mi_parse): Handle the --all and --thread-group
4756 options.
4757 * mi-parse.h (struct mi_parse): New fields all and thread_group.
4758
115d30f9
VP
47592010-02-24 Vladimir Prus <vladimir@codesourcery.com>
4760
4761 Make -exec-run a proper MI commands.
4762
4763 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
4764 * mi/mi-cmds.c (mi_cmds): Adjust.
4765 * mi/mi-main.c (mi_cmd_exec_run): New.
4766
06cd862c
PA
47672010-02-24 Pedro Alves <pedro@codesourcery.com>
4768 Stan Shebs <stan@codesourcery.com>
4769
4770 * tracepoint.h (set_traceframe_number)
4771 (cleanup_restore_current_traceframe): Declare.
4772 * tracepoint.c (set_traceframe_number): New.
4773 (struct current_traceframe_cleanup): New.
4774 (do_restore_current_traceframe_cleanup)
4775 (restore_current_traceframe_cleanup_dtor)
4776 (make_cleanup_restore_current_traceframe): New.
4777 * infrun.c: Include tracepoint.h.
4778 (fetch_inferior_event): Switch out and in of tfind mode.
4779
ab92d69b
PA
47802010-02-24 Pedro Alves <pedro@codesourcery.com>
4781
4782 * breakpoint.c (breakpoint_init_inferior): Also delete
4783 bp_shlib_event breakpoints.
4784 * solib-frv.c (enable_break): Remove call to
4785 remove_solib_event_breakpoints.
4786 * solib-svr4.c (enable_break): Ditto.
4787 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
4788 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
4789 * solib-som.c (som_solib_create_inferior_hook): Ditto.
4790 * solib-spu.c (spu_enable_break): Ditto.
4791
e707a91d
PA
47922010-02-23 Harald Koenig <H.Koenig@science-computing.de>
4793
4794 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
4795
cfce2ea2
PA
47962010-02-23 Harald Koenig <H.Koenig@science-computing.de>
4797
4798 * varobj.c (varobj_update): Avoid non-constants in initializers.
4799
05566b3b
TT
48002010-02-23 Tom Tromey <tromey@redhat.com>
4801
4802 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
4803 handle big-endian values.
4804 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
4805
85d721b8
PA
48062010-02-22 Pedro Alves <pedro@codesourcery.com>
4807
4808 PR9605
4809
4810 gdb/
4811 * breakpoint.c (insert_bp_location): If inserting the read
4812 watchpoint failed, fallback to an access watchpoint.
4813 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
4814 if the value changed, if not watching the same memory for writes.
4815 (watchpoint_locations_match): Add comment.
4816 (update_global_location_list): Copy the location's watchpoint type.
4817 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
4818 handle read watchpoints here.
4819 (i386_insert_watchpoint): Read watchpoints aren't supported.
4820 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
4821 packets.
4822 * target.h (target_insert_watchpoint): Update description.
4823
48ea67a7
TT
48242010-02-19 Tom Tromey <tromey@redhat.com>
4825
4826 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
4827 * m2-typeprint.c (m2_print_type): Update.
4828 * gdbtypes.c (recursive_dump_type): Update.
4829 (copy_type_recursive): Update.
4830 * c-typeprint.c (c_type_print_varspec_prefix): Update.
4831 (c_type_print_base): Update.
4832 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
4833 Remove.
4834 (struct cplus_struct_type) <ntemplate_args>: Remove.
4835 <struct template_arg>: Remove.
4836 <is_dynamic>: Move earlier.
4837 (TYPE_TEMPLATE_ARGS): Remove.
4838 (TYPE_NTEMPLATE_ARGS): Remove.
4839 (TYPE_TEMPLATE_ARG): Remove.
4840
48e32051
TT
48412010-02-19 Tom Tromey <tromey@redhat.com>
4842
4843 PR c++/8693, PR c++/9496:
4844 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
4845 * c-exp.y (lex_one_token): Rename from yylex. Don't call
4846 write_dollar_variable. Don't try to classify NAME tokens.
4847 (token_and_value): New type.
4848 (token_fifo, popping, name_obstack): New globals.
4849 (classify_name): New function.
4850 (classify_inner_name): Likewise.
4851 (yylex): Likewise.
4852 (VARIABLE): Now has type sval.
4853 (exp : VARIABLE): Call write_dollar_variable.
4854 (qualified_name): Use TYPENAME, not typebase. Add production for
4855 multiple "::" instances.
4856 (variable): Use name_not_typename.
4857 (qualified_type): Remove.
4858 (typebase): Update.
4859
672d9c23
JK
48602010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4861
4862 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
4863 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
4864 found by bfd_get_section_by_name.
4865 * symfile.h (struct section_addr_info) <sectindex>: New comment.
4866
bfbf3774
JB
48672010-02-19 Joel Brobecker <brobecker@adacore.com>
4868
4869 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
4870 7.0 section" into "Changes in 7.1".
4871
6756b09b 48722010-02-19 Joel Brobecker <brobecker@adacore.com>
4873
4874 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
4875 * version.in: Bump version to 7.1.50.20100219-cvs.
4876
202b96c1
PA
48772010-02-18 Harald Koenig <H.Koenig@science-computing.de>
4878
4879 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
4880 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
4881
de2e5182
TT
48822010-02-17 Tom Tromey <tromey@redhat.com>
4883
4884 * NEWS: Add Python API Improvements section.
4885
7280022e
DJ
48862010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
4887
4888 * NEWS: Correct typo.
4889
6f451e5e
TT
48902010-02-17 Tom Tromey <tromey@redhat.com>
4891
4892 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
4893
012836ea
JK
48942010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4895
4896 * symfile.c (build_section_addr_info_from_objfile): Include sections
4897 only if they are SEC_ALLOC or SEC_LOAD.
4898
d182d057
L
48992010-02-17 H.J. Lu <hongjiu.lu@intel.com>
4900
4901 PR shlibs/11293
4902 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
4903 of ULONGEST for address size.
4904
4eef138c
TT
49052010-02-17 Tom Tromey <tromey@redhat.com>
4906
4907 * NEWS: Add C++ improvements section.
4908
548a926a
UW
49092010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
4910
4911 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
4912 PyThreadState_Swap): Avoid "statement with no effect" warning.
4913
ad3a0e5b
JK
49142010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4915
4916 * solib-svr4.c (enable_break <target_auxv_search>): New variable
4917 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
4918
243e2c5d 49192010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 4920 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
4921
4922 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
4923 gdb_assert. Fix info->size for SIG prologue.
4924
275f2e57
DJ
49252010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4926
4927 * infcmd.c (show_inferior_tty_command): Check for NULL.
4928 Correct output message.
4929
791dfb64
DJ
49302010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4931
4932 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
4933 FUNCTION contains parentheses. Improve removal of a trailing
4934 single quote.
4935
14d1346b
DJ
49362010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4937
4938 * gcore.c (do_bfd_delete_cleanup): New function.
4939 (gcore_command): Use it. Discard the cleanup after success.
4940 (gcore_copy_callback): Delete dead code.
4941
e76ab67f
DJ
49422010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4943
4944 * symfile.c (addr_info_make_relative): Always use
4945 find_lowest_section.
4946
71dee663
SW
49472010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
4948
4949 * NEWS: Added entry for namespace fixes.
4950
a9854bd5
TT
49512010-02-15 Tom Tromey <tromey@redhat.com>
4952
4953 * dwarf2read.c (guess_structure_name): Allocate name on the
4954 objfile obstack.
4955
fd9e29b5
TT
49562010-02-15 Tom Tromey <tromey@redhat.com>
4957
4958 * c-typeprint.c (c_type_print_base): Reverse order of test.
4959
4e1fc9c9
JK
49602010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4961
4962 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
4963 initialize it from ELF BFD. Extend the prelink condition by it.
4964
74164c56
JK
49652010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 * defs.h (parse_pid_to_attach): New.
4968 * utils.c (parse_pid_to_attach): New.
4969 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
4970 * gnu-nat.c (gnu_attach): Likewise.
4971 * nto-procfs.c (procfs_attach): Likewise.
4972 * procfs.c (procfs_attach): Likewise.
4973 * windows-nat.c (windows_attach): Likewise.
4974 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
4975 * inf-ttrace.c (inf_ttrace_attach): Likewise.
4976 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
4977 check.
4978
bf6adea8
MM
49792010-02-14 Masaki Muranaka <monaka@monami-software.com>
4980
4981 * MAINTAINERS: Add myself for write after approval privileges.
4982
28f34a8f
JK
49832010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
4986 block.
4987
701ed6dc
JK
49882010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4989
4990 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
4991 only if INFO_VERBOSE.
4992
e5829bee
MS
49932010-02-12 Tomas Holmberg <th@virtutech.com>
4994
4995 * mi/mi-main.c: Added the --reverse flag to the following MI
4996 commands: exec-continue, exec-finish, exec-next, exec-step,
4997 exec-next-instruction, exec-step-instruction. This is to
4998 support reverse execution over the MI interface to gdb.
4999
081dfbf7
PA
50002010-02-12 Pedro Alves <pedro@codesourcery.com>
5001
5002 * tracepoint.c (_initialize_tracepoint): Specify that the address
5003 range of `tfind outsize' is exclusive, and that the address range
5004 of `tfind range' is inclusive, in the commands' help strings.
5005
ecc13e53
JB
50062010-02-12 Joel Brobecker <brobecker@adacore.com>
5007
5008 Spurious "dll not found" error messages on x64-windows.
5009 * windows-nat.c: Add include of complaints.h.
5010 (handle_unload_dll): Change dll-not-found error into a complaint.
5011
15c3d785
PA
50122010-02-12 Pedro Alves <pedro@codesourcery.com>
5013
5014 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5015 bp_tracepoint and bp_fast_tracepoint, not
5016 bp_loc_software_breakpoint.
5017 (update_global_location_list): Tracepoints are never duplicates of
5018 anything.
5019
fd9b8c24
PA
50202010-02-12 Pedro Alves <pedro@codesourcery.com>
5021
5022 * breakpoint.c (break_command_really): Change return type to int.
5023 Return false if no breakpoint was created, true otherwise.
5024 (trace_command): Don't set the tracepoint count if no tracepoint
5025 was created.
5026 (ftrace_command): Ditto.
5027 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5028 created in the breakpoints table.
5029
5c0d192f
JK
50302010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5031 Ulrich Weigand <uweigand@de.ibm.com>
5032
5033 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5034
5d5b640e
PA
50352010-02-11 Pedro Alves <pedro@codesourcery.com>
5036
5037 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5038 the offset value isn't of integral type.
5039
e5a0a904
JK
50402010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5041
5042 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5043 New.
5044
be636754
PA
50452010-02-11 Pedro Alves <pedro@codesourcery.com>
5046
5047 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5048 non-subscriptable types.
5049 * valarith.c (binop_types_user_defined_p): New, abstracted out
5050 from ...
5051 (binop_user_defined_p): ... this.
5052 * value.h (binop_types_user_defined_p): Declare.
5053
10ef8d6a
PA
50542010-02-11 Pedro Alves <pedro@codesourcery.com>
5055
5056 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5057 Merge uploaded TSVs before merging uploaded tracepoints.
5058
b1028c8e
PA
50592010-02-11 Pedro Alves <pedro@codesourcery.com>
5060
5061 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5062
7a93fb82 50632010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 5064
7a93fb82
VP
5065 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5066 whitespace character after a dot in comment.
5067 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5068 Likewise.
5069 (list_args_or_locals): For the 'all' (that is
5070 -stack-list-variables) case, always output list of tuples.
5071 Output 'arg' field if variable is argument.
84d90c10 5072
92981e24
TT
50732010-02-10 Tom Tromey <tromey@redhat.com>
5074
5075 * parser-defs.h (parser_debug): Declare.
5076 * parse.c (_initialize_parse): Install "debug parser" set/show
5077 command.
5078 (parser_debug): New global.
5079 (show_parserdebug): New function.
5080 * c-exp.y (c_parse): Set yydebug.
5081
9fd3625f
L
50822010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5083
5084 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5085 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5086 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5087 i386_mxcsr.
5088 (tdesc_find_type): New.
5089 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5090 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5091
5092 * target-descriptions.h (tdesc_find_type): New.
5093
2fe842e5
MS
50942010-02-10 Michael Snyder <msnyder@vmware.com>
5095
5096 * gdb-gdb.py: Comment fix.
5097
f18b4cab
TG
50982010-02-09 Tristan Gingold <gingold@adacore.com>
5099
5100 * machoread.c (macho_symfile_relocate): New function.
5101 (macho_sym_fns): Use macho_symfile_relocate instead of
5102 default_symfile_relocate.
5103 (macho_oso_data): New type.
5104 (current_oso): New variable.
5105 (macho_add_oso_symfile): Do not compute section_addr_info, but
5106 instead set vma of sections.
5107 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5108 Set and clear current_oso.
5109
31dbc1c5
JB
51102010-02-09 Joel Brobecker <brobecker@adacore.com>
5111
5112 Wrong type description for tagged type parameter.
5113 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5114 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5115 reference to a tagged type.
5116
399f313b
TG
51172010-02-09 Tristan Gingold <gingold@adacore.com>
5118
5119 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5120 brothers of the parent.
5121
714f19d5
TT
51222010-02-08 Tom Tromey <tromey@redhat.com>
5123
5124 PR c++/8017:
5125 * value.h: Update.
5126 * valops.c (search_struct_field): Make 'name' const.
5127 (search_struct_method): Likewise.
5128 (find_method_list): Make 'method' const.
5129 (value_struct_elt): Make 'name' and 'err' const.
5130 (value_find_oload_method_list): Make 'method' const.
5131 (find_overload_match): Make 'name' const.
5132 * eval.c (evaluate_subexp_standard): New locals function,
5133 function_name.
5134 <OP_FUNCALL>: Handle OP_SCOPE specially.
5135
de0a0249
UW
51362010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5137
5138 * infrun.c (handle_inferior_event): Do not look up regcache
5139 for exited processes.
5140
8d95cc3b 51412010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
5142
5143 PR gdb/10728
5144 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 5145 warn if found, and assume length = 1.
83b10087 5146
99903ae3
CM
51472010-02-08 Chris Moller <cmoller@redhat.com>
5148
5149 PR gdb/9067
5150 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5151 cp_print_static_field) Fix use of obstacks.
8d95cc3b 5152
e3e9f5a2
PA
51532010-02-08 Pedro Alves <pedro@codesourcery.com>
5154
5155 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5156 resumed LWPs as resumed.
5157 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5158 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5159 of throwing an internal error. If an LWP of a process we're not
5160 waiting for reports a signal, don't force collecting a SIGSTOP,
5161 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5162 go through all LWPs cancelling breakpoints in non-stop mode.
5163 (resume_stopped_resumed_lwps): New.
5164 (linux_nat_wait): Use it.
5165
46763423
L
51662010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5167
5168 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5169 i386/amd64 and i386/amd64-linux.
5170 (i386/i386-expedite): New.
5171 (i386/i386-linux-expedite): Likewise.
5172 (i386/amd64-expedite):Likewise.
5173 (i386/amd64-linux-expedite): Likewise.
5174 ($(outdir)/i386/i386-linux.dat): Likewise.
5175 ($(outdir)/i386/amd64.dat): Likewise.
5176 ($(outdir)/i386/amd64-linux.dat): Likewise.
5177
5178 * features/i386/32bit-core.xml: New.
5179 * features/i386/32bit-linux.xml: Likewise.
5180 * features/i386/32bit-sse.xml: Likewise.
5181 * features/i386/64bit-core.xml: Likewise.
5182 * features/i386/64bit-linux.xml: Likewise.
5183 * features/i386/64bit-sse.xml: Likewise.
5184 * features/i386/i386-linux.xml: Likewise.
5185 * features/i386/i386.xml: Likewise.
5186 * features/i386/amd64-linux.xml: Likewise.
5187 * features/i386/amd64.xml: Likewise.
5188 * features/i386/i386-linux.c: Likewise.
5189 * features/i386/i386.c: Likewise.
5190 * features/i386/amd64-linux.c: Likewise.
5191 * features/i386/amd64.c: Likewise.
5192
82856980
SW
51932010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
5194
5195 PR c++/7935:
5196 * cp-support.h: Added char* alias element to using_direct data
5197 struct.
5198 (cp_add_using): Added char* alias argument.
5199 (cp_add_using_directive): Ditto.
5200 * cp-namespace.c: Updated with the above changes.
5201 (cp_lookup_symbol_imports): Check for aliases.
5202 * dwarf2read.c (read_import_statement): Figure out local alias
5203 for the import and pass it on to cp_add_using.
5204 (read_namespace): Pass alias argument to cp_add_using.
5205
d18b8b7a
HZ
52062010-02-05 Hui Zhu <teawater@gmail.com>
5207
5208 * defs.h (gdb_bfd_errmsg): New extern.
5209 * exec.c (exec_file_attach): Change bfd_errmsg to
5210 gdb_bfd_errmsg.
5211 * utils.c (AMBIGUOUS_MESS1): New macro.
5212 (AMBIGUOUS_MESS2): New macro.
5213 (gdb_bfd_errmsg): New function.
5214
48379de6
DE
52152010-02-04 Doug Evans <dje@google.com>
5216
5217 * solib-svr4.c (enable_break): Add comment.
5218
4ee73e90
AG
52192010-02-04 Anthony Green <green@moxielogic.com>
5220
5221 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5222 gracefully.
5223
1a334831
TT
52242010-02-04 Tom Tromey <tromey@redhat.com>
5225
5226 * valops.c (search_struct_field): Account for
5227 value_embedded_offset. Fix check for virtual base past the end of
5228 the object. Use value_copy when making a slice of the value.
5229
1180b2c8
L
52302010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5231
5232 PR tui/9622
5233 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5234 only if gdb_stdout is a tty.
5235
c3f08eb7
L
52362010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5237
5238 * target-descriptions.c: Include "osabi.h".
5239 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5240 OSABI.
5241
2d33f7b8
TG
52422010-02-04 Tristan Gingold <gingold@adacore.com>
5243
5244 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5245 (macho_symtab_read): Adjust calls to macho_add_oso.
5246 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5247 (macho_symfile_read): Adjust call to macho_oso_symfile.
5248 (macho_new_init): Move this function after declarations.
5249 (macho_symfile_init): Ditto.
5250 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5251 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5252
11334b82
VP
52532010-02-04 Vladimir Prus <vladimir@codesourcery.com>
5254
5255 Include MI command in remotelog.
5256
5257 * mi/mi-main.c (mi_execute_command): Call target_log_command.
5258
ff97be06
L
52592010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5260
5261 * remote.c (remote_state): Remove gdbarch.
5262 (init_remote_state): Don't set gdbarch.
5263 (remote_query_supported): Pass target_gdbarch instead of
5264 rs->gdbarch to gdbarch_qsupported.
5265
75cebea9
L
52662010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 * gdbarch.sh: Add qsupported.
5269
5270 * gdbarch.c: Regenerated.
5271 * gdbarch.h: Likewise.
5272
5273 * remote.c (remote_state): Add gdbarch.
5274 (init_remote_state): Set gdbarch.
5275 (remote_query_supported): Support gdbarch_qsupported.
5276
c1dec97b
DJ
52772010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
5278
5279 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5280 __FreeBSD_kernel_version.
5281
ac8035ab
TG
52822010-02-03 Tristan Gingold <gingold@adacore.com>
5283
5284 * symfile.h (struct sym_fns): Add sym_relocate field.
5285 (default_symfile_relocate): New prototype.
5286 (symfile_relocate_debug_section): First argument is now an objfile.
5287 * symfile.c (default_symfile_relocate): Rename from
5288 symfile_relocate_debug_section, first argument is now an objfile.
5289 (symfile_relocate_debug_section): New function.
5290 * coffread.c (coff_sym_fns): Set sym_relocate field.
5291 * somread.c (som_sym_fns): Ditto.
5292 * mipsread.c (ecoff_sym_fns): Ditto.
5293 * machoread.c (macho_sym_fns): Ditto.
5294 * elfread.c (elf_sym_fns): Ditto.
5295 * dwarf2read.c (dwarf2_read_section): Ditto.
5296 * xcoffread.c (xcoff_sym_fns): Ditto.
5297 * dbxread.c (aout_sym_fns): Ditto.
5298 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5299 (elfstab_build_psymtabs): Ditto.
5300
be52b756
L
53012010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5302
5303 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5304
9c3c02fd
TT
53052010-02-02 Tom Tromey <tromey@redhat.com>
5306
5307 * valops.c (value_cast_structs): Try downcasting using the RTTI
5308 type.
5309
f23f4c59
TT
53102010-02-02 Tom Tromey <tromey@redhat.com>
5311
5312 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5313 (gnuv2_baseclass_offset): Now static.
5314 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5315 * gnu-v2-abi.h: Remove.
5316
0cc2414c
TT
53172010-02-02 Tom Tromey <tromey@redhat.com>
5318
5319 * m2-typeprint.c (m2_record_fields): Don't use
5320 TYPE_DECLARED_TYPE.
5321 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5322 (struct main_type) <flag_declared_class>: New field.
5323 (struct cplus_struct_type) <declared_type>: Remove.
5324 <ntemplate_args>: Move earlier.
5325 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5326 (DECLARED_TYPE_TEMPLATE): Remove.
5327 (TYPE_DECLARED_TYPE): Remove.
5328 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5329 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5330 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5331 TYPE_DECLARED_TYPE.
5332
edf3d5f3
TT
53332010-02-02 Tom Tromey <tromey@redhat.com>
5334
5335 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5336 * valops.c (search_struct_field): Compute nbases after calling
5337 CHECK_TYPEDEF.
5338 (check_field): Call CHECK_TYPEDEF.
5339 * cp-valprint.c (cp_print_value): Pass correct address to
5340 baseclass_offset. Fix check for virtual base past the end of the
5341 object. Don't offset address passed to cp_print_value_fields or
5342 apply_val_pretty_printer.
5343 (cp_print_value_fields): Fix call to val_print.
5344 (cp_print_value_fields_rtti): New function.
5345 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5346 * p-valprint.c (pascal_object_print_value_fields): Fix call to
5347 val_print.
5348 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5349 offset to address.
5350 * language.h (struct language_defn) <la_val_print>: Document.
5351 * c-lang.h (cp_print_value_fields_rtti): Declare.
5352
e4b7f41c
JK
53532010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5354
5355 PR libc/11214:
5356 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5357 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5358 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5359
7618e12b
DJ
53602010-02-01 Michael Matz <matz@suse.de>
5361 Daniel Jacobowitz <dan@codesourcery.com>
5362
e4b7f41c 5363 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
5364 functions use a frame pointer.
5365
b381ea14
JK
53662010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5367
5368 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
5369 by a conditional setting DYN_ADDR. Use DYN_ADDR.
5370 * config/djgpp/fnchange.lst: Add translations for
5371 symbol-without-target_section.exp and symbol-without-target_section.c.
5372
0e05dfcb
DJ
53732010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5374
5375 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5376 (remote_breakpoint_for_pc): Correct invalid_p check.
5377 * gdbarch.c: Regenerated.
5378
f9d67f43
DJ
53792010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5380
5381 * arm-tdep.c (arm_find_mapping_symbol): New function, from
5382 arm_pc_is_thumb.
5383 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5384 (extend_buffer_earlier): New function.
5385 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5386 (arm_adjust_breakpoint_address): New function.
5387 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5388
177321bd
DJ
53892010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5390
5391 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5392 (arm_linux_thumb2_le_breakpoint): New constants.
5393 (arm_linux_init_abi): Set thumb2_breakpoint and
5394 thumb2_breakpoint_size.
5395 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5396 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
5397 Implement support for single stepping through IT blocks if
5398 a 32-bit Thumb breakpoint instruction is available.
5399 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5400 is available, use it when needed.
5401 (arm_remote_breakpoint_from_pc): New function.
5402 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5403 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5404 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
5405
a1dcb23a
DJ
54062010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5407
5408 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5409 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5410 * gdbarch.c, gdbarch.h: Regenerated.
5411 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5412 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5413 gdbarch_remote_breakpoint_from_pc.
5414
2b009048
DJ
54152010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5416
5417 * infrun.c (prepare_to_proceed): Handle other signals which might
5418 match a breakpoint.
5419 (handle_inferior_event): Move the check for unusual breakpoint
5420 signals earlier.
5421
e4e2711a
JB
54222010-01-29 Paul Hilfinger <hilfinger@adacore.com>
5423
5424 amd64 - function returning record with field straddling 2 registers.
5425 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5426 a record of length <= 16 in which a field straddles the two
5427 eightbytes.
5428
cba6fab5
JB
54292010-01-29 Joel Brobecker <brobecker@adacore.com>
5430
5431 Implement return values on amd64-windows.
5432 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5433 (amd64_windows_return_value): New function.
5434 (amd64_windows_init_abi): Call set_gdbarch_return_value with
5435 amd64_windows_return_value.
5436
3af6ddfe
JB
54372010-01-29 Joel Brobecker <brobecker@adacore.com>
5438
5439 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 5440 parameter registers.
3af6ddfe
JB
5441 * i386-tdep.h (struct gdbarch_tdep): Add new field
5442 integer_param_regs_saved_in_caller_frame.
5443 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5444 tdep->integer_param_regs_saved_in_caller_frame to 1.
5445 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5446 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5447
80d19a06
JB
54482010-01-29 Joel Brobecker <brobecker@adacore.com>
5449
5450 amd64-windows: memory args passed by pointer during function calls.
5451 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5452 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5453 where tdep->memory_args_by_pointer is non-zero.
5454 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5455 tdep->memory_args_by_pointer to 1.
5456
ba581dc1
JB
54572010-01-29 Joel Brobecker <brobecker@adacore.com>
5458
4966b6c2 5459 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
5460 * i386-tdep.h (enum amd64_reg_class): New, moved here from
5461 amd64-tdep.c.
5462 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5463 call_dummy_integer_regs, and classify.
5464 * amd64-tdep.h (amd64_classify): Add declaration.
5465 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5466 (amd64_reg_class): Delete, moved to i386-tdep.h.
5467 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
5468 Replace call to amd64_classify by call to tdep->classify.
5469 (amd64_push_arguments): Get the list of registers to use for
5470 passing integer parameters from the gdbarch tdep structure,
5471 rather than using a hardcoded one. Replace calls to amd64_classify
5472 by calls to tdep->classify.
5473 (amd64_push_dummy_call): Get the register number used for
5474 the "hidden" argument from tdep->call_dummy_integer_regs.
5475 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5476 and tdep->call_dummy_integer_regs. Set tdep->classify.
5477 * amd64-windows-tdep.c: Add include of gdbtypes.h.
5478 (amd64_windows_dummy_call_integer_regs): New static global.
5479 (amd64_windows_classify): New function.
5480 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5481 tdep->call_dummy_integer_regs and tdep->classify.
5482
d37346f0
DJ
54832010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5484
5485 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
5486 for the new regcache. All callers updated.
5487 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5488 (get_thread_arch_regcache): Do not set aspace here.
5489 * regcache.h (regcache_xmalloc): Update declaration.
5490
5491 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5492 regcache_xmalloc updated.
5493
7434dadd
JB
54942010-01-28 Joel Brobecker <brobecker@adacore.com>
5495
5496 Another -Wunused-function error in procfs.c (sparc-solaris)
5497 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
5498 Only define if SYS_syssgi is defined.
5499 (remove_dbx_link_breakpoint): Delete declaration. Move up.
5500 (dbx_link_addr, insert_dbx_link_bpt_in_file)
5501 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
5502 is itself defined.
5503
16d905e2
CF
55042010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
5505
5506 * windows-nat.c (windows_initialization_done): New variable.
5507 (get_windows_debug_event): Issue error when process dies before
5508 completely initializing.
5509 (do_initial_windows_stuff): Set flag to indicate when we are done with
5510 the initial steps of attaching to the child.
5511
cd55e50f
JK
55122010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5513
5514 * symtab.h (struct symbol <symtab>): New comment on NULL values.
5515
99cc78aa
DE
55162010-01-27 Doug Evans <dje@google.com>
5517
4c7dcb84
DE
5518 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5519
99cc78aa
DE
5520 * breakpoint.c (bpstat_stop_status): Delete useless code.
5521
52334bf5
JK
55222010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5523
5524 * printcmd.c (display_uses_solib_p): Remove variable section. Access
5525 objfile via SYMBOL_SYMTAB.
5526
708ead4e
TT
55272010-01-26 Tom Tromey <tromey@redhat.com>
5528
5529 PR exp/7643:
5530 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5531 coerce_array on result.
5532
b14e635e
SW
55332010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5534
5535 * cp-namespace.c (cp_lookup_symbol_namespace): Added
5536 search_parent argument.
5537 (cp_add_using): Initialize 'searched' field.
5538 (reset_directive_searched): New function.
5539 * cp-support.h: Add 'searched' field to using_direct struct.
5540 (cp_lookup_symbol_imports): Ditto.
5541 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5542 Perform recursive search.
5543 Implement non parent search.
5544 * valops.c (value_maybe_namespace_elt): Updated.
5545
8540c487
SW
55462010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5547
5548 PR gdb/10929:
5549 * dwarf2read.c (read_lexical_block_scope): Create blocks for
5550 scopes which contain using directives even if they contain no
5551 declarations.
5552 * symtab.c (lookup_symbol_aux): Pass lowest level block to
5553 la_lookup_symbol_nonlocal.
5554 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5555 cp_lookup_symbol_namespace.
5556 (cp_lookup_symbol_namespace): Perform an import lookup at every
5557 block level.
5558 (cp_lookup_symbol_imports): New function.
5559 (cp_lookup_symbol_in_namespace): New function.
5560
421d5d99
TT
55612010-01-25 Tom Tromey <tromey@redhat.com>
5562
5563 PR gdb/11049:
5564 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5565 result.
5566
6bcc772d
RO
55672010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5568
5569 * configure.ac: Only use host_os part when disabling TUI on osf.
5570 Use test to check variables, prefix strings with x.
5571 * configure: Regenerate.
5572
5573 * solib-osf.c (osf_current_sos): Initialize tail.
5574
1c1238a5
TG
55752010-01-25 gingold <gingold@adacore.com>
5576
c8d5aac9
L
5577 * windows-nat.c (windows_continue): Use %x to print thread id.
5578 (get_windows_debug_event): Ditto.
1c1238a5 5579
0b92b5bb
TT
55802010-01-22 Tom Tromey <tromey@redhat.com>
5581
5582 PR symtab/11199:
5583 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5584 type and arguments. Use smash_to_methodptr_type.
5585 (read_structure_type): Call quirk_gcc_member_function_pointer
5586 later.
5587 * gdbtypes.h (smash_to_methodptr_type): Declare.
5588 * gdbtypes.c (smash_to_methodptr_type): New function.
5589 (lookup_methodptr_type): Use it.
5590
0d5392b8
TT
55912010-01-21 Tom Tromey <tromey@redhat.com>
5592
5593 PR symtab/11198:
5594 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
5595 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
5596 * glibc-tdep.c (find_minsym_and_objfile): Remove.
5597 (glibc_skip_solib_resolver): Use
5598 lookup_minimal_symbol_and_objfile.
5599
e6d088ec
KT
56002010-01-21 Kai Tietz <kai.tietz@onevision.com>
5601
5602 * inflow.c (check_syscall): Guard by #if clause for GO32 and
5603 WIN32 targets.
5604
b966cb8a
TT
56052010-01-20 Tom Tromey <tromey@redhat.com>
5606
5607 PR backtrace/10770:
5608 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
5609 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
5610 * dwarf2expr.c (new_dwarf_expr_context): Allocate
5611 dwarf_stack_values, not CORE_ADDRs.
5612 (execute_stack_op): Change DW_OP_div and comparison operators to
5613 use signed operands.
5614
3f81c18a
VP
56152010-01-20 Vladimir Prus <vladimir@codesourcery.com>
5616
5617 Per-inferior args and tty and environment.
5618
5619 * infcmd.c (inferior_args): Rename to ...
5620 (inferior_args_scratch): ... this.
5621 (inferior_io_terminal): Rename to ...
5622 (inferior_io_terminal_scratch): ... this.
5623 (inferior_argc, inferior_argv): Remove.
5624 (set_inferior_io_terminal, get_inferior_io_terminal): Store
5625 inside current_inferior().
5626 (set_inferior_tty_command, show_inferior_tty_command): New.
5627 (get_inferior_args, set_inferior_args): Store inside
5628 current_inferior().
5629 (notice_args_set): Likewise and rename to...
5630 (set_args_command): ... this.
5631 (set_inferior_args_vector): Likewise.
5632 (notice_args_read): Rename to...
5633 (show_args_command): ...new.
5634 (tty_command): Remove.
5635 (run_command_1): Don't free old args, as they are freed by
5636 set_inferior_arg now.
5637 (run_no_args_command): Likewise.
5638 (inferior_environ): Remove.
5639 (run_command_1): Use environment of the current inferior.
5640 (environment_info, set_environment_command)
5641 (unset_environment_command, path_info, path_command): Likewise.
5642 (_initialize_infcmd): Adjust for function and variable renames.
5643 Do not init inferior_environ.
5644 * inferior.h (set_inferior_arg): Adjust prototype.
5645 (struct inferior): New fields args, argc, argv, terminal, environment.
5646 (inferior_environ): Remove declaration.
5647 * inferior.c (free_inferior): Free new fields.
5648 (add_inferior_silent): Initialize 'environment' field.
5649 * main.c (captured_main): Set arguments only after the initial
5650 inferior has been created. Set set_inferior_io_terminal,
5651 not tty_command.
5652 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
5653 inferior.
5654 (_initialize_mi_cmd_env): Adjust for disappearance of global
5655 inferior_environ.
5656 * solib.c (solib_find): Use environment of the current inferior.
5657
d8b65138
JK
56582010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5659
5660 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
5661 HAVE_PYTHON.
5662 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
5663
692465f1
JB
56642010-01-20 Joel Brobecker <brobecker@adacore.com>
5665
5666 Get rid of ada-lang.c:function_name_from_pc.
5667 * ada-lang.c: Add "stack.h" #include.
5668 (function_name_from_pc): Delete.
5669 (is_known_support_routine): Replace call to function_name_from_pc
5670 by call to find_frame_funname.
5671 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5672
95519e0e
TT
56732010-01-19 Tom Tromey <tromey@redhat.com>
5674
5675 PR c++/11026:
5676 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
5677 objfile obstack.
5678
95c11dc7
TT
56792010-01-19 Tom Tromey <tromey@redhat.com>
5680
5681 * top.c (stop_sig, float_handler, do_nothing): Remove.
5682
a0f49112
JK
56832010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5684
5685 * breakpoint.c (watchpoint_check): Check the call
5686 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
5687 Extend the comment.
8d95cc3b 5688 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
5689 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
5690 watchpoint-cond-gone-stripped.c.
5691
ceeb3d5a
TT
56922010-01-19 Tom Tromey <tromey@redhat.com>
5693
5694 PR c++/8000:
5695 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
5696 into parent scope, and enumerator into grandparent scope.
5697
2b71fc8e
JB
56982010-01-19 Joel Brobecker <brobecker@adacore.com>
5699
5700 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
5701
03564ed9
JB
57022010-01-19 Joel Brobecker <brobecker@adacore.com>
5703
5704 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
5705 i[34567]86-*-solaris2.1[0-9]*.
5706 * configure.tgt: Likewise.
5707
fb2e7cb4
JB
57082010-01-19 Joel Brobecker <brobecker@adacore.com>
5709
5710 * NEWS: Document the source command enhancement allowing it
5711 to load Python scripts. Document the "set/show script-extension"
5712 commands.
5713
1cb5e2a4
JB
57142010-01-19 Joel Brobecker <brobecker@adacore.com>
5715
5716 Add -Wunused-function to compile flags.
5717 * configure.ac: Add -Wunused-function to build_warnings.
5718 * configure: Regenerate.
5719
0ec6cd0c
JB
57202010-01-19 Joel Brobecker <brobecker@adacore.com>
5721
5722 "delete" ada-lex.c:input function, not used.
5723 * ada-lex.l: #define YY_NO_INPUT.
5724
b74845da
JB
57252010-01-19 Joel Brobecker <brobecker@adacore.com>
5726
5727 Delete free_named_symtabs and associated cleanup.
5728 * symfile.h (free_named_symtabs): Delete declaration.
5729 * symfile.c: Remove some commented out code (clear_symtab_users_once).
5730 (cashier_psymtab): Comment function out.
5731 Delete declaration.
5732 (free_named_symtabs): Delete.
5733 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
5734 * dbxread.c (end_psymtab): Likewise.
5735 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
5736 * exec.c (exec_close_1): Ditto.
5737 * xcoffread.c (xcoff_end_psymtab): Likewise.
5738
65c06092
JB
57392010-01-19 Joel Brobecker <brobecker@adacore.com>
5740
5741 * stack.c (print_block_frame_labels): Comment function out.
5742
d5cd6034
JB
57432010-01-19 Joel Brobecker <brobecker@adacore.com>
5744
5745 Delete unused or undefined functions.
5746 * breakpoint.c (ep_parse_optional_filename): Delete.
5747 * dcache.c (dcache_write_line): Remove declaration.
5748 * infrun.c (build_infrun): Remove declaration.
5749 * tracepoint.c (tracepoint_save_command): Remove declaration.
5750 * linux-nat.c (init_lwp_list): Delete. No longer used.
5751 * event-loop.c (check_async_signal_handlers): Delete declaration.
5752 * infrun.c (init_execution_control_state): Delete.
5753 (proceed): Update comment to avoid mentioning
5754 init_execution_control_state.
5755 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
5756 * ada-lang.c (ada_to_static_fixed_value): Delete.
5757 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
5758 * cp-namespace.c (cp_copy_usings): Delete.
5759 * xml-syscall.c (xml_number_of_syscalls): Delete.
5760 * progspace.c (find_program_space_by_num): Delete.
5761 * inflow.c (handle_sigio): Delete declaration.
5762 * hppa-tdep.c (hppa_alignof): Delete.
5763 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
5764 (mipsnbsd_core_osabi_sniffer): Delete.
5765
4e8f195d
TT
57662010-01-18 Tom Tromey <tromey@redhat.com>
5767
5768 PR c++/9680:
5769 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
5770 (CONST_CAST): New tokens.
5771 (exp): Add new productions.
5772 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
5773 reinterpret_cast.
5774 (is_cast_operator): New function.
5775 (yylex): Handle cast operators specially.
5776 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
5777 UNOP_REINTERPRET_CAST>: New cases.
5778 * expprint.c (print_subexp_standard): Likewise.
5779 (op_name_standard): Likewise.
5780 (dump_subexp_body_standard): Likewise.
5781 * parse.c (operator_length_standard): Likewise.
5782 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
5783 UNOP_REINTERPRET_CAST.
5784 * gdbtypes.c (class_types_same_p): New function.
5785 (is_ancestor): Use it.
5786 (is_public_ancestor): New function.
5787 (is_unique_ancestor_worker): Likewise.
5788 (is_unique_ancestor): Likewise.
5789 * gdbtypes.h (class_types_same_p, is_public_ancestor)
5790 (is_unique_ancestor): Declare.
5791 * valops.c (value_reinterpret_cast): New function.
5792 (dynamic_cast_check_1): Likewise.
5793 (dynamic_cast_check_2): Likewise.
5794 (value_dynamic_cast): Likewise.
5795 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
5796
d9c57d9f
JB
57972010-01-18 Joel Brobecker <brobecker@adacore.com>
5798
5799 Fix build failure when building without Python support.
5800 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
5801 is not defined.
5802
f80d3ff2
JB
58032010-01-18 Joel Brobecker <brobecker@adacore.com>
5804
5805 Use XVS field type instead of doing a parallel lookup.
5806 * ada-lang.c (ada_get_base_type): Follow the XVS field type
5807 if it is a reference type instead of doing a type lookup using
5808 the XVS field name.
5809
5bf03f13
JB
58102010-01-18 Joel Brobecker <brobecker@adacore.com>
5811
5812 Trust PAD types instead of using PAD___XVS.
5813 * ada-lang.c (trust_pad_over_xvs): New static variable.
5814 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
5815 parallel XVS type, follow the XVS type instead of the PAD type.
5816 (unwrap_value): Make sure that there is no parallel XVE type
5817 before returning the value as is.
5818 (set_ada_list, show_ada_list): New static variables.
5819 (set_ada_command, show_ada_command): New functions.
5820 (_initialize_ada_language): Add new "set/show ada" prefix commands.
5821 Add new "set/show ada trust-PAD-over-XVS" setting.
5822
973817a3
JB
58232010-01-18 Tom Tromey <tromey@redhat.com>
5824 Thiago Jung Bauermann <bauerman@br.ibm.com>
5825
5826 Allow "source" to load python scripts.
5827 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
5828 * python/python.c (source_python_script): New function.
5829 * python/python.h (source_python_script): Add declaration.
5830 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
5831 (script_ext_off, script_ext_soft, script_ext_strict)
5832 (script_ext_enums, script_ext_mode): New static constants.
5833 (show_script_ext_mode, find_and_open_script): New functions.
5834 (source_script): Enhance to handle Python scripts.
5835 (init_cli_cmds): Add set/show script-extension commands.
5836
98e03262
SS
58372010-01-16 Stan Shebs <stan@codesourcery.com>
5838
5839 * tracepoint.h (struct trace_status): Use unsigned long long
5840 instead of size_t.
5841 * tracepoint.c (trace_status_command): Fix printf directive.
5842 (trace_save_command): Check fwrite returns, fix printf directive.
5843 (trace_filename): New global.
5844 (tfile_open): Set it, check read returns.
5845 (tfile_close): Free trace_filename.
5846 (tfile_get_traceframe_address): Check read returns.
5847 (tfile_trace_find): Ditto.
5848 (tfile_fetch_registers): Ditto.
5849 (tfile_xfer_partial): Ditto.
5850 (tfile_get_trace_state_variable_value): Ditto.
5851
00bf0b85
SS
58522010-01-15 Stan Shebs <stan@codesourcery.com>
5853
5854 Add trace file support.
5855 * tracepoint.h (enum trace_stop_reason): New enum.
5856 (struct trace_status): New struct.
5857 (parse_trace_status): Declare.
5858 (struct uploaded_tp): Move here from remote.c,
5859 add fields for actions.
5860 (struct uploaded_tsv): New struct.
5861 * tracepoint.c (tfile_ops): New target vector.
5862 (trace_fd): New global.
5863 (tfile_open): New function.
5864 (tfile_close): New function.
5865 (tfile_files_info): New function.
5866 (tfile_get_trace_status): New function.
5867 (tfile_get_traceframe_address): New function.
5868 (tfile_trace_find): New function.
5869 (tfile_fetch_registers): New function.
5870 (tfile_xfer_partial): New function.
5871 (tfile_get_trace_state_variable_value): New function.
5872 (init_tfile_ops): New function.
5873 (_initialize_tracepoint): Call it, add tfile target.
5874 (trace_status): New global.
5875 (current_trace_status): New function.
5876 (trace_running_p): Remove, change all users to get from
5877 current_trace_status()->running.
5878 (get_trace_status): Remove.
5879 (trace_status_command): Call target_get_trace_status directly,
5880 report more detail including tracing stop reasons.
5881 (trace_find_command): Always allow tfind on a file.
5882 (trace_find_pc_command): Ditto.
5883 (trace_find_tracepoint_command): Ditto.
5884 (trace_find_line_command): Ditto.
5885 (trace_find_range_command): Ditto.
5886 (trace_find_outside_command): Ditto.
5887 (trace_frames_offset, cur_offset): Declare as off_t.
5888 (trace_regblock_size): Rename from reg_size, update users.
5889 (parse_trace_status): New function.
5890 (tfile_interp_line): New function.
5891 (disconnect_or_stop_tracing): Ensure current trace
5892 status before asking what to do.
5893 (stop_reason_names): New global.
5894 (trace_save_command): New command.
5895 (get_uploaded_tp): Move here from remote.c.
5896 (find_matching_tracepoint): Ditto.
5897 (merge_uploaded_tracepoints): New function.
5898 (parse_trace_status): Use stop_reason_names.
5899 (_initialize_tracepoint): Define tsave command.
5900 * target.h (target_ops): New fields to_save_trace_data,
5901 to_upload_tracepoints, to_upload_trace_state_variables,
5902 to_get_raw_trace_data, change to_get_trace_status
5903 to take a pointer to a status struct.
5904 (target_save_trace_data): New macro.
5905 (target_upload_tracepoints): New macro.
5906 (target_upload_trace_state_variables): New macro.
5907 (target_get_raw_trace_data): New macro.
5908 * target.c (update_current_target): Add new methods, change
5909 signature of to_get_trace_status.
5910 * remote.c (hex2bin): Make globally visible.
5911 (bin2hex): Ditto.
5912 (remote_download_trace_state_variable): Download name also.
5913 (remote_get_trace_status): Update parameter, use
5914 parse_trace_status.
5915 (remote_save_trace_data): New function.
5916 (remote_upload_tracepoints): New function.
5917 (remote_upload_trace_state_variables): New function.
5918 (remote_get_raw_trace_data): New function.
5919 (remote_start_remote): Use them.
5920 (_initialize_remote_ops): Add operations.
5921 * ax-gdb.c: Include breakpoint.h.
5922 * breakpoint.c (create_tracepoint_from_upload): Use
5923 break_command_really, return tracepoint, warn about unimplemented
5924 parts.
5925 * NEWS: Mention trace file addition.
5926
d904de5b
JK
59272010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5928
5929 Fix compilation warning on gcc-3.4.
5930 * exec.c (print_section_info): Move the `displacement' variable
5931 initialization to its declaration.
5932
64aa9731
JK
59332010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5934
5935 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
5936 comparison.
5937
ca1f5def 59382010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
5939
5940 "info tasks" broken by typedefs in ATCB type definitions.
5941 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
5942 ada_check_typedef before retrieving the length of the type for
5943 regular fields.
5944
12ab9e09
JB
59452010-01-15 Joel Brobecker <brobecker@adacore.com>
5946
5947 Do not use name-based lookup for unconstrained packed arrays.
5948 * ada-lang.c (find_parallel_type_by_descriptive_type):
5949 Limit the fallback to name-based lookups to the case where
5950 the type is a constrained packed array.
5951
c389c3dc
JB
59522010-01-15 Joel Brobecker <brobecker@adacore.com>
5953
5954 Enhance gdb-gdb.py to handle main_type.type_specific.
5955 * gdb-gdb.py: Print the type-specific part of struct main_type.
5956
7991dee7
JK
59572010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5958
5959 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
5960 * configure: Regenerate.
5961 * config.in: Regenerate.
5962 * utils.c: Include sys/resource.h.
5963 (dump_core, can_dump_core): New.
5964 (internal_vproblem): Update the comment. Check can_dump_core while
5965 setting dump_core_p. Replace two abort calls by dump_core calls.
5966
93c26624
JK
59672010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5968 Eli Zaretskii <eliz@gnu.org>
5969
5970 * NEWS: Document the PIE support.
5971
55235ad7
JK
59722010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5973
5974 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
5975 (check_is_pie_binary, _initialize_linux_tdep): Remove.
5976
41752192
JK
59772010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5978
5979 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
5980 Replace exec_entry_point call by bfd_get_start_address.
5981
9f2982ff
JK
59822010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5983
5984 Support Valgrind attachments broken by the PIE support.
5985 * auxv.c: Include gdbcore.h.
5986 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
5987 parameters ops, object and annex. Remove their assertions.
5988 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
5989 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
5990 (memory_xfer_auxv): ... here.
5991 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
5992 memory_xfer_auxv.
5993 * procfs.c (procfs_xfer_partial): Likewise.
5994 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
5995 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
5996 (svr4_solib_create_inferior_hook): Conditionalize the
5997 svr4_relocate_main_executable call.
5998
61f0d762
JK
59992010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6002 target_section. Find SECT in current_target_sections, gdb_assert it.
6003 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6004 New variable abfd.
6005 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6006 of separate debug info file.
6007
51bee8e9
JK
60082010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 Support PIEs with no symfile_objfile.
6011 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6012 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6013
b8040f19
JK
60142010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6015
6016 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6017 code part to ...
6018 (svr4_static_exec_displacement): ... a new function.
6019 (svr4_exec_displacement): New function.
6020 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6021 new_offsets using alloca now. Remove variable old_chain and changed.
6022 Call objfile_relocate unconditionally now.
6023
eb90ce83
DE
60242010-01-14 Doug Evans <dje@google.com>
6025
6026 * gdbtypes.c (arch_flags_type): Fix comment.
6027 * gdbtypes.h (arch_composite_type): Fix comment.
6028
bdfed3bc
TG
60292009-01-14 Tristan Gingold <gingold@adacore.com>
6030
6031 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6032 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6033 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6034 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6035 macho_add_oso_symfile.
6036 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6037
1596ad23
JB
60382010-01-14 Joel Brobecker <brobecker@adacore.com>
6039
6040 Tru64: Dead threads are never deleted.
6041 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6042 (dec_thread_count_gdb_threads): Fix counter increment.
6043 (dec_thread_add_gdb_thread): Fix *listp increment.
6044 (resync_thread_list): Fix bug in deletion of dead threads that
6045 caused all threads to be deleted, instead of just the dead ones.
6046
be759fcf
PM
60472010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6048
6049 PR python/10705
6050
6051 * python/python-internal.h: Add lazy_string_object_type
6052 definition.
6053 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6054 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6055 * python/py-value.c (valpy_lazy_string): New function.
6056 (convert_value_from_python): Add lazy string conversion.
6057 * python/py-prettyprint.c (pretty_print_one_value): Check if
6058 return is also a lazy string.
6059 (print_string_repr): Add lazy string printing branch.
6060 (print_children): Likewise.
6061 * python/py-lazy-string.c: New file. Implement lazy strings.
6062 * python/python.c (_initialize_python): Call
6063 gdbpy_initialize_lazy_string.
6064 * varobj.c (value_get_print_value): Add lazy string printing
6065 branch. Account for encoding.
6066 * c-lang.c (c_printstr): Account for new encoding argument. If
6067 encoding is NULL, find encoding suited for type, otherwise use
6068 user encoding.
6069 * language.h (language_defn): Add encoding argument.
6070 (LA_PRINT_STRING): Likewise.
6071 * language.c (unk_lang_printstr): Update to reflect new encoding
6072 argument to language_defn.
6073 * ada-lang.h (ada_printstr): Likewise.
6074 * c-lang.h (c_printstr): Likewise.
6075 * p-lang.h (pascal_printstr);
6076 * f-lang.c (f_printstr): Likewise.
6077 * m2-lang.c (m2_printstr): Likewise.
6078 * objc-lang.c (objc_printstr): Likewise.
6079 * p-lang.c (pascal_printstr): Likewise.
6080 * scm-lang.c (scm_printstr): Likewise.
6081 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6082 encoding argument.
6083 * ada-valprint.c (ada_printstr): Likewise.
6084 * f-valprint.c (f_val_print): Likewise
6085 * m2-valprint.c (m2_val_print): Likewise.
6086 * p-valprint.c (pascal_val_print): Likewise.
6087 * expprint.c (print_subexp_standard): Likewise.
6088 * valprint.c (val_print_string): Likewise.
6089 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6090 (SUBDIR_PYTHON_SRCS): Likewise.
6091 (py-lazy-string.o): New rule.
6092
1fe72117 60932010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
6094
6095 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6096 uninitialized" warning from gcc on local `tree'.
6097
dc146f7c
VP
60982010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6099
6100 Implement core awareness.
6101
6102 * bcache.c (compare_ints): Remove
6103 (print_percentage): Use compare_positive_ints.
6104 * defs.h (compare_positive_ints): Declare.
6105 * linux-nat.h (struct lin_lwp): New field core.
6106 (linux_nat_core_of_thread_1): Declare.
6107 * linux-nat.c (add_lwp): Init the 'core' field.
6108 (linux_nat_wait_1): Record the core.
6109 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6110 (linux_nat_add_target): Register the above.
6111 * linux-thread-db.c (update_thread_core): New.
6112 (thread_db_find_new_threads): Update core information for
6113 every thread.
6114 * remote.c (struct private_thread_info): New.
6115 (free_private_thread_info, demand_private_info): New.
6116 (PACKET_qXfer_threads, use_osdata_threads): New.
6117 (struct thread_item, threads_parsing_context
6118 (start_thread, end_thread, thread_attributes)
6119 (thread_children, threads_children, threads_elements): New.
6120 (remote_threads_info): Try qXfer:threads before anything
6121 else.
6122 (remote_protocol_packets): Register qXfer:threads.
6123 (remote_open_1): Init use_osdata_threads.
6124 (struct stop_reply): New field 'core'.
6125 (remote_parse_stop_reply): Parse core number.
6126 (process_stop_reply): Record core number.
6127 (remote_xfer_partial): Handle qXfer:threads.
6128 (remote_core_of_thread): New.
6129 (init_remote_ops): Register remote_core_of_thread.
6130 (_initialize_remote): Register qXfer:read.
6131 * target.c (target_core_of_thread): New
6132 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6133 (struct target_ops): New field to_core_of_threads.
6134 (target_core_of_thread): Declare.
6135 * gdbthread.h (struct thread_info): New field private_dtor.
6136 * thread.c (print_thread_info): Report the core.
6137 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6138 * utils.c (compare_positive_ints): New.
6139 * features/threads.dtd: New.
6140 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6141 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6142 (do_nothing, free_vector_of_osdata_items)
6143 (splay_tree_int_comparator, free_splay_tree): New.
6144 (print_one_inferior_data): Implemented printing of selected
6145 inferiors. Collect and print cores.
6146 (output_cores): New.
6147 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6148 thread groups together with --available.
6149
d30c5336
JK
61502010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6151
6152 * configure: Regenerate (for _STRUCTURED_PROC).
6153
02893727
JB
61542010-01-12 Joel Brobecker <brobecker@adacore.com>
6155
6156 Delete dead function.
6157 * ada-lang.c (extract_string): Delete. No longer used.
6158
46ed2d6f
JB
61592010-01-12 Joel Brobecker <brobecker@adacore.com>
6160
6161 Fix -Wunused warning in dec-thread.c.
6162 * dec-thread.c (dec_thread_count_gdb_threads)
6163 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6164
606b8d1a
JB
61652010-01-12 Joel Brobecker <brobecker@adacore.com>
6166
6167 * ada-valprint.c (ada_print_floating): Remove trailing space.
6168
b4ba55a1
JB
61692010-01-12 Joel Brobecker <brobecker@adacore.com>
6170
6171 Add support for DW_AT_GNAT_descriptive_type.
6172 * gdbtypes.h (enum type_specific_kind): New enum.
6173 (struct main_type) [type_specific_field]: New component.
6174 [type_specific]: Add new component "gnat_stuff".
6175 (struct gnat_aux_type): New type.
6176 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6177 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6178 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6179 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6180 (TYPE_SPECIFIC_FIELD): New macros.
6181 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6182 type does not hold any cplus-specific data.
6183 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6184 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6185 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6186 cplus-specific data.
6187 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6188 Set new component TYPE_SPECIFIC_FIELD (type).
6189 (gnat_aux_default): New constant.
6190 (allocate_gnat_aux_type): New function.
6191 (init_type): Add initialization the type-specific stuff for
6192 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6193 (print_gnat_stuff): New function.
6194 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6195 specific data. Adjust code that prints the contents of the
6196 type-specific union using the TYPE_SPECIFIC_FIELD value.
6197 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6198 the type cplus stuff for Ada types.
6199 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6200 Error out if these routines are called with an Ada type.
6201 (read_structure_type, read_array_type, read_subrange_type):
6202 Add call to set_descriptive_type.
6203 (set_die_type): Initialize the gnat-specific data if necessary.
6204 (need_gnat_info, die_descriptive_type, set_descriptive_type):
6205 New functions.
6206 * ada-lang.c (decode_constrained_packed_array_type): Use
6207 decode_constrained_packed_array_type instead of doing a standard
6208 lookup to locate a parallel type.
6209 (find_parallel_type_by_descriptive_type): New function.
6210 (ada_find_parallel_type_with_name): New function.
6211 (ada_find_parallel_type): Reimplement using
6212 ada_find_parallel_type_with_name.
6213 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6214 to check if type has a cplus stuff.
6215 * linespec.c (total_number_of_methods): Likewise.
6216 * mdebugread.c (new_type): Likewise.
6217
b0f02ee9
JK
62182010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6219
6220 * NEWS: Document the 0b binary number prefix parsing.
6221
b260e109
JK
62222010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6223
6224 * objfiles.c (objfile_relocate1): Change the return type to int.
6225 Describe the new return value. Return non-zero if data changed.
6226 (objfile_relocate): New variable changed. Set it. Call
6227 breakpoint_re_set depending on CHANGED.
6228
b5cfddf5
JK
62292010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6230
6231 Implement binary numbers parsing.
6232 * c-exp.y (parse_number): New case 'b' and 'B'.
6233
e0ae4240
JK
62342010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6235 Tristan Gingold <gingold@adacore.com>
6236
6237 * solib.c (info_sharedlibrary_command): Replace
6238 objfile_has_partial_symbols and objfile_has_full_symbols calls by
6239 objfile_has_symbols.
6240
6e0e5977
JB
62412010-01-10 Joel Brobecker <brobecker@adacore.com>
6242
6243 * NEWS: Document the improvements made to the mips-irix port.
6244
7348c5e1
JB
62452010-01-09 Joel Brobecker <brobecker@adacore.com>
6246
6247 Fix the documentation of valprint.c:value_print.
6248 * valprint.c (value_print): Update the function description to
6249 mention that the syntax of the output follows the current_language,
6250 not necessarily C.
6251
567995e1
JK
62522010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6253
6254 Fix displacement of separate debug info files.
6255 * objfiles.c (objfile_relocate): Rename to ...
6256 (objfile_relocate1): ... here and make it static. Extend the comment.
6257 (objfile_relocate): New function.
6258 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6259 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
6260 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
6261 allocated using alloca.
6262 * symfile.c (copy_section_addr_info): Remove.
6263 (build_section_addr_info_from_objfile): Make it global. New variables
6264 addr_bit and mask, use them.
6265 * symfile.h (build_section_addr_info_from_objfile): New prototype.
6266 (copy_section_addr_info): Remove.
6267
6d8eadbd
JB
62682010-01-09 Joel Brobecker <brobecker@adacore.com>
6269
6270 Signal unwinder for mips-irix N32.
6271 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6272 tramp-frame.h.
6273 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6274 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
6275 (SIGCONTEXT_LO_OFF): New macros.
6276 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
6277 (mips_irix_n32_tramp_frame): New static constant.
6278 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6279
27087a3d
JB
62802010-01-09 Joel Brobecker <brobecker@adacore.com>
6281
6282 Breakpoint in shared library does not work on mips-irix.
6283 * procfs.c: #include "observer.h".
6284 (procfs_inferior_created): New function, moving here the code
6285 which unsets the syssgi syscall-exit notifications.
6286 (procfs_create_inferior): Remove the code which unsets the syssgi
6287 syscall-exit notifications. It is too early to do this here.
6288 (_initialize_procfs): Attach the procfs_inferior_created observer.
6289
f08877ba
JB
62902010-01-09 Joel Brobecker <brobecker@adacore.com>
6291
6292 Wrong return convention for arrays (mips-irix).
6293 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6294 128 bits or smaller are returned the same way as structs
6295 and unions of the the same size.
6296
e4b97d48
JB
62972010-01-09 Joel Brobecker <brobecker@adacore.com>
6298
6299 Cannot set the PC on mips-irix.
6300 * irix5-nat.c (fill_gregset): Check regno against the raw PC
6301 register number, no the cooked one.
6302
11377e68
JB
63032010-01-09 Joel Brobecker <brobecker@adacore.com>
6304
6305 Error while loading core file on mips-irix.
6306 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6307 if debugging from a core file.
6308
b2391021
JB
63092010-01-09 Joel Brobecker <brobecker@adacore.com>
6310
6311 GDB hangs when attaching to process on mips-irix.
6312 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6313 attaching to a process.
6314
f2ec0ecf
JB
63152010-01-09 Joel Brobecker <brobecker@adacore.com>
6316
6317 Use the correct breakpoint instruction on mips-irix.
6318 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6319 containing the correct breakpoint instruction to use on mips-irix.
6320 Use it when the osabi is GDB_OSABI_IRIX.
6321
3c95f01c
JB
63222010-01-09 Joel Brobecker <brobecker@adacore.com>
6323
6324 -Wunused warning in procfs.c (mips-irix only).
6325 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
6326 throughout instead of using praddset and prdelset respectively.
6327
4b7703ad
JB
63282010-01-09 Joel Brobecker <brobecker@adacore.com>
6329
6330 GDB crash while stepping into function.
6331 * infrun.c (handle_inferior_event): Refetch the current frame
6332 after handling what.main_action, in case that pointer became
6333 dangling.
6334
12c89474
JB
63352010-01-09 Joel Brobecker <brobecker@adacore.com>
6336
6337 Fix build failure of solaris-hosted cross debuggers.
6338 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6339
1a3fd262 63402010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
6341
6342 Fix build failure on sparc-solaris.
6343 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6344
75242ef4
JK
63452010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6346
6347 Move some symfile code into subroutines.
6348 * symfile.h (relative_addr_info_to_section_offsets)
6349 (addr_info_make_relative): New prototypes.
6350 * symfile.c (default_symfile_offsets): Move a part to ...
6351 (relative_addr_info_to_section_offsets): ... this new function.
6352 (default_symfile_offsets): Call it.
6353 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6354 this part to ...
6355 (addr_info_make_relative): ... this new function.
6356
268a4a75
JK
63572010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 Add from_tty to solib_create_inferior_hook.
6360 * infcmd.c (post_create_inferior): Move solib_add after
6361 solib_create_inferior_hook. Pass from_tty to
6362 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
6363 0 from_tty and comment why.
6364 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6365 * linux-nat.c (linux_child_follow_fork): Likewise.
6366 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6367 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6368 from_tty.
6369 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6370 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6371 * solib-null.c (null_solib_create_inferior_hook): Likewise.
6372 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6373 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6374 * solib-som.c (som_solib_create_inferior_hook): Likewise.
6375 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6376 Pass it to svr4_so_ops.solib_create_inferior_hook.
6377 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6378 from_tty.
6379 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
6380 solib_add.
6381 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
6382 enable_break.
6383 * solib-target.c (solib_target_solib_create_inferior_hook): New
6384 parameter from_tty.
6385 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
6386 it to ops->solib_create_inferior_hook.
6387 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6388 Move solib_add after solib_create_inferior_hook, call it now with
6389 from_tty as 0. New comment there.
6390 * solib.h (solib_create_inferior_hook): New parameter from_tty.
6391 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6392 Likewise.
6393
cf00dfa7
VP
63942010-01-08 Vladimir Prus <vladimir@codesourcery.com>
6395
6396 Fix multiexec race.
6397 * infrun.c (handle_inferior_event): Use get_thread_regcache
6398 with events ptid, not get_current_regcache.
6399
f91e5ac3
JB
64002009-01-08 Joel Brobecker <brobecker@adacore.com>
6401
6402 GDB crash with empty executable name (MinGW).
6403 * source.c (openp): Add assert that parameter string is not NULL.
6404 if parameter string is an empty string, then return with a failure
6405 immediately.
6406
92b9ce5b
JB
64072009-01-08 Joel Brobecker <brobecker@adacore.com>
6408
6409 Get rid of support for VAX Floats.
6410 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6411 (ada_vax_float_print_function): Delete.
6412 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6413 (ada_vax_float_print_function): Delete.
6414 * ada-typeprint.c (print_vax_floating_point_type): Delete.
6415 (ada_print_type): Remove support for VAX floats.
6416 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6417
268a4a75 64182010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
6419
6420 * stabsread.c (read_args): Handle zero arguments.
6421
f0f20949
JB
64222009-01-08 Joel Brobecker <brobecker@adacore.com>
6423
6424 Cannot find in-tree libiconv.a after reconfigure.
6425 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6426 that we can use, then cache the path to this archive.
6427 * configure: Regenerate.
6428
6b6218c5
SS
64292010-01-07 Stan Shebs <stan@codesourcery.com>
6430
35b1e5cc
SS
6431 Make tracepoint operations go through target vector.
6432 * target.h (enum trace_find_type): New enum.
6433 (struct target_ops): New fields to_trace_init,
6434 to_download_tracepoint, to_download_trace_state_variable,
6435 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6436 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6437 to_set_disconnected_tracing.
6438 (target_trace_init): New macro.
6439 (target_download_tracepoint): New macro.
6440 (target_download_trace_state_variable): New macro.
6441 (target_trace_start): New macro.
6442 (target_trace_set_readonly_regions): New macro.
6443 (target_get_trace_status): New macro.
6444 (target_trace_stop): New macro.
6445 (target_trace_find): New macro.
6446 (target_get_trace_state_variable_value): New macro.
6447 (target_set_disconnected_tracing): New macro.
6448 * target.c (update_current_target): Inherit and set defaults for
6449 tracepoint operations.
6450 * tracepoint.c (default_collect): Make globally visible.
6451 (target_is_remote): Remove, along with all calls.
6452 (tvariables_info): Call target_get_trace_state_variable_value.
6453 (remote_set_transparent_ranges): Remove.
6454 (trace_start_command): Call target_trace_init,
6455 target_download_tracepoint, etc.
6456 (download_tracepoint): Remove.
6457 (trace_stop_command): Simplify.
6458 (stop_tracing): Call target_trace_stop.
6459 (get_trace_status): Call target_get_trace_status.
6460 (trace_status_command): Add case for targets that cannot trace.
6461 (finish_tfind_command): Change to take numerical arguments, call
6462 target_trace_find.
6463 (trace_find_command): Update call to finish_tfind_command.
6464 (trace_find_pc_command): Ditto.
6465 (trace_find_tracepoint_command): Ditto.
6466 (trace_find_line_command): Ditto.
6467 (trace_find_range_command): Ditto.
6468 (trace_find_outside_command): Ditto.
6469 (set_disconnected_tracing_value): Call
6470 target_set_disconnected_tracing.
6471 * remote.c: Add protocol encoding bits from tracepoint.c.
6472 (trace_error): Move from tracepoint.c.
6473 (remote_get_noisy_reply): Ditto.
6474 (free_actions_list_cleanup_wrapper): Ditto.
6475 (free_actions_list): Ditto.
6476 (remote_trace_init): New function.
6477 (remote_download_tracepoint): New function.
6478 (remote_download_trace_state_variable): New function.
6479 (remote_trace_set_readonly_regions): New function.
6480 (remote_trace_start): New function.
6481 (remote_get_trace_status): New function.
6482 (remote_trace_stop): New function.
6483 (remote_trace_find): New function.
6484 (remote_download_trace_state_variable): New function.
6485 (remote_set_disconnected_tracing): New function.
6486 (init_remote_ops): Add tracepoint operations.
6487
6b6218c5
SS
6488 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6489
089b4803
TG
64902010-01-07 Tristan Gingold <gingold@adacore.com>
6491
6492 * symfile.c (build_section_addr_info_from_objfile): New function.
6493 (symbol_file_add_separate): Don't use offsets from objfile but
6494 built an addr info.
6495
d5551862
SS
64962010-01-06 Stan Shebs <stan@codesourcery.com>
6497
6498 Support disconnected tracing.
6499 * infcmd.c (detach_command): Ask whether to stop tracing.
6500 * cli/cli-cmds.c (quit_command): Ditto.
6501 * breakpoint.h (struct breakpoint): New field number_on_target.
6502 * breakpoint.c (create_tracepoint_from_upload): New function.
6503 (get_tracepoint_by_number_on_target): New function.
6504 * remote.c (struct remote): New field disconnected_tracing.
6505 (remote_disconnected_tracing_feature): New function.
6506 (remote_protocol_features): Add DisconnectedTracing.
6507 (struct uploaded_tp): New struct.
6508 (uploaded_tps): New global.
6509 (get_uploaded_tp): New function.
6510 (find_matching_tracepoint): New function.
6511 (remote_get_tracing_state): New function.
6512 (remote_start_remote): Call it.
6513 * tracepoint.c (disconnected_tracing): New global.
6514 (trace_start_command): Initialize number_on_target.
6515 (stop_tracing): New function, split out from...
6516 (trace_stop_command): Call stop_tracing.
6517 (get_trace_status): New function, split out from...
6518 (trace_status_command): Call get_trace_status, add info on
6519 disconnection behavior.
6520 (disconnect_or_stop_tracing): New function.
6521 (finish_tfind_command): Translate from number on target.
6522 (trace_find_tracepoint_command): Translate to number on target.
6523 (send_disconnected_tracing_value): New function.
6524 (set_disconnected_tracing): New function.
6525 (_initialize_tracepoint): Add disconnected-tracing variable.
6526 * NEWS: Mention disconnected tracing.
6527
15d123c9
TG
65282010-01-06 Tristan Gingold <gingold@adacore.com>
6529
6530 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6531 parameter to main_objfile. Iterate on all separate debug objfiles.
6532 * symfile.h (symbol_file_add_separate)
6533 (find_separate_debug_file_by_debuglink): Remove parameter names.
6534 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6535 (reread_symbols): Use free_objfile_separate_debug.
6536 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6537 Adjust comment.
6538 (objfile_separate_debug_iterate, add_separate_debug_objfile)
6539 (free_objfile_separate_debug): New prototypes.
6540 * objfiles.c (objfile_separate_debug_iterate): New function.
6541 (add_separate_debug_objfile, free_objfile_separate_debug): New
6542 functions.
6543 (free_objfile): Use free_objfile_separate_debug. Adjust for
6544 multiple separate debug objfile.
6545 (objfile_has_symbols): Adjust comment. Iterate on all separate
6546 debug objfiles.
6547 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6548 debug objfile.
6549 (lookup_minimal_symbol_text): Ditto.
6550 (lookup_minimal_symbol_by_pc_name): Ditto.
6551 (lookup_minimal_symbol_solib_trampoline): Ditto.
6552 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6553 debug objfiles.
6554
7a697b8d
SS
65552010-01-05 Stan Shebs <stan@codesourcery.com>
6556
6557 Add fast tracepoints.
6558 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6559 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6560 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6561 * breakpoint.c (tracepoint_type): New function.
6562 (ALL_TRACEPOINTS): Use it.
6563 (should_be_inserted): Ditto.
6564 (bpstat_check_location): Ditto.
6565 (print_one_breakpoint_location): Ditto.
6566 (user_settable_breakpoint): Ditto.
6567 (set_breakpoint_location_function): Ditto.
6568 (disable_breakpoints_in_shlibs): Ditto.
6569 (delete_trace_command): Ditto.
6570 (print_it_typical): Add bp_fast_tracepoint case.
6571 (bpstat_what): Ditto.
6572 (print_one_breakpoint_location): Ditto.
6573 (allocate_bp_location): Ditto.
6574 (mention): Ditto.
6575 (breakpoint_re_set_one): Ditto.
6576 (disable_command): Ditto.
6577 (enable_command): Ditto.
6578 (check_fast_tracepoint_sals): New function.
6579 (break_command_really): Call it.
6580 (ftrace_command): New function.
6581 (_initialize_breakpoint): Add ftrace command.
6582 * gdbarch.sh (fast_tracepoint_valid_at): New.
6583 * gdbarch.h, gdbarch.c: Regenerate.
6584 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6585 (i386_gdbarch_init): Use it.
6586 * remote.c (struct remote_state): New field fast_tracepoints.
6587 (PACKET_FastTracepoints): New packet config type.
6588 (remote_fast_tracepoint_feature): New function.
6589 (remote_protocol_features): Add FastTracepoints.
6590 (remote_supports_fast_tracepoints): New function.
6591 (_initialize_remote): Add FastTracepoints.
6592 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
6593 * NEWS: Mention fast tracepoints.
6594
737a160e
JB
65952010-01-06 Joel Brobecker <brobecker@adacore.com>
6596
6597 * gdb-gdb.py: New file.
6598
ce6cca6d
MS
65992010-01-05 Michael Snyder <msnyder@vmware.com>
6600
6601 * infrun.c (handle_inferior_event): Fix typo in comment.
6602
0d15807d
JK
66032010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6604
6605 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
6606
7803799a
UW
66072010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6608
c8d5aac9 6609 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
6610 and s390x-linux64.
6611 (s390-linux32-expedite): Define.
6612 (s390-linux64-expedite): Define.
6613 (s390x-linux64-expedite): Define.
6614 * features/s390-acr.xml: New file.
6615 * features/s390-fpr.xml: New file.
6616 * features/s390-core32.xml: New file.
6617 * features/s390-core64.xml: New file.
6618 * features/s390x-core64.xml: New file.
6619 * features/s390-linux32.xml: New file.
6620 * features/s390-linux64.xml: New file.
6621 * features/s390x-linux64.xml: New file.
6622 * features/s390-linux32.c: New generated file.
6623 * features/s390-linux64.c: New generated file.
6624 * features/s390x-linux64.c: New generated file.
6625
6626 * regformats/s390-linux32.dat: New generated file.
6627 * regformats/s390-linux64.dat: New generated file.
6628 * regformats/s390x-linux64.dat: New generated file.
6629 * regformats/reg-s390.dat: Remove.
6630 * regformats/reg-s390x.dat: Remove.
6631
6632 * s390-nat.c: Include "auxv.h" and <elf.h>.
6633 (HWCAP_S390_HIGH_GPRS): Define if undefined.
6634 (s390_target_wordsize): New function.
6635 (s390_auxv_parse): Likewise.
6636 (s390_get_hwcap): Likewise.
6637 (s390_read_description): Likewise.
6638 (_initialize_s390_nat): Install s390_auxv_parse and
6639 s390_read_description.
6640
6641 * s390-tdep.c: Include "features/s390-linux32.c",
6642 "features/s390-linux64.c", and "features/s390x-linux64.c".
6643 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
6644 (s390_register_call_saved): New function.
6645 (s390_register_name): Remove.
6646 (s390_register_type): Remove.
6647 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
6648 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
6649 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
6650 (s390_pseudo_register_name): New function.
6651 (s390_pseudo_register_type): New function.
6652 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
6653 Handle full GPR pesudos and varying pseudo register numbers.
6654 (s390_pseudo_register_write): Likewise
6655 (s390x_pseudo_register_read): Remove.
6656 (s390x_pseudo_register_write): Likewise.
6657 (s390_register_group): Remove.
6658 (s390_pseudo_register_group): New function.
6659 (s390_regmap_gregset): Add GPR upper halves.
6660 (s390x_regmap_gregset): Likewise.
6661 (s390_regmap_fpregset): Likewise.
6662 (s390_regmap_upper): New global variable.
6663 (s390_upper_regset): New global variable.
6664 (s390_upper_regset_sections): New global variable.
6665 (s390_regset_from_core_section): Handle GPR upper halves.
6666 (s390_core_read_description): New function.
6667 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
6668 register information. Handle varying pseudo register numbers.
6669 (s390_backchain_frame_unwind_cache): Likewise.
6670 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
6671 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
6672 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
6673 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
6674 Handle varying pseudo register numbers.
6675 (s390_unwind_pc): Handle varying pseudo register numbers.
6676 (s390_dwarf2_prev_register): New function.
6677 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
6678 register information. Handle varying pseudo register numbers.
6679 Install s390_dwarf2_prev_register to unwind full GPRs.
6680 (s390_gdbarch_init): Handle target descriptions. Assign varying
6681 pseudo register numbers. Install s390_adjust_frame_regnum.
6682 (_initialize_s390_tdep): Initialize target descriptions.
6683
6684 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
6685 (S390_NUM_REGS): Redefine to include upper half registers.
6686 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
6687 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
6688 (tdesc_s390_linux32): Add declaration.
6689 (tdesc_s390_linux64): Likewise.
6690 (tdesc_s390x_linux64): Likewise.
6691
1b1818e4
UW
66922010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6693
6694 * regset.h (struct core_regset_section): Add HUMAN_NAME.
6695 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
6696 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
6697 (ppc_linux_vmx_regset_sections): Likewise.
6698 (ppc_linux_fp_regset_sections): Likewise.
6699
6700 * corelow.c (get_core_register_section): Constify arguments.
6701 (get_core_registers): Use gdbarch_core_regset_sections instead
6702 of hard-coded platform-specific register section names.
6703
dcbf108f
UW
67042010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6705
6706 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 6707 a register, assume the least-significant part is used.
dcbf108f
UW
6708 (write_pieced_value): Likewise.
6709
704e9165
UW
67102010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6711
6712 * printcmd.c: Include "arch-utils.h".
6713 (do_one_display): Re-parse expression if current architecture changed.
6714
c54eabfa
JK
67152010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6716 Joel Brobecker <brobecker@adacore.com>
6717
6718 * gdbtypes.c (check_typedef): New comment on type length.
6719 * value.c (allocate_value_lazy): Remove the unused atype variable. New
6720 comment on type length.
6721 (value_primitive_field): Keep the original TYPE value, new comment.
6722
50cb2941
JK
67232010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
6726 p_start. Change != comparisons to > and < comparisons.
6727
be66db07
JK
67282010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6729
6730 * cli/cli-script.c (process_next_line): Check P2 overrun.
6731
abd775ce
JB
67322009-01-01 Joel Brobecker <brobecker@adacore.com>
6733
6734 Update the copyright hearder to add year 2010 for most GDB files.
6735
6479260d
JB
67362009-01-01 Joel Brobecker <brobecker@adacore.com>
6737
6738 Fix build failure in inf-ptrace.c.
6739 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
6740
4a70f654
JB
67412010-01-01 Joel Brobecker <brobecker@adacore.com>
6742
6743 * top.c (print_gdb_version): Update copyright year.
6744
b9ee2233
JB
67452010-01-01 Joel Brobecker <brobecker@adacore.com>
6746
6747 Fix break *FUN'address thread NUM.
6748 * ada-lex.l (task): Expand rule to also match the thread keyword.
6749
70575d34
JB
67502010-01-01 Joel Brobecker <brobecker@adacore.com>
6751
6752 Fix break *FUN'address task NUM.
6753 * ada-lex.l (task): New rule.
6754 * ada-lang.c (valid_task_id): Make sure the Ada task list has
6755 been built before using it.
6756
e1e4d4a4 6757For older changes see ChangeLog-2009.
c906108c
SS
6758\f
6759Local Variables:
6760mode: change-log
6761left-margin: 8
6762fill-column: 74
6763version-control: never
57da7796 6764coding: utf-8
c906108c 6765End:
This page took 1.59475 seconds and 4 git commands to generate.