Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: Time for a HP/PA hackathon?
@ 2004-02-13 22:39 Michael Elizabeth Chastain
  2004-02-14  2:01 ` Andrew Cagney
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-13 22:39 UTC (permalink / raw)
  To: cagney; +Cc: gdb-patches

The problem is somewhere between 2004-02-11 22:00:00 UTC and 2004-02-11
23:30:00 UTC.  That puts it in the BFD real_ftell/real_fseek changes.

I suspect that it's something like "ftello64" getting picked up by
the autoconf test which is looking in the library, but no prototype
is actually in scope, so the return value defaults to "int" and
some bits are getting lost.

Aha, look at this!

  gcc -DHAVE_CONFIG_H -I. -I/house/chastain/gdb/s1/bfd -I. -D_GNU_SOURCE -DHOST_HPPAHPUX -DHPUX_CORE -I. -I/house/chastain/gdb/s1/bfd -I/house/chastain/gdb/s1/bfd/../include -I/house/chastain/gdb/s1/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /house/chastain/gdb/s1/bfd/bfdio.c -o bfdio.o
  /house/chastain/gdb/s1/bfd/bfdio.c: In function `real_ftell':
  /house/chastain/gdb/s1/bfd/bfdio.c:45: warning: implicit declaration of function `ftello64'
  /house/chastain/gdb/s1/bfd/bfdio.c: In function `real_fseek':
  /house/chastain/gdb/s1/bfd/bfdio.c:57: warning: implicit declaration of function `fseeko64'

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Time for a HP/PA hackathon?
@ 2004-02-14 20:00 Michael Elizabeth Chastain
  2004-02-15  1:20 ` Daniel Jacobowitz
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-14 20:00 UTC (permalink / raw)
  To: cagney, mec.gnu; +Cc: gdb-patches

> The 64-bit off_t, enabling the TUI, the HP/UX frame update, or the BFD 
> file I/O rewrite?

The 64-bit off_t is the part that bothers me.

It's using a new host ABI that gdb hasn't used before, which means it's
likely to have problems on some hosts.

I don't feel as nervous about the TUI as you do.  If it doesn't work on
some host, then we can just disable it on that host.

The HP/UX frame update doesn't bother me at all.  We have a test suite.
I run it.  It's covered, although the coverage is limited to HP's
compilers (no gcc) and HP-UX 11.11 (no 10.20 or 11.00).

I don't know anything about the BFD file I/O rewrite.

We aren't getting enough host-side coverage in gdb-testers.  It's a
QA issue rather than a development issue.  How does anyone know if the
new off_t code or the most recent readline code works on Cygwin or
AIX or Irix or Solaris?

> I do wonder if the next binutils branch should be held off until after 
> GDB's been released - so that it can learn from GDB's mistakes :-)

It's easier for me if gdb doesn't branch until gcc 3.3.3 has released,
and a lot easier if binutils doesn't branch until gdb 6.1 has released
(preferably until after gdb gdb-6_1-branch has died).

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Time for a HP/PA hackathon?
@ 2004-02-14  3:14 Michael Elizabeth Chastain
  2004-02-14 15:54 ` Andrew Cagney
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-14  3:14 UTC (permalink / raw)
  To: cagney, mec.gnu; +Cc: gdb-patches

> What happens if -D_LARGEFILE64_SOURCE is added?  (Not sure of the 
> correct way to do that in BFD though).

"./gdb ./gdb" ; "break main" ; "run" works.

And it works with gdb built with gcc 3.3.2, ansi c B11.11,
and aC++ A.03.45.

I do think you're opening up a big can of worms shortly before
the 6.1 branch though.

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Time for a HP/PA hackathon?
@ 2004-02-13 18:13 Michael Elizabeth Chastain
  2004-02-13 18:32 ` Elena Zannoni
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-13 18:13 UTC (permalink / raw)
  To: cagney, mec.gnu; +Cc: brobecker, gdb-patches

mec> "not in executable format: Bad value"
ac> Um, in a word, "huh?" :-)  I think that's caused by something else. 

It *is* caused by something else.  Note the lack of a "before" version
in my message.  I went back and built the stock gdb like I should have,
and it's broken the same way.

gdb cvs HEAD broke some time between 2004-02-07 02:51:38 UTC (exact)
and 2004-02-13 T 15:25:06 UTC (approx).  I'll go track it down.

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Time for a HP/PA hackathon?
@ 2004-02-13 16:29 Michael Elizabeth Chastain
  2004-02-13 16:54 ` Andrew Cagney
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-13 16:29 UTC (permalink / raw)
  To: brobecker, cagney; +Cc: gdb-patches

ac> - Does it start?
ac> There's a good chance GDB will panic during initialization ...

It starts, but it can't read executable files.

ac> - If it starts, the output from:
ac> (gdb) maint print architecture architecture
ac> (gdb) shell grep -i deprecated architecture

See the typescript below.

ac> - what happens when:
ac> ./gdb .../advance

"not in executable format: Bad value"

Here's the exact patch that I applied, and a typescript.

(btw, please change your address book from <mec@shout.net>
 to <mec.gnu@mindspring.com>.  I guess that's my karma for not fixing
 my stupid MUA yet).

Michael C

=== fum.patch

Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.116
diff -c -3 -p -r1.116 hppa-tdep.c
*** hppa-tdep.c	11 Feb 2004 16:46:20 -0000	1.116
--- hppa-tdep.c	13 Feb 2004 15:37:54 -0000
*************** hppa_gdbarch_init (struct gdbarch_info i
*** 5211,5217 ****
  #endif
  
    /* Frame unwind methods.  */
! #if 0
  #else
    set_gdbarch_deprecated_saved_pc_after_call (gdbarch, hppa_saved_pc_after_call);
    set_gdbarch_deprecated_init_extra_frame_info (gdbarch, hppa_init_extra_frame_info);
--- 5211,5219 ----
  #endif
  
    /* Frame unwind methods.  */
! #if 1
!   /* add this */
!   set_gdbarch_unwind_dummy_id (gdbarch, "hack function that returns null_frame_id for the dummy id");
  #else
    set_gdbarch_deprecated_saved_pc_after_call (gdbarch, hppa_saved_pc_after_call);
    set_gdbarch_deprecated_init_extra_frame_info (gdbarch, hppa_init_extra_frame_info);

=== typescript

Script started on Fri Feb 13 11:20:17 2004
[chastain@spe191]$ ./gdb
GNU gdb 2004-02-13-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11".
(gdb) maint print architecture architecture
(gdb) shell grep -i deprecated architecture
gdbarch_dump: DEPRECATED_CALL_DUMMY_ADDRESS_P() # (gdbarch_deprecated_call_dummy_address_p (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_ADDRESS_P() = 0
gdbarch_dump: DEPRECATED_CALL_DUMMY_ADDRESS() # (gdbarch_deprecated_call_dummy_address (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_ADDRESS = <0x00000000>
gdbarch_dump: DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET # (gdbarch_deprecated_call_dummy_breakpoint_offset (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET = 0
gdbarch_dump: DEPRECATED_CALL_DUMMY_LENGTH # (gdbarch_deprecated_call_dummy_length (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_LENGTH = 112
gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST_P() # (gdbarch_deprecated_call_dummy_stack_adjust_p (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST_P() = 0
gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST # (gdbarch_deprecated_call_dummy_stack_adjust (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST = 0
gdbarch_dump: DEPRECATED_CALL_DUMMY_START_OFFSET # (gdbarch_deprecated_call_dummy_start_offset (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_START_OFFSET = 0
gdbarch_dump: DEPRECATED_CALL_DUMMY_WORDS # (gdbarch_deprecated_call_dummy_words (current_gdbarch))
gdbarch_dump: DEPRECATED_CALL_DUMMY_WORDS = 0x40004e40
gdbarch_dump: DEPRECATED_DO_REGISTERS_INFO_P() # (1)
gdbarch_dump: DEPRECATED_DO_REGISTERS_INFO_P() = 1
gdbarch_dump: DEPRECATED_DO_REGISTERS_INFO(reg_nr, fpregs) # pa_do_registers_info (reg_nr, fpregs)
gdbarch_dump: DEPRECATED_DO_REGISTERS_INFO = <0x00000000>
gdbarch_dump: DEPRECATED_DUMMY_WRITE_SP_P() # (1)
gdbarch_dump: DEPRECATED_DUMMY_WRITE_SP_P() = 1
gdbarch_dump: DEPRECATED_DUMMY_WRITE_SP(val) # deprecated_write_sp (val)
gdbarch_dump: DEPRECATED_DUMMY_WRITE_SP = <0x00000000>
gdbarch_dump: DEPRECATED_EXTRACT_RETURN_VALUE(type, regbuf, valbuf) # (gdbarch_deprecated_extract_return_value (current_gdbarch, type, regbuf, valbuf))
gdbarch_dump: DEPRECATED_EXTRACT_RETURN_VALUE = <0x40022c0a>
gdbarch_dump: DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P() # (gdbarch_deprecated_extract_struct_value_address_p (current_gdbarch))
gdbarch_dump: DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P() = 0
gdbarch_dump: DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(regcache) # (gdbarch_deprecated_extract_struct_value_address (current_gdbarch, regcache))
gdbarch_dump: DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS = <0x00000000>
gdbarch_dump: DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED # (gdbarch_deprecated_extra_stack_alignment_needed (current_gdbarch))
gdbarch_dump: DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED = 0
gdbarch_dump: DEPRECATED_FIX_CALL_DUMMY_P() # (1)
gdbarch_dump: DEPRECATED_FIX_CALL_DUMMY_P() = 1
gdbarch_dump: DEPRECATED_FIX_CALL_DUMMY(dummy, pc, fun, nargs, args, type, gcc_p) # hppa_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
gdbarch_dump: DEPRECATED_FIX_CALL_DUMMY = <0x00000000>
gdbarch_dump: DEPRECATED_FP_REGNUM # (gdbarch_deprecated_fp_regnum (current_gdbarch))
gdbarch_dump: DEPRECATED_FP_REGNUM = 3
gdbarch_dump: DEPRECATED_FRAME_ARGS_ADDRESS_P() # (gdbarch_deprecated_frame_args_address_p (current_gdbarch))
gdbarch_dump: DEPRECATED_FRAME_ARGS_ADDRESS_P() = 0
gdbarch_dump: DEPRECATED_FRAME_ARGS_ADDRESS(fi) # (gdbarch_deprecated_frame_args_address (current_gdbarch, fi))
gdbarch_dump: DEPRECATED_FRAME_ARGS_ADDRESS = <0x400231f2>
gdbarch_dump: DEPRECATED_FRAME_CHAIN_P() # (gdbarch_deprecated_frame_chain_p (current_gdbarch))
gdbarch_dump: DEPRECATED_FRAME_CHAIN_P() = 0
gdbarch_dump: DEPRECATED_FRAME_CHAIN(frame) # (gdbarch_deprecated_frame_chain (current_gdbarch, frame))
gdbarch_dump: DEPRECATED_FRAME_CHAIN = <0x00000000>
gdbarch_dump: DEPRECATED_FRAME_CHAIN_VALID_P() # (gdbarch_deprecated_frame_chain_valid_p (current_gdbarch))
gdbarch_dump: DEPRECATED_FRAME_CHAIN_VALID_P() = 0
gdbarch_dump: DEPRECATED_FRAME_CHAIN_VALID(chain, thisframe) # (gdbarch_deprecated_frame_chain_valid (current_gdbarch, chain, thisframe))
gdbarch_dump: DEPRECATED_FRAME_CHAIN_VALID = <0x00000000>
gdbarch_dump: DEPRECATED_FRAME_INIT_SAVED_REGS_P() # (1)
gdbarch_dump: DEPRECATED_FRAME_INIT_SAVED_REGS_P() = 1
gdbarch_dump: DEPRECATED_FRAME_INIT_SAVED_REGS(frame) # hppa_frame_init_saved_regs (frame)
gdbarch_dump: DEPRECATED_FRAME_INIT_SAVED_REGS = <0x00000000>
gdbarch_dump: DEPRECATED_FRAME_LOCALS_ADDRESS_P() # (gdbarch_deprecated_frame_locals_address_p (current_gdbarch))
gdbarch_dump: DEPRECATED_FRAME_LOCALS_ADDRESS_P() = 0
gdbarch_dump: DEPRECATED_FRAME_LOCALS_ADDRESS(fi) # (gdbarch_deprecated_frame_locals_address (current_gdbarch, fi))
gdbarch_dump: DEPRECATED_FRAME_LOCALS_ADDRESS = <0x400231f2>
gdbarch_dump: DEPRECATED_FRAME_SAVED_PC_P() # (gdbarch_deprecated_frame_saved_pc_p (current_gdbarch))
gdbarch_dump: DEPRECATED_FRAME_SAVED_PC_P() = 0
gdbarch_dump: DEPRECATED_FRAME_SAVED_PC(fi) # (gdbarch_deprecated_frame_saved_pc (current_gdbarch, fi))
gdbarch_dump: DEPRECATED_FRAME_SAVED_PC = <0x00000000>
gdbarch_dump: DEPRECATED_GET_SAVED_REGISTER_P() # (gdbarch_deprecated_get_saved_register_p (current_gdbarch))
gdbarch_dump: DEPRECATED_GET_SAVED_REGISTER_P() = 0
gdbarch_dump: DEPRECATED_GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) # (gdbarch_deprecated_get_saved_register (current_gdbarch, raw_buffer, optimized, addrp, frame, regnum, lval))
gdbarch_dump: DEPRECATED_GET_SAVED_REGISTER = <0x00000000>
gdbarch_dump: DEPRECATED_INIT_EXTRA_FRAME_INFO_P() # (gdbarch_deprecated_init_extra_frame_info_p (current_gdbarch))
gdbarch_dump: DEPRECATED_INIT_EXTRA_FRAME_INFO_P() = 0
gdbarch_dump: DEPRECATED_INIT_EXTRA_FRAME_INFO(fromleaf, frame) # (gdbarch_deprecated_init_extra_frame_info (current_gdbarch, fromleaf, frame))
gdbarch_dump: DEPRECATED_INIT_EXTRA_FRAME_INFO = <0x00000000>
gdbarch_dump: DEPRECATED_INIT_FRAME_PC_P() # (1)
gdbarch_dump: DEPRECATED_INIT_FRAME_PC_P() = 1
gdbarch_dump: DEPRECATED_INIT_FRAME_PC(fromleaf, prev) # (deprecated_init_frame_pc_default (fromleaf, prev))
gdbarch_dump: DEPRECATED_INIT_FRAME_PC = <0x00000000>
gdbarch_dump: DEPRECATED_INIT_FRAME_PC_FIRST_P() # (gdbarch_deprecated_init_frame_pc_first_p (current_gdbarch))
gdbarch_dump: DEPRECATED_INIT_FRAME_PC_FIRST_P() = 0
gdbarch_dump: DEPRECATED_INIT_FRAME_PC_FIRST(fromleaf, prev) # (gdbarch_deprecated_init_frame_pc_first (current_gdbarch, fromleaf, prev))
gdbarch_dump: DEPRECATED_INIT_FRAME_PC_FIRST = <0x00000000>
gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE_P() # (gdbarch_deprecated_max_register_raw_size_p (current_gdbarch))
gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE_P() = 1
gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE # (gdbarch_deprecated_max_register_raw_size (current_gdbarch))
gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE = 4
gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P() # (gdbarch_deprecated_max_register_virtual_size_p (current_gdbarch))
gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P() = 1
gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE # (gdbarch_deprecated_max_register_virtual_size (current_gdbarch))
gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE = 8
gdbarch_dump: DEPRECATED_PC_IN_CALL_DUMMY_P() # (1)
gdbarch_dump: DEPRECATED_PC_IN_CALL_DUMMY_P() = 1
gdbarch_dump: DEPRECATED_PC_IN_CALL_DUMMY(pc, sp, frame_address) # deprecated_pc_in_call_dummy_on_stack (pc, sp, frame_address)
gdbarch_dump: DEPRECATED_PC_IN_CALL_DUMMY = <0x4002317a>
gdbarch_dump: DEPRECATED_POP_FRAME_P() # (gdbarch_deprecated_pop_frame_p (current_gdbarch))
gdbarch_dump: DEPRECATED_POP_FRAME_P() = 0
gdbarch_dump: DEPRECATED_POP_FRAME(-) # (gdbarch_deprecated_pop_frame (current_gdbarch)) (-)
gdbarch_dump: DEPRECATED_POP_FRAME = <0x00000000>
gdbarch_dump: DEPRECATED_PUSH_ARGUMENTS_P() # (gdbarch_deprecated_push_arguments_p (current_gdbarch))
gdbarch_dump: DEPRECATED_PUSH_ARGUMENTS_P() = 1
gdbarch_dump: DEPRECATED_PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) # (gdbarch_deprecated_push_arguments (current_gdbarch, nargs, args, sp, struct_return, struct_addr))
gdbarch_dump: DEPRECATED_PUSH_ARGUMENTS = <0x40022c52>
gdbarch_dump: DEPRECATED_PUSH_DUMMY_FRAME_P() # (gdbarch_deprecated_push_dummy_frame_p (current_gdbarch))
gdbarch_dump: DEPRECATED_PUSH_DUMMY_FRAME_P() = 1
gdbarch_dump: DEPRECATED_PUSH_DUMMY_FRAME(-) # (gdbarch_deprecated_push_dummy_frame (current_gdbarch)) (-)
gdbarch_dump: DEPRECATED_PUSH_DUMMY_FRAME = <0x40022c4a>
gdbarch_dump: DEPRECATED_PUSH_RETURN_ADDRESS_P() # (gdbarch_deprecated_push_return_address_p (current_gdbarch))
gdbarch_dump: DEPRECATED_PUSH_RETURN_ADDRESS_P() = 0
gdbarch_dump: DEPRECATED_PUSH_RETURN_ADDRESS(pc, sp) # (gdbarch_deprecated_push_return_address (current_gdbarch, pc, sp))
gdbarch_dump: DEPRECATED_PUSH_RETURN_ADDRESS = <0x00000000>
gdbarch_dump: DEPRECATED_REGISTER_BYTE_P() # (gdbarch_deprecated_register_byte_p (current_gdbarch))
gdbarch_dump: DEPRECATED_REGISTER_BYTE_P() = 1
gdbarch_dump: DEPRECATED_REGISTER_BYTE(reg_nr) # (gdbarch_deprecated_register_byte (current_gdbarch, reg_nr))
gdbarch_dump: DEPRECATED_REGISTER_BYTE = <0x40022bba>
gdbarch_dump: DEPRECATED_REGISTER_BYTES # (gdbarch_deprecated_register_bytes (current_gdbarch))
gdbarch_dump: DEPRECATED_REGISTER_BYTES = 512
gdbarch_dump: DEPRECATED_REGISTER_CONVERTIBLE(nr) # (gdbarch_deprecated_register_convertible (current_gdbarch, nr))
gdbarch_dump: DEPRECATED_REGISTER_CONVERTIBLE = <0x40023182>
gdbarch_dump: DEPRECATED_REGISTER_CONVERT_TO_RAW(type, regnum, from, to) # (gdbarch_deprecated_register_convert_to_raw (current_gdbarch, type, regnum, from, to))
gdbarch_dump: DEPRECATED_REGISTER_CONVERT_TO_RAW = <0x00000000>
gdbarch_dump: DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL(regnum, type, from, to) # (gdbarch_deprecated_register_convert_to_virtual (current_gdbarch, regnum, type, from, to))
gdbarch_dump: DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL = <0x00000000>
gdbarch_dump: DEPRECATED_REGISTER_RAW_SIZE_P() # (gdbarch_deprecated_register_raw_size_p (current_gdbarch))
gdbarch_dump: DEPRECATED_REGISTER_RAW_SIZE_P() = 1
gdbarch_dump: DEPRECATED_REGISTER_RAW_SIZE(reg_nr) # (gdbarch_deprecated_register_raw_size (current_gdbarch, reg_nr))
gdbarch_dump: DEPRECATED_REGISTER_RAW_SIZE = <0x40022bb2>
gdbarch_dump: DEPRECATED_REGISTER_SIZE # (gdbarch_deprecated_register_size (current_gdbarch))
gdbarch_dump: DEPRECATED_REGISTER_SIZE = 4
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_SIZE_P() # (gdbarch_deprecated_register_virtual_size_p (current_gdbarch))
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_SIZE_P() = 1
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_SIZE(reg_nr) # (gdbarch_deprecated_register_virtual_size (current_gdbarch, reg_nr))
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_SIZE = <0x40022bb2>
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_TYPE_P() # (gdbarch_deprecated_register_virtual_type_p (current_gdbarch))
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_TYPE_P() = 1
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_TYPE(reg_nr) # (gdbarch_deprecated_register_virtual_type (current_gdbarch, reg_nr))
gdbarch_dump: DEPRECATED_REGISTER_VIRTUAL_TYPE = <0x40022b72>
gdbarch_dump: DEPRECATED_REG_STRUCT_HAS_ADDR_P() # (gdbarch_deprecated_reg_struct_has_addr_p (current_gdbarch))
gdbarch_dump: DEPRECATED_REG_STRUCT_HAS_ADDR_P() = 1
gdbarch_dump: DEPRECATED_REG_STRUCT_HAS_ADDR(gcc_p, type) # (gdbarch_deprecated_reg_struct_has_addr (current_gdbarch, gcc_p, type))
gdbarch_dump: DEPRECATED_REG_STRUCT_HAS_ADDR = <0x40022c02>
gdbarch_dump: DEPRECATED_SAVED_PC_AFTER_CALL_P() # (gdbarch_deprecated_saved_pc_after_call_p (current_gdbarch))
gdbarch_dump: DEPRECATED_SAVED_PC_AFTER_CALL_P() = 0
gdbarch_dump: DEPRECATED_SAVED_PC_AFTER_CALL(frame) # (gdbarch_deprecated_saved_pc_after_call (current_gdbarch, frame))
gdbarch_dump: DEPRECATED_SAVED_PC_AFTER_CALL = <0x00000000>
gdbarch_dump: DEPRECATED_SAVE_DUMMY_FRAME_TOS_P() # (gdbarch_deprecated_save_dummy_frame_tos_p (current_gdbarch))
gdbarch_dump: DEPRECATED_SAVE_DUMMY_FRAME_TOS_P() = 0
gdbarch_dump: DEPRECATED_SAVE_DUMMY_FRAME_TOS(sp) # (gdbarch_deprecated_save_dummy_frame_tos (current_gdbarch, sp))
gdbarch_dump: DEPRECATED_SAVE_DUMMY_FRAME_TOS = <0x00000000>
gdbarch_dump: DEPRECATED_SIZEOF_CALL_DUMMY_WORDS # (gdbarch_deprecated_sizeof_call_dummy_words (current_gdbarch))
gdbarch_dump: DEPRECATED_SIZEOF_CALL_DUMMY_WORDS = 224
gdbarch_dump: DEPRECATED_STACK_ALIGN_P() # (gdbarch_deprecated_stack_align_p (current_gdbarch))
gdbarch_dump: DEPRECATED_STACK_ALIGN_P() = 1
gdbarch_dump: DEPRECATED_STACK_ALIGN(sp) # (gdbarch_deprecated_stack_align (current_gdbarch, sp))
gdbarch_dump: DEPRECATED_STACK_ALIGN = <0x40022bfa>
gdbarch_dump: DEPRECATED_STORE_RETURN_VALUE(type, valbuf) # (gdbarch_deprecated_store_return_value (current_gdbarch, type, valbuf))
gdbarch_dump: DEPRECATED_STORE_RETURN_VALUE = <0x40022c1a>
gdbarch_dump: DEPRECATED_STORE_STRUCT_RETURN_P() # (gdbarch_deprecated_store_struct_return_p (current_gdbarch))
gdbarch_dump: DEPRECATED_STORE_STRUCT_RETURN_P() = 1
gdbarch_dump: DEPRECATED_STORE_STRUCT_RETURN(addr, sp) # (gdbarch_deprecated_store_struct_return (current_gdbarch, addr, sp))
gdbarch_dump: DEPRECATED_STORE_STRUCT_RETURN = <0x40022c42>
gdbarch_dump: DEPRECATED_TARGET_READ_FP_P() # (gdbarch_deprecated_target_read_fp_p (current_gdbarch))
gdbarch_dump: DEPRECATED_TARGET_READ_FP_P() = 1
gdbarch_dump: DEPRECATED_TARGET_READ_FP() # (gdbarch_deprecated_target_read_fp (current_gdbarch))
gdbarch_dump: DEPRECATED_TARGET_READ_FP = <0x40022be2>
gdbarch_dump: DEPRECATED_USE_GENERIC_DUMMY_FRAMES # 0
gdbarch_dump: DEPRECATED_USE_GENERIC_DUMMY_FRAMES = 0
(gdb) quit
[chastain@spe191]$ ./gdb a.out
GNU gdb 2004-02-13-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11"..."/house/chastain/gdb/install/hppa2.0w-hp-hpux11.11/s1-blank-gcc-none/bin/a.out": not in executable format: Bad value

(gdb) quit
[chastain@spe191]$ ./gdb g\b \b./gdb
GNU gdb 2004-02-13-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11"..."/house/chastain/gdb/install/hppa2.0w-hp-hpux11.11/s1-blank-gcc-none/bin/gdb": not in executable format: Bad value

(gdb) quit
[chastain@spe191]$ exit

script done on Fri Feb 13 11:21:04 2004


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Time for a HP/PA hackathon?
@ 2004-02-11 17:05 Andrew Cagney
  0 siblings, 0 replies; 12+ messages in thread
From: Andrew Cagney @ 2004-02-11 17:05 UTC (permalink / raw)
  To: Joel Brobecker, Michael Elizabeth Chastain; +Cc: gdb-patches

Joel, Michael,

Would either of you be able to do a HP/PA build with the "0" here:

>   /* Frame unwind methods.  */
> #if 0

     // add this
     set_gdbarch_unwind_dummy_id (gdbarch, "hack function that returns 
null_frame_id for the dummy id");

> #else
>   set_gdbarch_deprecated_saved_pc_after_call (gdbarch, hppa_saved_pc_after_call

changed to a "1" and add an extra line, and then try that GDB to see 
what happens?

- Does it start?
There's a good chance GDB will panic during initialization ...

- If it starts, the output from:
(gdb) maint print architecture architecture
(gdb) shell grep -i deprecated architecture
I'm looking to see if/why legacy_frame_p() returns true/false (did that 
#if 1 really work?)

- what happens when:
./gdb .../advance
(gdb) break main
(gdb) run
(gdb) next ...
is executed.  I'm looking to see how/where GDB panics when stepping - 
this is testing the code's ability to unwind the PC register.

- what happens when
./gdb .../advance
(gdb) break func
(gdb) run
(gdb) advance func3
(it should end up in main)
I'm looking to see if/how GDB is correctly unwinding frame IDs - this is 
testing the code's ability to keep a frame ID constant across a function.

Andrew


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-02-15  1:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-13 22:39 Time for a HP/PA hackathon? Michael Elizabeth Chastain
2004-02-14  2:01 ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2004-02-14 20:00 Michael Elizabeth Chastain
2004-02-15  1:20 ` Daniel Jacobowitz
2004-02-14  3:14 Michael Elizabeth Chastain
2004-02-14 15:54 ` Andrew Cagney
2004-02-13 18:13 Michael Elizabeth Chastain
2004-02-13 18:32 ` Elena Zannoni
2004-02-13 18:48   ` Andrew Cagney
2004-02-13 16:29 Michael Elizabeth Chastain
2004-02-13 16:54 ` Andrew Cagney
2004-02-11 17:05 Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox