*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dc00d89f
PM
12010-02-28 Phil Muldoon <pmuldoon@redhat.com>
2
3 PR python/11036
4 * python/py-frame.c (frapy_read_var): Add block argument and logic
5 to cope with user provided blocks.
6
0e095b7e
JK
72010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
10 New comment.
11
2f9e05b4
CV
122010-02-28 Corinna Vinschen <vinschen@redhat.com>
13
14 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
15 (COMMON_OBS): ... to here since it's used unconditionally.
16 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
17 (SFILES): To here.
18
eb195664
DD
192010-02-26 David Daney <ddaney@caviumnetworks.com>
20
21 * mips-linux-tdep.c: Update struct sigframe comments.
22 (SIGFRAME_CODE_OFFSET): Delete macro.
23 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
24 this_frame's sp.
25 (mips_linux_n32n64_sigframe_init): Same.
26
97b0f3e2
KB
272010-02-26 Kevin Buettner <kevinb@redhat.com>
28
29 * remote-mips.c (mips_load): Don't use pseudo-register when
30 invalidating regcache.
31
4069ebbe
DJ
322010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
33
34 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
35
05071a4d
PA
362010-02-26 Pedro Alves <pedro@codesourcery.com>
37
38 * NEWS: Add "New targets" section, and mention ARM Symbian
39 support.
40
6063c216
UW
412010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
42
43 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
44 add ADDR_SIZE member.
45 (allocate_piece_closure): Update.
46 (copy_pieced_value_closure): Likewise.
47 (dwarf2_evaluate_loc_desc): Likewise.
48 (read_pieced_value): Use DWARF address size instead of
49 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
50
5107b149
PM
512010-02-26 Phil Muldoon <pmuldoon@redhat.com>
52 Tom Tromey <tromey@redhat.com>
53
54 * python/py-type.c (typy_lookup_typename): Add in block argument.
55 If provided restrict lookup to specified blocks.
56 (gdbpy_lookup_type): Likewise.
57 (typy_lookup_type): Likewise.
58
78664fa3
PA
592010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
60
61 Symbian config
62
63 gdb/
64 * arm-symbian-tdep.c: New.
65 * configure.tgt (arm*-*-symbianelf*): New target.
66 (*-*-symbianelf*): New OS.
67 * osabi.c (gdb_osabi_names): Add Symbian.
68 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
69 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
70 (ALLDEPFILES): Add arm-symbian-tdep.c.
71
eb73e134
DJ
722010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
73
74 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
75
46ef47e5
PA
762010-02-24 Pedro Alves <pedro@codesourcery.com>
77
78 * mi/mi-main.c (mi_cmd_execute): Fix typo.
79
f3e9a817
PM
802010-02-24 Phil Muldoon <pmuldoon@redhat.com>
81 Tom Tromey <tromey@redhat.com>
82 Thiago Jung Bauermann <bauerman@br.ibm.com>
83
84 * python/python.c (_initialize_python): Call
85 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
86 gdbpy_initialize_blocks.
87 * python/python-internal.h: Declare struct symbol, block and
88 symtab_and_line. Declare block_object_type and
89 symbol_object_type
90 (gdbpy_lookup_symbol gdbpy_block_for_pc)
91 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
92 (symbol_to_symbol_object, block_to_block_object)
93 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
94 (gdbpy_initialize_blocks ): Declare.
95 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
96 (frapy_select): Add methods.
97 (frapy_read_var): Add symbol branch.
98 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
99 py-block.
100 (SUBDIR_PYTHON_SRCS): Likewise.
101 (py-symbol.o): New rule.
102 (py-symtab.o): Likewise.
103 (py-block.o): Likewise.
104 * python/py-symbol.c: New file.
105 * python/py-symtab.c: Likewise.
106 * python/py-block.c: Likewise.
107
24291992
PA
1082010-02-24 Pedro Alves <pedro@codesourcery.com>
109
110 PR gdb/11321
111
112 * inferior.h (prepare_for_detach): Declare.
113 (struct inferior) <detaching>: New field.
114 * infrun.c (prepare_for_detach): New.
115 (handle_inferior_event) <random signal>: Don't stop if detaching.
116 * target.c (target_detach): Call prepare_for_detach.
117
fc1cf338
PA
1182010-02-24 Pedro Alves <pedro@codesourcery.com>
119
120 Per-process displaced stepping queue.
121
122 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
123 (displaced_step_gdbarch, displaced_step_closure,
124 (displaced_step_original, displaced_step_copy): Move globals to
125 this...
126 (struct displaced_step_inferior_state): ... new structure.
127 (displaced_step_inferior_states): New global.
128 (get_displaced_stepping_state, add_displaced_stepping_state)
129 (remove_displaced_stepping_state, infrun_inferior_exit): New
130 functions.
131 (displaced_step_clear): Add displaced_step_inferior_state
132 parameter, and adjust to handle it.
133 (displaced_step_clear_cleanup): Parameter is now a
134 displaced_step_inferior_state. Adjust.
135 (displaced_step_prepare): Adjust.
136 (displaced_step_fixup, displaced_step_fixup)
137 (infrun_thread_ptid_changed, resume): Adjust.
138 (init_wait_for_inferior): Don't call displaced_step_clear.
139 (infrun_thread_stop_requested): Rewrite.
140 (_initialize_infrun): Install infrun_inferior_exit as
141 inferior_exit observer.
142
0723dbf5
PA
1432010-02-24 Pedro Alves <pedro@codesourcery.com>
144
145 * inferior.h (ptid_match): Declare.
146 * infrun.c (ptid_match): New.
147 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
148 (handle_notification): Add debug output.
149 * linux-nat.c (ptid_match): Delete.
150
09de9781
DM
1512010-02-24 David S. Miller <davem@davemloft.net>
152
153 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
154 * syscalls/sparc-linux.xml: New.
155 * syscalls/sparc64-linux.xml: New.
156 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
157 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
158 (sparc32_linux_get_syscall_number): New function.
159 (sparc32_linux_init_abi): Set syscall XML file name and hook up
160 syscall number fetcher.
161 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
162 (sparc64_linux_get_syscall_number): New function.
163 (sparc64_linux_init_abi): Set syscall XML file name and hook up
164 syscall number fetcher.
165
a79b8f6e
VP
1662010-02-24 Vladimir Prus <vladimir@codesourcery.com>
167
168 Multiexec MI
169
170 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
171 * inferior.c (add_inferior_silent): Notify inferior_added
172 observer.
173 (delete_inferior_1): Notify inferior_removed observer.
174 (exit_inferior_1): Pass inferior, not pid, to observer.
175 (inferior_appeared): Likewise.
176 (add_inferior_with_spaces): New.
177 (add_inferior_command): Use the above.
178 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
179 Declare.
180
181 * inflow.c (inflow_inferior_exit): Likewise.
182 * jit.c (jit_inferior_exit_hook): Likewise.
183
184 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
185 remove-inferior.
186 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
187 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
188 (report_initial_inferior): New.
189 (mi_inferior_removed): Register the above. Make sure
190 inferior_added observer is called on the first inferior.
191 (mi_new_thread, mi_thread_exit): Thread group is now identified by
192 inferior number, not pid.
193 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
194 affected.
195 * mi/mi-main.c (current_context): New.
196 (proceed_thread_callback): Use typed closure.
197 Proceed everything if pid is 0. Most implementation split into
198 (proceed_thread): ... this.
199 (run_one_inferior): New.
200 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
201 Adjust for multiexec behaviour.
202 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
203 (mi_cmd_execute): Handle the 'thread-group' option here.
204 Do some extra checks.
205 * mi-parse.c (mi_parse): Handle the --all and --thread-group
206 options.
207 * mi-parse.h (struct mi_parse): New fields all and thread_group.
208
115d30f9
VP
2092010-02-24 Vladimir Prus <vladimir@codesourcery.com>
210
211 Make -exec-run a proper MI commands.
212
213 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
214 * mi/mi-cmds.c (mi_cmds): Adjust.
215 * mi/mi-main.c (mi_cmd_exec_run): New.
216
06cd862c
PA
2172010-02-24 Pedro Alves <pedro@codesourcery.com>
218 Stan Shebs <stan@codesourcery.com>
219
220 * tracepoint.h (set_traceframe_number)
221 (cleanup_restore_current_traceframe): Declare.
222 * tracepoint.c (set_traceframe_number): New.
223 (struct current_traceframe_cleanup): New.
224 (do_restore_current_traceframe_cleanup)
225 (restore_current_traceframe_cleanup_dtor)
226 (make_cleanup_restore_current_traceframe): New.
227 * infrun.c: Include tracepoint.h.
228 (fetch_inferior_event): Switch out and in of tfind mode.
229
ab92d69b
PA
2302010-02-24 Pedro Alves <pedro@codesourcery.com>
231
232 * breakpoint.c (breakpoint_init_inferior): Also delete
233 bp_shlib_event breakpoints.
234 * solib-frv.c (enable_break): Remove call to
235 remove_solib_event_breakpoints.
236 * solib-svr4.c (enable_break): Ditto.
237 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
238 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
239 * solib-som.c (som_solib_create_inferior_hook): Ditto.
240 * solib-spu.c (spu_enable_break): Ditto.
241
e707a91d
PA
2422010-02-23 Harald Koenig <H.Koenig@science-computing.de>
243
244 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
245
cfce2ea2
PA
2462010-02-23 Harald Koenig <H.Koenig@science-computing.de>
247
248 * varobj.c (varobj_update): Avoid non-constants in initializers.
249
05566b3b
TT
2502010-02-23 Tom Tromey <tromey@redhat.com>
251
252 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
253 handle big-endian values.
254 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
255
85d721b8
PA
2562010-02-22 Pedro Alves <pedro@codesourcery.com>
257
258 PR9605
259
260 gdb/
261 * breakpoint.c (insert_bp_location): If inserting the read
262 watchpoint failed, fallback to an access watchpoint.
263 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
264 if the value changed, if not watching the same memory for writes.
265 (watchpoint_locations_match): Add comment.
266 (update_global_location_list): Copy the location's watchpoint type.
267 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
268 handle read watchpoints here.
269 (i386_insert_watchpoint): Read watchpoints aren't supported.
270 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
271 packets.
272 * target.h (target_insert_watchpoint): Update description.
273
48ea67a7
TT
2742010-02-19 Tom Tromey <tromey@redhat.com>
275
276 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
277 * m2-typeprint.c (m2_print_type): Update.
278 * gdbtypes.c (recursive_dump_type): Update.
279 (copy_type_recursive): Update.
280 * c-typeprint.c (c_type_print_varspec_prefix): Update.
281 (c_type_print_base): Update.
282 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
283 Remove.
284 (struct cplus_struct_type) <ntemplate_args>: Remove.
285 <struct template_arg>: Remove.
286 <is_dynamic>: Move earlier.
287 (TYPE_TEMPLATE_ARGS): Remove.
288 (TYPE_NTEMPLATE_ARGS): Remove.
289 (TYPE_TEMPLATE_ARG): Remove.
290
48e32051
TT
2912010-02-19 Tom Tromey <tromey@redhat.com>
292
293 PR c++/8693, PR c++/9496:
294 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
295 * c-exp.y (lex_one_token): Rename from yylex. Don't call
296 write_dollar_variable. Don't try to classify NAME tokens.
297 (token_and_value): New type.
298 (token_fifo, popping, name_obstack): New globals.
299 (classify_name): New function.
300 (classify_inner_name): Likewise.
301 (yylex): Likewise.
302 (VARIABLE): Now has type sval.
303 (exp : VARIABLE): Call write_dollar_variable.
304 (qualified_name): Use TYPENAME, not typebase. Add production for
305 multiple "::" instances.
306 (variable): Use name_not_typename.
307 (qualified_type): Remove.
308 (typebase): Update.
309
672d9c23
JK
3102010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
313 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
314 found by bfd_get_section_by_name.
315 * symfile.h (struct section_addr_info) <sectindex>: New comment.
316
bfbf3774
JB
3172010-02-19 Joel Brobecker <brobecker@adacore.com>
318
319 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
320 7.0 section" into "Changes in 7.1".
321
6756b09b 3222010-02-19 Joel Brobecker <brobecker@adacore.com>
323
324 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
325 * version.in: Bump version to 7.1.50.20100219-cvs.
326
202b96c1
PA
3272010-02-18 Harald Koenig <H.Koenig@science-computing.de>
328
329 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
330 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
331
de2e5182
TT
3322010-02-17 Tom Tromey <tromey@redhat.com>
333
334 * NEWS: Add Python API Improvements section.
335
7280022e
DJ
3362010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
337
338 * NEWS: Correct typo.
339
6f451e5e
TT
3402010-02-17 Tom Tromey <tromey@redhat.com>
341
342 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
343
012836ea
JK
3442010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
345
346 * symfile.c (build_section_addr_info_from_objfile): Include sections
347 only if they are SEC_ALLOC or SEC_LOAD.
348
d182d057
L
3492010-02-17 H.J. Lu <hongjiu.lu@intel.com>
350
351 PR shlibs/11293
352 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
353 of ULONGEST for address size.
354
4eef138c
TT
3552010-02-17 Tom Tromey <tromey@redhat.com>
356
357 * NEWS: Add C++ improvements section.
358
548a926a
UW
3592010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
360
361 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
362 PyThreadState_Swap): Avoid "statement with no effect" warning.
363
ad3a0e5b
JK
3642010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
365
366 * solib-svr4.c (enable_break <target_auxv_search>): New variable
367 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
368
243e2c5d
TG
3692010-02-17 Tristan Gingold <gingold@adacore.com>
370 Petr Hluzín <petr.hluzin@gmail.com>
371
372 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
373 gdb_assert. Fix info->size for SIG prologue.
374
275f2e57
DJ
3752010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
376
377 * infcmd.c (show_inferior_tty_command): Check for NULL.
378 Correct output message.
379
791dfb64
DJ
3802010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
381
382 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
383 FUNCTION contains parentheses. Improve removal of a trailing
384 single quote.
385
14d1346b
DJ
3862010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
387
388 * gcore.c (do_bfd_delete_cleanup): New function.
389 (gcore_command): Use it. Discard the cleanup after success.
390 (gcore_copy_callback): Delete dead code.
391
e76ab67f
DJ
3922010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
393
394 * symfile.c (addr_info_make_relative): Always use
395 find_lowest_section.
396
71dee663
SW
3972010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
398
399 * NEWS: Added entry for namespace fixes.
400
a9854bd5
TT
4012010-02-15 Tom Tromey <tromey@redhat.com>
402
403 * dwarf2read.c (guess_structure_name): Allocate name on the
404 objfile obstack.
405
fd9e29b5
TT
4062010-02-15 Tom Tromey <tromey@redhat.com>
407
408 * c-typeprint.c (c_type_print_base): Reverse order of test.
409
4e1fc9c9
JK
4102010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
413 initialize it from ELF BFD. Extend the prelink condition by it.
414
74164c56
JK
4152010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
416
417 * defs.h (parse_pid_to_attach): New.
418 * utils.c (parse_pid_to_attach): New.
419 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
420 * gnu-nat.c (gnu_attach): Likewise.
421 * nto-procfs.c (procfs_attach): Likewise.
422 * procfs.c (procfs_attach): Likewise.
423 * windows-nat.c (windows_attach): Likewise.
424 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
425 * inf-ttrace.c (inf_ttrace_attach): Likewise.
426 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
427 check.
428
bf6adea8
MM
4292010-02-14 Masaki Muranaka <monaka@monami-software.com>
430
431 * MAINTAINERS: Add myself for write after approval privileges.
432
28f34a8f
JK
4332010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
436 block.
437
701ed6dc
JK
4382010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
441 only if INFO_VERBOSE.
442
e5829bee
MS
4432010-02-12 Tomas Holmberg <th@virtutech.com>
444
445 * mi/mi-main.c: Added the --reverse flag to the following MI
446 commands: exec-continue, exec-finish, exec-next, exec-step,
447 exec-next-instruction, exec-step-instruction. This is to
448 support reverse execution over the MI interface to gdb.
449
081dfbf7
PA
4502010-02-12 Pedro Alves <pedro@codesourcery.com>
451
452 * tracepoint.c (_initialize_tracepoint): Specify that the address
453 range of `tfind outsize' is exclusive, and that the address range
454 of `tfind range' is inclusive, in the commands' help strings.
455
ecc13e53
JB
4562010-02-12 Joel Brobecker <brobecker@adacore.com>
457
458 Spurious "dll not found" error messages on x64-windows.
459 * windows-nat.c: Add include of complaints.h.
460 (handle_unload_dll): Change dll-not-found error into a complaint.
461
15c3d785
PA
4622010-02-12 Pedro Alves <pedro@codesourcery.com>
463
464 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
465 bp_tracepoint and bp_fast_tracepoint, not
466 bp_loc_software_breakpoint.
467 (update_global_location_list): Tracepoints are never duplicates of
468 anything.
469
fd9b8c24
PA
4702010-02-12 Pedro Alves <pedro@codesourcery.com>
471
472 * breakpoint.c (break_command_really): Change return type to int.
473 Return false if no breakpoint was created, true otherwise.
474 (trace_command): Don't set the tracepoint count if no tracepoint
475 was created.
476 (ftrace_command): Ditto.
477 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
478 created in the breakpoints table.
479
5c0d192f
JK
4802010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
481 Ulrich Weigand <uweigand@de.ibm.com>
482
483 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
484
5d5b640e
PA
4852010-02-11 Pedro Alves <pedro@codesourcery.com>
486
487 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
488 the offset value isn't of integral type.
489
e5a0a904
JK
4902010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
491
492 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
493 New.
494
be636754
PA
4952010-02-11 Pedro Alves <pedro@codesourcery.com>
496
497 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
498 non-subscriptable types.
499 * valarith.c (binop_types_user_defined_p): New, abstracted out
500 from ...
501 (binop_user_defined_p): ... this.
502 * value.h (binop_types_user_defined_p): Declare.
503
10ef8d6a
PA
5042010-02-11 Pedro Alves <pedro@codesourcery.com>
505
506 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
507 Merge uploaded TSVs before merging uploaded tracepoints.
508
b1028c8e
PA
5092010-02-11 Pedro Alves <pedro@codesourcery.com>
510
511 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
512
7a93fb82 5132010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 514
7a93fb82
VP
515 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
516 whitespace character after a dot in comment.
517 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
518 Likewise.
519 (list_args_or_locals): For the 'all' (that is
520 -stack-list-variables) case, always output list of tuples.
521 Output 'arg' field if variable is argument.
84d90c10 522
92981e24
TT
5232010-02-10 Tom Tromey <tromey@redhat.com>
524
525 * parser-defs.h (parser_debug): Declare.
526 * parse.c (_initialize_parse): Install "debug parser" set/show
527 command.
528 (parser_debug): New global.
529 (show_parserdebug): New function.
530 * c-exp.y (c_parse): Set yydebug.
531
9fd3625f
L
5322010-02-10 H.J. Lu <hongjiu.lu@intel.com>
533
534 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
535 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
536 (tdesc_predefined_types): Add i387_ext, i386_eflags and
537 i386_mxcsr.
538 (tdesc_find_type): New.
539 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
540 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
541
542 * target-descriptions.h (tdesc_find_type): New.
543
2fe842e5
MS
5442010-02-10 Michael Snyder <msnyder@vmware.com>
545
546 * gdb-gdb.py: Comment fix.
547
f18b4cab
TG
5482010-02-09 Tristan Gingold <gingold@adacore.com>
549
550 * machoread.c (macho_symfile_relocate): New function.
551 (macho_sym_fns): Use macho_symfile_relocate instead of
552 default_symfile_relocate.
553 (macho_oso_data): New type.
554 (current_oso): New variable.
555 (macho_add_oso_symfile): Do not compute section_addr_info, but
556 instead set vma of sections.
557 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
558 Set and clear current_oso.
559
31dbc1c5
JB
5602010-02-09 Joel Brobecker <brobecker@adacore.com>
561
562 Wrong type description for tagged type parameter.
563 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
564 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
565 reference to a tagged type.
566
399f313b
TG
5672010-02-09 Tristan Gingold <gingold@adacore.com>
568
569 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
570 brothers of the parent.
571
714f19d5
TT
5722010-02-08 Tom Tromey <tromey@redhat.com>
573
574 PR c++/8017:
575 * value.h: Update.
576 * valops.c (search_struct_field): Make 'name' const.
577 (search_struct_method): Likewise.
578 (find_method_list): Make 'method' const.
579 (value_struct_elt): Make 'name' and 'err' const.
580 (value_find_oload_method_list): Make 'method' const.
581 (find_overload_match): Make 'name' const.
582 * eval.c (evaluate_subexp_standard): New locals function,
583 function_name.
584 <OP_FUNCALL>: Handle OP_SCOPE specially.
585
de0a0249
UW
5862010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
587
588 * infrun.c (handle_inferior_event): Do not look up regcache
589 for exited processes.
590
83b10087
CM
591Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
592
593 PR gdb/10728
594 * valarith.c (value_ptrdiff): Added a test for a zero type length,
595 warn if found, and assume length = 1.
596
99903ae3
CM
5972010-02-08 Chris Moller <cmoller@redhat.com>
598
599 PR gdb/9067
600 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
601 cp_print_static_field) Fix use of obstacks.
602
e3e9f5a2
PA
6032010-02-08 Pedro Alves <pedro@codesourcery.com>
604
605 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
606 resumed LWPs as resumed.
607 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
608 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
609 of throwing an internal error. If an LWP of a process we're not
610 waiting for reports a signal, don't force collecting a SIGSTOP,
611 and if it was breakpoint hit in non-stop mode, cancel it. Don't
612 go through all LWPs cancelling breakpoints in non-stop mode.
613 (resume_stopped_resumed_lwps): New.
614 (linux_nat_wait): Use it.
615
46763423
L
6162010-02-07 H.J. Lu <hongjiu.lu@intel.com>
617
618 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
619 i386/amd64 and i386/amd64-linux.
620 (i386/i386-expedite): New.
621 (i386/i386-linux-expedite): Likewise.
622 (i386/amd64-expedite):Likewise.
623 (i386/amd64-linux-expedite): Likewise.
624 ($(outdir)/i386/i386-linux.dat): Likewise.
625 ($(outdir)/i386/amd64.dat): Likewise.
626 ($(outdir)/i386/amd64-linux.dat): Likewise.
627
628 * features/i386/32bit-core.xml: New.
629 * features/i386/32bit-linux.xml: Likewise.
630 * features/i386/32bit-sse.xml: Likewise.
631 * features/i386/64bit-core.xml: Likewise.
632 * features/i386/64bit-linux.xml: Likewise.
633 * features/i386/64bit-sse.xml: Likewise.
634 * features/i386/i386-linux.xml: Likewise.
635 * features/i386/i386.xml: Likewise.
636 * features/i386/amd64-linux.xml: Likewise.
637 * features/i386/amd64.xml: Likewise.
638 * features/i386/i386-linux.c: Likewise.
639 * features/i386/i386.c: Likewise.
640 * features/i386/amd64-linux.c: Likewise.
641 * features/i386/amd64.c: Likewise.
642
82856980
SW
6432010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
644
645 PR c++/7935:
646 * cp-support.h: Added char* alias element to using_direct data
647 struct.
648 (cp_add_using): Added char* alias argument.
649 (cp_add_using_directive): Ditto.
650 * cp-namespace.c: Updated with the above changes.
651 (cp_lookup_symbol_imports): Check for aliases.
652 * dwarf2read.c (read_import_statement): Figure out local alias
653 for the import and pass it on to cp_add_using.
654 (read_namespace): Pass alias argument to cp_add_using.
655
d18b8b7a
HZ
6562010-02-05 Hui Zhu <teawater@gmail.com>
657
658 * defs.h (gdb_bfd_errmsg): New extern.
659 * exec.c (exec_file_attach): Change bfd_errmsg to
660 gdb_bfd_errmsg.
661 * utils.c (AMBIGUOUS_MESS1): New macro.
662 (AMBIGUOUS_MESS2): New macro.
663 (gdb_bfd_errmsg): New function.
664
48379de6
DE
6652010-02-04 Doug Evans <dje@google.com>
666
667 * solib-svr4.c (enable_break): Add comment.
668
4ee73e90
AG
6692010-02-04 Anthony Green <green@moxielogic.com>
670
671 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
672 gracefully.
673
1a334831
TT
6742010-02-04 Tom Tromey <tromey@redhat.com>
675
676 * valops.c (search_struct_field): Account for
677 value_embedded_offset. Fix check for virtual base past the end of
678 the object. Use value_copy when making a slice of the value.
679
1180b2c8
L
6802010-02-04 H.J. Lu <hongjiu.lu@intel.com>
681
682 PR tui/9622
683 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
684 only if gdb_stdout is a tty.
685
c3f08eb7
L
6862010-02-04 H.J. Lu <hongjiu.lu@intel.com>
687
688 * target-descriptions.c: Include "osabi.h".
689 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
690 OSABI.
691
2d33f7b8
TG
6922010-02-04 Tristan Gingold <gingold@adacore.com>
693
694 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
695 (macho_symtab_read): Adjust calls to macho_add_oso.
696 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
697 (macho_symfile_read): Adjust call to macho_oso_symfile.
698 (macho_new_init): Move this function after declarations.
699 (macho_symfile_init): Ditto.
700 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
701 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
702
11334b82
VP
7032010-02-04 Vladimir Prus <vladimir@codesourcery.com>
704
705 Include MI command in remotelog.
706
707 * mi/mi-main.c (mi_execute_command): Call target_log_command.
708
ff97be06
L
7092010-02-03 H.J. Lu <hongjiu.lu@intel.com>
710
711 * remote.c (remote_state): Remove gdbarch.
712 (init_remote_state): Don't set gdbarch.
713 (remote_query_supported): Pass target_gdbarch instead of
714 rs->gdbarch to gdbarch_qsupported.
715
75cebea9
L
7162010-02-03 H.J. Lu <hongjiu.lu@intel.com>
717
718 * gdbarch.sh: Add qsupported.
719
720 * gdbarch.c: Regenerated.
721 * gdbarch.h: Likewise.
722
723 * remote.c (remote_state): Add gdbarch.
724 (init_remote_state): Set gdbarch.
725 (remote_query_supported): Support gdbarch_qsupported.
726
c1dec97b
DJ
7272010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
728
729 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
730 __FreeBSD_kernel_version.
731
ac8035ab
TG
7322010-02-03 Tristan Gingold <gingold@adacore.com>
733
734 * symfile.h (struct sym_fns): Add sym_relocate field.
735 (default_symfile_relocate): New prototype.
736 (symfile_relocate_debug_section): First argument is now an objfile.
737 * symfile.c (default_symfile_relocate): Rename from
738 symfile_relocate_debug_section, first argument is now an objfile.
739 (symfile_relocate_debug_section): New function.
740 * coffread.c (coff_sym_fns): Set sym_relocate field.
741 * somread.c (som_sym_fns): Ditto.
742 * mipsread.c (ecoff_sym_fns): Ditto.
743 * machoread.c (macho_sym_fns): Ditto.
744 * elfread.c (elf_sym_fns): Ditto.
745 * dwarf2read.c (dwarf2_read_section): Ditto.
746 * xcoffread.c (xcoff_sym_fns): Ditto.
747 * dbxread.c (aout_sym_fns): Ditto.
748 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
749 (elfstab_build_psymtabs): Ditto.
750
be52b756
L
7512010-02-03 H.J. Lu <hongjiu.lu@intel.com>
752
753 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
754
9c3c02fd
TT
7552010-02-02 Tom Tromey <tromey@redhat.com>
756
757 * valops.c (value_cast_structs): Try downcasting using the RTTI
758 type.
759
f23f4c59
TT
7602010-02-02 Tom Tromey <tromey@redhat.com>
761
762 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
763 (gnuv2_baseclass_offset): Now static.
764 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
765 * gnu-v2-abi.h: Remove.
766
0cc2414c
TT
7672010-02-02 Tom Tromey <tromey@redhat.com>
768
769 * m2-typeprint.c (m2_record_fields): Don't use
770 TYPE_DECLARED_TYPE.
771 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
772 (struct main_type) <flag_declared_class>: New field.
773 (struct cplus_struct_type) <declared_type>: Remove.
774 <ntemplate_args>: Move earlier.
775 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
776 (DECLARED_TYPE_TEMPLATE): Remove.
777 (TYPE_DECLARED_TYPE): Remove.
778 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
779 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
780 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
781 TYPE_DECLARED_TYPE.
782
edf3d5f3
TT
7832010-02-02 Tom Tromey <tromey@redhat.com>
784
785 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
786 * valops.c (search_struct_field): Compute nbases after calling
787 CHECK_TYPEDEF.
788 (check_field): Call CHECK_TYPEDEF.
789 * cp-valprint.c (cp_print_value): Pass correct address to
790 baseclass_offset. Fix check for virtual base past the end of the
791 object. Don't offset address passed to cp_print_value_fields or
792 apply_val_pretty_printer.
793 (cp_print_value_fields): Fix call to val_print.
794 (cp_print_value_fields_rtti): New function.
795 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
796 * p-valprint.c (pascal_object_print_value_fields): Fix call to
797 val_print.
798 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
799 offset to address.
800 * language.h (struct language_defn) <la_val_print>: Document.
801 * c-lang.h (cp_print_value_fields_rtti): Declare.
802
e4b7f41c
JK
8032010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
804
805 PR libc/11214:
806 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
807 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
808 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
809
7618e12b
DJ
8102010-02-01 Michael Matz <matz@suse.de>
811 Daniel Jacobowitz <dan@codesourcery.com>
812
e4b7f41c 813 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
814 functions use a frame pointer.
815
b381ea14
JK
8162010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
817
818 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
819 by a conditional setting DYN_ADDR. Use DYN_ADDR.
820 * config/djgpp/fnchange.lst: Add translations for
821 symbol-without-target_section.exp and symbol-without-target_section.c.
822
0e05dfcb
DJ
8232010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
824
825 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
826 (remote_breakpoint_for_pc): Correct invalid_p check.
827 * gdbarch.c: Regenerated.
828
f9d67f43
DJ
8292010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
830
831 * arm-tdep.c (arm_find_mapping_symbol): New function, from
832 arm_pc_is_thumb.
833 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
834 (extend_buffer_earlier): New function.
835 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
836 (arm_adjust_breakpoint_address): New function.
837 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
838
177321bd
DJ
8392010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
840
841 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
842 (arm_linux_thumb2_le_breakpoint): New constants.
843 (arm_linux_init_abi): Set thumb2_breakpoint and
844 thumb2_breakpoint_size.
845 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
846 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
847 Implement support for single stepping through IT blocks if
848 a 32-bit Thumb breakpoint instruction is available.
849 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
850 is available, use it when needed.
851 (arm_remote_breakpoint_from_pc): New function.
852 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
853 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
854 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
855
a1dcb23a
DJ
8562010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
857
858 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
859 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
860 * gdbarch.c, gdbarch.h: Regenerated.
861 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
862 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
863 gdbarch_remote_breakpoint_from_pc.
864
2b009048
DJ
8652010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
866
867 * infrun.c (prepare_to_proceed): Handle other signals which might
868 match a breakpoint.
869 (handle_inferior_event): Move the check for unusual breakpoint
870 signals earlier.
871
e4e2711a
JB
8722010-01-29 Paul Hilfinger <hilfinger@adacore.com>
873
874 amd64 - function returning record with field straddling 2 registers.
875 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
876 a record of length <= 16 in which a field straddles the two
877 eightbytes.
878
cba6fab5
JB
8792010-01-29 Joel Brobecker <brobecker@adacore.com>
880
881 Implement return values on amd64-windows.
882 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
883 (amd64_windows_return_value): New function.
884 (amd64_windows_init_abi): Call set_gdbarch_return_value with
885 amd64_windows_return_value.
886
3af6ddfe
JB
8872010-01-29 Joel Brobecker <brobecker@adacore.com>
888
889 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 890 parameter registers.
3af6ddfe
JB
891 * i386-tdep.h (struct gdbarch_tdep): Add new field
892 integer_param_regs_saved_in_caller_frame.
893 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
894 tdep->integer_param_regs_saved_in_caller_frame to 1.
895 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
896 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
897
80d19a06
JB
8982010-01-29 Joel Brobecker <brobecker@adacore.com>
899
900 amd64-windows: memory args passed by pointer during function calls.
901 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
902 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
903 where tdep->memory_args_by_pointer is non-zero.
904 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
905 tdep->memory_args_by_pointer to 1.
906
ba581dc1
JB
9072010-01-29 Joel Brobecker <brobecker@adacore.com>
908
4966b6c2 909 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
910 * i386-tdep.h (enum amd64_reg_class): New, moved here from
911 amd64-tdep.c.
912 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
913 call_dummy_integer_regs, and classify.
914 * amd64-tdep.h (amd64_classify): Add declaration.
915 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
916 (amd64_reg_class): Delete, moved to i386-tdep.h.
917 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
918 Replace call to amd64_classify by call to tdep->classify.
919 (amd64_push_arguments): Get the list of registers to use for
920 passing integer parameters from the gdbarch tdep structure,
921 rather than using a hardcoded one. Replace calls to amd64_classify
922 by calls to tdep->classify.
923 (amd64_push_dummy_call): Get the register number used for
924 the "hidden" argument from tdep->call_dummy_integer_regs.
925 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
926 and tdep->call_dummy_integer_regs. Set tdep->classify.
927 * amd64-windows-tdep.c: Add include of gdbtypes.h.
928 (amd64_windows_dummy_call_integer_regs): New static global.
929 (amd64_windows_classify): New function.
930 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
931 tdep->call_dummy_integer_regs and tdep->classify.
932
d37346f0
DJ
9332010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
934
935 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
936 for the new regcache. All callers updated.
937 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
938 (get_thread_arch_regcache): Do not set aspace here.
939 * regcache.h (regcache_xmalloc): Update declaration.
940
941 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
942 regcache_xmalloc updated.
943
7434dadd
JB
9442010-01-28 Joel Brobecker <brobecker@adacore.com>
945
946 Another -Wunused-function error in procfs.c (sparc-solaris)
947 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
948 Only define if SYS_syssgi is defined.
949 (remove_dbx_link_breakpoint): Delete declaration. Move up.
950 (dbx_link_addr, insert_dbx_link_bpt_in_file)
951 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
952 is itself defined.
953
16d905e2
CF
9542010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
955
956 * windows-nat.c (windows_initialization_done): New variable.
957 (get_windows_debug_event): Issue error when process dies before
958 completely initializing.
959 (do_initial_windows_stuff): Set flag to indicate when we are done with
960 the initial steps of attaching to the child.
961
cd55e50f
JK
9622010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
963
964 * symtab.h (struct symbol <symtab>): New comment on NULL values.
965
99cc78aa
DE
9662010-01-27 Doug Evans <dje@google.com>
967
4c7dcb84
DE
968 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
969
99cc78aa
DE
970 * breakpoint.c (bpstat_stop_status): Delete useless code.
971
52334bf5
JK
9722010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 * printcmd.c (display_uses_solib_p): Remove variable section. Access
975 objfile via SYMBOL_SYMTAB.
976
708ead4e
TT
9772010-01-26 Tom Tromey <tromey@redhat.com>
978
979 PR exp/7643:
980 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
981 coerce_array on result.
982
b14e635e
SW
9832010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
984
985 * cp-namespace.c (cp_lookup_symbol_namespace): Added
986 search_parent argument.
987 (cp_add_using): Initialize 'searched' field.
988 (reset_directive_searched): New function.
989 * cp-support.h: Add 'searched' field to using_direct struct.
990 (cp_lookup_symbol_imports): Ditto.
991 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
992 Perform recursive search.
993 Implement non parent search.
994 * valops.c (value_maybe_namespace_elt): Updated.
995
8540c487
SW
9962010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
997
998 PR gdb/10929:
999 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1000 scopes which contain using directives even if they contain no
1001 declarations.
1002 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1003 la_lookup_symbol_nonlocal.
1004 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1005 cp_lookup_symbol_namespace.
1006 (cp_lookup_symbol_namespace): Perform an import lookup at every
1007 block level.
1008 (cp_lookup_symbol_imports): New function.
1009 (cp_lookup_symbol_in_namespace): New function.
1010
421d5d99
TT
10112010-01-25 Tom Tromey <tromey@redhat.com>
1012
1013 PR gdb/11049:
1014 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1015 result.
1016
6bcc772d
RO
10172010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018
1019 * configure.ac: Only use host_os part when disabling TUI on osf.
1020 Use test to check variables, prefix strings with x.
1021 * configure: Regenerate.
1022
1023 * solib-osf.c (osf_current_sos): Initialize tail.
1024
1c1238a5
TG
10252010-01-25 gingold <gingold@adacore.com>
1026
1027 * windows-nat.c (windows_continue): Use %x to print thread id.
1028 (get_windows_debug_event): Ditto.
1029
0b92b5bb
TT
10302010-01-22 Tom Tromey <tromey@redhat.com>
1031
1032 PR symtab/11199:
1033 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1034 type and arguments. Use smash_to_methodptr_type.
1035 (read_structure_type): Call quirk_gcc_member_function_pointer
1036 later.
1037 * gdbtypes.h (smash_to_methodptr_type): Declare.
1038 * gdbtypes.c (smash_to_methodptr_type): New function.
1039 (lookup_methodptr_type): Use it.
1040
0d5392b8
TT
10412010-01-21 Tom Tromey <tromey@redhat.com>
1042
1043 PR symtab/11198:
1044 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1045 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1046 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1047 (glibc_skip_solib_resolver): Use
1048 lookup_minimal_symbol_and_objfile.
1049
e6d088ec
KT
10502010-01-21 Kai Tietz <kai.tietz@onevision.com>
1051
1052 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1053 WIN32 targets.
1054
b966cb8a
TT
10552010-01-20 Tom Tromey <tromey@redhat.com>
1056
1057 PR backtrace/10770:
1058 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1059 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1060 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1061 dwarf_stack_values, not CORE_ADDRs.
1062 (execute_stack_op): Change DW_OP_div and comparison operators to
1063 use signed operands.
1064
3f81c18a
VP
10652010-01-20 Vladimir Prus <vladimir@codesourcery.com>
1066
1067 Per-inferior args and tty and environment.
1068
1069 * infcmd.c (inferior_args): Rename to ...
1070 (inferior_args_scratch): ... this.
1071 (inferior_io_terminal): Rename to ...
1072 (inferior_io_terminal_scratch): ... this.
1073 (inferior_argc, inferior_argv): Remove.
1074 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1075 inside current_inferior().
1076 (set_inferior_tty_command, show_inferior_tty_command): New.
1077 (get_inferior_args, set_inferior_args): Store inside
1078 current_inferior().
1079 (notice_args_set): Likewise and rename to...
1080 (set_args_command): ... this.
1081 (set_inferior_args_vector): Likewise.
1082 (notice_args_read): Rename to...
1083 (show_args_command): ...new.
1084 (tty_command): Remove.
1085 (run_command_1): Don't free old args, as they are freed by
1086 set_inferior_arg now.
1087 (run_no_args_command): Likewise.
1088 (inferior_environ): Remove.
1089 (run_command_1): Use environment of the current inferior.
1090 (environment_info, set_environment_command)
1091 (unset_environment_command, path_info, path_command): Likewise.
1092 (_initialize_infcmd): Adjust for function and variable renames.
1093 Do not init inferior_environ.
1094 * inferior.h (set_inferior_arg): Adjust prototype.
1095 (struct inferior): New fields args, argc, argv, terminal, environment.
1096 (inferior_environ): Remove declaration.
1097 * inferior.c (free_inferior): Free new fields.
1098 (add_inferior_silent): Initialize 'environment' field.
1099 * main.c (captured_main): Set arguments only after the initial
1100 inferior has been created. Set set_inferior_io_terminal,
1101 not tty_command.
1102 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1103 inferior.
1104 (_initialize_mi_cmd_env): Adjust for disappearance of global
1105 inferior_environ.
1106 * solib.c (solib_find): Use environment of the current inferior.
1107
d8b65138
JK
11082010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1109
1110 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1111 HAVE_PYTHON.
1112 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1113
692465f1
JB
11142010-01-20 Joel Brobecker <brobecker@adacore.com>
1115
1116 Get rid of ada-lang.c:function_name_from_pc.
1117 * ada-lang.c: Add "stack.h" #include.
1118 (function_name_from_pc): Delete.
1119 (is_known_support_routine): Replace call to function_name_from_pc
1120 by call to find_frame_funname.
1121 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1122
95519e0e
TT
11232010-01-19 Tom Tromey <tromey@redhat.com>
1124
1125 PR c++/11026:
1126 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1127 objfile obstack.
1128
95c11dc7
TT
11292010-01-19 Tom Tromey <tromey@redhat.com>
1130
1131 * top.c (stop_sig, float_handler, do_nothing): Remove.
1132
a0f49112
JK
11332010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 * breakpoint.c (watchpoint_check): Check the call
1136 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1137 Extend the comment.
1138 * config/djgpp/fnchange.lst: Add translations for
1139 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
1140 watchpoint-cond-gone-stripped.c.
1141
ceeb3d5a
TT
11422010-01-19 Tom Tromey <tromey@redhat.com>
1143
1144 PR c++/8000:
1145 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
1146 into parent scope, and enumerator into grandparent scope.
1147
2b71fc8e
JB
11482010-01-19 Joel Brobecker <brobecker@adacore.com>
1149
1150 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1151
03564ed9
JB
11522010-01-19 Joel Brobecker <brobecker@adacore.com>
1153
1154 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1155 i[34567]86-*-solaris2.1[0-9]*.
1156 * configure.tgt: Likewise.
1157
fb2e7cb4
JB
11582010-01-19 Joel Brobecker <brobecker@adacore.com>
1159
1160 * NEWS: Document the source command enhancement allowing it
1161 to load Python scripts. Document the "set/show script-extension"
1162 commands.
1163
1cb5e2a4
JB
11642010-01-19 Joel Brobecker <brobecker@adacore.com>
1165
1166 Add -Wunused-function to compile flags.
1167 * configure.ac: Add -Wunused-function to build_warnings.
1168 * configure: Regenerate.
1169
0ec6cd0c
JB
11702010-01-19 Joel Brobecker <brobecker@adacore.com>
1171
1172 "delete" ada-lex.c:input function, not used.
1173 * ada-lex.l: #define YY_NO_INPUT.
1174
b74845da
JB
11752010-01-19 Joel Brobecker <brobecker@adacore.com>
1176
1177 Delete free_named_symtabs and associated cleanup.
1178 * symfile.h (free_named_symtabs): Delete declaration.
1179 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1180 (cashier_psymtab): Comment function out.
1181 Delete declaration.
1182 (free_named_symtabs): Delete.
1183 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1184 * dbxread.c (end_psymtab): Likewise.
1185 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1186 * exec.c (exec_close_1): Ditto.
1187 * xcoffread.c (xcoff_end_psymtab): Likewise.
1188
65c06092
JB
11892010-01-19 Joel Brobecker <brobecker@adacore.com>
1190
1191 * stack.c (print_block_frame_labels): Comment function out.
1192
d5cd6034
JB
11932010-01-19 Joel Brobecker <brobecker@adacore.com>
1194
1195 Delete unused or undefined functions.
1196 * breakpoint.c (ep_parse_optional_filename): Delete.
1197 * dcache.c (dcache_write_line): Remove declaration.
1198 * infrun.c (build_infrun): Remove declaration.
1199 * tracepoint.c (tracepoint_save_command): Remove declaration.
1200 * linux-nat.c (init_lwp_list): Delete. No longer used.
1201 * event-loop.c (check_async_signal_handlers): Delete declaration.
1202 * infrun.c (init_execution_control_state): Delete.
1203 (proceed): Update comment to avoid mentioning
1204 init_execution_control_state.
1205 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1206 * ada-lang.c (ada_to_static_fixed_value): Delete.
1207 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1208 * cp-namespace.c (cp_copy_usings): Delete.
1209 * xml-syscall.c (xml_number_of_syscalls): Delete.
1210 * progspace.c (find_program_space_by_num): Delete.
1211 * inflow.c (handle_sigio): Delete declaration.
1212 * hppa-tdep.c (hppa_alignof): Delete.
1213 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1214 (mipsnbsd_core_osabi_sniffer): Delete.
1215
4e8f195d
TT
12162010-01-18 Tom Tromey <tromey@redhat.com>
1217
1218 PR c++/9680:
1219 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1220 (CONST_CAST): New tokens.
1221 (exp): Add new productions.
1222 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1223 reinterpret_cast.
1224 (is_cast_operator): New function.
1225 (yylex): Handle cast operators specially.
1226 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1227 UNOP_REINTERPRET_CAST>: New cases.
1228 * expprint.c (print_subexp_standard): Likewise.
1229 (op_name_standard): Likewise.
1230 (dump_subexp_body_standard): Likewise.
1231 * parse.c (operator_length_standard): Likewise.
1232 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1233 UNOP_REINTERPRET_CAST.
1234 * gdbtypes.c (class_types_same_p): New function.
1235 (is_ancestor): Use it.
1236 (is_public_ancestor): New function.
1237 (is_unique_ancestor_worker): Likewise.
1238 (is_unique_ancestor): Likewise.
1239 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1240 (is_unique_ancestor): Declare.
1241 * valops.c (value_reinterpret_cast): New function.
1242 (dynamic_cast_check_1): Likewise.
1243 (dynamic_cast_check_2): Likewise.
1244 (value_dynamic_cast): Likewise.
1245 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1246
d9c57d9f
JB
12472010-01-18 Joel Brobecker <brobecker@adacore.com>
1248
1249 Fix build failure when building without Python support.
1250 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1251 is not defined.
1252
f80d3ff2
JB
12532010-01-18 Joel Brobecker <brobecker@adacore.com>
1254
1255 Use XVS field type instead of doing a parallel lookup.
1256 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1257 if it is a reference type instead of doing a type lookup using
1258 the XVS field name.
1259
5bf03f13
JB
12602010-01-18 Joel Brobecker <brobecker@adacore.com>
1261
1262 Trust PAD types instead of using PAD___XVS.
1263 * ada-lang.c (trust_pad_over_xvs): New static variable.
1264 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1265 parallel XVS type, follow the XVS type instead of the PAD type.
1266 (unwrap_value): Make sure that there is no parallel XVE type
1267 before returning the value as is.
1268 (set_ada_list, show_ada_list): New static variables.
1269 (set_ada_command, show_ada_command): New functions.
1270 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1271 Add new "set/show ada trust-PAD-over-XVS" setting.
1272
973817a3
JB
12732010-01-18 Tom Tromey <tromey@redhat.com>
1274 Thiago Jung Bauermann <bauerman@br.ibm.com>
1275
1276 Allow "source" to load python scripts.
1277 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1278 * python/python.c (source_python_script): New function.
1279 * python/python.h (source_python_script): Add declaration.
1280 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1281 (script_ext_off, script_ext_soft, script_ext_strict)
1282 (script_ext_enums, script_ext_mode): New static constants.
1283 (show_script_ext_mode, find_and_open_script): New functions.
1284 (source_script): Enhance to handle Python scripts.
1285 (init_cli_cmds): Add set/show script-extension commands.
1286
98e03262
SS
12872010-01-16 Stan Shebs <stan@codesourcery.com>
1288
1289 * tracepoint.h (struct trace_status): Use unsigned long long
1290 instead of size_t.
1291 * tracepoint.c (trace_status_command): Fix printf directive.
1292 (trace_save_command): Check fwrite returns, fix printf directive.
1293 (trace_filename): New global.
1294 (tfile_open): Set it, check read returns.
1295 (tfile_close): Free trace_filename.
1296 (tfile_get_traceframe_address): Check read returns.
1297 (tfile_trace_find): Ditto.
1298 (tfile_fetch_registers): Ditto.
1299 (tfile_xfer_partial): Ditto.
1300 (tfile_get_trace_state_variable_value): Ditto.
1301
00bf0b85
SS
13022010-01-15 Stan Shebs <stan@codesourcery.com>
1303
1304 Add trace file support.
1305 * tracepoint.h (enum trace_stop_reason): New enum.
1306 (struct trace_status): New struct.
1307 (parse_trace_status): Declare.
1308 (struct uploaded_tp): Move here from remote.c,
1309 add fields for actions.
1310 (struct uploaded_tsv): New struct.
1311 * tracepoint.c (tfile_ops): New target vector.
1312 (trace_fd): New global.
1313 (tfile_open): New function.
1314 (tfile_close): New function.
1315 (tfile_files_info): New function.
1316 (tfile_get_trace_status): New function.
1317 (tfile_get_traceframe_address): New function.
1318 (tfile_trace_find): New function.
1319 (tfile_fetch_registers): New function.
1320 (tfile_xfer_partial): New function.
1321 (tfile_get_trace_state_variable_value): New function.
1322 (init_tfile_ops): New function.
1323 (_initialize_tracepoint): Call it, add tfile target.
1324 (trace_status): New global.
1325 (current_trace_status): New function.
1326 (trace_running_p): Remove, change all users to get from
1327 current_trace_status()->running.
1328 (get_trace_status): Remove.
1329 (trace_status_command): Call target_get_trace_status directly,
1330 report more detail including tracing stop reasons.
1331 (trace_find_command): Always allow tfind on a file.
1332 (trace_find_pc_command): Ditto.
1333 (trace_find_tracepoint_command): Ditto.
1334 (trace_find_line_command): Ditto.
1335 (trace_find_range_command): Ditto.
1336 (trace_find_outside_command): Ditto.
1337 (trace_frames_offset, cur_offset): Declare as off_t.
1338 (trace_regblock_size): Rename from reg_size, update users.
1339 (parse_trace_status): New function.
1340 (tfile_interp_line): New function.
1341 (disconnect_or_stop_tracing): Ensure current trace
1342 status before asking what to do.
1343 (stop_reason_names): New global.
1344 (trace_save_command): New command.
1345 (get_uploaded_tp): Move here from remote.c.
1346 (find_matching_tracepoint): Ditto.
1347 (merge_uploaded_tracepoints): New function.
1348 (parse_trace_status): Use stop_reason_names.
1349 (_initialize_tracepoint): Define tsave command.
1350 * target.h (target_ops): New fields to_save_trace_data,
1351 to_upload_tracepoints, to_upload_trace_state_variables,
1352 to_get_raw_trace_data, change to_get_trace_status
1353 to take a pointer to a status struct.
1354 (target_save_trace_data): New macro.
1355 (target_upload_tracepoints): New macro.
1356 (target_upload_trace_state_variables): New macro.
1357 (target_get_raw_trace_data): New macro.
1358 * target.c (update_current_target): Add new methods, change
1359 signature of to_get_trace_status.
1360 * remote.c (hex2bin): Make globally visible.
1361 (bin2hex): Ditto.
1362 (remote_download_trace_state_variable): Download name also.
1363 (remote_get_trace_status): Update parameter, use
1364 parse_trace_status.
1365 (remote_save_trace_data): New function.
1366 (remote_upload_tracepoints): New function.
1367 (remote_upload_trace_state_variables): New function.
1368 (remote_get_raw_trace_data): New function.
1369 (remote_start_remote): Use them.
1370 (_initialize_remote_ops): Add operations.
1371 * ax-gdb.c: Include breakpoint.h.
1372 * breakpoint.c (create_tracepoint_from_upload): Use
1373 break_command_really, return tracepoint, warn about unimplemented
1374 parts.
1375 * NEWS: Mention trace file addition.
1376
d904de5b
JK
13772010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1378
1379 Fix compilation warning on gcc-3.4.
1380 * exec.c (print_section_info): Move the `displacement' variable
1381 initialization to its declaration.
1382
64aa9731
JK
13832010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1384
1385 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1386 comparison.
1387
ca1f5def 13882010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
1389
1390 "info tasks" broken by typedefs in ATCB type definitions.
1391 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1392 ada_check_typedef before retrieving the length of the type for
1393 regular fields.
1394
12ab9e09
JB
13952010-01-15 Joel Brobecker <brobecker@adacore.com>
1396
1397 Do not use name-based lookup for unconstrained packed arrays.
1398 * ada-lang.c (find_parallel_type_by_descriptive_type):
1399 Limit the fallback to name-based lookups to the case where
1400 the type is a constrained packed array.
1401
c389c3dc
JB
14022010-01-15 Joel Brobecker <brobecker@adacore.com>
1403
1404 Enhance gdb-gdb.py to handle main_type.type_specific.
1405 * gdb-gdb.py: Print the type-specific part of struct main_type.
1406
7991dee7
JK
14072010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1408
1409 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1410 * configure: Regenerate.
1411 * config.in: Regenerate.
1412 * utils.c: Include sys/resource.h.
1413 (dump_core, can_dump_core): New.
1414 (internal_vproblem): Update the comment. Check can_dump_core while
1415 setting dump_core_p. Replace two abort calls by dump_core calls.
1416
93c26624
JK
14172010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1418 Eli Zaretskii <eliz@gnu.org>
1419
1420 * NEWS: Document the PIE support.
1421
55235ad7
JK
14222010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1425 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1426
41752192
JK
14272010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1428
1429 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1430 Replace exec_entry_point call by bfd_get_start_address.
1431
9f2982ff
JK
14322010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1433
1434 Support Valgrind attachments broken by the PIE support.
1435 * auxv.c: Include gdbcore.h.
1436 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1437 parameters ops, object and annex. Remove their assertions.
1438 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1439 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1440 (memory_xfer_auxv): ... here.
1441 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1442 memory_xfer_auxv.
1443 * procfs.c (procfs_xfer_partial): Likewise.
1444 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1445 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1446 (svr4_solib_create_inferior_hook): Conditionalize the
1447 svr4_relocate_main_executable call.
1448
61f0d762
JK
14492010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1450
1451 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1452 target_section. Find SECT in current_target_sections, gdb_assert it.
1453 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1454 New variable abfd.
1455 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1456 of separate debug info file.
1457
51bee8e9
JK
14582010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1459
1460 Support PIEs with no symfile_objfile.
1461 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1462 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1463
b8040f19
JK
14642010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1467 code part to ...
1468 (svr4_static_exec_displacement): ... a new function.
1469 (svr4_exec_displacement): New function.
1470 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1471 new_offsets using alloca now. Remove variable old_chain and changed.
1472 Call objfile_relocate unconditionally now.
1473
eb90ce83
DE
14742010-01-14 Doug Evans <dje@google.com>
1475
1476 * gdbtypes.c (arch_flags_type): Fix comment.
1477 * gdbtypes.h (arch_composite_type): Fix comment.
1478
bdfed3bc
TG
14792009-01-14 Tristan Gingold <gingold@adacore.com>
1480
1481 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1482 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1483 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1484 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1485 macho_add_oso_symfile.
1486 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1487
1596ad23
JB
14882010-01-14 Joel Brobecker <brobecker@adacore.com>
1489
1490 Tru64: Dead threads are never deleted.
1491 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1492 (dec_thread_count_gdb_threads): Fix counter increment.
1493 (dec_thread_add_gdb_thread): Fix *listp increment.
1494 (resync_thread_list): Fix bug in deletion of dead threads that
1495 caused all threads to be deleted, instead of just the dead ones.
1496
be759fcf
PM
14972010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1498
1499 PR python/10705
1500
1501 * python/python-internal.h: Add lazy_string_object_type
1502 definition.
1503 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1504 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1505 * python/py-value.c (valpy_lazy_string): New function.
1506 (convert_value_from_python): Add lazy string conversion.
1507 * python/py-prettyprint.c (pretty_print_one_value): Check if
1508 return is also a lazy string.
1509 (print_string_repr): Add lazy string printing branch.
1510 (print_children): Likewise.
1511 * python/py-lazy-string.c: New file. Implement lazy strings.
1512 * python/python.c (_initialize_python): Call
1513 gdbpy_initialize_lazy_string.
1514 * varobj.c (value_get_print_value): Add lazy string printing
1515 branch. Account for encoding.
1516 * c-lang.c (c_printstr): Account for new encoding argument. If
1517 encoding is NULL, find encoding suited for type, otherwise use
1518 user encoding.
1519 * language.h (language_defn): Add encoding argument.
1520 (LA_PRINT_STRING): Likewise.
1521 * language.c (unk_lang_printstr): Update to reflect new encoding
1522 argument to language_defn.
1523 * ada-lang.h (ada_printstr): Likewise.
1524 * c-lang.h (c_printstr): Likewise.
1525 * p-lang.h (pascal_printstr);
1526 * f-lang.c (f_printstr): Likewise.
1527 * m2-lang.c (m2_printstr): Likewise.
1528 * objc-lang.c (objc_printstr): Likewise.
1529 * p-lang.c (pascal_printstr): Likewise.
1530 * scm-lang.c (scm_printstr): Likewise.
1531 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1532 encoding argument.
1533 * ada-valprint.c (ada_printstr): Likewise.
1534 * f-valprint.c (f_val_print): Likewise
1535 * m2-valprint.c (m2_val_print): Likewise.
1536 * p-valprint.c (pascal_val_print): Likewise.
1537 * expprint.c (print_subexp_standard): Likewise.
1538 * valprint.c (val_print_string): Likewise.
1539 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1540 (SUBDIR_PYTHON_SRCS): Likewise.
1541 (py-lazy-string.o): New rule.
1542
1fe72117 15432010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
1544
1545 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1546 uninitialized" warning from gcc on local `tree'.
1547
dc146f7c
VP
15482010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1549
1550 Implement core awareness.
1551
1552 * bcache.c (compare_ints): Remove
1553 (print_percentage): Use compare_positive_ints.
1554 * defs.h (compare_positive_ints): Declare.
1555 * linux-nat.h (struct lin_lwp): New field core.
1556 (linux_nat_core_of_thread_1): Declare.
1557 * linux-nat.c (add_lwp): Init the 'core' field.
1558 (linux_nat_wait_1): Record the core.
1559 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1560 (linux_nat_add_target): Register the above.
1561 * linux-thread-db.c (update_thread_core): New.
1562 (thread_db_find_new_threads): Update core information for
1563 every thread.
1564 * remote.c (struct private_thread_info): New.
1565 (free_private_thread_info, demand_private_info): New.
1566 (PACKET_qXfer_threads, use_osdata_threads): New.
1567 (struct thread_item, threads_parsing_context
1568 (start_thread, end_thread, thread_attributes)
1569 (thread_children, threads_children, threads_elements): New.
1570 (remote_threads_info): Try qXfer:threads before anything
1571 else.
1572 (remote_protocol_packets): Register qXfer:threads.
1573 (remote_open_1): Init use_osdata_threads.
1574 (struct stop_reply): New field 'core'.
1575 (remote_parse_stop_reply): Parse core number.
1576 (process_stop_reply): Record core number.
1577 (remote_xfer_partial): Handle qXfer:threads.
1578 (remote_core_of_thread): New.
1579 (init_remote_ops): Register remote_core_of_thread.
1580 (_initialize_remote): Register qXfer:read.
1581 * target.c (target_core_of_thread): New
1582 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1583 (struct target_ops): New field to_core_of_threads.
1584 (target_core_of_thread): Declare.
1585 * gdbthread.h (struct thread_info): New field private_dtor.
1586 * thread.c (print_thread_info): Report the core.
1587 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1588 * utils.c (compare_positive_ints): New.
1589 * features/threads.dtd: New.
1590 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1591 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1592 (do_nothing, free_vector_of_osdata_items)
1593 (splay_tree_int_comparator, free_splay_tree): New.
1594 (print_one_inferior_data): Implemented printing of selected
1595 inferiors. Collect and print cores.
1596 (output_cores): New.
1597 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1598 thread groups together with --available.
1599
d30c5336
JK
16002010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 * configure: Regenerate (for _STRUCTURED_PROC).
1603
02893727
JB
16042010-01-12 Joel Brobecker <brobecker@adacore.com>
1605
1606 Delete dead function.
1607 * ada-lang.c (extract_string): Delete. No longer used.
1608
46ed2d6f
JB
16092010-01-12 Joel Brobecker <brobecker@adacore.com>
1610
1611 Fix -Wunused warning in dec-thread.c.
1612 * dec-thread.c (dec_thread_count_gdb_threads)
1613 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1614
606b8d1a
JB
16152010-01-12 Joel Brobecker <brobecker@adacore.com>
1616
1617 * ada-valprint.c (ada_print_floating): Remove trailing space.
1618
b4ba55a1
JB
16192010-01-12 Joel Brobecker <brobecker@adacore.com>
1620
1621 Add support for DW_AT_GNAT_descriptive_type.
1622 * gdbtypes.h (enum type_specific_kind): New enum.
1623 (struct main_type) [type_specific_field]: New component.
1624 [type_specific]: Add new component "gnat_stuff".
1625 (struct gnat_aux_type): New type.
1626 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1627 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1628 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1629 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1630 (TYPE_SPECIFIC_FIELD): New macros.
1631 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1632 type does not hold any cplus-specific data.
1633 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1634 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1635 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1636 cplus-specific data.
1637 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1638 Set new component TYPE_SPECIFIC_FIELD (type).
1639 (gnat_aux_default): New constant.
1640 (allocate_gnat_aux_type): New function.
1641 (init_type): Add initialization the type-specific stuff for
1642 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1643 (print_gnat_stuff): New function.
1644 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1645 specific data. Adjust code that prints the contents of the
1646 type-specific union using the TYPE_SPECIFIC_FIELD value.
1647 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1648 the type cplus stuff for Ada types.
1649 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1650 Error out if these routines are called with an Ada type.
1651 (read_structure_type, read_array_type, read_subrange_type):
1652 Add call to set_descriptive_type.
1653 (set_die_type): Initialize the gnat-specific data if necessary.
1654 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1655 New functions.
1656 * ada-lang.c (decode_constrained_packed_array_type): Use
1657 decode_constrained_packed_array_type instead of doing a standard
1658 lookup to locate a parallel type.
1659 (find_parallel_type_by_descriptive_type): New function.
1660 (ada_find_parallel_type_with_name): New function.
1661 (ada_find_parallel_type): Reimplement using
1662 ada_find_parallel_type_with_name.
1663 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1664 to check if type has a cplus stuff.
1665 * linespec.c (total_number_of_methods): Likewise.
1666 * mdebugread.c (new_type): Likewise.
1667
b0f02ee9
JK
16682010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1669
1670 * NEWS: Document the 0b binary number prefix parsing.
1671
b260e109
JK
16722010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 * objfiles.c (objfile_relocate1): Change the return type to int.
1675 Describe the new return value. Return non-zero if data changed.
1676 (objfile_relocate): New variable changed. Set it. Call
1677 breakpoint_re_set depending on CHANGED.
1678
b5cfddf5
JK
16792010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1680
1681 Implement binary numbers parsing.
1682 * c-exp.y (parse_number): New case 'b' and 'B'.
1683
e0ae4240
JK
16842010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1685 Tristan Gingold <gingold@adacore.com>
1686
1687 * solib.c (info_sharedlibrary_command): Replace
1688 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1689 objfile_has_symbols.
1690
6e0e5977
JB
16912010-01-10 Joel Brobecker <brobecker@adacore.com>
1692
1693 * NEWS: Document the improvements made to the mips-irix port.
1694
7348c5e1
JB
16952010-01-09 Joel Brobecker <brobecker@adacore.com>
1696
1697 Fix the documentation of valprint.c:value_print.
1698 * valprint.c (value_print): Update the function description to
1699 mention that the syntax of the output follows the current_language,
1700 not necessarily C.
1701
567995e1
JK
17022010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 Fix displacement of separate debug info files.
1705 * objfiles.c (objfile_relocate): Rename to ...
1706 (objfile_relocate1): ... here and make it static. Extend the comment.
1707 (objfile_relocate): New function.
1708 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1709 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1710 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1711 allocated using alloca.
1712 * symfile.c (copy_section_addr_info): Remove.
1713 (build_section_addr_info_from_objfile): Make it global. New variables
1714 addr_bit and mask, use them.
1715 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1716 (copy_section_addr_info): Remove.
1717
6d8eadbd
JB
17182010-01-09 Joel Brobecker <brobecker@adacore.com>
1719
1720 Signal unwinder for mips-irix N32.
1721 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1722 tramp-frame.h.
1723 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1724 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1725 (SIGCONTEXT_LO_OFF): New macros.
1726 (mips_irix_n32_tramp_frame_init): New function.
1727 (mips_irix_n32_tramp_frame): New static constant.
1728 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1729
27087a3d
JB
17302010-01-09 Joel Brobecker <brobecker@adacore.com>
1731
1732 Breakpoint in shared library does not work on mips-irix.
1733 * procfs.c: #include "observer.h".
1734 (procfs_inferior_created): New function, moving here the code
1735 which unsets the syssgi syscall-exit notifications.
1736 (procfs_create_inferior): Remove the code which unsets the syssgi
1737 syscall-exit notifications. It is too early to do this here.
1738 (_initialize_procfs): Attach the procfs_inferior_created observer.
1739
f08877ba
JB
17402010-01-09 Joel Brobecker <brobecker@adacore.com>
1741
1742 Wrong return convention for arrays (mips-irix).
1743 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1744 128 bits or smaller are returned the same way as structs
1745 and unions of the the same size.
1746
e4b97d48
JB
17472010-01-09 Joel Brobecker <brobecker@adacore.com>
1748
1749 Cannot set the PC on mips-irix.
1750 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1751 register number, no the cooked one.
1752
11377e68
JB
17532010-01-09 Joel Brobecker <brobecker@adacore.com>
1754
1755 Error while loading core file on mips-irix.
1756 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1757 if debugging from a core file.
1758
b2391021
JB
17592010-01-09 Joel Brobecker <brobecker@adacore.com>
1760
1761 GDB hangs when attaching to process on mips-irix.
1762 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1763 attaching to a process.
1764
f2ec0ecf
JB
17652010-01-09 Joel Brobecker <brobecker@adacore.com>
1766
1767 Use the correct breakpoint instruction on mips-irix.
1768 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1769 containing the correct breakpoint instruction to use on mips-irix.
1770 Use it when the osabi is GDB_OSABI_IRIX.
1771
3c95f01c
JB
17722010-01-09 Joel Brobecker <brobecker@adacore.com>
1773
1774 -Wunused warning in procfs.c (mips-irix only).
1775 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1776 throughout instead of using praddset and prdelset respectively.
1777
4b7703ad
JB
17782010-01-09 Joel Brobecker <brobecker@adacore.com>
1779
1780 GDB crash while stepping into function.
1781 * infrun.c (handle_inferior_event): Refetch the current frame
1782 after handling what.main_action, in case that pointer became
1783 dangling.
1784
12c89474
JB
17852010-01-09 Joel Brobecker <brobecker@adacore.com>
1786
1787 Fix build failure of solaris-hosted cross debuggers.
1788 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1789
1a3fd262 17902010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
1791
1792 Fix build failure on sparc-solaris.
1793 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1794
75242ef4
JK
17952010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1796
1797 Move some symfile code into subroutines.
1798 * symfile.h (relative_addr_info_to_section_offsets)
1799 (addr_info_make_relative): New prototypes.
1800 * symfile.c (default_symfile_offsets): Move a part to ...
1801 (relative_addr_info_to_section_offsets): ... this new function.
1802 (default_symfile_offsets): Call it.
1803 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1804 this part to ...
1805 (addr_info_make_relative): ... this new function.
1806
268a4a75
JK
18072010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1808
1809 Add from_tty to solib_create_inferior_hook.
1810 * infcmd.c (post_create_inferior): Move solib_add after
1811 solib_create_inferior_hook. Pass from_tty to
1812 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1813 0 from_tty and comment why.
1814 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1815 * linux-nat.c (linux_child_follow_fork): Likewise.
1816 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1817 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1818 from_tty.
1819 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1820 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1821 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1822 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1823 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1824 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1825 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1826 Pass it to svr4_so_ops.solib_create_inferior_hook.
1827 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1828 from_tty.
1829 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1830 solib_add.
1831 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1832 enable_break.
1833 * solib-target.c (solib_target_solib_create_inferior_hook): New
1834 parameter from_tty.
1835 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1836 it to ops->solib_create_inferior_hook.
1837 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1838 Move solib_add after solib_create_inferior_hook, call it now with
1839 from_tty as 0. New comment there.
1840 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1841 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1842 Likewise.
1843
cf00dfa7
VP
18442010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1845
1846 Fix multiexec race.
1847 * infrun.c (handle_inferior_event): Use get_thread_regcache
1848 with events ptid, not get_current_regcache.
1849
f91e5ac3
JB
18502009-01-08 Joel Brobecker <brobecker@adacore.com>
1851
1852 GDB crash with empty executable name (MinGW).
1853 * source.c (openp): Add assert that parameter string is not NULL.
1854 if parameter string is an empty string, then return with a failure
1855 immediately.
1856
92b9ce5b
JB
18572009-01-08 Joel Brobecker <brobecker@adacore.com>
1858
1859 Get rid of support for VAX Floats.
1860 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1861 (ada_vax_float_print_function): Delete.
1862 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1863 (ada_vax_float_print_function): Delete.
1864 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1865 (ada_print_type): Remove support for VAX floats.
1866 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1867
268a4a75 18682010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
1869
1870 * stabsread.c (read_args): Handle zero arguments.
1871
f0f20949
JB
18722009-01-08 Joel Brobecker <brobecker@adacore.com>
1873
1874 Cannot find in-tree libiconv.a after reconfigure.
1875 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1876 that we can use, then cache the path to this archive.
1877 * configure: Regenerate.
1878
6b6218c5
SS
18792010-01-07 Stan Shebs <stan@codesourcery.com>
1880
35b1e5cc
SS
1881 Make tracepoint operations go through target vector.
1882 * target.h (enum trace_find_type): New enum.
1883 (struct target_ops): New fields to_trace_init,
1884 to_download_tracepoint, to_download_trace_state_variable,
1885 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1886 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1887 to_set_disconnected_tracing.
1888 (target_trace_init): New macro.
1889 (target_download_tracepoint): New macro.
1890 (target_download_trace_state_variable): New macro.
1891 (target_trace_start): New macro.
1892 (target_trace_set_readonly_regions): New macro.
1893 (target_get_trace_status): New macro.
1894 (target_trace_stop): New macro.
1895 (target_trace_find): New macro.
1896 (target_get_trace_state_variable_value): New macro.
1897 (target_set_disconnected_tracing): New macro.
1898 * target.c (update_current_target): Inherit and set defaults for
1899 tracepoint operations.
1900 * tracepoint.c (default_collect): Make globally visible.
1901 (target_is_remote): Remove, along with all calls.
1902 (tvariables_info): Call target_get_trace_state_variable_value.
1903 (remote_set_transparent_ranges): Remove.
1904 (trace_start_command): Call target_trace_init,
1905 target_download_tracepoint, etc.
1906 (download_tracepoint): Remove.
1907 (trace_stop_command): Simplify.
1908 (stop_tracing): Call target_trace_stop.
1909 (get_trace_status): Call target_get_trace_status.
1910 (trace_status_command): Add case for targets that cannot trace.
1911 (finish_tfind_command): Change to take numerical arguments, call
1912 target_trace_find.
1913 (trace_find_command): Update call to finish_tfind_command.
1914 (trace_find_pc_command): Ditto.
1915 (trace_find_tracepoint_command): Ditto.
1916 (trace_find_line_command): Ditto.
1917 (trace_find_range_command): Ditto.
1918 (trace_find_outside_command): Ditto.
1919 (set_disconnected_tracing_value): Call
1920 target_set_disconnected_tracing.
1921 * remote.c: Add protocol encoding bits from tracepoint.c.
1922 (trace_error): Move from tracepoint.c.
1923 (remote_get_noisy_reply): Ditto.
1924 (free_actions_list_cleanup_wrapper): Ditto.
1925 (free_actions_list): Ditto.
1926 (remote_trace_init): New function.
1927 (remote_download_tracepoint): New function.
1928 (remote_download_trace_state_variable): New function.
1929 (remote_trace_set_readonly_regions): New function.
1930 (remote_trace_start): New function.
1931 (remote_get_trace_status): New function.
1932 (remote_trace_stop): New function.
1933 (remote_trace_find): New function.
1934 (remote_download_trace_state_variable): New function.
1935 (remote_set_disconnected_tracing): New function.
1936 (init_remote_ops): Add tracepoint operations.
1937
6b6218c5
SS
1938 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1939
089b4803
TG
19402010-01-07 Tristan Gingold <gingold@adacore.com>
1941
1942 * symfile.c (build_section_addr_info_from_objfile): New function.
1943 (symbol_file_add_separate): Don't use offsets from objfile but
1944 built an addr info.
1945
d5551862
SS
19462010-01-06 Stan Shebs <stan@codesourcery.com>
1947
1948 Support disconnected tracing.
1949 * infcmd.c (detach_command): Ask whether to stop tracing.
1950 * cli/cli-cmds.c (quit_command): Ditto.
1951 * breakpoint.h (struct breakpoint): New field number_on_target.
1952 * breakpoint.c (create_tracepoint_from_upload): New function.
1953 (get_tracepoint_by_number_on_target): New function.
1954 * remote.c (struct remote): New field disconnected_tracing.
1955 (remote_disconnected_tracing_feature): New function.
1956 (remote_protocol_features): Add DisconnectedTracing.
1957 (struct uploaded_tp): New struct.
1958 (uploaded_tps): New global.
1959 (get_uploaded_tp): New function.
1960 (find_matching_tracepoint): New function.
1961 (remote_get_tracing_state): New function.
1962 (remote_start_remote): Call it.
1963 * tracepoint.c (disconnected_tracing): New global.
1964 (trace_start_command): Initialize number_on_target.
1965 (stop_tracing): New function, split out from...
1966 (trace_stop_command): Call stop_tracing.
1967 (get_trace_status): New function, split out from...
1968 (trace_status_command): Call get_trace_status, add info on
1969 disconnection behavior.
1970 (disconnect_or_stop_tracing): New function.
1971 (finish_tfind_command): Translate from number on target.
1972 (trace_find_tracepoint_command): Translate to number on target.
1973 (send_disconnected_tracing_value): New function.
1974 (set_disconnected_tracing): New function.
1975 (_initialize_tracepoint): Add disconnected-tracing variable.
1976 * NEWS: Mention disconnected tracing.
1977
15d123c9
TG
19782010-01-06 Tristan Gingold <gingold@adacore.com>
1979
1980 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1981 parameter to main_objfile. Iterate on all separate debug objfiles.
1982 * symfile.h (symbol_file_add_separate)
1983 (find_separate_debug_file_by_debuglink): Remove parameter names.
1984 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1985 (reread_symbols): Use free_objfile_separate_debug.
1986 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1987 Adjust comment.
1988 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1989 (free_objfile_separate_debug): New prototypes.
1990 * objfiles.c (objfile_separate_debug_iterate): New function.
1991 (add_separate_debug_objfile, free_objfile_separate_debug): New
1992 functions.
1993 (free_objfile): Use free_objfile_separate_debug. Adjust for
1994 multiple separate debug objfile.
1995 (objfile_has_symbols): Adjust comment. Iterate on all separate
1996 debug objfiles.
1997 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1998 debug objfile.
1999 (lookup_minimal_symbol_text): Ditto.
2000 (lookup_minimal_symbol_by_pc_name): Ditto.
2001 (lookup_minimal_symbol_solib_trampoline): Ditto.
2002 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2003 debug objfiles.
2004
7a697b8d
SS
20052010-01-05 Stan Shebs <stan@codesourcery.com>
2006
2007 Add fast tracepoints.
2008 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2009 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2010 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2011 * breakpoint.c (tracepoint_type): New function.
2012 (ALL_TRACEPOINTS): Use it.
2013 (should_be_inserted): Ditto.
2014 (bpstat_check_location): Ditto.
2015 (print_one_breakpoint_location): Ditto.
2016 (user_settable_breakpoint): Ditto.
2017 (set_breakpoint_location_function): Ditto.
2018 (disable_breakpoints_in_shlibs): Ditto.
2019 (delete_trace_command): Ditto.
2020 (print_it_typical): Add bp_fast_tracepoint case.
2021 (bpstat_what): Ditto.
2022 (print_one_breakpoint_location): Ditto.
2023 (allocate_bp_location): Ditto.
2024 (mention): Ditto.
2025 (breakpoint_re_set_one): Ditto.
2026 (disable_command): Ditto.
2027 (enable_command): Ditto.
2028 (check_fast_tracepoint_sals): New function.
2029 (break_command_really): Call it.
2030 (ftrace_command): New function.
2031 (_initialize_breakpoint): Add ftrace command.
2032 * gdbarch.sh (fast_tracepoint_valid_at): New.
2033 * gdbarch.h, gdbarch.c: Regenerate.
2034 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2035 (i386_gdbarch_init): Use it.
2036 * remote.c (struct remote_state): New field fast_tracepoints.
2037 (PACKET_FastTracepoints): New packet config type.
2038 (remote_fast_tracepoint_feature): New function.
2039 (remote_protocol_features): Add FastTracepoints.
2040 (remote_supports_fast_tracepoints): New function.
2041 (_initialize_remote): Add FastTracepoints.
2042 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2043 * NEWS: Mention fast tracepoints.
2044
737a160e
JB
20452010-01-06 Joel Brobecker <brobecker@adacore.com>
2046
2047 * gdb-gdb.py: New file.
2048
ce6cca6d
MS
20492010-01-05 Michael Snyder <msnyder@vmware.com>
2050
2051 * infrun.c (handle_inferior_event): Fix typo in comment.
2052
0d15807d
JK
20532010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2054
2055 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2056
7803799a
UW
20572010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2058
2059 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2060 and s390x-linux64.
2061 (s390-linux32-expedite): Define.
2062 (s390-linux64-expedite): Define.
2063 (s390x-linux64-expedite): Define.
2064 * features/s390-acr.xml: New file.
2065 * features/s390-fpr.xml: New file.
2066 * features/s390-core32.xml: New file.
2067 * features/s390-core64.xml: New file.
2068 * features/s390x-core64.xml: New file.
2069 * features/s390-linux32.xml: New file.
2070 * features/s390-linux64.xml: New file.
2071 * features/s390x-linux64.xml: New file.
2072 * features/s390-linux32.c: New generated file.
2073 * features/s390-linux64.c: New generated file.
2074 * features/s390x-linux64.c: New generated file.
2075
2076 * regformats/s390-linux32.dat: New generated file.
2077 * regformats/s390-linux64.dat: New generated file.
2078 * regformats/s390x-linux64.dat: New generated file.
2079 * regformats/reg-s390.dat: Remove.
2080 * regformats/reg-s390x.dat: Remove.
2081
2082 * s390-nat.c: Include "auxv.h" and <elf.h>.
2083 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2084 (s390_target_wordsize): New function.
2085 (s390_auxv_parse): Likewise.
2086 (s390_get_hwcap): Likewise.
2087 (s390_read_description): Likewise.
2088 (_initialize_s390_nat): Install s390_auxv_parse and
2089 s390_read_description.
2090
2091 * s390-tdep.c: Include "features/s390-linux32.c",
2092 "features/s390-linux64.c", and "features/s390x-linux64.c".
2093 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2094 (s390_register_call_saved): New function.
2095 (s390_register_name): Remove.
2096 (s390_register_type): Remove.
2097 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2098 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2099 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2100 (s390_pseudo_register_name): New function.
2101 (s390_pseudo_register_type): New function.
2102 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2103 Handle full GPR pesudos and varying pseudo register numbers.
2104 (s390_pseudo_register_write): Likewise
2105 (s390x_pseudo_register_read): Remove.
2106 (s390x_pseudo_register_write): Likewise.
2107 (s390_register_group): Remove.
2108 (s390_pseudo_register_group): New function.
2109 (s390_regmap_gregset): Add GPR upper halves.
2110 (s390x_regmap_gregset): Likewise.
2111 (s390_regmap_fpregset): Likewise.
2112 (s390_regmap_upper): New global variable.
2113 (s390_upper_regset): New global variable.
2114 (s390_upper_regset_sections): New global variable.
2115 (s390_regset_from_core_section): Handle GPR upper halves.
2116 (s390_core_read_description): New function.
2117 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2118 register information. Handle varying pseudo register numbers.
2119 (s390_backchain_frame_unwind_cache): Likewise.
2120 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2121 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2122 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2123 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2124 Handle varying pseudo register numbers.
2125 (s390_unwind_pc): Handle varying pseudo register numbers.
2126 (s390_dwarf2_prev_register): New function.
2127 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2128 register information. Handle varying pseudo register numbers.
2129 Install s390_dwarf2_prev_register to unwind full GPRs.
2130 (s390_gdbarch_init): Handle target descriptions. Assign varying
2131 pseudo register numbers. Install s390_adjust_frame_regnum.
2132 (_initialize_s390_tdep): Initialize target descriptions.
2133
2134 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2135 (S390_NUM_REGS): Redefine to include upper half registers.
2136 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2137 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
2138 (tdesc_s390_linux32): Add declaration.
2139 (tdesc_s390_linux64): Likewise.
2140 (tdesc_s390x_linux64): Likewise.
2141
1b1818e4
UW
21422010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2143
2144 * regset.h (struct core_regset_section): Add HUMAN_NAME.
2145 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
2146 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2147 (ppc_linux_vmx_regset_sections): Likewise.
2148 (ppc_linux_fp_regset_sections): Likewise.
2149
2150 * corelow.c (get_core_register_section): Constify arguments.
2151 (get_core_registers): Use gdbarch_core_regset_sections instead
2152 of hard-coded platform-specific register section names.
2153
dcbf108f
UW
21542010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2155
2156 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 2157 a register, assume the least-significant part is used.
dcbf108f
UW
2158 (write_pieced_value): Likewise.
2159
704e9165
UW
21602010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2161
2162 * printcmd.c: Include "arch-utils.h".
2163 (do_one_display): Re-parse expression if current architecture changed.
2164
c54eabfa
JK
21652010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2166 Joel Brobecker <brobecker@adacore.com>
2167
2168 * gdbtypes.c (check_typedef): New comment on type length.
2169 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2170 comment on type length.
2171 (value_primitive_field): Keep the original TYPE value, new comment.
2172
50cb2941
JK
21732010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2176 p_start. Change != comparisons to > and < comparisons.
2177
be66db07
JK
21782010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2179
2180 * cli/cli-script.c (process_next_line): Check P2 overrun.
2181
abd775ce
JB
21822009-01-01 Joel Brobecker <brobecker@adacore.com>
2183
2184 Update the copyright hearder to add year 2010 for most GDB files.
2185
6479260d
JB
21862009-01-01 Joel Brobecker <brobecker@adacore.com>
2187
2188 Fix build failure in inf-ptrace.c.
2189 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2190
4a70f654
JB
21912010-01-01 Joel Brobecker <brobecker@adacore.com>
2192
2193 * top.c (print_gdb_version): Update copyright year.
2194
b9ee2233
JB
21952010-01-01 Joel Brobecker <brobecker@adacore.com>
2196
2197 Fix break *FUN'address thread NUM.
2198 * ada-lex.l (task): Expand rule to also match the thread keyword.
2199
70575d34
JB
22002010-01-01 Joel Brobecker <brobecker@adacore.com>
2201
2202 Fix break *FUN'address task NUM.
2203 * ada-lex.l (task): New rule.
2204 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2205 been built before using it.
2206
e1e4d4a4 2207For older changes see ChangeLog-2009.
c906108c
SS
2208\f
2209Local Variables:
2210mode: change-log
2211left-margin: 8
2212fill-column: 74
2213version-control: never
57da7796 2214coding: utf-8
c906108c 2215End:
This page took 1.35495 seconds and 4 git commands to generate.